2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for bacula 5.2.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir=.
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
374 as_status=$?; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 test -n "$DJDIR" || exec 7<&0 </dev/null
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
559 # Identity of this package.
560 PACKAGE_NAME='bacula'
561 PACKAGE_TARNAME='bacula'
562 PACKAGE_VERSION='5.2.0'
563 PACKAGE_STRING='bacula 5.2.0'
567 ac_unique_file="src/version.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars='LTLIBOBJS
632 SHARED_CATALOG_TARGETS
702 TRAY_MONITOR_CPPFLAGS
711 INTL_LIBTOOL_SUFFIX_PREFIX
718 BUILD_INCLUDED_LIBINTL
749 HAVE_OPENBSD_OS_FALSE
753 HAVE_FREEBSD_OS_FALSE
765 INCLUDE_UNINSTALL_TARGET
766 INCLUDE_INSTALL_TARGET
770 LIBTOOL_UNINSTALL_TARGET
771 LIBTOOL_INSTALL_TARGET
772 DEFAULT_SHARED_OBJECT_TYPE
848 LIBBACFIND_LT_RELEASE
849 LIBBACCATS_LT_RELEASE
894 program_transform_name
905 ac_subst_files='MCOMMON'
907 enable_option_checking
921 with_included_gettext
960 with_mon_dir_password
984 ac_precious_vars='build_alias
1002 # Initialize some variables set by options.
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1016 program_transform_name=s,x,x,
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\$ac_option
1062 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1072 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075 bindir=$ac_optarg ;;
1077 -build | --build | --buil | --bui | --bu)
1078 ac_prev=build_alias ;;
1079 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080 build_alias=$ac_optarg ;;
1082 -cache-file | --cache-file | --cache-fil | --cache-fi \
1083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084 ac_prev=cache_file ;;
1085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087 cache_file=$ac_optarg ;;
1089 --config-cache | -C)
1090 cache_file=config.cache ;;
1092 -datadir | --datadir | --datadi | --datad)
1094 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095 datadir=$ac_optarg ;;
1097 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098 | --dataroo | --dataro | --datar)
1099 ac_prev=datarootdir ;;
1100 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102 datarootdir=$ac_optarg ;;
1104 -disable-* | --disable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid feature name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_$ac_useropt"
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval enable_$ac_useropt=no ;;
1120 -docdir | --docdir | --docdi | --doc | --do)
1122 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123 docdir=$ac_optarg ;;
1125 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128 dvidir=$ac_optarg ;;
1130 -enable-* | --enable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid feature name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_$ac_useropt"
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval enable_$ac_useropt=\$ac_optarg ;;
1146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148 | --exec | --exe | --ex)
1149 ac_prev=exec_prefix ;;
1150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152 | --exec=* | --exe=* | --ex=*)
1153 exec_prefix=$ac_optarg ;;
1155 -gas | --gas | --ga | --g)
1156 # Obsolete; use --with-gas.
1159 -help | --help | --hel | --he | -h)
1160 ac_init_help=long ;;
1161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162 ac_init_help=recursive ;;
1163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164 ac_init_help=short ;;
1166 -host | --host | --hos | --ho)
1167 ac_prev=host_alias ;;
1168 -host=* | --host=* | --hos=* | --ho=*)
1169 host_alias=$ac_optarg ;;
1171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175 htmldir=$ac_optarg ;;
1177 -includedir | --includedir | --includedi | --included | --include \
1178 | --includ | --inclu | --incl | --inc)
1179 ac_prev=includedir ;;
1180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181 | --includ=* | --inclu=* | --incl=* | --inc=*)
1182 includedir=$ac_optarg ;;
1184 -infodir | --infodir | --infodi | --infod | --info | --inf)
1186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187 infodir=$ac_optarg ;;
1189 -libdir | --libdir | --libdi | --libd)
1191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192 libdir=$ac_optarg ;;
1194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195 | --libexe | --libex | --libe)
1196 ac_prev=libexecdir ;;
1197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198 | --libexe=* | --libex=* | --libe=*)
1199 libexecdir=$ac_optarg ;;
1201 -localedir | --localedir | --localedi | --localed | --locale)
1202 ac_prev=localedir ;;
1203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204 localedir=$ac_optarg ;;
1206 -localstatedir | --localstatedir | --localstatedi | --localstated \
1207 | --localstate | --localstat | --localsta | --localst | --locals)
1208 ac_prev=localstatedir ;;
1209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211 localstatedir=$ac_optarg ;;
1213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216 mandir=$ac_optarg ;;
1218 -nfp | --nfp | --nf)
1219 # Obsolete; use --without-fp.
1222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223 | --no-cr | --no-c | -n)
1226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232 | --oldin | --oldi | --old | --ol | --o)
1233 ac_prev=oldincludedir ;;
1234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237 oldincludedir=$ac_optarg ;;
1239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242 prefix=$ac_optarg ;;
1244 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245 | --program-pre | --program-pr | --program-p)
1246 ac_prev=program_prefix ;;
1247 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249 program_prefix=$ac_optarg ;;
1251 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252 | --program-suf | --program-su | --program-s)
1253 ac_prev=program_suffix ;;
1254 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256 program_suffix=$ac_optarg ;;
1258 -program-transform-name | --program-transform-name \
1259 | --program-transform-nam | --program-transform-na \
1260 | --program-transform-n | --program-transform- \
1261 | --program-transform | --program-transfor \
1262 | --program-transfo | --program-transf \
1263 | --program-trans | --program-tran \
1264 | --progr-tra | --program-tr | --program-t)
1265 ac_prev=program_transform_name ;;
1266 -program-transform-name=* | --program-transform-name=* \
1267 | --program-transform-nam=* | --program-transform-na=* \
1268 | --program-transform-n=* | --program-transform-=* \
1269 | --program-transform=* | --program-transfor=* \
1270 | --program-transfo=* | --program-transf=* \
1271 | --program-trans=* | --program-tran=* \
1272 | --progr-tra=* | --program-tr=* | --program-t=*)
1273 program_transform_name=$ac_optarg ;;
1275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278 pdfdir=$ac_optarg ;;
1280 -psdir | --psdir | --psdi | --psd | --ps)
1282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 sbindir=$ac_optarg ;;
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 sharedstatedir=$ac_optarg ;;
1306 -site | --site | --sit)
1308 -site=* | --site=* | --sit=*)
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1364 eval with_$ac_useropt=no ;;
1367 # Obsolete; use --with-x.
1370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371 | --x-incl | --x-inc | --x-in | --x-i)
1372 ac_prev=x_includes ;;
1373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375 x_includes=$ac_optarg ;;
1377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379 ac_prev=x_libraries ;;
1380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382 x_libraries=$ac_optarg ;;
1384 -*) as_fn_error "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information."
1389 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' | [0-9]* | *[!_$as_cr_alnum]* )
1393 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1395 eval $ac_envvar=\$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409 if test -n "$ac_prev"; then
1410 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error "missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1417 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 # Check all directory arguments for consistency.
1423 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1428 eval ac_val=\$$ac_var
1429 # Remove trailing slashes.
1432 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\$ac_val;;
1435 # Be sure to have absolute directory names.
1437 [\\/$]* | ?:[\\/]* ) continue;;
1438 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1448 target=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452 if test "x$build_alias" = x; then
1453 cross_compiling=maybe
1454 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455 If a cross compiler is detected then cross compile mode will be used." >&2
1456 elif test "x$build_alias" != "x$host_alias"; then
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1464 test "$silent" = yes && exec 6>/dev/null
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470 as_fn_error "working directory cannot be determined"
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 as_fn_error "pwd does not report name of working directory"
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477 ac_srcdir_defaulted=yes
1478 # Try the directory containing this script, then the parent directory.
1479 ac_confdir=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481 X"$as_myself" : 'X\(//\)[^/]' \| \
1482 X"$as_myself" : 'X\(//\)$' \| \
1483 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1507 ac_srcdir_defaulted=no
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1511 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1513 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1517 # When building in place, set srcdir=.
1518 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521 # Remove unnecessary trailing slashes from srcdir.
1522 # Double slashes in file names in object file debugging info
1523 # mess up M-x gdb in Emacs.
1525 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 for ac_var in $ac_precious_vars; do
1528 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_env_${ac_var}_value=\$${ac_var}
1530 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 # Report the --help message.
1537 if test "$ac_init_help" = "long"; then
1538 # Omit some internal or obsolete options to make the list less imposing.
1539 # This message is too long to be a string in the A/UX 3.1 sh.
1541 \`configure' configures bacula 5.2.0 to adapt to many kinds of systems.
1543 Usage: $0 [OPTION]... [VAR=VALUE]...
1545 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546 VAR=VALUE. See below for descriptions of some of the useful variables.
1548 Defaults for the options are specified in brackets.
1551 -h, --help display this help and exit
1552 --help=short display options specific to this package
1553 --help=recursive display the short help of all the included packages
1554 -V, --version display version information and exit
1555 -q, --quiet, --silent do not print \`checking...' messages
1556 --cache-file=FILE cache test results in FILE [disabled]
1557 -C, --config-cache alias for \`--cache-file=config.cache'
1558 -n, --no-create do not create output files
1559 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1561 Installation directories:
1562 --prefix=PREFIX install architecture-independent files in PREFIX
1563 [$ac_default_prefix]
1564 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1567 By default, \`make install' will install all the files in
1568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570 for instance \`--prefix=\$HOME'.
1572 For better control, use the options below.
1574 Fine tuning of the installation directories:
1575 --bindir=DIR user executables [EPREFIX/bin]
1576 --sbindir=DIR system admin executables [EPREFIX/sbin]
1577 --libexecdir=DIR program executables [EPREFIX/libexec]
1578 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1579 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1580 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 if test -n "$ac_init_help"; then
1609 case $ac_init_help in
1610 short | recursive ) echo "Configuration of bacula 5.2.0:";;
1615 --disable-option-checking ignore unrecognized --enable/--with options
1616 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1617 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1618 --enable-libtool enable building using GNU libtool [default=yes]
1619 --enable-shared[=PKGS] build shared libraries [default=yes]
1620 --enable-static[=PKGS] build static libraries [default=no]
1621 --enable-fast-install[=PKGS]
1622 optimize for fast installation [default=yes]
1623 --disable-libtool-lock avoid locking (might break parallel builds)
1624 --enable-includes enable installing of include files [default=no]
1625 --disable-nls do not use Native Language Support
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-gnome enable build of bgnome-console GUI [default=no]
1628 --enable-bat enable build of bat Qt4 GUI [default=no]
1629 --enable-bwx-console enable build of wxWidgets console [default=no]
1630 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1632 --enable-smartalloc enable smartalloc debugging support [default=no]
1633 --enable-lockmgr enable lock manager support [default=no]
1634 --enable-static-tools enable static tape tools [default=no]
1635 --enable-static-fd enable static File daemon [default=no]
1636 --enable-static-sd enable static Storage daemon [default=no]
1637 --enable-static-dir enable static Director [default=no]
1638 --enable-static-cons enable static Console [default=no]
1639 --enable-client-only build client (File daemon) only [default=no]
1640 --enable-build-dird enable building of dird (Director) [default=yes]
1641 --enable-build-stored enable building of stored (Storage daemon)
1643 --disable-conio disable conio support [default=no]
1644 --enable-ipv6 enable ipv6 support [default=yes]
1645 --disable-readline disable readline support [default=yes]
1646 --enable-batch-insert enable the DB batch insert code [default=yes]
1647 --disable-largefile omit support for large files
1648 --disable-acl disable acl support [default=auto]
1649 --disable-xattr disable xattr support [default=auto]
1652 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1653 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1654 --with-pic try to use only PIC/non-PIC objects [default=use
1656 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1657 --with-sysroot=DIR Search for dependent libraries within DIR
1658 (or the compiler's sysroot if not specified).
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1663 --without-libintl-prefix don't search for libintl in includedir and libdir
1664 --with-included-gettext use the GNU gettext library included here
1665 --with-readline[=DIR] specify readline library directory
1666 --with-python[=DIR] Include Python support. DIR is the Python base
1667 install directory, default is to search through a
1668 number of common places for the Python files.
1669 --with-tcp-wrappers[=DIR]
1670 enable tcpwrappers support
1671 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1672 --with-working-dir=PATH specify path of Bacula working directory
1673 --with-archivedir=PATH specify path of SD archive directory
1674 --with-basename=RESNAME specify base resource name for daemons
1675 --with-hostname=RESNAME specify host name for daemons
1676 --with-scriptdir=PATH specify path of Bacula scripts directory
1677 --with-bsrdir=PATH specify path of Bacula bsrs directory
1678 --with-logdir=PATH specify path of Bacula logs directory
1679 --with-plugindir=PATH specify path of Bacula plugins directory
1680 --with-dump-email=EMAIL dump email address
1681 --with-job-email=EMAIL job output email address
1682 --with-smtp-host=HOST SMTP mail host address
1683 --with-pid-dir=PATH specify location of Bacula pid files
1684 --with-subsys-dir=PATH specify location of Bacula subsys file
1685 --with-baseport=PORT specify base port address for daemons
1686 --with-dir-password=PASSWORD
1687 specify Director's password
1688 --with-fd-password=PASSWORD
1689 specify Client's password
1690 --with-sd-password=PASSWORD
1691 specify Storage daemon's password
1692 --with-mon-dir-password=PASSWORD
1693 specify Director's password used by the monitor
1694 --with-mon-fd-password=PASSWORD
1695 specify Client's password used by the monitor
1696 --with-mon-sd-password=PASSWORD
1697 specify Storage daemon's password used by the
1699 --with-db-name=DBNAME specify database name [default=bacula]
1700 --with-db-user=UNAME specify database user [default=bacula]
1701 --with-db-password=PWD specify database password [default=*none*]
1702 --with-db-port=DBPORT specify a database port [default=null]
1703 --with-dir-user=USER specify user for Director daemon
1704 --with-dir-group=GROUP specify group for Director daemon
1705 --with-sd-user=USER specify user for Storage daemon
1706 --with-sd-group=GROUP specify group for Storage daemon
1707 --with-fd-user=USER specify user for File daemon
1708 --with-fd-group=GROUP specify group for File daemon
1709 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1710 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1711 base install directory, [default=/usr/local/pgsql]
1712 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1713 directory, default is to search through a number of
1714 common places for the MySQL files.
1715 --with-embedded-mysql[=DIR]
1716 Include MySQL support. DIR is the MySQL base install
1717 directory, default is to search through a number of
1718 common places for the MySQL files.
1719 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1720 install directory, default is to search through a
1721 number of common places for the SQLite3 files.
1722 --with-x use the X Window System
1724 Some influential environment variables:
1725 CC C compiler command
1726 CFLAGS C compiler flags
1727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1728 nonstandard directory <lib dir>
1729 LIBS libraries to pass to the linker, e.g. -l<library>
1730 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731 you have headers in a nonstandard directory <include dir>
1732 CXX C++ compiler command
1733 CXXFLAGS C++ compiler flags
1735 WXCONFIG wx-config command. On some systems, you must set it to
1736 wx-config-2.6 to use wxWidgets 2.6.
1737 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1738 CXXCPP C++ preprocessor
1739 XMKMF Path to xmkmf, Makefile generator for X Window System
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1744 Report bugs to the package provider.
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1774 .) # We are building in place.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1807 bacula configure 5.2.0
1808 generated by GNU Autoconf 2.65
1810 Copyright (C) 2009 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_cxx_try_compile
1897 # ac_fn_c_try_cpp LINENO
1898 # ----------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_cpp conftest.$ac_ext"
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } >/dev/null && {
1919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 as_fn_set_status $ac_retval
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 $as_test_x conftest$ac_exeext
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_link
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_c_check_header_compile
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=$ac_status
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 as_fn_set_status $ac_retval
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068 #define $2 innocuous_$2
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (); below.
2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073 <limits.h> exists even on freestanding compilers. */
2076 # include <limits.h>
2078 # include <assert.h>
2083 /* Override any GCC internal prototype to avoid an error.
2084 Use char because int might match the return type of a GCC
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined __stub_$2 || defined __stub___$2
2105 if ac_fn_c_try_link "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext \
2111 conftest$ac_exeext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_check_func
2120 # ac_fn_cxx_try_cpp LINENO
2121 # ------------------------
2122 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_cpp ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if { { ac_try="$ac_cpp conftest.$ac_ext"
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132 $as_echo "$ac_try_echo"; } >&5
2133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135 if test -s conftest.err; then
2136 grep -v '^ *+' conftest.err >conftest.er1
2137 cat conftest.er1 >&5
2138 mv -f conftest.er1 conftest.err
2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; } >/dev/null && {
2142 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2143 test ! -s conftest.err
2147 $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 as_fn_set_status $ac_retval
2155 } # ac_fn_cxx_try_cpp
2157 # ac_fn_cxx_try_link LINENO
2158 # -------------------------
2159 # Try to link conftest.$ac_ext, and return whether this succeeded.
2160 ac_fn_cxx_try_link ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 rm -f conftest.$ac_objext conftest$ac_exeext
2164 if { { ac_try="$ac_link"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_link") 2>conftest.err
2173 if test -s conftest.err; then
2174 grep -v '^ *+' conftest.err >conftest.er1
2175 cat conftest.er1 >&5
2176 mv -f conftest.er1 conftest.err
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } && {
2180 test -z "$ac_cxx_werror_flag" ||
2181 test ! -s conftest.err
2182 } && test -s conftest$ac_exeext && {
2183 test "$cross_compiling" = yes ||
2184 $as_test_x conftest$ac_exeext
2188 $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2193 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195 # interfere with the next link command; also delete a directory that is
2196 # left behind by Apple's compiler. We do this before executing the actions.
2197 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2201 } # ac_fn_cxx_try_link
2203 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2204 # -------------------------------------------
2205 # Tests whether TYPE exists after having included INCLUDES, setting cache
2206 # variable VAR accordingly.
2207 ac_fn_c_check_type ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2213 $as_echo_n "(cached) " >&6
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2241 if ac_fn_c_try_compile "$LINENO"; then :
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 } # ac_fn_c_check_type
2257 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2258 # -------------------------------------------------------
2259 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2260 # the include files in INCLUDES and setting the cache variable VAR
2262 ac_fn_c_check_header_mongrel ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267 $as_echo_n "checking for $2... " >&6; }
2268 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 $as_echo_n "(cached) " >&6
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2275 # Is the header compilable?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2277 $as_echo_n "checking $2 usability... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_header_compiler=yes
2286 ac_header_compiler=no
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2290 $as_echo "$ac_header_compiler" >&6; }
2292 # Is the header present?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2294 $as_echo_n "checking $2 presence... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2299 if ac_fn_c_try_cpp "$LINENO"; then :
2300 ac_header_preproc=yes
2302 ac_header_preproc=no
2304 rm -f conftest.err conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2306 $as_echo "$ac_header_preproc" >&6; }
2308 # So? What about this header?
2309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2312 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2318 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2320 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2322 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2324 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332 $as_echo_n "(cached) " >&6
2334 eval "$3=\$ac_header_compiler"
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 } # ac_fn_c_check_header_mongrel
2344 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2345 # --------------------------------------------
2346 # Tries to find the compile-time value of EXPR in a program that includes
2347 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2349 ac_fn_c_compute_int ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 if test "$cross_compiling" = yes; then
2353 # Depending upon the size, compute the lo and hi bounds.
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2360 static int test_array [1 - 2 * !(($2) >= 0)];
2367 if ac_fn_c_try_compile "$LINENO"; then :
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2376 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384 ac_hi=$ac_mid; break
2386 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2387 if test $ac_lo -le $ac_mid; then
2391 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2402 static int test_array [1 - 2 * !(($2) < 0)];
2409 if ac_fn_c_try_compile "$LINENO"; then :
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2418 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_lo=$ac_mid; break
2428 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2429 if test $ac_mid -le $ac_hi; then
2433 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 # Binary search between lo and hi bounds.
2444 while test "x$ac_lo" != "x$ac_hi"; do
2445 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2459 if ac_fn_c_try_compile "$LINENO"; then :
2462 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2474 static long int longval () { return $2; }
2475 static unsigned long int ulongval () { return $2; }
2482 FILE *f = fopen ("conftest.val", "w");
2487 long int i = longval ();
2490 fprintf (f, "%ld", i);
2494 unsigned long int i = ulongval ();
2497 fprintf (f, "%lu", i);
2499 /* Do not output a trailing newline, as this causes \r\n confusion
2500 on some platforms. */
2501 return ferror (f) || fclose (f) != 0;
2507 if ac_fn_c_try_run "$LINENO"; then :
2508 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2513 conftest.$ac_objext conftest.beam conftest.$ac_ext
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 as_fn_set_status $ac_retval
2520 } # ac_fn_c_compute_int
2522 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2523 # ----------------------------------------------------
2524 # Tries to find if the field MEMBER exists in type AGGR, after including
2525 # INCLUDES, setting cache variable VAR accordingly.
2526 ac_fn_c_check_member ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2530 $as_echo_n "checking for $2.$3... " >&6; }
2531 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2547 if ac_fn_c_try_compile "$LINENO"; then :
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2557 if (sizeof ac_aggr.$3)
2563 if ac_fn_c_try_compile "$LINENO"; then :
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577 } # ac_fn_c_check_member
2579 # ac_fn_c_check_decl LINENO SYMBOL VAR
2580 # ------------------------------------
2581 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2582 ac_fn_c_check_decl ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2586 $as_echo_n "checking whether $2 is declared... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2604 if ac_fn_c_try_compile "$LINENO"; then :
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_decl
2618 # ac_fn_cxx_try_run LINENO
2619 # ------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2621 # that executables *can* be run.
2622 ac_fn_cxx_try_run ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if { { ac_try="$ac_link"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>&5
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2636 { { case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_try") 2>&5
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; }; }; then :
2648 $as_echo "$as_me: program exited with status $ac_status" >&5
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=$ac_status
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_cxx_try_run
2660 # ac_fn_cxx_check_func LINENO FUNC VAR
2661 # ------------------------------------
2662 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2663 ac_fn_cxx_check_func ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669 $as_echo_n "(cached) " >&6
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2673 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2675 #define $2 innocuous_$2
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char $2 (); below.
2679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2680 <limits.h> exists even on freestanding compilers. */
2683 # include <limits.h>
2685 # include <assert.h>
2690 /* Override any GCC internal prototype to avoid an error.
2691 Use char because int might match the return type of a GCC
2692 builtin and then its argument prototype would still apply. */
2697 /* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700 #if defined __stub_$2 || defined __stub___$2
2712 if ac_fn_cxx_try_link "$LINENO"; then :
2717 rm -f core conftest.err conftest.$ac_objext \
2718 conftest$ac_exeext conftest.$ac_ext
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2725 } # ac_fn_cxx_check_func
2726 cat >config.log <<_ACEOF
2727 This file contains any messages produced by compilers while
2728 running configure, to aid debugging if configure makes a mistake.
2730 It was created by bacula $as_me 5.2.0, which was
2731 generated by GNU Autoconf 2.65. Invocation command line was
2743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2750 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2752 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2753 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2755 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2756 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2757 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2758 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 $as_echo "PATH: $as_dir"
2783 # Keep a trace of the command line.
2784 # Strip out --no-create and --no-recursion so they do not pile up.
2785 # Strip out --silent because we don't want to record it for future runs.
2786 # Also quote any args containing shell meta-characters.
2787 # Make two passes to allow for proper duplicate-argument suppression.
2791 ac_must_keep_next=false
2797 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2799 | -silent | --silent | --silen | --sile | --sil)
2802 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2805 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2807 as_fn_append ac_configure_args1 " '$ac_arg'"
2808 if test $ac_must_keep_next = true; then
2809 ac_must_keep_next=false # Got value, back to normal.
2812 *=* | --config-cache | -C | -disable-* | --disable-* \
2813 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2814 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2815 | -with-* | --with-* | -without-* | --without-* | --x)
2816 case "$ac_configure_args0 " in
2817 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2820 -* ) ac_must_keep_next=true ;;
2823 as_fn_append ac_configure_args " '$ac_arg'"
2828 { ac_configure_args0=; unset ac_configure_args0;}
2829 { ac_configure_args1=; unset ac_configure_args1;}
2831 # When interrupted or exit'd, cleanup temporary files, and complete
2832 # config.log. We remove comments because anyway the quotes in there
2833 # would cause problems or look ugly.
2834 # WARNING: Use '\'' to represent an apostrophe within the trap.
2835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2836 trap 'exit_status=$?
2837 # Save into config.log some information that might help in debugging.
2842 ## ---------------- ##
2843 ## Cache variables. ##
2844 ## ---------------- ##
2847 # The following way of writing the cache mishandles newlines in values,
2849 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2850 eval ac_val=\$$ac_var
2854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2858 _ | IFS | as_nl) ;; #(
2859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2860 *) { eval $ac_var=; unset $ac_var;} ;;
2865 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2866 *${as_nl}ac_space=\ *)
2868 "s/'\''/'\''\\\\'\'''\''/g;
2869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2880 ## ----------------- ##
2881 ## Output variables. ##
2882 ## ----------------- ##
2885 for ac_var in $ac_subst_vars
2887 eval ac_val=\$$ac_var
2889 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2891 $as_echo "$ac_var='\''$ac_val'\''"
2895 if test -n "$ac_subst_files"; then
2897 ## ------------------- ##
2898 ## File substitutions. ##
2899 ## ------------------- ##
2902 for ac_var in $ac_subst_files
2904 eval ac_val=\$$ac_var
2906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2908 $as_echo "$ac_var='\''$ac_val'\''"
2913 if test -s confdefs.h; then
2923 test "$ac_signal" != 0 &&
2924 $as_echo "$as_me: caught signal $ac_signal"
2925 $as_echo "$as_me: exit $exit_status"
2927 rm -f core *.core core.conftest.* &&
2928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2931 for ac_signal in 1 2 13 15; do
2932 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2939 $as_echo "/* confdefs.h */" > confdefs.h
2941 # Predefined preprocessor variables.
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2972 if test -n "$CONFIG_SITE"; then
2973 ac_site_file1=$CONFIG_SITE
2974 elif test "x$prefix" != xNONE; then
2975 ac_site_file1=$prefix/share/config.site
2976 ac_site_file2=$prefix/etc/config.site
2978 ac_site_file1=$ac_default_prefix/share/config.site
2979 ac_site_file2=$ac_default_prefix/etc/config.site
2981 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2983 test "x$ac_site_file" = xNONE && continue
2984 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987 sed 's/^/| /' "$ac_site_file" >&5
2992 if test -r "$cache_file"; then
2993 # Some versions of bash will fail to source /dev/null (special files
2994 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2995 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2997 $as_echo "$as_me: loading cache $cache_file" >&6;}
2999 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3000 *) . "./$cache_file";;
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3005 $as_echo "$as_me: creating cache $cache_file" >&6;}
3009 as_fn_append ac_header_list " stdlib.h"
3010 as_fn_append ac_header_list " unistd.h"
3011 as_fn_append ac_header_list " sys/param.h"
3012 # Check that the precious variables saved in the cache have kept the same
3014 ac_cache_corrupted=false
3015 for ac_var in $ac_precious_vars; do
3016 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3017 eval ac_new_set=\$ac_env_${ac_var}_set
3018 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3019 eval ac_new_val=\$ac_env_${ac_var}_value
3020 case $ac_old_set,$ac_new_set in
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3023 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3024 ac_cache_corrupted=: ;;
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3028 ac_cache_corrupted=: ;;
3031 if test "x$ac_old_val" != "x$ac_new_val"; then
3032 # differences in whitespace do not lead to failure.
3033 ac_old_val_w=`echo x $ac_old_val`
3034 ac_new_val_w=`echo x $ac_new_val`
3035 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3037 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3038 ac_cache_corrupted=:
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3041 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3042 eval $ac_var=\$ac_old_val
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3045 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3047 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3050 # Pass precious variables to config.status.
3051 if test "$ac_new_set" = set; then
3053 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3054 *) ac_arg=$ac_var=$ac_new_val ;;
3056 case " $ac_configure_args " in
3057 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3058 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3062 if $ac_cache_corrupted; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3066 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3067 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3069 ## -------------------- ##
3070 ## Main body of script. ##
3071 ## -------------------- ##
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3090 for ac_t in install-sh install.sh shtool; do
3091 if test -f "$ac_dir/$ac_t"; then
3093 ac_install_sh="$ac_aux_dir/$ac_t -c"
3098 if test -z "$ac_aux_dir"; then
3099 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3102 # These three variables are undocumented and unsupported,
3103 # and are intended to be withdrawn in a future Autoconf release.
3104 # They can cause serious problems if a builder's source tree is in a directory
3105 # whose full name contains unusual characters.
3106 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3107 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3108 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3111 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3114 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3115 WIN32MAINDIR=${BUILD_DIR}
3116 WIN32TOPDIR=${TOP_DIR}
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3132 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 TRUEPRG=$ac_cv_path_TRUEPRG
3154 if test -n "$TRUEPRG"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3156 $as_echo "$TRUEPRG" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3163 test -n "$TRUEPRG" && break
3165 test -n "$TRUEPRG" || TRUEPRG=":"
3167 for ac_prog in false
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3178 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 FALSEPRG=$ac_cv_path_FALSEPRG
3200 if test -n "$FALSEPRG"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3202 $as_echo "$FALSEPRG" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3209 test -n "$FALSEPRG" && break
3211 test -n "$FALSEPRG" || FALSEPRG=":"
3216 if test "x$BACULA" != x; then
3217 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3219 BACULA=${BACULA:-Bacula}
3220 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3221 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3222 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3223 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3225 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3226 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3227 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3229 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3230 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3231 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3234 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3237 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3238 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3241 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3246 echo "configuring for ${BACULA} $VERSION ($DATE)"
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3294 if test -z "$ac_cv_prog_CC"; then
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_ac_ct_CC="gcc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3332 if test "x$ac_ct_CC" = x; then
3335 case $cross_compiling:$ac_tool_warned in
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_CC="${ac_tool_prefix}cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test -n "$CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3388 if test -z "$CC"; then
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test $ac_prog_rejected = yes; then
3420 # We found a bogon in the path, so make sure we never use it.
3421 set dummy $ac_cv_prog_CC
3423 if test $# != 0; then
3424 # We chose a different compiler from the bogus one.
3425 # However, it has the same basename, so the bogon will be chosen
3426 # first if we set CC to just the basename; use the full file name.
3428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 for ac_prog in cl.exe
3448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3485 test -n "$CC" && break
3488 if test -z "$CC"; then
3490 for ac_prog in cl.exe
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="$ac_prog"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3529 test -n "$ac_ct_CC" && break
3532 if test "x$ac_ct_CC" = x; then
3535 case $cross_compiling:$ac_tool_warned in
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." "$LINENO" 5; }
3553 # Provide some information about the compiler.
3554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3557 for ac_option in --version -v -V -qversion; do
3558 { { ac_try="$ac_compiler $ac_option >&5"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567 if test -s conftest.err; then
3569 ... rest of stderr output deleted ...
3570 10q' conftest.err >conftest.er1
3571 cat conftest.er1 >&5
3573 rm -f conftest.er1 conftest.err
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3589 ac_clean_files_save=$ac_clean_files
3590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3591 # Try to create an executable without -o first, disregard a.out.
3592 # It will help us diagnose broken compilers, and finding out an intuition
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3595 $as_echo_n "checking whether the C compiler works... " >&6; }
3596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598 # The possible output files:
3599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3602 for ac_file in $ac_files
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611 if { { ac_try="$ac_link_default"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link_default") 2>&5
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3625 # so that the user can short-circuit this test for compilers unknown to
3627 for ac_file in $ac_files ''
3629 test -f "$ac_file" || continue
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3634 # We found the default executable, but exeext='' is most
3638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 # We set ac_cv_exeext here because the later test for it is not
3643 # safe: cross compilers may not add the suffix if given an `-o'
3644 # argument, so we may need to know it at that point already.
3645 # Even if this section looks crufty: it has the advantage of
3652 test "$ac_cv_exeext" = no && ac_cv_exeext=
3657 if test -z "$ac_file"; then :
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { as_fn_set_status 77
3666 as_fn_error "C compiler cannot create executables
3667 See \`config.log' for more details." "$LINENO" 5; }; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3697 for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details." "$LINENO" 5; }
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3725 FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3762 if test "$cross_compiling" = maybe; then
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details." "$LINENO" 5; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if test "${ac_cv_objext+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details." "$LINENO" 5; }
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3848 if ac_fn_c_try_compile "$LINENO"; then :
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if test "${ac_cv_prog_cc_g+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_c_try_compile "$LINENO"; then :
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3901 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 if ac_fn_c_try_compile "$LINENO"; then :
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3938 if test "$GCC" = yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 ac_cv_prog_cc_c89=no
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3971 s = g (p, va_arg (v,int));
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007 CC="$ac_save_CC $ac_arg"
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_c89=$ac_arg
4011 rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 rm -f conftest.$ac_ext
4019 case "x$ac_cv_prog_cc_c89" in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 ac_cpp='$CXXCPP $CPPFLAGS'
4043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4046 if test -z "$CXX"; then
4047 if test -n "$CCC"; then
4050 if test -n "$ac_tool_prefix"; then
4051 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CXX+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CXX"; then
4061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CXX"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4083 $as_echo "$CXX" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$CXX" && break
4093 if test -z "$CXX"; then
4095 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$ac_ct_CXX"; then
4105 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_ac_ct_CXX="$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4125 if test -n "$ac_ct_CXX"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4127 $as_echo "$ac_ct_CXX" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$ac_ct_CXX" && break
4137 if test "x$ac_ct_CXX" = x; then
4140 case $cross_compiling:$ac_tool_warned in
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144 ac_tool_warned=yes ;;
4152 # Provide some information about the compiler.
4153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4156 for ac_option in --version -v -V -qversion; do
4157 { { ac_try="$ac_compiler $ac_option >&5"
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4166 if test -s conftest.err; then
4168 ... rest of stderr output deleted ...
4169 10q' conftest.err >conftest.er1
4170 cat conftest.er1 >&5
4172 rm -f conftest.er1 conftest.err
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4196 if ac_fn_cxx_try_compile "$LINENO"; then :
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4206 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4207 if test $ac_compiler_gnu = yes; then
4212 ac_test_CXXFLAGS=${CXXFLAGS+set}
4213 ac_save_CXXFLAGS=$CXXFLAGS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4215 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4216 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4219 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4220 ac_cxx_werror_flag=yes
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 if ac_fn_cxx_try_compile "$LINENO"; then :
4235 ac_cv_prog_cxx_g=yes
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 if ac_fn_cxx_try_compile "$LINENO"; then :
4266 ac_cv_prog_cxx_g=yes
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4276 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4277 if test "$ac_test_CXXFLAGS" = set; then
4278 CXXFLAGS=$ac_save_CXXFLAGS
4279 elif test $ac_cv_prog_cxx_g = yes; then
4280 if test "$GXX" = yes; then
4286 if test "$GXX" = yes; then
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 if test "x$CC" != xcc; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4300 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4303 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4305 set dummy $CC; ac_cc=`$as_echo "$2" |
4306 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4307 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4308 $as_echo_n "(cached) " >&6
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4321 # Make sure it works both with $CC and with simple cc.
4322 # We do the test twice because some compilers refuse to overwrite an
4323 # existing .o file with -o, though they will create one.
4324 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 if { { case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; } &&
4336 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_try") 2>&5
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; };
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4348 if test "x$CC" != xcc; then
4349 # Test first that cc exists at all.
4350 if { ac_try='cc -c conftest.$ac_ext >&5'
4351 { { case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_try") 2>&5
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; }; then
4361 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4363 if { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; } &&
4373 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_try") 2>&5
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; };
4387 # cc exists but doesn't like -o.
4388 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4393 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4395 rm -f core conftest*
4398 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400 $as_echo "yes" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4405 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4416 # On Suns, sometimes $CPP names a directory.
4417 if test -n "$CPP" && test -d "$CPP"; then
4420 if test -z "$CPP"; then
4421 if test "${ac_cv_prog_CPP+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4424 # Double quotes because CPP needs to be expanded
4425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4439 # include <limits.h>
4441 # include <assert.h>
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: fails on valid input.
4451 rm -f conftest.err conftest.$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: success on invalid input.
4463 # Passes both tests.
4467 rm -f conftest.err conftest.$ac_ext
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4485 $as_echo "$CPP" >&6; }
4487 for ac_c_preproc_warn_flag in '' yes
4489 # Use a header file that comes with gcc, so configuring glibc
4490 # with a fresh cross-compiler works.
4491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 # <limits.h> exists even on freestanding compilers.
4493 # On the NeXT, cc -E runs the code through the compiler's parser,
4494 # not just through cpp. "Syntax error" is here to catch this case.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 # include <limits.h>
4500 # include <assert.h>
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4507 # Broken: fails on valid input.
4510 rm -f conftest.err conftest.$ac_ext
4512 # OK, works on sane cases. Now check whether nonexistent headers
4513 # can be detected and how.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: success on invalid input.
4522 # Passes both tests.
4526 rm -f conftest.err conftest.$ac_ext
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4537 See \`config.log' for more details." "$LINENO" 5; }
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4549 if test "${ac_cv_path_GREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4552 if test -z "$GREP"; then
4553 ac_path_GREP_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in grep ggrep; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4563 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4564 # Check for GNU ac_path_GREP and select it if it is found.
4565 # Check for GNU $ac_path_GREP
4566 case `"$ac_path_GREP" --version 2>&1` in
4568 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4571 $as_echo_n 0123456789 >"conftest.in"
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo 'GREP' >> "conftest.nl"
4578 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_GREP="$ac_path_GREP"
4584 ac_path_GREP_max=$ac_count
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 $ac_path_GREP_found && break 3
4597 if test -z "$ac_cv_path_GREP"; then
4598 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 ac_cv_path_GREP=$GREP
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4606 $as_echo "$ac_cv_path_GREP" >&6; }
4607 GREP="$ac_cv_path_GREP"
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4611 $as_echo_n "checking for egrep... " >&6; }
4612 if test "${ac_cv_path_EGREP+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616 then ac_cv_path_EGREP="$GREP -E"
4618 if test -z "$EGREP"; then
4619 ac_path_EGREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in egrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631 # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4637 $as_echo_n 0123456789 >"conftest.in"
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'EGREP' >> "conftest.nl"
4644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_EGREP="$ac_path_EGREP"
4650 ac_path_EGREP_max=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 $ac_path_EGREP_found && break 3
4663 if test -z "$ac_cv_path_EGREP"; then
4664 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667 ac_cv_path_EGREP=$EGREP
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4673 $as_echo "$ac_cv_path_EGREP" >&6; }
4674 EGREP="$ac_cv_path_EGREP"
4677 if test $ac_cv_c_compiler_gnu = yes; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4679 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4680 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 ac_pattern="Autoconf.*'x'"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4691 ac_cv_prog_gcc_traditional=yes
4693 ac_cv_prog_gcc_traditional=no
4698 if test $ac_cv_prog_gcc_traditional = no; then
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4706 ac_cv_prog_gcc_traditional=yes
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4713 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4714 if test $ac_cv_prog_gcc_traditional = yes; then
4715 CC="$CC -traditional"
4719 BASECC=`basename $CC`
4721 if test "x$BASECC" = xgcc; then
4722 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4726 # Extract the first word of "$CXX", so it can be a program name with args.
4727 set dummy $CXX; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_path_CXX+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4735 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4758 if test -n "$CXX"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4760 $as_echo "$CXX" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 if test ! -e $CXX; then
4768 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4771 # Find a good install program. We prefer a C program (faster),
4772 # so one script is as good as another. But avoid the broken or
4773 # incompatible versions:
4774 # SysV /etc/install, /usr/sbin/install
4775 # SunOS /usr/etc/install
4776 # IRIX /sbin/install
4778 # AmigaOS /C/install, which installs bootblocks on floppy discs
4779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4782 # OS/2's system install, which has a completely different semantic
4783 # ./install, which can be erroneously created by make from ./install.sh.
4784 # Reject install programs that cannot install multiple files.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4786 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4787 if test -z "$INSTALL"; then
4788 if test "${ac_cv_path_install+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 # Account for people who put trailing slashes in PATH elements.
4797 case $as_dir/ in #((
4798 ./ | .// | /[cC]/* | \
4799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4800 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4803 # OSF1 and SCO ODT 3.0 have their own names for install.
4804 # Don't use installbsd from OSF since it installs stuff as root
4806 for ac_prog in ginstall scoinst install; do
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4809 if test $ac_prog = install &&
4810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811 # AIX install. It has an incompatible calling convention.
4813 elif test $ac_prog = install &&
4814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4815 # program-specific install script used by HP pwplus--don't use.
4818 rm -rf conftest.one conftest.two conftest.dir
4819 echo one > conftest.one
4820 echo two > conftest.two
4822 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4823 test -s conftest.one && test -s conftest.two &&
4824 test -s conftest.dir/conftest.one &&
4825 test -s conftest.dir/conftest.two
4827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4840 rm -rf conftest.one conftest.two conftest.dir
4843 if test "${ac_cv_path_install+set}" = set; then
4844 INSTALL=$ac_cv_path_install
4846 # As a last resort, use the slow shell script. Don't cache a
4847 # value for INSTALL within a source directory, because that will
4848 # break other packages using the cache if that directory is
4849 # removed, or if the value is a relative name.
4850 INSTALL=$ac_install_sh
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4854 $as_echo "$INSTALL" >&6; }
4856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4857 # It thinks the first close brace ends the variable substitution.
4858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4864 # Extract the first word of "mv", so it can be a program name with args.
4865 set dummy mv; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_path_MV+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4873 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4896 if test -n "$MV"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4898 $as_echo "$MV" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 # Extract the first word of "rm", so it can be a program name with args.
4906 set dummy rm; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_path_REMOVE+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4914 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4936 REMOVE=$ac_cv_path_REMOVE
4937 if test -n "$REMOVE"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4939 $as_echo "$REMOVE" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 # Extract the first word of "cp", so it can be a program name with args.
4947 set dummy cp; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_path_CP+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4955 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4978 if test -n "$CP"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4980 $as_echo "$CP" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 # Extract the first word of "sed", so it can be a program name with args.
4988 set dummy sed; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_path_SED+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5019 if test -n "$SED"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5021 $as_echo "$SED" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 # Extract the first word of "echo", so it can be a program name with args.
5029 set dummy echo; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_path_ECHO+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5037 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5059 ECHO=$ac_cv_path_ECHO
5060 if test -n "$ECHO"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5062 $as_echo "$ECHO" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5069 # Extract the first word of "cmp", so it can be a program name with args.
5070 set dummy cmp; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_path_CMP+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5078 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5101 if test -n "$CMP"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5103 $as_echo "$CMP" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5110 # Extract the first word of "tbl", so it can be a program name with args.
5111 set dummy tbl; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_path_TBL+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5119 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5142 if test -n "$TBL"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5144 $as_echo "$TBL" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5151 # Extract the first word of "ar", so it can be a program name with args.
5152 set dummy ar; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_AR+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5160 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5183 if test -n "$AR"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5185 $as_echo "$AR" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 # Extract the first word of "openssl", so it can be a program name with args.
5193 set dummy openssl; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5197 $as_echo_n "(cached) " >&6
5201 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5223 OPENSSL=$ac_cv_path_OPENSSL
5224 if test -n "$OPENSSL"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5226 $as_echo "$OPENSSL" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5233 # Extract the first word of "mtx", so it can be a program name with args.
5234 set dummy mtx; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_path_MTX+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5242 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5265 if test -n "$MTX"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5267 $as_echo "$MTX" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5274 # Extract the first word of "dd", so it can be a program name with args.
5275 set dummy dd; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_DD+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5283 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5306 if test -n "$DD"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5308 $as_echo "$DD" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 # Extract the first word of "mkisofs", so it can be a program name with args.
5316 set dummy mkisofs; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5324 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5346 MKISOFS=$ac_cv_path_MKISOFS
5347 if test -n "$MKISOFS"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5349 $as_echo "$MKISOFS" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5356 # Extract the first word of "python", so it can be a program name with args.
5357 set dummy python; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_path_PYTHON+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5365 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5387 PYTHON=$ac_cv_path_PYTHON
5388 if test -n "$PYTHON"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5390 $as_echo "$PYTHON" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5397 # Extract the first word of "growisofs", so it can be a program name with args.
5398 set dummy growisofs; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5406 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5428 GROWISOFS=$ac_cv_path_GROWISOFS
5429 if test -n "$GROWISOFS"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5431 $as_echo "$GROWISOFS" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5438 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5439 set dummy dvd+rw-mediainfo; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5445 case $DVDRWMEDIAINFO in
5447 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5469 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5470 if test -n "$DVDRWMEDIAINFO"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5472 $as_echo "$DVDRWMEDIAINFO" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5479 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5480 set dummy dvd+rw-format; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 case $DVDRWFORMAT in
5488 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5510 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5511 if test -n "$DVDRWFORMAT"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5513 $as_echo "$DVDRWFORMAT" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5520 # Extract the first word of "pkg-config", so it can be a program name with args.
5521 set dummy pkg-config; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5529 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5551 PKGCONFIG=$ac_cv_path_PKGCONFIG
5552 if test -n "$PKGCONFIG"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5554 $as_echo "$PKGCONFIG" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 # Extract the first word of "qmake", so it can be a program name with args.
5562 set dummy qmake; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_path_QMAKE+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5570 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5592 QMAKE=$ac_cv_path_QMAKE
5593 if test -n "$QMAKE"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5595 $as_echo "$QMAKE" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5602 # Extract the first word of "gmake", so it can be a program name with args.
5603 set dummy gmake; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_path_GMAKE+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5611 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5633 GMAKE=$ac_cv_path_GMAKE
5634 if test -n "$GMAKE"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5636 $as_echo "$GMAKE" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5644 if test "x$WXCONFIG" = x; then
5647 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5648 set dummy ${WXCONFIG}; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5656 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5678 WXCONFIG=$ac_cv_path_WXCONFIG
5679 if test -n "$WXCONFIG"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5681 $as_echo "$WXCONFIG" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5689 # Extract the first word of "cdrecord", so it can be a program name with args.
5690 set dummy cdrecord; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5698 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5720 CDRECORD=$ac_cv_path_CDRECORD
5721 if test -n "$CDRECORD"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5723 $as_echo "$CDRECORD" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5730 # Extract the first word of "pidof", so it can be a program name with args.
5731 set dummy pidof; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_PIDOF+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5739 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5761 PIDOF=$ac_cv_path_PIDOF
5762 if test -n "$PIDOF"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5764 $as_echo "$PIDOF" >&6; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5771 for ac_prog in gawk mawk nawk awk
5773 # Extract the first word of "$ac_prog", so it can be a program name with args.
5774 set dummy $ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if test "${ac_cv_prog_AWK+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 if test -n "$AWK"; then
5781 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_prog_AWK="$ac_prog"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 if test -n "$AWK"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5803 $as_echo "$AWK" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5810 test -n "$AWK" && break
5813 # Some AWK programs fail, so test it and warn the user
5814 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5815 { if ((prog == $2) || (("(" prog ")") == $2) ||
5816 (("" prog "") == $2) ||
5817 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5819 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5820 The regex engine of $AWK is too broken to be used you
5821 might want to install GNU AWK.
5822 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5825 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5826 set dummy $THE_AWK; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_path_AWK+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5834 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5857 if test -n "$AWK"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5859 $as_echo "$AWK" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5868 test -n "$ARFLAG" || ARFLAGS="cr"
5880 # Check whether --enable-libtool was given.
5881 if test "${enable_libtool+set}" = set; then :
5882 enableval=$enable_libtool;
5883 if test x$enableval = xno; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5893 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5899 macro_revision='1.3293'
5913 ltmain="$ac_aux_dir/ltmain.sh"
5915 # Make sure we can run config.sub.
5916 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5917 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5920 $as_echo_n "checking build system type... " >&6; }
5921 if test "${ac_cv_build+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 ac_build_alias=$build_alias
5925 test "x$ac_build_alias" = x &&
5926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5927 test "x$ac_build_alias" = x &&
5928 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5930 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5934 $as_echo "$ac_cv_build" >&6; }
5935 case $ac_cv_build in
5937 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5940 ac_save_IFS=$IFS; IFS='-'
5946 # Remember, the first character of IFS is used to create $*,
5947 # except with old shells:
5950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5954 $as_echo_n "checking host system type... " >&6; }
5955 if test "${ac_cv_host+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5958 if test "x$host_alias" = x; then
5959 ac_cv_host=$ac_cv_build
5961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5962 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5967 $as_echo "$ac_cv_host" >&6; }
5970 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5973 ac_save_IFS=$IFS; IFS='-'
5979 # Remember, the first character of IFS is used to create $*,
5980 # except with old shells:
5983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5986 # Backslashify metacharacters that are still active within
5987 # double-quoted strings.
5988 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5990 # Same as above, but do not quote variable references.
5991 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5993 # Sed substitution to delay expansion of an escaped shell variable in a
5994 # double_quote_subst'ed string.
5995 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5997 # Sed substitution to delay expansion of an escaped single quote.
5998 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6000 # Sed substitution to avoid accidental globbing in evaled expressions
6001 no_glob_subst='s/\*/\\\*/g'
6003 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6004 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6008 $as_echo_n "checking how to print strings... " >&6; }
6009 # Test print first, because it will be a builtin if present.
6010 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6011 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6013 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6016 # Use this function as a fallback that always works.
6017 func_fallback_echo ()
6019 eval 'cat <<_LTECHO_EOF
6023 ECHO='func_fallback_echo'
6026 # func_echo_all arg...
6027 # Invoke $ECHO with all args, space-separated.
6034 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6035 $as_echo "printf" >&6; } ;;
6036 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6037 $as_echo "print -r" >&6; } ;;
6038 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6039 $as_echo "cat" >&6; } ;;
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6056 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6057 if test "${ac_cv_path_SED+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6060 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6061 for ac_i in 1 2 3 4 5 6 7; do
6062 ac_script="$ac_script$as_nl$ac_script"
6064 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6065 { ac_script=; unset ac_script;}
6066 if test -z "$SED"; then
6067 ac_path_SED_found=false
6068 # Loop through the user's path and test for each of PROGNAME-LIST
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir=.
6074 for ac_prog in sed gsed; do
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6077 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6078 # Check for GNU ac_path_SED and select it if it is found.
6079 # Check for GNU $ac_path_SED
6080 case `"$ac_path_SED" --version 2>&1` in
6082 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085 $as_echo_n 0123456789 >"conftest.in"
6088 cat "conftest.in" "conftest.in" >"conftest.tmp"
6089 mv "conftest.tmp" "conftest.in"
6090 cp "conftest.in" "conftest.nl"
6091 $as_echo '' >> "conftest.nl"
6092 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6094 as_fn_arith $ac_count + 1 && ac_count=$as_val
6095 if test $ac_count -gt ${ac_path_SED_max-0}; then
6096 # Best one so far, save it but keep looking for a better one
6097 ac_cv_path_SED="$ac_path_SED"
6098 ac_path_SED_max=$ac_count
6100 # 10*(2^10) chars as input seems more than enough
6101 test $ac_count -gt 10 && break
6103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106 $ac_path_SED_found && break 3
6111 if test -z "$ac_cv_path_SED"; then
6112 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6120 $as_echo "$ac_cv_path_SED" >&6; }
6121 SED="$ac_cv_path_SED"
6124 test -z "$SED" && SED=sed
6125 Xsed="$SED -e 1s/^X//"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6138 $as_echo_n "checking for fgrep... " >&6; }
6139 if test "${ac_cv_path_FGREP+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6142 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6143 then ac_cv_path_FGREP="$GREP -F"
6145 if test -z "$FGREP"; then
6146 ac_path_FGREP_found=false
6147 # Loop through the user's path and test for each of PROGNAME-LIST
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 test -z "$as_dir" && as_dir=.
6153 for ac_prog in fgrep; do
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6156 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6157 # Check for GNU ac_path_FGREP and select it if it is found.
6158 # Check for GNU $ac_path_FGREP
6159 case `"$ac_path_FGREP" --version 2>&1` in
6161 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6164 $as_echo_n 0123456789 >"conftest.in"
6167 cat "conftest.in" "conftest.in" >"conftest.tmp"
6168 mv "conftest.tmp" "conftest.in"
6169 cp "conftest.in" "conftest.nl"
6170 $as_echo 'FGREP' >> "conftest.nl"
6171 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6173 as_fn_arith $ac_count + 1 && ac_count=$as_val
6174 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6175 # Best one so far, save it but keep looking for a better one
6176 ac_cv_path_FGREP="$ac_path_FGREP"
6177 ac_path_FGREP_max=$ac_count
6179 # 10*(2^10) chars as input seems more than enough
6180 test $ac_count -gt 10 && break
6182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 $ac_path_FGREP_found && break 3
6190 if test -z "$ac_cv_path_FGREP"; then
6191 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194 ac_cv_path_FGREP=$FGREP
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6200 $as_echo "$ac_cv_path_FGREP" >&6; }
6201 FGREP="$ac_cv_path_FGREP"
6204 test -z "$GREP" && GREP=grep
6224 # Check whether --with-gnu-ld was given.
6225 if test "${with_gnu_ld+set}" = set; then :
6226 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6232 if test "$GCC" = yes; then
6233 # Check if gcc -print-prog-name=ld gives a path.
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6235 $as_echo_n "checking for ld used by $CC... " >&6; }
6238 # gcc leaves a trailing carriage return which upsets mingw
6239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6244 # Accept absolute paths.
6246 re_direlt='/[^/][^/]*/\.\./'
6247 # Canonicalize the pathname of ld
6248 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6249 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6250 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6252 test -z "$LD" && LD="$ac_prog"
6255 # If it fails, then pretend we aren't using GCC.
6259 # If it is relative, then search for the first ld in PATH.
6263 elif test "$with_gnu_ld" = yes; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6265 $as_echo_n "checking for GNU ld... " >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6268 $as_echo_n "checking for non-GNU ld... " >&6; }
6270 if test "${lt_cv_path_LD+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 if test -z "$LD"; then
6274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6275 for ac_dir in $PATH; do
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6279 lt_cv_path_LD="$ac_dir/$ac_prog"
6280 # Check to see if the program is GNU ld. I'd rather use --version,
6281 # but apparently some variants of GNU ld only accept -v.
6282 # Break only if it was the GNU/non-GNU ld that we prefer.
6283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6284 *GNU* | *'with BFD'*)
6285 test "$with_gnu_ld" != no && break
6288 test "$with_gnu_ld" != yes && break
6295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6300 if test -n "$LD"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6302 $as_echo "$LD" >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6307 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6309 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6310 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6314 case `$LD -v 2>&1 </dev/null` in
6315 *GNU* | *'with BFD'*)
6316 lt_cv_prog_gnu_ld=yes
6319 lt_cv_prog_gnu_ld=no
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6324 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6325 with_gnu_ld=$lt_cv_prog_gnu_ld
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6336 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6337 if test "${lt_cv_path_NM+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$NM"; then
6341 # Let the user override the test.
6344 lt_nm_to_check="${ac_tool_prefix}nm"
6345 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6346 lt_nm_to_check="$lt_nm_to_check nm"
6348 for lt_tmp_nm in $lt_nm_to_check; do
6349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6350 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6352 test -z "$ac_dir" && ac_dir=.
6353 tmp_nm="$ac_dir/$lt_tmp_nm"
6354 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6355 # Check to see if the nm accepts a BSD-compat flag.
6356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6357 # nm: unknown option "B" ignored
6358 # Tru64's nm complains that /dev/null is an invalid object file
6359 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6360 */dev/null* | *'Invalid file or object type'*)
6361 lt_cv_path_NM="$tmp_nm -B"
6365 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6367 lt_cv_path_NM="$tmp_nm -p"
6371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372 continue # so that we can try to find one that supports BSD flags
6381 : ${lt_cv_path_NM=no}
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6385 $as_echo "$lt_cv_path_NM" >&6; }
6386 if test "$lt_cv_path_NM" != "no"; then
6389 # Didn't find any BSD compatible name lister, look for dumpbin.
6390 if test -n "$DUMPBIN"; then :
6391 # Let the user override the test.
6393 if test -n "$ac_tool_prefix"; then
6394 for ac_prog in dumpbin "link -dump"
6396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$DUMPBIN"; then
6404 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 DUMPBIN=$ac_cv_prog_DUMPBIN
6424 if test -n "$DUMPBIN"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6426 $as_echo "$DUMPBIN" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6433 test -n "$DUMPBIN" && break
6436 if test -z "$DUMPBIN"; then
6437 ac_ct_DUMPBIN=$DUMPBIN
6438 for ac_prog in dumpbin "link -dump"
6440 # Extract the first word of "$ac_prog", so it can be a program name with args.
6441 set dummy $ac_prog; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_DUMPBIN"; then
6448 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6468 if test -n "$ac_ct_DUMPBIN"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6470 $as_echo "$ac_ct_DUMPBIN" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6477 test -n "$ac_ct_DUMPBIN" && break
6480 if test "x$ac_ct_DUMPBIN" = x; then
6483 case $cross_compiling:$ac_tool_warned in
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6489 DUMPBIN=$ac_ct_DUMPBIN
6493 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6495 DUMPBIN="$DUMPBIN -symbols"
6503 if test "$DUMPBIN" != ":"; then
6507 test -z "$NM" && NM=nm
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6515 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6516 if test "${lt_cv_nm_interface+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6519 lt_cv_nm_interface="BSD nm"
6520 echo "int some_variable = 0;" > conftest.$ac_ext
6521 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6522 (eval "$ac_compile" 2>conftest.err)
6523 cat conftest.err >&5
6524 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6525 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6526 cat conftest.err >&5
6527 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6528 cat conftest.out >&5
6529 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6530 lt_cv_nm_interface="MS dumpbin"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6535 $as_echo "$lt_cv_nm_interface" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6538 $as_echo_n "checking whether ln -s works... " >&6; }
6540 if test "$LN_S" = "ln -s"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6545 $as_echo "no, using $LN_S" >&6; }
6548 # find the maximum length of command line arguments
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6559 # On DJGPP, this test can blow up pretty badly due to problems in libc
6560 # (any single argument exceeding 2000 bytes causes a buffer overrun
6561 # during glob expansion). Even if it were fixed, the result of this
6562 # check would be larger than it should be.
6563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6567 # Under GNU Hurd, this test is not required because there is
6568 # no limit to the length of command line arguments.
6569 # Libtool will interpret -1 as no limit whatsoever
6570 lt_cv_sys_max_cmd_len=-1;
6573 cygwin* | mingw* | cegcc*)
6574 # On Win9x/ME, this test blows up -- it succeeds, but takes
6575 # about 5 minutes as the teststring grows exponentially.
6576 # Worse, since 9x/ME are not pre-emptively multitasking,
6577 # you end up with a "frozen" computer, even though with patience
6578 # the test eventually succeeds (with a max line length of 256k).
6579 # Instead, let's just punt: use the minimum linelength reported by
6580 # all of the supported platforms: 8192 (on NT/2K/XP).
6581 lt_cv_sys_max_cmd_len=8192;
6585 # On MiNT this can take a long time and run out of memory.
6586 lt_cv_sys_max_cmd_len=8192;
6590 # On AmigaOS with pdksh, this test takes hours, literally.
6591 # So we just punt and use a minimum line length of 8192.
6592 lt_cv_sys_max_cmd_len=8192;
6595 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6596 # This has been around since 386BSD, at least. Likely further.
6597 if test -x /sbin/sysctl; then
6598 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6599 elif test -x /usr/sbin/sysctl; then
6600 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6602 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6604 # And add a safety zone
6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6611 lt_cv_sys_max_cmd_len=196608
6615 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6616 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6617 # nice to cause kernel panics so lets avoid the loop below.
6618 # First set a reasonable default.
6619 lt_cv_sys_max_cmd_len=16384
6621 if test -x /sbin/sysconfig; then
6622 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6623 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6628 lt_cv_sys_max_cmd_len=102400
6630 sysv5* | sco5v6* | sysv4.2uw2*)
6631 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6632 if test -n "$kargmax"; then
6633 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6635 lt_cv_sys_max_cmd_len=32768
6639 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6640 if test -n "$lt_cv_sys_max_cmd_len"; then
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 # Make teststring a little bigger before we do anything with it.
6645 # a 1K string should be a reasonable start.
6646 for i in 1 2 3 4 5 6 7 8 ; do
6647 teststring=$teststring$teststring
6649 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6650 # If test is not a shell built-in, we'll probably end up computing a
6651 # maximum length that is only half of the actual maximum length, but
6653 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6654 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6655 test $i != 17 # 1/2 MB should be enough
6658 teststring=$teststring$teststring
6660 # Only check the string length outside the loop.
6661 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6663 # Add a significant safety factor because C++ compilers can tack on
6664 # massive amounts of additional arguments before passing them to the
6665 # linker. It appears as though 1/2 is a usable value.
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6673 if test -n $lt_cv_sys_max_cmd_len ; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6678 $as_echo "none" >&6; }
6680 max_cmd_len=$lt_cv_sys_max_cmd_len
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6693 # Try some XSI features
6696 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6698 && eval 'test $(( 1 + 1 )) -eq 2 \
6699 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6702 $as_echo "$xsi_shell" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6710 && lt_shell_append=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6712 $as_echo "$lt_shell_append" >&6; }
6715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6725 # test EBCDIC or ASCII
6726 case `echo X|tr X '\101'` in
6727 A) # ASCII based system
6728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6729 lt_SP2NL='tr \040 \012'
6730 lt_NL2SP='tr \015\012 \040\040'
6732 *) # EBCDIC based system
6733 lt_SP2NL='tr \100 \n'
6734 lt_NL2SP='tr \r\n \100\100'
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6747 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6748 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6754 *-*-mingw* ) # actually msys
6755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6758 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6760 * ) # otherwise, assume *nix
6761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6767 *-*-mingw* ) # actually msys
6768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6771 lt_cv_to_host_file_cmd=func_convert_file_noop
6773 * ) # otherwise, assume *nix
6774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6778 * ) # unhandled hosts (and "normal" native builds)
6779 lt_cv_to_host_file_cmd=func_convert_file_noop
6785 to_host_file_cmd=$lt_cv_to_host_file_cmd
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6787 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6794 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6795 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6798 #assume ordinary cross tools, or native build.
6799 lt_cv_to_tool_file_cmd=func_convert_file_noop
6803 *-*-mingw* ) # actually msys
6804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6814 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6822 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6825 lt_cv_ld_reload_flag='-r'
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6829 reload_flag=$lt_cv_ld_reload_flag
6830 case $reload_flag in
6832 *) reload_flag=" $reload_flag" ;;
6834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6836 cygwin* | mingw* | pw32* | cegcc*)
6837 if test "$GCC" != yes; then
6842 if test "$GCC" = yes; then
6843 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$OBJDUMP"; then
6867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 OBJDUMP=$ac_cv_prog_OBJDUMP
6887 if test -n "$OBJDUMP"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6889 $as_echo "$OBJDUMP" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6897 if test -z "$ac_cv_prog_OBJDUMP"; then
6898 ac_ct_OBJDUMP=$OBJDUMP
6899 # Extract the first word of "objdump", so it can be a program name with args.
6900 set dummy objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -n "$ac_ct_OBJDUMP"; then
6907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6927 if test -n "$ac_ct_OBJDUMP"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6929 $as_echo "$ac_ct_OBJDUMP" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6935 if test "x$ac_ct_OBJDUMP" = x; then
6938 case $cross_compiling:$ac_tool_warned in
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6944 OBJDUMP=$ac_ct_OBJDUMP
6947 OBJDUMP="$ac_cv_prog_OBJDUMP"
6950 test -z "$OBJDUMP" && OBJDUMP=objdump
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6961 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6962 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 lt_cv_file_magic_cmd='$MAGIC_CMD'
6966 lt_cv_file_magic_test_file=
6967 lt_cv_deplibs_check_method='unknown'
6968 # Need to set the preceding variable on all platforms that support
6969 # interlibrary dependencies.
6970 # 'none' -- dependencies not supported.
6971 # `unknown' -- same as none, but documents that we really don't know.
6972 # 'pass_all' -- all dependencies passed with no checks.
6973 # 'test_compile' -- check by making test program.
6974 # 'file_magic [[regex]]' -- check by looking for files in library path
6975 # which responds to the $file_magic_cmd with a given extended regex.
6976 # If you have `file' or equivalent on your system and you're not sure
6977 # whether `pass_all' will *always* work, you probably want this one.
6981 lt_cv_deplibs_check_method=pass_all
6985 lt_cv_deplibs_check_method=pass_all
6989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6990 lt_cv_file_magic_cmd='/usr/bin/file -L'
6991 lt_cv_file_magic_test_file=/shlib/libc.so
6995 # func_win32_libid is a shell function defined in ltmain.sh
6996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6997 lt_cv_file_magic_cmd='func_win32_libid'
7001 # Base MSYS/MinGW do not provide the 'file' command needed by
7002 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7003 # unless we find 'file', for example because we are cross-compiling.
7004 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7005 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007 lt_cv_file_magic_cmd='func_win32_libid'
7009 # Keep this pattern in sync with the one in func_win32_libid.
7010 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7011 lt_cv_file_magic_cmd='$OBJDUMP -f'
7016 # use the weaker test based on 'objdump'. See mingw*.
7017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7018 lt_cv_file_magic_cmd='$OBJDUMP -f'
7021 darwin* | rhapsody*)
7022 lt_cv_deplibs_check_method=pass_all
7025 freebsd* | dragonfly*)
7026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7029 # Not sure whether the presence of OpenBSD here was a mistake.
7030 # Let's accept both of them until this is cleared up.
7031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7032 lt_cv_file_magic_cmd=/usr/bin/file
7033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7037 lt_cv_deplibs_check_method=pass_all
7042 lt_cv_deplibs_check_method=pass_all
7046 lt_cv_deplibs_check_method=pass_all
7049 hpux10.20* | hpux11*)
7050 lt_cv_file_magic_cmd=/usr/bin/file
7053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7057 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]'
7058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7062 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7068 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7072 irix5* | irix6* | nonstopux*)
7074 *-32|*"-32 ") libmagic=32-bit;;
7075 *-n32|*"-n32 ") libmagic=N32;;
7076 *-64|*"-64 ") libmagic=64-bit;;
7077 *) libmagic=never-match;;
7079 lt_cv_deplibs_check_method=pass_all
7082 # This must be Linux ELF.
7083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7084 lt_cv_deplibs_check_method=pass_all
7088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7097 lt_cv_file_magic_cmd=/usr/bin/file
7098 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7102 lt_cv_deplibs_check_method=pass_all
7106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7113 osf3* | osf4* | osf5*)
7114 lt_cv_deplibs_check_method=pass_all
7118 lt_cv_deplibs_check_method=pass_all
7122 lt_cv_deplibs_check_method=pass_all
7125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7126 lt_cv_deplibs_check_method=pass_all
7130 case $host_vendor in
7132 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]'
7133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7136 lt_cv_deplibs_check_method=pass_all
7139 lt_cv_file_magic_cmd='/bin/file'
7140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7143 lt_cv_file_magic_cmd='/bin/file'
7144 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7145 lt_cv_file_magic_test_file=/lib/libc.so
7148 lt_cv_deplibs_check_method=pass_all
7151 lt_cv_deplibs_check_method=pass_all
7157 lt_cv_deplibs_check_method=pass_all
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7163 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7167 if test "$build" = "$host"; then
7170 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7173 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7179 file_magic_cmd=$lt_cv_file_magic_cmd
7180 deplibs_check_method=$lt_cv_deplibs_check_method
7181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7212 if test -n "$DLLTOOL"; then
7213 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 DLLTOOL=$ac_cv_prog_DLLTOOL
7233 if test -n "$DLLTOOL"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7235 $as_echo "$DLLTOOL" >&6; }
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7243 if test -z "$ac_cv_prog_DLLTOOL"; then
7244 ac_ct_DLLTOOL=$DLLTOOL
7245 # Extract the first word of "dlltool", so it can be a program name with args.
7246 set dummy dlltool; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7250 $as_echo_n "(cached) " >&6
7252 if test -n "$ac_ct_DLLTOOL"; then
7253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7273 if test -n "$ac_ct_DLLTOOL"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7275 $as_echo "$ac_ct_DLLTOOL" >&6; }
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7281 if test "x$ac_ct_DLLTOOL" = x; then
7284 case $cross_compiling:$ac_tool_warned in
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7290 DLLTOOL=$ac_ct_DLLTOOL
7293 DLLTOOL="$ac_cv_prog_DLLTOOL"
7296 test -z "$DLLTOOL" && DLLTOOL=dlltool
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7308 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7309 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 lt_cv_sharedlib_from_linklib_cmd='unknown'
7315 cygwin* | mingw* | pw32* | cegcc*)
7316 # two different shell functions defined in ltmain.sh
7317 # decide which to use based on capabilities of $DLLTOOL
7318 case `$DLLTOOL --help 2>&1` in
7319 *--identify-strict*)
7320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7328 # fallback: assume linklib IS sharedlib
7329 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7335 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7336 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7337 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7345 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_AR+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$AR"; then
7356 ac_cv_prog_AR="$AR" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 if test -n "$AR"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7378 $as_echo "$AR" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7385 test -n "$AR" && break
7388 if test -z "$AR"; then
7392 # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$ac_ct_AR"; then
7400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_AR="$ac_prog"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7420 if test -n "$ac_ct_AR"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7422 $as_echo "$ac_ct_AR" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7429 test -n "$ac_ct_AR" && break
7432 if test "x$ac_ct_AR" = x; then
7435 case $cross_compiling:$ac_tool_warned in
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7459 $as_echo_n "checking for archiver @FILE support... " >&6; }
7460 if test "${lt_cv_ar_at_file+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476 echo conftest.$ac_objext > conftest.lst
7477 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7479 (eval $lt_ar_try) 2>&5
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }
7483 if test "$ac_status" -eq 0; then
7484 # Ensure the archiver fails upon bogus file names.
7485 rm -f conftest.$ac_objext libconftest.a
7486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7487 (eval $lt_ar_try) 2>&5
7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }
7491 if test "$ac_status" -ne 0; then
7495 rm -f conftest.* libconftest.a
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7502 $as_echo "$lt_cv_ar_at_file" >&6; }
7504 if test "x$lt_cv_ar_at_file" = xno; then
7507 archiver_list_spec=$lt_cv_ar_at_file
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}strip; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_STRIP+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -n "$STRIP"; then
7525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 STRIP=$ac_cv_prog_STRIP
7545 if test -n "$STRIP"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7547 $as_echo "$STRIP" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7555 if test -z "$ac_cv_prog_STRIP"; then
7557 # Extract the first word of "strip", so it can be a program name with args.
7558 set dummy strip; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 if test -n "$ac_ct_STRIP"; then
7565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_prog_ac_ct_STRIP="strip"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7585 if test -n "$ac_ct_STRIP"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7587 $as_echo "$ac_ct_STRIP" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7593 if test "x$ac_ct_STRIP" = x; then
7596 case $cross_compiling:$ac_tool_warned in
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7605 STRIP="$ac_cv_prog_STRIP"
7608 test -z "$STRIP" && STRIP=:
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$RANLIB"; then
7624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 RANLIB=$ac_cv_prog_RANLIB
7644 if test -n "$RANLIB"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7646 $as_echo "$RANLIB" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7654 if test -z "$ac_cv_prog_RANLIB"; then
7655 ac_ct_RANLIB=$RANLIB
7656 # Extract the first word of "ranlib", so it can be a program name with args.
7657 set dummy ranlib; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$ac_ct_RANLIB"; then
7664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_ac_ct_RANLIB="ranlib"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7684 if test -n "$ac_ct_RANLIB"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7686 $as_echo "$ac_ct_RANLIB" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 if test "x$ac_ct_RANLIB" = x; then
7695 case $cross_compiling:$ac_tool_warned in
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7701 RANLIB=$ac_ct_RANLIB
7704 RANLIB="$ac_cv_prog_RANLIB"
7707 test -z "$RANLIB" && RANLIB=:
7714 # Determine commands to create old-style static archives.
7715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7716 old_postinstall_cmds='chmod 644 $oldlib'
7717 old_postuninstall_cmds=
7719 if test -n "$RANLIB"; then
7722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7733 lock_old_archive_extraction=yes ;;
7735 lock_old_archive_extraction=no ;;
7776 # If no C compiler was specified, use CC.
7779 # If no C compiler flags were specified, use CFLAGS.
7780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7782 # Allow CC to be a program name with arguments.
7786 # Check for command to grab the raw symbol name followed by C symbol from nm.
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7788 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7793 # These are sane defaults that work on at least a few old systems.
7794 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7796 # Character class describing NM global symbol codes.
7797 symcode='[BCDEGRST]'
7799 # Regexp to match symbols that can be accessed directly from C.
7800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7802 # Define system-specific variables.
7807 cygwin* | mingw* | pw32* | cegcc*)
7808 symcode='[ABCDGISTW]'
7811 if test "$host_cpu" = ia64; then
7812 symcode='[ABCDEGRST]'
7816 symcode='[BCDEGRST]'
7819 symcode='[BCDEGQRST]'
7830 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7838 # If we're using GNU nm, then use its standard symbol codes.
7839 case `$NM -V 2>&1` in
7840 *GNU* | *'with BFD'*)
7841 symcode='[ABCDGIRSTW]' ;;
7844 # Transform an extracted symbol line into a proper C declaration.
7845 # Some systems (esp. on ia64) link data and code symbols differently,
7846 # so use this general approach.
7847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7849 # Transform an extracted symbol line into symbol name and symbol address
7850 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7851 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'"
7853 # Handle CRLF in mingw tool chain
7857 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7861 # Try without a prefix underscore, then with it.
7862 for ac_symprfx in "" "_"; do
7864 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7865 symxfrm="\\1 $ac_symprfx\\2 \\2"
7867 # Write the raw and C identifiers.
7868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7869 # Fake it for dumpbin and say T for any non-static function
7870 # and D for any global variable.
7871 # Also find C++ and __fastcall symbols from MSVC++,
7872 # which start with @ or ?.
7873 lt_cv_sys_global_symbol_pipe="$AWK '"\
7874 " {last_section=section; section=\$ 3};"\
7875 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7876 " \$ 0!~/External *\|/{next};"\
7877 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7878 " {if(hide[section]) next};"\
7879 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7880 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7881 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7882 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7883 " ' prfx=^$ac_symprfx"
7885 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7887 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7889 # Check to see that the pipe works correctly.
7893 cat > conftest.$ac_ext <<_LT_EOF
7898 void nm_test_func(void);
7899 void nm_test_func(void){}
7903 int main(){nm_test_var='a';nm_test_func();return(0);}
7906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7907 (eval $ac_compile) 2>&5
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; }; then
7911 # Now try to grab the symbols.
7913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7914 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7917 test $ac_status = 0; } && test -s "$nlist"; then
7918 # Try sorting and uniquifying the output.
7919 if sort "$nlist" | uniq > "$nlist"T; then
7920 mv -f "$nlist"T "$nlist"
7925 # Make sure that we snagged all the symbols we need.
7926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7928 cat <<_LT_EOF > conftest.$ac_ext
7929 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7930 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7931 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7932 relocations are performed -- see ld's documentation on pseudo-relocs. */
7933 # define LT_DLSYM_CONST
7934 #elif defined(__osf__)
7935 /* This system does not cope well with relocations in const data. */
7936 # define LT_DLSYM_CONST
7938 # define LT_DLSYM_CONST const
7946 # Now generate the symbol file.
7947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7949 cat <<_LT_EOF >> conftest.$ac_ext
7951 /* The mapping between symbol names and symbols. */
7952 LT_DLSYM_CONST struct {
7956 lt__PROGRAM__LTX_preloaded_symbols[] =
7958 { "@PROGRAM@", (void *) 0 },
7960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7961 cat <<\_LT_EOF >> conftest.$ac_ext
7965 /* This works around a problem in FreeBSD linker */
7966 #ifdef FREEBSD_WORKAROUND
7967 static const void *lt_preloaded_setup() {
7968 return lt__PROGRAM__LTX_preloaded_symbols;
7976 # Now try linking the two files.
7977 mv conftest.$ac_objext conftstm.$ac_objext
7978 lt_globsym_save_LIBS=$LIBS
7979 lt_globsym_save_CFLAGS=$CFLAGS
7980 LIBS="conftstm.$ac_objext"
7981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7983 (eval $ac_link) 2>&5
7985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7989 LIBS=$lt_globsym_save_LIBS
7990 CFLAGS=$lt_globsym_save_CFLAGS
7992 echo "cannot find nm_test_func in $nlist" >&5
7995 echo "cannot find nm_test_var in $nlist" >&5
7998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8001 echo "$progname: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8004 rm -rf conftest* conftst*
8006 # Do not use the global_symbol_pipe unless it works.
8007 if test "$pipe_works" = yes; then
8010 lt_cv_sys_global_symbol_pipe=
8016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8017 lt_cv_sys_global_symbol_to_cdecl=
8019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8021 $as_echo "failed" >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8024 $as_echo "ok" >&6; }
8027 # Response file support.
8028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8029 nm_file_list_spec='@'
8030 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8031 nm_file_list_spec='@'
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8061 $as_echo_n "checking for sysroot... " >&6; }
8063 # Check whether --with-sysroot was given.
8064 if test "${with_sysroot+set}" = set; then :
8065 withval=$with_sysroot;
8072 case ${with_sysroot} in #(
8074 if test "$GCC" = yes; then
8075 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8079 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8085 $as_echo "${with_sysroot}" >&6; }
8086 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8091 $as_echo "${lt_sysroot:-no}" >&6; }
8097 # Check whether --enable-libtool-lock was given.
8098 if test "${enable_libtool_lock+set}" = set; then :
8099 enableval=$enable_libtool_lock;
8102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8104 # Some flags need to be propagated to the compiler or linker for good
8108 # Find out which ABI we are using.
8109 echo 'int i;' > conftest.$ac_ext
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111 (eval $ac_compile) 2>&5
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }; then
8115 case `/usr/bin/file conftest.$ac_objext` in
8127 # Find out which ABI we are using.
8128 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130 (eval $ac_compile) 2>&5
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 if test "$lt_cv_prog_gnu_ld" = yes; then
8135 case `/usr/bin/file conftest.$ac_objext` in
8137 LD="${LD-ld} -melf32bsmip"
8140 LD="${LD-ld} -melf32bmipn32"
8143 LD="${LD-ld} -melf64bmip"
8147 case `/usr/bin/file conftest.$ac_objext` in
8163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8165 # Find out which ABI we are using.
8166 echo 'int i;' > conftest.$ac_ext
8167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8168 (eval $ac_compile) 2>&5
8170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171 test $ac_status = 0; }; then
8172 case `/usr/bin/file conftest.o` in
8175 x86_64-*kfreebsd*-gnu)
8176 LD="${LD-ld} -m elf_i386_fbsd"
8179 LD="${LD-ld} -m elf_i386"
8181 ppc64-*linux*|powerpc64-*linux*)
8182 LD="${LD-ld} -m elf32ppclinux"
8185 LD="${LD-ld} -m elf_s390"
8188 LD="${LD-ld} -m elf32_sparc"
8194 x86_64-*kfreebsd*-gnu)
8195 LD="${LD-ld} -m elf_x86_64_fbsd"
8198 LD="${LD-ld} -m elf_x86_64"
8200 ppc*-*linux*|powerpc*-*linux*)
8201 LD="${LD-ld} -m elf64ppc"
8203 s390*-*linux*|s390*-*tpf*)
8204 LD="${LD-ld} -m elf64_s390"
8207 LD="${LD-ld} -m elf64_sparc"
8217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8218 SAVE_CFLAGS="$CFLAGS"
8219 CFLAGS="$CFLAGS -belf"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8221 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8222 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 lt_cv_cc_needs_belf=yes
8245 lt_cv_cc_needs_belf=no
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8260 CFLAGS="$SAVE_CFLAGS"
8264 # Find out which ABI we are using.
8265 echo 'int i;' > conftest.$ac_ext
8266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8267 (eval $ac_compile) 2>&5
8269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270 test $ac_status = 0; }; then
8271 case `/usr/bin/file conftest.o` in
8273 case $lt_cv_prog_gnu_ld in
8274 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8276 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8288 need_locks="$enable_libtool_lock"
8290 if test -n "$ac_tool_prefix"; then
8291 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}mt; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8298 if test -n "$MANIFEST_TOOL"; then
8299 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8319 if test -n "$MANIFEST_TOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8321 $as_echo "$MANIFEST_TOOL" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8330 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8331 # Extract the first word of "mt", so it can be a program name with args.
8332 set dummy mt; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$ac_ct_MANIFEST_TOOL"; then
8339 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8359 if test -n "$ac_ct_MANIFEST_TOOL"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8361 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8367 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8370 case $cross_compiling:$ac_tool_warned in
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8376 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8379 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8382 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8384 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8385 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8388 lt_cv_path_mainfest_tool=no
8389 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8390 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8391 cat conftest.err >&5
8392 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8393 lt_cv_path_mainfest_tool=yes
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8398 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8399 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8409 rhapsody* | darwin*)
8410 if test -n "$ac_tool_prefix"; then
8411 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8418 if test -n "$DSYMUTIL"; then
8419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8439 if test -n "$DSYMUTIL"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8441 $as_echo "$DSYMUTIL" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8449 if test -z "$ac_cv_prog_DSYMUTIL"; then
8450 ac_ct_DSYMUTIL=$DSYMUTIL
8451 # Extract the first word of "dsymutil", so it can be a program name with args.
8452 set dummy dsymutil; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$ac_ct_DSYMUTIL"; then
8459 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8479 if test -n "$ac_ct_DSYMUTIL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8487 if test "x$ac_ct_DSYMUTIL" = x; then
8490 case $cross_compiling:$ac_tool_warned in
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8494 ac_tool_warned=yes ;;
8496 DSYMUTIL=$ac_ct_DSYMUTIL
8499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8502 if test -n "$ac_tool_prefix"; then
8503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8510 if test -n "$NMEDIT"; then
8511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 NMEDIT=$ac_cv_prog_NMEDIT
8531 if test -n "$NMEDIT"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8533 $as_echo "$NMEDIT" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8541 if test -z "$ac_cv_prog_NMEDIT"; then
8542 ac_ct_NMEDIT=$NMEDIT
8543 # Extract the first word of "nmedit", so it can be a program name with args.
8544 set dummy nmedit; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8550 if test -n "$ac_ct_NMEDIT"; then
8551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8571 if test -n "$ac_ct_NMEDIT"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8573 $as_echo "$ac_ct_NMEDIT" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8579 if test "x$ac_ct_NMEDIT" = x; then
8582 case $cross_compiling:$ac_tool_warned in
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8586 ac_tool_warned=yes ;;
8588 NMEDIT=$ac_ct_NMEDIT
8591 NMEDIT="$ac_cv_prog_NMEDIT"
8594 if test -n "$ac_tool_prefix"; then
8595 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8633 if test -z "$ac_cv_prog_LIPO"; then
8635 # Extract the first word of "lipo", so it can be a program name with args.
8636 set dummy lipo; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 if test -n "$ac_ct_LIPO"; then
8643 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652 ac_cv_prog_ac_ct_LIPO="lipo"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8663 if test -n "$ac_ct_LIPO"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8665 $as_echo "$ac_ct_LIPO" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8671 if test "x$ac_ct_LIPO" = x; then
8674 case $cross_compiling:$ac_tool_warned in
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8678 ac_tool_warned=yes ;;
8683 LIPO="$ac_cv_prog_LIPO"
8686 if test -n "$ac_tool_prefix"; then
8687 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8688 set dummy ${ac_tool_prefix}otool; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8694 if test -n "$OTOOL"; then
8695 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 OTOOL=$ac_cv_prog_OTOOL
8715 if test -n "$OTOOL"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8717 $as_echo "$OTOOL" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 if test -z "$ac_cv_prog_OTOOL"; then
8727 # Extract the first word of "otool", so it can be a program name with args.
8728 set dummy otool; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8734 if test -n "$ac_ct_OTOOL"; then
8735 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_prog_ac_ct_OTOOL="otool"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8755 if test -n "$ac_ct_OTOOL"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8757 $as_echo "$ac_ct_OTOOL" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8763 if test "x$ac_ct_OTOOL" = x; then
8766 case $cross_compiling:$ac_tool_warned in
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8770 ac_tool_warned=yes ;;
8775 OTOOL="$ac_cv_prog_OTOOL"
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8786 if test -n "$OTOOL64"; then
8787 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 OTOOL64=$ac_cv_prog_OTOOL64
8807 if test -n "$OTOOL64"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8809 $as_echo "$OTOOL64" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_OTOOL64"; then
8818 ac_ct_OTOOL64=$OTOOL64
8819 # Extract the first word of "otool64", so it can be a program name with args.
8820 set dummy otool64; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$ac_ct_OTOOL64"; then
8827 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_prog_ac_ct_OTOOL64="otool64"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8847 if test -n "$ac_ct_OTOOL64"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8849 $as_echo "$ac_ct_OTOOL64" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8855 if test "x$ac_ct_OTOOL64" = x; then
8858 case $cross_compiling:$ac_tool_warned in
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8864 OTOOL64=$ac_ct_OTOOL64
8867 OTOOL64="$ac_cv_prog_OTOOL64"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8897 $as_echo_n "checking for -single_module linker flag... " >&6; }
8898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8901 lt_cv_apple_cc_single_mod=no
8902 if test -z "${LT_MULTI_MODULE}"; then
8903 # By default we will add the -single_module flag. You can override
8904 # by either setting the environment variable LT_MULTI_MODULE
8905 # non-empty at configure time, or by adding -multi_module to the
8907 rm -rf libconftest.dylib*
8908 echo "int foo(void){return 1;}" > conftest.c
8909 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8910 -dynamiclib -Wl,-single_module conftest.c" >&5
8911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8912 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8914 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8915 lt_cv_apple_cc_single_mod=yes
8917 cat conftest.err >&5
8919 rm -rf libconftest.dylib*
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8926 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8927 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 lt_cv_ld_exported_symbols_list=no
8931 save_LDFLAGS=$LDFLAGS
8932 echo "_main" > conftest.sym
8933 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8945 if ac_fn_c_try_link "$LINENO"; then :
8946 lt_cv_ld_exported_symbols_list=yes
8948 lt_cv_ld_exported_symbols_list=no
8950 rm -f core conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LDFLAGS="$save_LDFLAGS"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8958 $as_echo_n "checking for -force_load linker flag... " >&6; }
8959 if test "${lt_cv_ld_force_load+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8962 lt_cv_ld_force_load=no
8963 cat > conftest.c << _LT_EOF
8964 int forced_loaded() { return 2;}
8966 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8967 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8968 echo "$AR cru libconftest.a conftest.o" >&5
8969 $AR cru libconftest.a conftest.o 2>&5
8970 echo "$RANLIB libconftest.a" >&5
8971 $RANLIB libconftest.a 2>&5
8972 cat > conftest.c << _LT_EOF
8973 int main() { return 0;}
8975 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8976 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8978 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8979 lt_cv_ld_force_load=yes
8981 cat conftest.err >&5
8983 rm -f conftest.err libconftest.a conftest conftest.c
8984 rm -rf conftest.dSYM
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8988 $as_echo "$lt_cv_ld_force_load" >&6; }
8990 rhapsody* | darwin1.[012])
8991 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8993 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8994 darwin*) # darwin 5.x on
8995 # if running on 10.5 or later, the deployment target defaults
8996 # to the OS version, if on x86, and 10.4, the deployment
8997 # target defaults to 10.4. Don't you love it?
8998 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8999 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9000 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9004 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9008 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9009 _lt_dar_single_mod='$single_module'
9011 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9012 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9014 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9016 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9017 _lt_dsymutil='~$DSYMUTIL $lib || :'
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9025 $as_echo_n "checking for ANSI C header files... " >&6; }
9026 if test "${ac_cv_header_stdc+set}" = set; then :
9027 $as_echo_n "(cached) " >&6
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045 ac_cv_header_stdc=yes
9047 ac_cv_header_stdc=no
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 if test $ac_cv_header_stdc = yes; then
9052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059 $EGREP "memchr" >/dev/null 2>&1; then :
9062 ac_cv_header_stdc=no
9068 if test $ac_cv_header_stdc = yes; then
9069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 $EGREP "free" >/dev/null 2>&1; then :
9079 ac_cv_header_stdc=no
9085 if test $ac_cv_header_stdc = yes; then
9086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9087 if test "$cross_compiling" = yes; then :
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9094 #if ((' ' & 0x0FF) == 0x020)
9095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9098 # define ISLOWER(c) \
9099 (('a' <= (c) && (c) <= 'i') \
9100 || ('j' <= (c) && (c) <= 'r') \
9101 || ('s' <= (c) && (c) <= 'z'))
9102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9110 for (i = 0; i < 256; i++)
9111 if (XOR (islower (i), ISLOWER (i))
9112 || toupper (i) != TOUPPER (i))
9117 if ac_fn_c_try_run "$LINENO"; then :
9120 ac_cv_header_stdc=no
9122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9123 conftest.$ac_objext conftest.beam conftest.$ac_ext
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9129 $as_echo "$ac_cv_header_stdc" >&6; }
9130 if test $ac_cv_header_stdc = yes; then
9132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9138 inttypes.h stdint.h unistd.h
9140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9143 eval as_val=\$$as_ac_Header
9144 if test "x$as_val" = x""yes; then :
9145 cat >>confdefs.h <<_ACEOF
9146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154 for ac_header in dlfcn.h
9156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9158 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_DLFCN_H 1
9170 func_stripname_cnf ()
9173 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9174 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9176 } # func_stripname_cnf
9183 # Check whether --enable-shared was given.
9184 if test "${enable_shared+set}" = set; then :
9185 enableval=$enable_shared; p=${PACKAGE-default}
9187 yes) enable_shared=yes ;;
9188 no) enable_shared=no ;;
9191 # Look at the argument we got. We use all the common list separators.
9192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193 for pkg in $enableval; do
9195 if test "X$pkg" = "X$p"; then
9212 # Check whether --enable-static was given.
9213 if test "${enable_static+set}" = set; then :
9214 enableval=$enable_static; p=${PACKAGE-default}
9216 yes) enable_static=yes ;;
9217 no) enable_static=no ;;
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9222 for pkg in $enableval; do
9224 if test "X$pkg" = "X$p"; then
9253 # Check whether --with-pic was given.
9254 if test "${with_pic+set}" = set; then :
9255 withval=$with_pic; pic_mode="$withval"
9261 test -z "$pic_mode" && pic_mode=default
9269 # Check whether --enable-fast-install was given.
9270 if test "${enable_fast_install+set}" = set; then :
9271 enableval=$enable_fast_install; p=${PACKAGE-default}
9273 yes) enable_fast_install=yes ;;
9274 no) enable_fast_install=no ;;
9276 enable_fast_install=no
9277 # Look at the argument we got. We use all the common list separators.
9278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9279 for pkg in $enableval; do
9281 if test "X$pkg" = "X$p"; then
9282 enable_fast_install=yes
9289 enable_fast_install=yes
9302 # This can be used to rebuild libtool when needed
9303 LIBTOOL_DEPS="$ltmain"
9305 # Always use our own libtool.
9306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9333 test -z "$LN_S" && LN_S="ln -s"
9348 if test -n "${ZSH_VERSION+set}" ; then
9349 setopt NO_GLOB_SUBST
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9353 $as_echo_n "checking for objdir... " >&6; }
9354 if test "${lt_cv_objdir+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9357 rm -f .libs 2>/dev/null
9358 mkdir .libs 2>/dev/null
9359 if test -d .libs; then
9362 # MS-DOS does not allow filenames that begin with a dot.
9365 rmdir .libs 2>/dev/null
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368 $as_echo "$lt_cv_objdir" >&6; }
9369 objdir=$lt_cv_objdir
9375 cat >>confdefs.h <<_ACEOF
9376 #define LT_OBJDIR "$lt_cv_objdir/"
9384 # AIX sometimes has problems with the GCC collect2 program. For some
9385 # reason, if we set the COLLECT_NAMES environment variable, the problems
9386 # vanish in a puff of smoke.
9387 if test "X${COLLECT_NAMES+set}" != Xset; then
9389 export COLLECT_NAMES
9396 can_build_shared=yes
9398 # All known linkers require a `.a' archive for static linking (except MSVC,
9399 # which needs '.lib').
9402 with_gnu_ld="$lt_cv_prog_gnu_ld"
9405 old_CFLAGS="$CFLAGS"
9407 # Set sane defaults for various variables
9408 test -z "$CC" && CC=cc
9409 test -z "$LTCC" && LTCC=$CC
9410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9411 test -z "$LD" && LD=ld
9412 test -z "$ac_objext" && ac_objext=o
9414 for cc_temp in $compiler""; do
9416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9425 # Only perform the check for file, if the check method requires it
9426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9427 case $deplibs_check_method in
9429 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9432 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9440 lt_save_MAGIC_CMD="$MAGIC_CMD"
9441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9443 for ac_dir in $ac_dummy; do
9445 test -z "$ac_dir" && ac_dir=.
9446 if test -f $ac_dir/${ac_tool_prefix}file; then
9447 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9448 if test -n "$file_magic_test_file"; then
9449 case $deplibs_check_method in
9451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9454 $EGREP "$file_magic_regex" > /dev/null; then
9459 *** Warning: the command libtool uses to detect shared libraries,
9460 *** $file_magic_cmd, produces output that libtool cannot recognize.
9461 *** The result is that libtool may fail to recognize shared libraries
9462 *** as such. This will affect the creation of libtool libraries that
9463 *** depend on shared libraries, but programs linked with such libtool
9464 *** libraries will work regardless of this problem. Nevertheless, you
9465 *** may want to report the problem to your system manager and/or to
9466 *** bug-libtool@gnu.org
9476 MAGIC_CMD="$lt_save_MAGIC_CMD"
9481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482 if test -n "$MAGIC_CMD"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9484 $as_echo "$MAGIC_CMD" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9494 if test -z "$lt_cv_path_MAGIC_CMD"; then
9495 if test -n "$ac_tool_prefix"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9497 $as_echo_n "checking for file... " >&6; }
9498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9506 lt_save_MAGIC_CMD="$MAGIC_CMD"
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9509 for ac_dir in $ac_dummy; do
9511 test -z "$ac_dir" && ac_dir=.
9512 if test -f $ac_dir/file; then
9513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9514 if test -n "$file_magic_test_file"; then
9515 case $deplibs_check_method in
9517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9520 $EGREP "$file_magic_regex" > /dev/null; then
9525 *** Warning: the command libtool uses to detect shared libraries,
9526 *** $file_magic_cmd, produces output that libtool cannot recognize.
9527 *** The result is that libtool may fail to recognize shared libraries
9528 *** as such. This will affect the creation of libtool libraries that
9529 *** depend on shared libraries, but programs linked with such libtool
9530 *** libraries will work regardless of this problem. Nevertheless, you
9531 *** may want to report the problem to your system manager and/or to
9532 *** bug-libtool@gnu.org
9542 MAGIC_CMD="$lt_save_MAGIC_CMD"
9547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9548 if test -n "$MAGIC_CMD"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9550 $as_echo "$MAGIC_CMD" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9566 # Use C for the default configuration in the libtool script
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9576 # Source file extension for C test sources.
9579 # Object file extension for compiled C test sources.
9583 # Code to be used in simple compile tests
9584 lt_simple_compile_test_code="int some_variable = 0;"
9586 # Code to be used in simple link tests
9587 lt_simple_link_test_code='int main(){return(0);}'
9595 # If no C compiler was specified, use CC.
9598 # If no C compiler flags were specified, use CFLAGS.
9599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9601 # Allow CC to be a program name with arguments.
9604 # Save the default compiler, since it gets overwritten when the other
9605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9606 compiler_DEFAULT=$CC
9608 # save warnings/boilerplate of simple test code
9609 ac_outfile=conftest.$ac_objext
9610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9612 _lt_compiler_boilerplate=`cat conftest.err`
9615 ac_outfile=conftest.$ac_objext
9616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9618 _lt_linker_boilerplate=`cat conftest.err`
9623 ## There is no encapsulation within the following macros, do not change
9624 ## the running order or otherwise move them around unless you know exactly
9625 ## what you are doing...
9626 if test -n "$compiler"; then
9628 lt_prog_compiler_no_builtin_flag=
9630 if test "$GCC" = yes; then
9631 case $cc_basename in
9633 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9635 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9643 lt_cv_prog_compiler_rtti_exceptions=no
9644 ac_outfile=conftest.$ac_objext
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646 lt_compiler_flag="-fno-rtti -fno-exceptions"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 # The option is referenced via a variable to avoid confusing sed.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>conftest.err)
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s "$ac_outfile"; then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings other than the usual output.
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_rtti_exceptions=yes
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9677 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9689 lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9694 if test "$GCC" = yes; then
9695 lt_prog_compiler_wl='-Wl,'
9696 lt_prog_compiler_static='-static'
9700 # All AIX code is PIC.
9701 if test "$host_cpu" = ia64; then
9702 # AIX 5 now supports IA64 processor
9703 lt_prog_compiler_static='-Bstatic'
9710 # see comment about AmigaOS4 .so support
9711 lt_prog_compiler_pic='-fPIC'
9714 # FIXME: we need at least 68020 code to build shared libraries, but
9715 # adding the `-m68020' flag to GCC prevents building anything better,
9717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9723 # PIC is the default for these OSes.
9726 mingw* | cygwin* | pw32* | os2* | cegcc*)
9727 # This hack is so that the source file can tell whether it is being
9728 # built for inclusion in a dll (and should export symbols for example).
9729 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9730 # (--disable-auto-import) libraries
9731 lt_prog_compiler_pic='-DDLL_EXPORT'
9734 darwin* | rhapsody*)
9735 # PIC is the default on this platform
9736 # Common symbols not allowed in MH_DYLIB files
9737 lt_prog_compiler_pic='-fno-common'
9741 # PIC is the default for Haiku.
9742 # The "-static" flag exists, but is broken.
9743 lt_prog_compiler_static=
9747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9749 # sets the default TLS model and affects inlining.
9755 lt_prog_compiler_pic='-fPIC'
9761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9762 # Instead, we relocate shared libraries at runtime.
9766 # Just because we use GCC doesn't mean we suddenly get shared libraries
9767 # on systems that don't support them.
9768 lt_prog_compiler_can_build_shared=no
9773 # QNX uses GNU C++, but need to define -shared option too, otherwise
9775 lt_prog_compiler_pic='-fPIC -shared'
9779 if test -d /usr/nec; then
9780 lt_prog_compiler_pic=-Kconform_pic
9785 lt_prog_compiler_pic='-fPIC'
9789 case $cc_basename in
9790 nvcc*) # Cuda Compiler Driver 2.2
9791 lt_prog_compiler_wl='-Xlinker '
9792 lt_prog_compiler_pic='-Xcompiler -fPIC'
9796 # PORTME Check for flag to pass linker flags through the system compiler.
9799 lt_prog_compiler_wl='-Wl,'
9800 if test "$host_cpu" = ia64; then
9801 # AIX 5 now supports IA64 processor
9802 lt_prog_compiler_static='-Bstatic'
9804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9808 mingw* | cygwin* | pw32* | os2* | cegcc*)
9809 # This hack is so that the source file can tell whether it is being
9810 # built for inclusion in a dll (and should export symbols for example).
9811 lt_prog_compiler_pic='-DDLL_EXPORT'
9814 hpux9* | hpux10* | hpux11*)
9815 lt_prog_compiler_wl='-Wl,'
9816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9823 lt_prog_compiler_pic='+Z'
9826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9827 lt_prog_compiler_static='${wl}-a ${wl}archive'
9830 irix5* | irix6* | nonstopux*)
9831 lt_prog_compiler_wl='-Wl,'
9832 # PIC (with -KPIC) is the default.
9833 lt_prog_compiler_static='-non_shared'
9836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9837 case $cc_basename in
9838 # old Intel for x86_64 which still supported -KPIC.
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-KPIC'
9842 lt_prog_compiler_static='-static'
9844 # icc used to be incompatible with GCC.
9845 # ICC 10 doesn't accept -KPIC any more.
9847 lt_prog_compiler_wl='-Wl,'
9848 lt_prog_compiler_pic='-fPIC'
9849 lt_prog_compiler_static='-static'
9851 # Lahey Fortran 8.1.
9853 lt_prog_compiler_wl='-Wl,'
9854 lt_prog_compiler_pic='--shared'
9855 lt_prog_compiler_static='--static'
9858 # NAG Fortran compiler
9859 lt_prog_compiler_wl='-Wl,-Wl,,'
9860 lt_prog_compiler_pic='-PIC'
9861 lt_prog_compiler_static='-Bstatic'
9863 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9864 # Portland Group compilers (*not* the Pentium gcc compiler,
9865 # which looks to be a dead project)
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='-fpic'
9868 lt_prog_compiler_static='-Bstatic'
9871 lt_prog_compiler_wl='-Wl,'
9872 # All Alpha code is PIC.
9873 lt_prog_compiler_static='-non_shared'
9875 xl* | bgxl* | bgf* | mpixl*)
9876 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='-qpic'
9879 lt_prog_compiler_static='-qstaticlink'
9882 case `$CC -V 2>&1 | sed 5q` in
9883 *Sun\ F* | *Sun*Fortran*)
9884 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9885 lt_prog_compiler_pic='-KPIC'
9886 lt_prog_compiler_static='-Bstatic'
9887 lt_prog_compiler_wl=''
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 lt_prog_compiler_wl='-Wl,'
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-Bstatic'
9906 # QNX uses GNU C++, but need to define -shared option too, otherwise
9908 lt_prog_compiler_pic='-fPIC -shared'
9911 osf3* | osf4* | osf5*)
9912 lt_prog_compiler_wl='-Wl,'
9913 # All OSF/1 code is PIC.
9914 lt_prog_compiler_static='-non_shared'
9918 lt_prog_compiler_static='-non_shared'
9922 lt_prog_compiler_pic='-KPIC'
9923 lt_prog_compiler_static='-Bstatic'
9924 case $cc_basename in
9925 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9926 lt_prog_compiler_wl='-Qoption ld ';;
9928 lt_prog_compiler_wl='-Wl,';;
9933 lt_prog_compiler_wl='-Qoption ld '
9934 lt_prog_compiler_pic='-PIC'
9935 lt_prog_compiler_static='-Bstatic'
9938 sysv4 | sysv4.2uw2* | sysv4.3*)
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-KPIC'
9941 lt_prog_compiler_static='-Bstatic'
9945 if test -d /usr/nec ;then
9946 lt_prog_compiler_pic='-Kconform_pic'
9947 lt_prog_compiler_static='-Bstatic'
9951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_can_build_shared=no
9963 lt_prog_compiler_pic='-pic'
9964 lt_prog_compiler_static='-Bstatic'
9968 lt_prog_compiler_can_build_shared=no
9974 # For platforms which do not support PIC, -DPIC is meaningless:
9976 lt_prog_compiler_pic=
9979 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9985 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9988 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9991 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9992 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9995 # Check to make sure the PIC flag actually works.
9997 if test -n "$lt_prog_compiler_pic"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9999 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10000 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10003 lt_cv_prog_compiler_pic_works=no
10004 ac_outfile=conftest.$ac_objext
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10007 # Insert the option either (1) after the last *FLAGS variable, or
10008 # (2) before a word containing "conftest.", or (3) at the end.
10009 # Note that $ac_compile itself does not contain backslashes and begins
10010 # with a dollar sign (not a hyphen), so the echo should work correctly.
10011 # The option is referenced via a variable to avoid confusing sed.
10012 lt_compile=`echo "$ac_compile" | $SED \
10013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10015 -e 's:$: $lt_compiler_flag:'`
10016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10017 (eval "$lt_compile" 2>conftest.err)
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 if (exit $ac_status) && test -s "$ac_outfile"; then
10022 # The compiler can only warn and ignore the option if not recognized
10023 # So say no if there are warnings other than the usual output.
10024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10027 lt_cv_prog_compiler_pic_works=yes
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10034 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10036 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10037 case $lt_prog_compiler_pic in
10039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10042 lt_prog_compiler_pic=
10043 lt_prog_compiler_can_build_shared=no
10059 # Check to make sure the static flag actually works.
10061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10064 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10067 lt_cv_prog_compiler_static_works=no
10068 save_LDFLAGS="$LDFLAGS"
10069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072 # The linker can only warn and ignore the option if not recognized
10073 # So say no if there are warnings
10074 if test -s conftest.err; then
10075 # Append any errors to the config.log.
10076 cat conftest.err 1>&5
10077 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079 if diff conftest.exp conftest.er2 >/dev/null; then
10080 lt_cv_prog_compiler_static_works=yes
10083 lt_cv_prog_compiler_static_works=yes
10087 LDFLAGS="$save_LDFLAGS"
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10091 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10093 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10096 lt_prog_compiler_static=
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10110 lt_cv_prog_compiler_c_o=no
10111 $RM -r conftest 2>/dev/null
10115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10117 lt_compiler_flag="-o out/conftest2.$ac_objext"
10118 # Insert the option either (1) after the last *FLAGS variable, or
10119 # (2) before a word containing "conftest.", or (3) at the end.
10120 # Note that $ac_compile itself does not contain backslashes and begins
10121 # with a dollar sign (not a hyphen), so the echo should work correctly.
10122 lt_compile=`echo "$ac_compile" | $SED \
10123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125 -e 's:$: $lt_compiler_flag:'`
10126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10127 (eval "$lt_compile" 2>out/conftest.err)
10129 cat out/conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10133 # The compiler can only warn and ignore the option if not recognized
10134 # So say no if there are warnings
10135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10138 lt_cv_prog_compiler_c_o=yes
10143 # SGI C++ compiler will create directory out/ii_files/ for
10144 # template instantiation
10145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10146 $RM out/* && rmdir out
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10165 lt_cv_prog_compiler_c_o=no
10166 $RM -r conftest 2>/dev/null
10170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10172 lt_compiler_flag="-o out/conftest2.$ac_objext"
10173 # Insert the option either (1) after the last *FLAGS variable, or
10174 # (2) before a word containing "conftest.", or (3) at the end.
10175 # Note that $ac_compile itself does not contain backslashes and begins
10176 # with a dollar sign (not a hyphen), so the echo should work correctly.
10177 lt_compile=`echo "$ac_compile" | $SED \
10178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180 -e 's:$: $lt_compiler_flag:'`
10181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182 (eval "$lt_compile" 2>out/conftest.err)
10184 cat out/conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10188 # The compiler can only warn and ignore the option if not recognized
10189 # So say no if there are warnings
10190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193 lt_cv_prog_compiler_c_o=yes
10198 # SGI C++ compiler will create directory out/ii_files/ for
10199 # template instantiation
10200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201 $RM out/* && rmdir out
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10213 hard_links="nottested"
10214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10215 # do not overwrite the value of need_locks provided by the user
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10217 $as_echo_n "checking if we can lock with hard links... " >&6; }
10220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10222 ln conftest.a conftest.b 2>&5 || hard_links=no
10223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10225 $as_echo "$hard_links" >&6; }
10226 if test "$hard_links" = no; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10244 allow_undefined_flag=
10245 always_export_symbols=no
10247 archive_expsym_cmds=
10248 compiler_needs_object=no
10249 enable_shared_with_static_runtimes=no
10250 export_dynamic_flag_spec=
10251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10252 hardcode_automatic=no
10254 hardcode_direct_absolute=no
10255 hardcode_libdir_flag_spec=
10256 hardcode_libdir_flag_spec_ld=
10257 hardcode_libdir_separator=
10258 hardcode_minus_L=no
10259 hardcode_shlibpath_var=unsupported
10261 link_all_deplibs=unknown
10263 module_expsym_cmds=
10264 old_archive_from_new_cmds=
10265 old_archive_from_expsyms_cmds=
10266 thread_safe_flag_spec=
10267 whole_archive_flag_spec=
10268 # include_expsyms should be a list of space-separated symbols to be *always*
10269 # included in the symbol list
10271 # exclude_expsyms can be an extended regexp of symbols to exclude
10272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10274 # as well as any symbol that contains `d'.
10275 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10277 # platforms (ab)use it in PIC code, but their linkers get confused if
10278 # the symbol is explicitly referenced. Since portable code cannot
10279 # rely on this symbol name, it's probably fine to never include it in
10280 # preloaded symbol tables.
10281 # Exclude shared library initialization/finalization symbols.
10282 extract_expsyms_cmds=
10285 cygwin* | mingw* | pw32* | cegcc*)
10286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10287 # When not using gcc, we currently assume that we are using
10288 # Microsoft Visual C++.
10289 if test "$GCC" != yes; then
10294 # we just hope/assume this is gcc and not c89 (= MSVC++)
10304 # On some targets, GNU ld is compatible enough with the native linker
10305 # that we're better off using the native interface for both.
10306 lt_use_gnu_ld_interface=no
10307 if test "$with_gnu_ld" = yes; then
10310 # The AIX port of GNU ld has always aspired to compatibility
10311 # with the native linker. However, as the warning in the GNU ld
10312 # block says, versions before 2.19.5* couldn't really create working
10313 # shared libraries, regardless of the interface used.
10314 case `$LD -v 2>&1` in
10315 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10316 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10317 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10319 lt_use_gnu_ld_interface=yes
10324 lt_use_gnu_ld_interface=yes
10329 if test "$lt_use_gnu_ld_interface" = yes; then
10330 # If archive_cmds runs LD, not CC, wlarc should be empty
10333 # Set some defaults for GNU ld with shared library support. These
10334 # are reset later if shared libraries are not supported. Putting them
10335 # here allows them to be overridden if necessary.
10336 runpath_var=LD_RUN_PATH
10337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10338 export_dynamic_flag_spec='${wl}--export-dynamic'
10339 # ancient GNU ld didn't support --whole-archive et. al.
10340 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10341 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10343 whole_archive_flag_spec=
10345 supports_anon_versioning=no
10346 case `$LD -v 2>&1` in
10347 *GNU\ gold*) supports_anon_versioning=yes ;;
10348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10351 *\ 2.11.*) ;; # other 2.11 versions
10352 *) supports_anon_versioning=yes ;;
10355 # See if GNU ld supports shared libraries.
10358 # On AIX/PPC, the GNU linker is very broken
10359 if test "$host_cpu" != ia64; then
10363 *** Warning: the GNU linker, at least up to release 2.19, is reported
10364 *** to be unable to reliably create shared libraries on AIX.
10365 *** Therefore, libtool is disabling shared libraries support. If you
10366 *** really care for shared libraries, you may want to install binutils
10367 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10368 *** You will then need to restart the configuration process.
10377 # see comment about AmigaOS4 .so support
10378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379 archive_expsym_cmds=''
10382 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)'
10383 hardcode_libdir_flag_spec='-L$libdir'
10384 hardcode_minus_L=yes
10390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10391 allow_undefined_flag=unsupported
10392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10393 # support --undefined. This deserves some investigation. FIXME
10394 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400 cygwin* | mingw* | pw32* | cegcc*)
10401 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10402 # as there is no search path for DLLs.
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 export_dynamic_flag_spec='${wl}--export-all-symbols'
10405 allow_undefined_flag=unsupported
10406 always_export_symbols=no
10407 enable_shared_with_static_runtimes=yes
10408 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'
10409 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10411 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10413 # If the export-symbols file already is a .def file (1st line
10414 # is EXPORTS), use it as is; otherwise, prepend...
10415 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416 cp $export_symbols $output_objdir/$soname.def;
10418 echo EXPORTS > $output_objdir/$soname.def;
10419 cat $export_symbols >> $output_objdir/$soname.def;
10421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 link_all_deplibs=yes
10434 hardcode_shlibpath_var=no
10435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10436 export_dynamic_flag_spec='${wl}-E'
10437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10438 # Instead, shared libraries are loaded at an image base (0x10000000 by
10439 # default) and relocated if they conflict, which is a slow very memory
10440 # consuming and fragmenting process. To avoid this, we pick a random,
10441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10444 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'
10447 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10449 if test "$host_os" = linux-dietlibc; then
10450 case $cc_basename in
10451 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10454 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10455 && test "$tmp_diet" = no
10457 tmp_addflag=' $pic_flag'
10458 tmp_sharedflag='-shared'
10459 case $cc_basename,$host_cpu in
10460 pgcc*) # Portland Group C compiler
10461 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'
10462 tmp_addflag=' $pic_flag'
10464 pgf77* | pgf90* | pgf95* | pgfortran*)
10465 # Portland Group f77 and f90 compilers
10466 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'
10467 tmp_addflag=' $pic_flag -Mnomain' ;;
10468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10469 tmp_addflag=' -i_dynamic' ;;
10470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10471 tmp_addflag=' -i_dynamic -nofor_main' ;;
10472 ifc* | ifort*) # Intel Fortran compiler
10473 tmp_addflag=' -nofor_main' ;;
10474 lf95*) # Lahey Fortran 8.1
10475 whole_archive_flag_spec=
10476 tmp_sharedflag='--shared' ;;
10477 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10478 tmp_sharedflag='-qmkshrobj'
10480 nvcc*) # Cuda Compiler Driver 2.2
10481 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'
10482 compiler_needs_object=yes
10485 case `$CC -V 2>&1 | sed 5q` in
10486 *Sun\ C*) # Sun C 5.9
10487 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'
10488 compiler_needs_object=yes
10489 tmp_sharedflag='-G' ;;
10490 *Sun\ F*) # Sun Fortran 8.3
10491 tmp_sharedflag='-G' ;;
10493 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10495 if test "x$supports_anon_versioning" = xyes; then
10496 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10497 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10498 echo "local: *; };" >> $output_objdir/$libname.ver~
10499 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10502 case $cc_basename in
10503 xlf* | bgf* | bgxlf* | mpixlf*)
10504 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10505 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10506 hardcode_libdir_flag_spec=
10507 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10508 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10509 if test "x$supports_anon_versioning" = xyes; then
10510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10512 echo "local: *; };" >> $output_objdir/$libname.ver~
10513 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10538 *** create shared libraries on Solaris systems. Therefore, libtool
10539 *** is disabling shared libraries support. We urge you to upgrade GNU
10540 *** binutils to release 2.9.1 or newer. Another option is to modify
10541 *** your PATH or compiler configuration so that the native linker is
10542 *** used, and then restart.
10545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10554 case `$LD -v 2>&1` in
10555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10560 *** reliably create shared libraries on SCO systems. Therefore, libtool
10561 *** is disabling shared libraries support. We urge you to upgrade GNU
10562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10563 *** your PATH or compiler configuration so that the native linker is
10564 *** used, and then restart.
10569 # For security reasons, it is highly recommended that you always
10570 # use absolute paths for naming shared libraries, and exclude the
10571 # DT_RUNPATH tag from executables and libraries. But doing so
10572 # requires that you compile everything twice, which is a pain.
10573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_direct=yes
10588 hardcode_shlibpath_var=no
10592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10601 if test "$ld_shlibs" = no; then
10603 hardcode_libdir_flag_spec=
10604 export_dynamic_flag_spec=
10605 whole_archive_flag_spec=
10608 # PORTME fill in a description of your system's linker (not GNU ld)
10611 allow_undefined_flag=unsupported
10612 always_export_symbols=yes
10613 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'
10614 # Note: this linker hardcodes the directories in LIBPATH if there
10615 # are no directories specified by -L.
10616 hardcode_minus_L=yes
10617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10618 # Neither direct hardcoding nor static linking is supported with a
10620 hardcode_direct=unsupported
10625 if test "$host_cpu" = ia64; then
10626 # On IA64, the linker does run time linking by default, so we don't
10627 # have to do anything special.
10628 aix_use_runtimelinking=no
10629 exp_sym_flag='-Bexport'
10632 # If we're using GNU nm, then we don't want the "-C" option.
10633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10634 # Also, AIX nm treats weak defined symbols like other global
10635 # defined symbols, whereas GNU nm marks them as "W".
10636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10637 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'
10639 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'
10641 aix_use_runtimelinking=no
10643 # Test if we are trying to use run time linking or normal
10644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10645 # need to do runtime linking.
10646 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10647 for ld_flag in $LDFLAGS; do
10648 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10649 aix_use_runtimelinking=yes
10656 exp_sym_flag='-bexport'
10657 no_entry_flag='-bnoentry'
10660 # When large executables or shared objects are built, AIX ld can
10661 # have problems creating the table of contents. If linking a library
10662 # or program results in "error TOC overflow" add -mminimal-toc to
10663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10667 hardcode_direct=yes
10668 hardcode_direct_absolute=yes
10669 hardcode_libdir_separator=':'
10670 link_all_deplibs=yes
10671 file_list_spec='${wl}-f,'
10673 if test "$GCC" = yes; then
10674 case $host_os in aix4.[012]|aix4.[012].*)
10675 # We only want to do this on AIX 4.2 and lower, the check
10676 # below for broken collect2 doesn't work under 4.3+
10677 collect2name=`${CC} -print-prog-name=collect2`
10678 if test -f "$collect2name" &&
10679 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10681 # We have reworked collect2
10684 # We have old collect2
10685 hardcode_direct=unsupported
10686 # It fails to find uninstalled libraries when the uninstalled
10687 # path is not listed in the libpath. Setting hardcode_minus_L
10688 # to unsupported forces relinking
10689 hardcode_minus_L=yes
10690 hardcode_libdir_flag_spec='-L$libdir'
10691 hardcode_libdir_separator=
10695 shared_flag='-shared'
10696 if test "$aix_use_runtimelinking" = yes; then
10697 shared_flag="$shared_flag "'${wl}-G'
10701 if test "$host_cpu" = ia64; then
10702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10703 # chokes on -Wl,-G. The following line is correct:
10706 if test "$aix_use_runtimelinking" = yes; then
10707 shared_flag='${wl}-G'
10709 shared_flag='${wl}-bM:SRE'
10714 export_dynamic_flag_spec='${wl}-bexpall'
10715 # It seems that -bexpall does not export symbols beginning with
10716 # underscore (_), so it is better to generate a list of symbols to export.
10717 always_export_symbols=yes
10718 if test "$aix_use_runtimelinking" = yes; then
10719 # Warning - without using the other runtime loading flags (-brtl),
10720 # -berok will link without error, but may produce a broken library.
10721 allow_undefined_flag='-berok'
10722 # Determine the default libpath from the value encoded in an
10723 # empty executable.
10724 if test "${lt_cv_aix_libpath+set}" = set; then
10725 aix_libpath=$lt_cv_aix_libpath
10727 if test "${lt_cv_aix_libpath_+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10741 if ac_fn_c_try_link "$LINENO"; then :
10743 lt_aix_libpath_sed='
10744 /Import File Strings/,/^$/ {
10746 s/^0 *\([^ ]*\) *$/\1/
10750 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751 # Check for a 64-bit object if we didn't find anything.
10752 if test -z "$lt_cv_aix_libpath_"; then
10753 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 if test -z "$lt_cv_aix_libpath_"; then
10759 lt_cv_aix_libpath_="/usr/lib:/lib"
10764 aix_libpath=$lt_cv_aix_libpath_
10767 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10768 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"
10770 if test "$host_cpu" = ia64; then
10771 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10772 allow_undefined_flag="-z nodefs"
10773 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"
10775 # Determine the default libpath from the value encoded in an
10776 # empty executable.
10777 if test "${lt_cv_aix_libpath+set}" = set; then
10778 aix_libpath=$lt_cv_aix_libpath
10780 if test "${lt_cv_aix_libpath_+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10794 if ac_fn_c_try_link "$LINENO"; then :
10796 lt_aix_libpath_sed='
10797 /Import File Strings/,/^$/ {
10799 s/^0 *\([^ ]*\) *$/\1/
10803 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804 # Check for a 64-bit object if we didn't find anything.
10805 if test -z "$lt_cv_aix_libpath_"; then
10806 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 if test -z "$lt_cv_aix_libpath_"; then
10812 lt_cv_aix_libpath_="/usr/lib:/lib"
10817 aix_libpath=$lt_cv_aix_libpath_
10820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10821 # Warning - without using the other run time loading flags,
10822 # -berok will link without error, but may produce a broken library.
10823 no_undefined_flag=' ${wl}-bernotok'
10824 allow_undefined_flag=' ${wl}-berok'
10825 if test "$with_gnu_ld" = yes; then
10826 # We only use this code for GNU lds that support --whole-archive.
10827 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10829 # Exported symbols can be pulled into shared objects from archives
10830 whole_archive_flag_spec='$convenience'
10832 archive_cmds_need_lc=yes
10833 # This is similar to how AIX traditionally builds its shared libraries.
10834 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'
10842 # see comment about AmigaOS4 .so support
10843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844 archive_expsym_cmds=''
10847 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)'
10848 hardcode_libdir_flag_spec='-L$libdir'
10849 hardcode_minus_L=yes
10855 export_dynamic_flag_spec=-rdynamic
10858 cygwin* | mingw* | pw32* | cegcc*)
10859 # When not using gcc, we currently assume that we are using
10860 # Microsoft Visual C++.
10861 # hardcode_libdir_flag_spec is actually meaningless, as there is
10862 # no search path for DLLs.
10863 case $cc_basename in
10866 hardcode_libdir_flag_spec=' '
10867 allow_undefined_flag=unsupported
10868 always_export_symbols=yes
10870 # Tell ltmain to make .lib files, not .a files.
10872 # Tell ltmain to make .dll files, not .so files.
10874 # FIXME: Setting linknames here is a bad hack.
10875 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10876 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10877 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10879 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10881 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10883 # The linker will not automatically build a static lib if we build a DLL.
10884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10885 enable_shared_with_static_runtimes=yes
10886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10888 old_postinstall_cmds='chmod 644 $oldlib'
10889 postlink_cmds='lt_outputfile="@OUTPUT@"~
10890 lt_tool_outputfile="@TOOL_OUTPUT@"~
10891 case $lt_outputfile in
10894 lt_outputfile="$lt_outputfile.exe"
10895 lt_tool_outputfile="$lt_tool_outputfile.exe"
10898 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10899 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10900 $RM "$lt_outputfile.manifest";
10904 # Assume MSVC wrapper
10905 hardcode_libdir_flag_spec=' '
10906 allow_undefined_flag=unsupported
10907 # Tell ltmain to make .lib files, not .a files.
10909 # Tell ltmain to make .dll files, not .so files.
10911 # FIXME: Setting linknames here is a bad hack.
10912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10913 # The linker will automatically build a .lib file if we build a DLL.
10914 old_archive_from_new_cmds='true'
10915 # FIXME: Should let the user specify the lib program.
10916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10917 enable_shared_with_static_runtimes=yes
10922 darwin* | rhapsody*)
10925 archive_cmds_need_lc=no
10927 hardcode_automatic=yes
10928 hardcode_shlibpath_var=unsupported
10929 if test "$lt_cv_ld_force_load" = "yes"; then
10930 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\"`'
10932 whole_archive_flag_spec=''
10934 link_all_deplibs=yes
10935 allow_undefined_flag="$_lt_dar_allow_undefined"
10936 case $cc_basename in
10937 ifort*) _lt_dar_can_shared=yes ;;
10938 *) _lt_dar_can_shared=$GCC ;;
10940 if test "$_lt_dar_can_shared" = "yes"; then
10941 output_verbose_link_cmd=func_echo_all
10942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10944 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}"
10945 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}"
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_shlibpath_var=no
10963 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10964 # support. Future versions do this automatically, but an explicit c++rt0.o
10965 # does not break anything, and helps significantly (at the cost of a little
10968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10969 hardcode_libdir_flag_spec='-R$libdir'
10970 hardcode_direct=yes
10971 hardcode_shlibpath_var=no
10974 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10977 hardcode_direct=yes
10978 hardcode_minus_L=yes
10979 hardcode_shlibpath_var=no
10982 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10983 freebsd* | dragonfly*)
10984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10985 hardcode_libdir_flag_spec='-R$libdir'
10986 hardcode_direct=yes
10987 hardcode_shlibpath_var=no
10991 if test "$GCC" = yes; then
10992 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'
10994 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'
10996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10997 hardcode_libdir_separator=:
10998 hardcode_direct=yes
11000 # hardcode_minus_L: Not really in the search PATH,
11001 # but as the default location of the library.
11002 hardcode_minus_L=yes
11003 export_dynamic_flag_spec='${wl}-E'
11007 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11008 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11012 if test "$with_gnu_ld" = no; then
11013 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11014 hardcode_libdir_flag_spec_ld='+b $libdir'
11015 hardcode_libdir_separator=:
11016 hardcode_direct=yes
11017 hardcode_direct_absolute=yes
11018 export_dynamic_flag_spec='${wl}-E'
11019 # hardcode_minus_L: Not really in the search PATH,
11020 # but as the default location of the library.
11021 hardcode_minus_L=yes
11026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11029 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11048 # Older versions of the 11.00 compiler do not understand -b yet
11049 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11051 $as_echo_n "checking if $CC understands -b... " >&6; }
11052 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11055 lt_cv_prog_compiler__b=no
11056 save_LDFLAGS="$LDFLAGS"
11057 LDFLAGS="$LDFLAGS -b"
11058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11060 # The linker can only warn and ignore the option if not recognized
11061 # So say no if there are warnings
11062 if test -s conftest.err; then
11063 # Append any errors to the config.log.
11064 cat conftest.err 1>&5
11065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11067 if diff conftest.exp conftest.er2 >/dev/null; then
11068 lt_cv_prog_compiler__b=yes
11071 lt_cv_prog_compiler__b=yes
11075 LDFLAGS="$save_LDFLAGS"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11081 if test x"$lt_cv_prog_compiler__b" = xyes; then
11082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11090 if test "$with_gnu_ld" = no; then
11091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11092 hardcode_libdir_separator=:
11097 hardcode_shlibpath_var=no
11100 hardcode_direct=yes
11101 hardcode_direct_absolute=yes
11102 export_dynamic_flag_spec='${wl}-E'
11104 # hardcode_minus_L: Not really in the search PATH,
11105 # but as the default location of the library.
11106 hardcode_minus_L=yes
11112 irix5* | irix6* | nonstopux*)
11113 if test "$GCC" = yes; then
11114 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'
11115 # Try to use the -exported_symbol ld option, if it does not
11116 # work, assume that -exports_file does not work either and
11117 # implicitly export all symbols.
11118 # This should be the same for all languages, so no per-tag cache variable.
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11121 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11124 save_LDFLAGS="$LDFLAGS"
11125 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128 int foo (void) { return 0; }
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 lt_cv_irix_exported_symbol=yes
11133 lt_cv_irix_exported_symbol=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LDFLAGS="$save_LDFLAGS"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11141 if test "$lt_cv_irix_exported_symbol" = yes; then
11142 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'
11145 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'
11146 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'
11148 archive_cmds_need_lc='no'
11149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11150 hardcode_libdir_separator=:
11152 link_all_deplibs=yes
11156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11159 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11161 hardcode_libdir_flag_spec='-R$libdir'
11162 hardcode_direct=yes
11163 hardcode_shlibpath_var=no
11167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_direct=yes
11169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11170 hardcode_libdir_separator=:
11171 hardcode_shlibpath_var=no
11178 if test -f /usr/libexec/ld.so; then
11179 hardcode_direct=yes
11180 hardcode_shlibpath_var=no
11181 hardcode_direct_absolute=yes
11182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11184 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11186 export_dynamic_flag_spec='${wl}-E'
11189 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11191 hardcode_libdir_flag_spec='-R$libdir'
11194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11205 hardcode_libdir_flag_spec='-L$libdir'
11206 hardcode_minus_L=yes
11207 allow_undefined_flag=unsupported
11208 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'
11209 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11213 if test "$GCC" = yes; then
11214 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11215 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'
11217 allow_undefined_flag=' -expect_unresolved \*'
11218 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'
11220 archive_cmds_need_lc='no'
11221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11222 hardcode_libdir_separator=:
11225 osf4* | osf5*) # as osf3* with the addition of -msym flag
11226 if test "$GCC" = yes; then
11227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11228 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'
11229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11231 allow_undefined_flag=' -expect_unresolved \*'
11232 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'
11233 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~
11234 $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'
11236 # Both c and cxx compiler support -rpath directly
11237 hardcode_libdir_flag_spec='-rpath $libdir'
11239 archive_cmds_need_lc='no'
11240 hardcode_libdir_separator=:
11244 no_undefined_flag=' -z defs'
11245 if test "$GCC" = yes; then
11247 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11248 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11249 $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'
11251 case `$CC -V 2>&1` in
11254 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11260 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11262 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11266 hardcode_libdir_flag_spec='-R$libdir'
11267 hardcode_shlibpath_var=no
11269 solaris2.[0-5] | solaris2.[0-5].*) ;;
11271 # The compiler driver will combine and reorder linker options,
11272 # but understands `-z linker_flag'. GCC discards it without `$wl',
11273 # but is careful enough not to reorder.
11274 # Supported since Solaris 2.6 (maybe 2.5.1?)
11275 if test "$GCC" = yes; then
11276 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11278 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11282 link_all_deplibs=yes
11286 if test "x$host_vendor" = xsequent; then
11287 # Use $CC to link under sequent, because it throws in some extra .o
11288 # files that make .init and .fini sections work.
11289 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11293 hardcode_libdir_flag_spec='-L$libdir'
11294 hardcode_direct=yes
11295 hardcode_minus_L=yes
11296 hardcode_shlibpath_var=no
11300 case $host_vendor in
11302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303 hardcode_direct=yes # is this really true???
11306 ## LD is ld it makes a PLAMLIB
11307 ## CC just makes a GrossModule.
11308 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11309 reload_cmds='$CC -r -o $output$reload_objs'
11313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11317 runpath_var='LD_RUN_PATH'
11318 hardcode_shlibpath_var=no
11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_shlibpath_var=no
11324 export_dynamic_flag_spec='-Bexport'
11328 if test -d /usr/nec; then
11329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330 hardcode_shlibpath_var=no
11331 runpath_var=LD_RUN_PATH
11332 hardcode_runpath_var=yes
11337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11338 no_undefined_flag='${wl}-z,text'
11339 archive_cmds_need_lc=no
11340 hardcode_shlibpath_var=no
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'
11352 sysv5* | sco3.2v5* | sco5v6*)
11353 # Note: We can NOT use -z defs as we might desire, because we do not
11354 # link with -lc, and that would cause any symbols used from libc to
11355 # always be unresolved, which means just about no library would
11356 # ever link correctly. If we're not using GNU ld we use -z text
11357 # though, which does catch some bad symbols but isn't as heavy-handed
11359 no_undefined_flag='${wl}-z,text'
11360 allow_undefined_flag='${wl}-z,nodefs'
11361 archive_cmds_need_lc=no
11362 hardcode_shlibpath_var=no
11363 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11364 hardcode_libdir_separator=':'
11365 link_all_deplibs=yes
11366 export_dynamic_flag_spec='${wl}-Bexport'
11367 runpath_var='LD_RUN_PATH'
11369 if test "$GCC" = yes; then
11370 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11380 hardcode_libdir_flag_spec='-L$libdir'
11381 hardcode_shlibpath_var=no
11389 if test x$host_vendor = xsni; then
11391 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11392 export_dynamic_flag_spec='${wl}-Blargedynsym'
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11399 $as_echo "$ld_shlibs" >&6; }
11400 test "$ld_shlibs" = no && can_build_shared=no
11402 with_gnu_ld=$with_gnu_ld
11419 # Do we need to explicitly link libc?
11421 case "x$archive_cmds_need_lc" in
11423 # Assume -lc should be added
11424 archive_cmds_need_lc=yes
11426 if test "$enable_shared" = yes && test "$GCC" = yes; then
11427 case $archive_cmds in
11429 # FIXME: we may have to deal with multi-command sequences.
11432 # Test whether the compiler implicitly links with -lc since on some
11433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11434 # to ld, don't add -lc before -lgcc.
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11436 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11437 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11444 (eval $ac_compile) 2>&5
11446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447 test $ac_status = 0; } 2>conftest.err; then
11450 libobjs=conftest.$ac_objext
11452 wl=$lt_prog_compiler_wl
11453 pic_flag=$lt_prog_compiler_pic
11459 lt_save_allow_undefined_flag=$allow_undefined_flag
11460 allow_undefined_flag=
11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11462 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; }
11467 lt_cv_archive_cmds_need_lc=no
11469 lt_cv_archive_cmds_need_lc=yes
11471 allow_undefined_flag=$lt_save_allow_undefined_flag
11473 cat conftest.err 1>&5
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11479 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11480 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11646 if test "$GCC" = yes; then
11648 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11649 *) lt_awk_arg="/^libraries:/" ;;
11652 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11653 *) lt_sed_strip_eq="s,=/,/,g" ;;
11655 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11656 case $lt_search_path_spec in
11658 # if the path contains ";" then we assume it to be the separator
11659 # otherwise default to the standard path separator (i.e. ":") - it is
11660 # assumed that no part of a normal pathname contains ";" but that should
11661 # okay in the real world where ";" in dirpaths is itself problematic.
11662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11668 # Ok, now we have the path, separated by spaces, we can step through it
11669 # and add multilib dir if necessary.
11670 lt_tmp_lt_search_path_spec=
11671 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11672 for lt_sys_path in $lt_search_path_spec; do
11673 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11674 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11676 test -d "$lt_sys_path" && \
11677 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11680 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11681 BEGIN {RS=" "; FS="/|\n";} {
11684 for (lt_i = NF; lt_i > 0; lt_i--) {
11685 if ($lt_i != "" && $lt_i != ".") {
11686 if ($lt_i == "..") {
11689 if (lt_count == 0) {
11690 lt_foo="/" $lt_i lt_foo;
11697 if (lt_foo != "") { lt_freq[lt_foo]++; }
11698 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11700 # AWK program above erroneously prepends '/' to C:/dos/paths
11703 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11704 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11706 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11710 library_names_spec=
11711 libname_spec='lib$name'
11715 postuninstall_cmds=
11719 shlibpath_overrides_runpath=unknown
11721 dynamic_linker="$host_os ld.so"
11722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11723 need_lib_prefix=unknown
11724 hardcode_into_libs=no
11726 # when you set need_version to no, make sure it does not cause -set_version
11727 # flags to be left without arguments
11728 need_version=unknown
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11734 shlibpath_var=LIBPATH
11736 # AIX 3 has no versioning support, so we append a major version to the name.
11737 soname_spec='${libname}${release}${shared_ext}$major'
11744 hardcode_into_libs=yes
11745 if test "$host_cpu" = ia64; then
11746 # AIX 5 supports IA64
11747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11748 shlibpath_var=LD_LIBRARY_PATH
11750 # With GCC up to 2.95.x, collect2 would create an import file
11751 # for dependence libraries. The import file would start with
11752 # the line `#! .'. This would cause the generated library to
11753 # depend on `.', always an invalid library. This was fixed in
11754 # development snapshots of GCC prior to 3.0.
11756 aix4 | aix4.[01] | aix4.[01].*)
11757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11759 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11762 can_build_shared=no
11766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11767 # soname into executable. Probably we can add versioning support to
11768 # collect2, so additional links can be useful in future.
11769 if test "$aix_use_runtimelinking" = yes; then
11770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11771 # instead of lib<name>.a to let people know that these are not
11772 # typical AIX shared libraries.
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11775 # We preserve .a as extension for shared libraries through AIX4.2
11776 # and later when we are not doing run time linking.
11777 library_names_spec='${libname}${release}.a $libname.a'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11780 shlibpath_var=LIBPATH
11787 # Since July 2007 AmigaOS4 officially supports .so libraries.
11788 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 library_names_spec='$libname.ixlibrary $libname.a'
11793 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11794 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'
11800 library_names_spec='${libname}${shared_ext}'
11801 dynamic_linker="$host_os ld.so"
11802 shlibpath_var=LIBRARY_PATH
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11814 # the default ld.so.conf also contains /usr/contrib/lib and
11815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11816 # libtool to hard-code these into programs
11819 cygwin* | mingw* | pw32* | cegcc*)
11820 version_type=windows
11825 case $GCC,$cc_basename in
11828 library_names_spec='$libname.dll.a'
11829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830 postinstall_cmds='base_file=`basename \${file}`~
11831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11832 dldir=$destdir/`dirname \$dlpath`~
11833 test -d \$dldir || mkdir -p \$dldir~
11834 $install_prog $dir/$dlname \$dldir/$dlname~
11835 chmod a+x \$dldir/$dlname~
11836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11840 dlpath=$dir/\$dldll~
11842 shlibpath_overrides_runpath=yes
11846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11852 # MinGW DLLs use traditional 'lib' prefix
11853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11856 # pw32 DLLs use 'pw' prefix rather than 'lib'
11857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11860 dynamic_linker='Win32 ld.exe'
11865 libname_spec='$name'
11866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867 library_names_spec='${libname}.dll.lib'
11871 sys_lib_search_path_spec=
11874 for lt_path in $LIB
11877 # Let DOS variable expansion print the short 8.3 style file name.
11878 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11879 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11882 # Convert to MSYS style.
11883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11886 # Convert to unix form, then to dos form, then back to unix form
11887 # but this time dos style (no spaces!) so that the unix form looks
11888 # like /cygdrive/c/PROGRA~1:/cygdr...
11889 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11890 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11891 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11894 sys_lib_search_path_spec="$LIB"
11895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11896 # It is most probably a Windows format PATH.
11897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11901 # FIXME: find the short name or the path components, as spaces are
11902 # common. (e.g. "Program Files" -> "PROGRA~1")
11906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11907 postinstall_cmds='base_file=`basename \${file}`~
11908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11909 dldir=$destdir/`dirname \$dlpath`~
11910 test -d \$dldir || mkdir -p \$dldir~
11911 $install_prog $dir/$dlname \$dldir/$dlname'
11912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11913 dlpath=$dir/\$dldll~
11915 shlibpath_overrides_runpath=yes
11916 dynamic_linker='Win32 link.exe'
11920 # Assume MSVC wrapper
11921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11922 dynamic_linker='Win32 ld.exe'
11925 # FIXME: first we should search . and the directory the executable is in
11929 darwin* | rhapsody*)
11930 dynamic_linker="$host_os dyld"
11931 version_type=darwin
11934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11935 soname_spec='${libname}${release}${major}$shared_ext'
11936 shlibpath_overrides_runpath=yes
11937 shlibpath_var=DYLD_LIBRARY_PATH
11938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11957 freebsd* | dragonfly*)
11958 # DragonFly does not have aout. When/if they implement a new
11959 # versioning mechanism, adjust this.
11960 if test -x /usr/bin/objformat; then
11961 objformat=`/usr/bin/objformat`
11964 freebsd[123]*) objformat=aout ;;
11965 *) objformat=elf ;;
11968 version_type=freebsd-$objformat
11969 case $version_type in
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11980 shlibpath_var=LD_LIBRARY_PATH
11983 shlibpath_overrides_runpath=yes
11985 freebsd3.[01]* | freebsdelf3.[01]*)
11986 shlibpath_overrides_runpath=yes
11987 hardcode_into_libs=yes
11989 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11990 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11991 shlibpath_overrides_runpath=no
11992 hardcode_into_libs=yes
11994 *) # from 4.6 on, and DragonFly
11995 shlibpath_overrides_runpath=yes
11996 hardcode_into_libs=yes
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 hardcode_into_libs=yes
12015 dynamic_linker="$host_os runtime_loader"
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12017 soname_spec='${libname}${release}${shared_ext}$major'
12018 shlibpath_var=LIBRARY_PATH
12019 shlibpath_overrides_runpath=yes
12020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12021 hardcode_into_libs=yes
12024 hpux9* | hpux10* | hpux11*)
12025 # Give a soname corresponding to the major version so that dld.sl refuses to
12026 # link against other versions.
12033 hardcode_into_libs=yes
12034 dynamic_linker="$host_os dld.so"
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038 soname_spec='${libname}${release}${shared_ext}$major'
12039 if test "X$HPUX_IA64_MODE" = X32; then
12040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12048 hardcode_into_libs=yes
12049 dynamic_linker="$host_os dld.sl"
12050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053 soname_spec='${libname}${release}${shared_ext}$major'
12054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 dynamic_linker="$host_os dld.sl"
12060 shlibpath_var=SHLIB_PATH
12061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063 soname_spec='${libname}${release}${shared_ext}$major'
12066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067 postinstall_cmds='chmod 555 $lib'
12068 # or fails outright, so override atomically:
12069 install_override_mode=555
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12084 irix5* | irix6* | nonstopux*)
12086 nonstopux*) version_type=nonstopux ;;
12088 if test "$lt_cv_prog_gnu_ld" = yes; then
12096 soname_spec='${libname}${release}${shared_ext}$major'
12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12099 irix5* | nonstopux*)
12100 libsuff= shlibsuff=
12103 case $LD in # libtool.m4 will add one of these switches to LD
12104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105 libsuff= shlibsuff= libmagic=32-bit;;
12106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107 libsuff=32 shlibsuff=N32 libmagic=N32;;
12108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110 *) libsuff= shlibsuff= libmagic=never-match;;
12114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115 shlibpath_overrides_runpath=no
12116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12118 hardcode_into_libs=yes
12121 # No shared lib support for Linux oldld, aout, or coff.
12122 linux*oldld* | linux*aout* | linux*coff*)
12126 # This must be Linux ELF.
12127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132 soname_spec='${libname}${release}${shared_ext}$major'
12133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=no
12137 # Some binutils ld are patched to set DT_RUNPATH
12138 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 lt_cv_shlibpath_overrides_runpath=no
12142 save_LDFLAGS=$LDFLAGS
12143 save_libdir=$libdir
12144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12157 if ac_fn_c_try_link "$LINENO"; then :
12158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12159 lt_cv_shlibpath_overrides_runpath=yes
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LDFLAGS=$save_LDFLAGS
12165 libdir=$save_libdir
12169 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12171 # This implies no fast_install, which is unacceptable.
12172 # Some rework will be needed to allow for fast_install
12173 # before this can be enabled.
12174 hardcode_into_libs=yes
12176 # Append ld.so.conf contents to the search path
12177 if test -f /etc/ld.so.conf; then
12178 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' ' '`
12179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12182 # We used to test for /lib/ld.so.1 and disable shared libraries on
12183 # powerpc, because MkLinux only supported shared libraries with the
12184 # GNU dynamic linker. Since this was broken with cross compilers,
12185 # most powerpc-linux boxes support dynamic linking these days and
12186 # people can always --disable-shared, the test was removed, and we
12187 # assume the GNU/Linux dynamic linker is in use.
12188 dynamic_linker='GNU/Linux ld.so'
12195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198 dynamic_linker='NetBSD (a.out) ld.so'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 dynamic_linker='NetBSD ld.elf_so'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 hardcode_into_libs=yes
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=yes
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=no
12224 hardcode_into_libs=yes
12225 dynamic_linker='ldqnx.so'
12230 sys_lib_dlsearch_path_spec="/usr/lib"
12232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12234 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12235 *) need_version=no ;;
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12242 openbsd2.[89] | openbsd2.[89].*)
12243 shlibpath_overrides_runpath=no
12246 shlibpath_overrides_runpath=yes
12250 shlibpath_overrides_runpath=yes
12255 libname_spec='$name'
12258 library_names_spec='$libname${shared_ext} $libname.a'
12259 dynamic_linker='OS/2 ld.exe'
12260 shlibpath_var=LIBPATH
12263 osf3* | osf4* | osf5*)
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 # ldd complains unless libraries are executable
12288 postinstall_cmds='chmod +x $lib'
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 if test "$with_gnu_ld" = yes; then
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 case $host_vendor in
12310 shlibpath_overrides_runpath=no
12312 runpath_var=LD_RUN_PATH
12320 shlibpath_overrides_runpath=no
12321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12327 if test -d /usr/nec ;then
12329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12330 soname_spec='$libname${shared_ext}.$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12336 version_type=freebsd-elf
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 shlibpath_overrides_runpath=yes
12343 hardcode_into_libs=yes
12344 if test "$with_gnu_ld" = yes; then
12345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12354 sys_lib_dlsearch_path_spec='/usr/lib'
12358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=no
12365 hardcode_into_libs=yes
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371 soname_spec='${libname}${release}${shared_ext}$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12380 $as_echo "$dynamic_linker" >&6; }
12381 test "$dynamic_linker" = no && can_build_shared=no
12383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12384 if test "$GCC" = yes; then
12385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12392 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12489 if test -n "$hardcode_libdir_flag_spec" ||
12490 test -n "$runpath_var" ||
12491 test "X$hardcode_automatic" = "Xyes" ; then
12493 # We can hardcode non-existent directories.
12494 if test "$hardcode_direct" != no &&
12495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12496 # have to relink, otherwise we might link with an installed library
12497 # when we should be linking with a yet-to-be-installed one
12498 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12499 test "$hardcode_minus_L" != no; then
12500 # Linking always hardcodes the temporary library directory.
12501 hardcode_action=relink
12503 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12504 hardcode_action=immediate
12507 # We cannot hardcode anything, or else we can only hardcode existing
12509 hardcode_action=unsupported
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12512 $as_echo "$hardcode_action" >&6; }
12514 if test "$hardcode_action" = relink ||
12515 test "$inherit_rpath" = yes; then
12516 # Fast installation is not supported
12517 enable_fast_install=no
12518 elif test "$shlibpath_overrides_runpath" = yes ||
12519 test "$enable_shared" = no; then
12520 # Fast installation is not necessary
12521 enable_fast_install=needless
12529 if test "x$enable_dlopen" != xyes; then
12530 enable_dlopen=unknown
12531 enable_dlopen_self=unknown
12532 enable_dlopen_self_static=unknown
12539 lt_cv_dlopen="load_add_on"
12541 lt_cv_dlopen_self=yes
12544 mingw* | pw32* | cegcc*)
12545 lt_cv_dlopen="LoadLibrary"
12550 lt_cv_dlopen="dlopen"
12555 # if libdl is installed we need to link against it
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12561 ac_check_lib_save_LIBS=$LIBS
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12581 if ac_fn_c_try_link "$LINENO"; then :
12582 ac_cv_lib_dl_dlopen=yes
12584 ac_cv_lib_dl_dlopen=no
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12592 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12596 lt_cv_dlopen="dyld"
12598 lt_cv_dlopen_self=yes
12605 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12606 if test "x$ac_cv_func_shl_load" = x""yes; then :
12607 lt_cv_dlopen="shl_load"
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12610 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 ac_check_lib_save_LIBS=$LIBS
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12629 return shl_load ();
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_lib_dld_shl_load=yes
12637 ac_cv_lib_dld_shl_load=no
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12644 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12645 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12646 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12648 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12649 if test "x$ac_cv_func_dlopen" = x""yes; then :
12650 lt_cv_dlopen="dlopen"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
12657 ac_check_lib_save_LIBS=$LIBS
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12677 if ac_fn_c_try_link "$LINENO"; then :
12678 ac_cv_lib_dl_dlopen=yes
12680 ac_cv_lib_dl_dlopen=no
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12687 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12688 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12692 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12693 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12696 ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-lsvld $LIBS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_lib_svld_dlopen=yes
12719 ac_cv_lib_svld_dlopen=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12726 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12727 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12731 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12750 return dld_link ();
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_lib_dld_dld_link=yes
12758 ac_cv_lib_dld_dld_link=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12765 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12766 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12788 if test "x$lt_cv_dlopen" != xno; then
12794 case $lt_cv_dlopen in
12796 save_CPPFLAGS="$CPPFLAGS"
12797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12799 save_LDFLAGS="$LDFLAGS"
12800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12803 LIBS="$lt_cv_dlopen_libs $LIBS"
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12806 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12807 if test "${lt_cv_dlopen_self+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12810 if test "$cross_compiling" = yes; then :
12811 lt_cv_dlopen_self=cross
12813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12814 lt_status=$lt_dlunknown
12815 cat > conftest.$ac_ext <<_LT_EOF
12816 #line $LINENO "configure"
12817 #include "confdefs.h"
12826 # define LT_DLGLOBAL RTLD_GLOBAL
12829 # define LT_DLGLOBAL DL_GLOBAL
12831 # define LT_DLGLOBAL 0
12835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12836 find out it does not work in some platform. */
12837 #ifndef LT_DLLAZY_OR_NOW
12839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12842 # define LT_DLLAZY_OR_NOW DL_LAZY
12845 # define LT_DLLAZY_OR_NOW RTLD_NOW
12848 # define LT_DLLAZY_OR_NOW DL_NOW
12850 # define LT_DLLAZY_OR_NOW 0
12857 /* When -fvisbility=hidden is used, assume the code has been annotated
12858 correspondingly for the symbols needed. */
12859 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12860 int fnord () __attribute__((visibility("default")));
12863 int fnord () { return 42; }
12866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12867 int status = $lt_dlunknown;
12871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12874 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12875 else puts (dlerror ());
12877 /* dlclose (self); */
12885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12886 (eval $ac_link) 2>&5
12888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12890 (./conftest; exit; ) >&5 2>/dev/null
12892 case x$lt_status in
12893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12895 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12898 # compilation failed
12899 lt_cv_dlopen_self=no
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12907 $as_echo "$lt_cv_dlopen_self" >&6; }
12909 if test "x$lt_cv_dlopen_self" = xyes; then
12910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12912 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12913 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 if test "$cross_compiling" = yes; then :
12917 lt_cv_dlopen_self_static=cross
12919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12920 lt_status=$lt_dlunknown
12921 cat > conftest.$ac_ext <<_LT_EOF
12922 #line $LINENO "configure"
12923 #include "confdefs.h"
12932 # define LT_DLGLOBAL RTLD_GLOBAL
12935 # define LT_DLGLOBAL DL_GLOBAL
12937 # define LT_DLGLOBAL 0
12941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12942 find out it does not work in some platform. */
12943 #ifndef LT_DLLAZY_OR_NOW
12945 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12948 # define LT_DLLAZY_OR_NOW DL_LAZY
12951 # define LT_DLLAZY_OR_NOW RTLD_NOW
12954 # define LT_DLLAZY_OR_NOW DL_NOW
12956 # define LT_DLLAZY_OR_NOW 0
12963 /* When -fvisbility=hidden is used, assume the code has been annotated
12964 correspondingly for the symbols needed. */
12965 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12966 int fnord () __attribute__((visibility("default")));
12969 int fnord () { return 42; }
12972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12973 int status = $lt_dlunknown;
12977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12980 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12981 else puts (dlerror ());
12983 /* dlclose (self); */
12991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12992 (eval $ac_link) 2>&5
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12996 (./conftest; exit; ) >&5 2>/dev/null
12998 case x$lt_status in
12999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13004 # compilation failed
13005 lt_cv_dlopen_self_static=no
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13013 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13016 CPPFLAGS="$save_CPPFLAGS"
13017 LDFLAGS="$save_LDFLAGS"
13022 case $lt_cv_dlopen_self in
13023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13024 *) enable_dlopen_self=unknown ;;
13027 case $lt_cv_dlopen_self_static in
13028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13029 *) enable_dlopen_self_static=unknown ;;
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13052 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13053 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13055 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057 $as_echo "yes" >&6; }
13059 # FIXME - insert some real tests, host_os isn't really good enough
13062 if test -n "$STRIP" ; then
13063 striplib="$STRIP -x"
13064 old_striplib="$STRIP -S"
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13090 # Report which library types will actually be built
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13094 $as_echo "$can_build_shared" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13097 $as_echo_n "checking whether to build shared libraries... " >&6; }
13098 test "$can_build_shared" = "no" && enable_shared=no
13100 # On AIX, shared libraries and static libraries use the same namespace, and
13101 # are all built from PIC.
13104 test "$enable_shared" = yes && enable_static=no
13105 if test -n "$RANLIB"; then
13106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13107 postinstall_cmds='$RANLIB $lib'
13112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13113 test "$enable_shared" = yes && enable_static=no
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13118 $as_echo "$enable_shared" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13121 $as_echo_n "checking whether to build static libraries... " >&6; }
13122 # Make sure either enable_shared or enable_static is yes.
13123 test "$enable_shared" = yes || enable_static=yes
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13125 $as_echo "$enable_static" >&6; }
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13140 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13141 (test "X$CXX" != "Xg++"))) ; then
13143 ac_cpp='$CXXCPP $CPPFLAGS'
13144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13148 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13149 if test -z "$CXXCPP"; then
13150 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 # Double quotes because CXXCPP needs to be expanded
13154 for CXXCPP in "$CXX -E" "/lib/cpp"
13156 ac_preproc_ok=false
13157 for ac_cxx_preproc_warn_flag in '' yes
13159 # Use a header file that comes with gcc, so configuring glibc
13160 # with a fresh cross-compiler works.
13161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162 # <limits.h> exists even on freestanding compilers.
13163 # On the NeXT, cc -E runs the code through the compiler's parser,
13164 # not just through cpp. "Syntax error" is here to catch this case.
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 # include <limits.h>
13170 # include <assert.h>
13174 if ac_fn_cxx_try_cpp "$LINENO"; then :
13177 # Broken: fails on valid input.
13180 rm -f conftest.err conftest.$ac_ext
13182 # OK, works on sane cases. Now check whether nonexistent headers
13183 # can be detected and how.
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <ac_nonexistent.h>
13188 if ac_fn_cxx_try_cpp "$LINENO"; then :
13189 # Broken: success on invalid input.
13192 # Passes both tests.
13196 rm -f conftest.err conftest.$ac_ext
13199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13200 rm -f conftest.err conftest.$ac_ext
13201 if $ac_preproc_ok; then :
13206 ac_cv_prog_CXXCPP=$CXXCPP
13209 CXXCPP=$ac_cv_prog_CXXCPP
13211 ac_cv_prog_CXXCPP=$CXXCPP
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13214 $as_echo "$CXXCPP" >&6; }
13215 ac_preproc_ok=false
13216 for ac_cxx_preproc_warn_flag in '' yes
13218 # Use a header file that comes with gcc, so configuring glibc
13219 # with a fresh cross-compiler works.
13220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13221 # <limits.h> exists even on freestanding compilers.
13222 # On the NeXT, cc -E runs the code through the compiler's parser,
13223 # not just through cpp. "Syntax error" is here to catch this case.
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13227 # include <limits.h>
13229 # include <assert.h>
13233 if ac_fn_cxx_try_cpp "$LINENO"; then :
13236 # Broken: fails on valid input.
13239 rm -f conftest.err conftest.$ac_ext
13241 # OK, works on sane cases. Now check whether nonexistent headers
13242 # can be detected and how.
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13245 #include <ac_nonexistent.h>
13247 if ac_fn_cxx_try_cpp "$LINENO"; then :
13248 # Broken: success on invalid input.
13251 # Passes both tests.
13255 rm -f conftest.err conftest.$ac_ext
13258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13259 rm -f conftest.err conftest.$ac_ext
13260 if $ac_preproc_ok; then :
13263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13265 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13266 See \`config.log' for more details." "$LINENO" 5; }
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13276 _lt_caught_CXX_error=yes
13280 ac_cpp='$CXXCPP $CPPFLAGS'
13281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13285 archive_cmds_need_lc_CXX=no
13286 allow_undefined_flag_CXX=
13287 always_export_symbols_CXX=no
13288 archive_expsym_cmds_CXX=
13289 compiler_needs_object_CXX=no
13290 export_dynamic_flag_spec_CXX=
13291 hardcode_direct_CXX=no
13292 hardcode_direct_absolute_CXX=no
13293 hardcode_libdir_flag_spec_CXX=
13294 hardcode_libdir_flag_spec_ld_CXX=
13295 hardcode_libdir_separator_CXX=
13296 hardcode_minus_L_CXX=no
13297 hardcode_shlibpath_var_CXX=unsupported
13298 hardcode_automatic_CXX=no
13299 inherit_rpath_CXX=no
13301 module_expsym_cmds_CXX=
13302 link_all_deplibs_CXX=unknown
13303 old_archive_cmds_CXX=$old_archive_cmds
13304 reload_flag_CXX=$reload_flag
13305 reload_cmds_CXX=$reload_cmds
13306 no_undefined_flag_CXX=
13307 whole_archive_flag_spec_CXX=
13308 enable_shared_with_static_runtimes_CXX=no
13310 # Source file extension for C++ test sources.
13313 # Object file extension for compiled C++ test sources.
13317 # No sense in running all these tests if we already determined that
13318 # the CXX compiler isn't working. Some variables (like enable_shared)
13319 # are currently assumed to apply to all compilers on this platform,
13320 # and will be corrupted by setting them based on a non-working compiler.
13321 if test "$_lt_caught_CXX_error" != yes; then
13322 # Code to be used in simple compile tests
13323 lt_simple_compile_test_code="int some_variable = 0;"
13325 # Code to be used in simple link tests
13326 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13328 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13335 # If no C compiler was specified, use CC.
13338 # If no C compiler flags were specified, use CFLAGS.
13339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13341 # Allow CC to be a program name with arguments.
13345 # save warnings/boilerplate of simple test code
13346 ac_outfile=conftest.$ac_objext
13347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13349 _lt_compiler_boilerplate=`cat conftest.err`
13352 ac_outfile=conftest.$ac_objext
13353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13355 _lt_linker_boilerplate=`cat conftest.err`
13359 # Allow CC to be a program name with arguments.
13361 lt_save_CFLAGS=$CFLAGS
13365 lt_save_with_gnu_ld=$with_gnu_ld
13366 lt_save_path_LD=$lt_cv_path_LD
13367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13370 $as_unset lt_cv_prog_gnu_ld
13372 if test -n "${lt_cv_path_LDCXX+set}"; then
13373 lt_cv_path_LD=$lt_cv_path_LDCXX
13375 $as_unset lt_cv_path_LD
13377 test -z "${LDCXX+set}" || LD=$LDCXX
13382 for cc_temp in $compiler""; do
13384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13393 if test -n "$compiler"; then
13394 # We don't want -fno-exception when compiling C++ code, so set the
13395 # no_builtin_flag separately
13396 if test "$GXX" = yes; then
13397 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13399 lt_prog_compiler_no_builtin_flag_CXX=
13402 if test "$GXX" = yes; then
13403 # Set up default GNU C++ configuration
13407 # Check whether --with-gnu-ld was given.
13408 if test "${with_gnu_ld+set}" = set; then :
13409 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13415 if test "$GCC" = yes; then
13416 # Check if gcc -print-prog-name=ld gives a path.
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13418 $as_echo_n "checking for ld used by $CC... " >&6; }
13421 # gcc leaves a trailing carriage return which upsets mingw
13422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13427 # Accept absolute paths.
13429 re_direlt='/[^/][^/]*/\.\./'
13430 # Canonicalize the pathname of ld
13431 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13432 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13433 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13435 test -z "$LD" && LD="$ac_prog"
13438 # If it fails, then pretend we aren't using GCC.
13442 # If it is relative, then search for the first ld in PATH.
13443 with_gnu_ld=unknown
13446 elif test "$with_gnu_ld" = yes; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13448 $as_echo_n "checking for GNU ld... " >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13451 $as_echo_n "checking for non-GNU ld... " >&6; }
13453 if test "${lt_cv_path_LD+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13456 if test -z "$LD"; then
13457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13458 for ac_dir in $PATH; do
13460 test -z "$ac_dir" && ac_dir=.
13461 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13462 lt_cv_path_LD="$ac_dir/$ac_prog"
13463 # Check to see if the program is GNU ld. I'd rather use --version,
13464 # but apparently some variants of GNU ld only accept -v.
13465 # Break only if it was the GNU/non-GNU ld that we prefer.
13466 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13467 *GNU* | *'with BFD'*)
13468 test "$with_gnu_ld" != no && break
13471 test "$with_gnu_ld" != yes && break
13478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13482 LD="$lt_cv_path_LD"
13483 if test -n "$LD"; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13485 $as_echo "$LD" >&6; }
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13490 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13493 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
13496 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13497 case `$LD -v 2>&1 </dev/null` in
13498 *GNU* | *'with BFD'*)
13499 lt_cv_prog_gnu_ld=yes
13502 lt_cv_prog_gnu_ld=no
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13508 with_gnu_ld=$lt_cv_prog_gnu_ld
13516 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13517 # archiving commands below assume that GNU ld is being used.
13518 if test "$with_gnu_ld" = yes; then
13519 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 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'
13522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13525 # If archive_cmds runs LD, not CC, wlarc should be empty
13526 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13527 # investigate it a little bit more. (MM)
13530 # ancient GNU ld didn't support --whole-archive et. al.
13531 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13532 $GREP 'no-whole-archive' > /dev/null; then
13533 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13535 whole_archive_flag_spec_CXX=
13541 # A generic and very simple default shared library creation
13542 # command for GNU C++ for the case where it uses the native
13543 # linker, instead of GNU ld. If possible, this setting should
13544 # overridden to take advantage of the native linker features on
13545 # the platform it is being used on.
13546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13549 # Commands to make compiler produce verbose output that lists
13550 # what "hidden" libraries, object files and flags are used when
13551 # linking a shared library.
13552 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13560 # PORTME: fill in a description of your system's C++ link characteristics
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13562 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13566 # FIXME: insert proper C++ library support
13570 if test "$host_cpu" = ia64; then
13571 # On IA64, the linker does run time linking by default, so we don't
13572 # have to do anything special.
13573 aix_use_runtimelinking=no
13574 exp_sym_flag='-Bexport'
13577 aix_use_runtimelinking=no
13579 # Test if we are trying to use run time linking or normal
13580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13581 # need to do runtime linking.
13582 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13583 for ld_flag in $LDFLAGS; do
13586 aix_use_runtimelinking=yes
13594 exp_sym_flag='-bexport'
13595 no_entry_flag='-bnoentry'
13598 # When large executables or shared objects are built, AIX ld can
13599 # have problems creating the table of contents. If linking a library
13600 # or program results in "error TOC overflow" add -mminimal-toc to
13601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13604 archive_cmds_CXX=''
13605 hardcode_direct_CXX=yes
13606 hardcode_direct_absolute_CXX=yes
13607 hardcode_libdir_separator_CXX=':'
13608 link_all_deplibs_CXX=yes
13609 file_list_spec_CXX='${wl}-f,'
13611 if test "$GXX" = yes; then
13612 case $host_os in aix4.[012]|aix4.[012].*)
13613 # We only want to do this on AIX 4.2 and lower, the check
13614 # below for broken collect2 doesn't work under 4.3+
13615 collect2name=`${CC} -print-prog-name=collect2`
13616 if test -f "$collect2name" &&
13617 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13619 # We have reworked collect2
13622 # We have old collect2
13623 hardcode_direct_CXX=unsupported
13624 # It fails to find uninstalled libraries when the uninstalled
13625 # path is not listed in the libpath. Setting hardcode_minus_L
13626 # to unsupported forces relinking
13627 hardcode_minus_L_CXX=yes
13628 hardcode_libdir_flag_spec_CXX='-L$libdir'
13629 hardcode_libdir_separator_CXX=
13632 shared_flag='-shared'
13633 if test "$aix_use_runtimelinking" = yes; then
13634 shared_flag="$shared_flag "'${wl}-G'
13638 if test "$host_cpu" = ia64; then
13639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13640 # chokes on -Wl,-G. The following line is correct:
13643 if test "$aix_use_runtimelinking" = yes; then
13644 shared_flag='${wl}-G'
13646 shared_flag='${wl}-bM:SRE'
13651 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13652 # It seems that -bexpall does not export symbols beginning with
13653 # underscore (_), so it is better to generate a list of symbols to
13655 always_export_symbols_CXX=yes
13656 if test "$aix_use_runtimelinking" = yes; then
13657 # Warning - without using the other runtime loading flags (-brtl),
13658 # -berok will link without error, but may produce a broken library.
13659 allow_undefined_flag_CXX='-berok'
13660 # Determine the default libpath from the value encoded in an empty
13662 if test "${lt_cv_aix_libpath+set}" = set; then
13663 aix_libpath=$lt_cv_aix_libpath
13665 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13679 if ac_fn_cxx_try_link "$LINENO"; then :
13681 lt_aix_libpath_sed='
13682 /Import File Strings/,/^$/ {
13684 s/^0 *\([^ ]*\) *$/\1/
13688 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13689 # Check for a 64-bit object if we didn't find anything.
13690 if test -z "$lt_cv_aix_libpath__CXX"; then
13691 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 if test -z "$lt_cv_aix_libpath__CXX"; then
13697 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13702 aix_libpath=$lt_cv_aix_libpath__CXX
13705 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13707 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"
13709 if test "$host_cpu" = ia64; then
13710 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13711 allow_undefined_flag_CXX="-z nodefs"
13712 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"
13714 # Determine the default libpath from the value encoded in an
13715 # empty executable.
13716 if test "${lt_cv_aix_libpath+set}" = set; then
13717 aix_libpath=$lt_cv_aix_libpath
13719 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13733 if ac_fn_cxx_try_link "$LINENO"; then :
13735 lt_aix_libpath_sed='
13736 /Import File Strings/,/^$/ {
13738 s/^0 *\([^ ]*\) *$/\1/
13742 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13743 # Check for a 64-bit object if we didn't find anything.
13744 if test -z "$lt_cv_aix_libpath__CXX"; then
13745 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13748 rm -f core conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
13750 if test -z "$lt_cv_aix_libpath__CXX"; then
13751 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13756 aix_libpath=$lt_cv_aix_libpath__CXX
13759 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13760 # Warning - without using the other run time loading flags,
13761 # -berok will link without error, but may produce a broken library.
13762 no_undefined_flag_CXX=' ${wl}-bernotok'
13763 allow_undefined_flag_CXX=' ${wl}-berok'
13764 if test "$with_gnu_ld" = yes; then
13765 # We only use this code for GNU lds that support --whole-archive.
13766 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13768 # Exported symbols can be pulled into shared objects from archives
13769 whole_archive_flag_spec_CXX='$convenience'
13771 archive_cmds_need_lc_CXX=yes
13772 # This is similar to how AIX traditionally builds its shared
13774 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'
13780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13781 allow_undefined_flag_CXX=unsupported
13782 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13783 # support --undefined. This deserves some investigation. FIXME
13784 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13791 case $cc_basename in
13793 # FIXME: insert proper C++ library support
13799 cygwin* | mingw* | pw32* | cegcc*)
13800 case $GXX,$cc_basename in
13803 # hardcode_libdir_flag_spec is actually meaningless, as there is
13804 # no search path for DLLs.
13805 hardcode_libdir_flag_spec_CXX=' '
13806 allow_undefined_flag_CXX=unsupported
13807 always_export_symbols_CXX=yes
13808 file_list_spec_CXX='@'
13809 # Tell ltmain to make .lib files, not .a files.
13811 # Tell ltmain to make .dll files, not .so files.
13813 # FIXME: Setting linknames here is a bad hack.
13814 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13815 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13816 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13818 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13820 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13822 # The linker will not automatically build a static lib if we build a DLL.
13823 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13824 enable_shared_with_static_runtimes_CXX=yes
13826 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13827 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13828 lt_tool_outputfile="@TOOL_OUTPUT@"~
13829 case $lt_outputfile in
13832 lt_outputfile="$lt_outputfile.exe"
13833 lt_tool_outputfile="$lt_tool_outputfile.exe"
13836 func_to_tool_file "$lt_outputfile"~
13837 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13838 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13839 $RM "$lt_outputfile.manifest";
13844 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13845 # as there is no search path for DLLs.
13846 hardcode_libdir_flag_spec_CXX='-L$libdir'
13847 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13848 allow_undefined_flag_CXX=unsupported
13849 always_export_symbols_CXX=no
13850 enable_shared_with_static_runtimes_CXX=yes
13852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13853 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'
13854 # If the export-symbols file already is a .def file (1st line
13855 # is EXPORTS), use it as is; otherwise, prepend...
13856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857 cp $export_symbols $output_objdir/$soname.def;
13859 echo EXPORTS > $output_objdir/$soname.def;
13860 cat $export_symbols >> $output_objdir/$soname.def;
13862 $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'
13869 darwin* | rhapsody*)
13872 archive_cmds_need_lc_CXX=no
13873 hardcode_direct_CXX=no
13874 hardcode_automatic_CXX=yes
13875 hardcode_shlibpath_var_CXX=unsupported
13876 if test "$lt_cv_ld_force_load" = "yes"; then
13877 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\"`'
13879 whole_archive_flag_spec_CXX=''
13881 link_all_deplibs_CXX=yes
13882 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13883 case $cc_basename in
13884 ifort*) _lt_dar_can_shared=yes ;;
13885 *) _lt_dar_can_shared=$GCC ;;
13887 if test "$_lt_dar_can_shared" = "yes"; then
13888 output_verbose_link_cmd=func_echo_all
13889 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}"
13890 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13891 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}"
13892 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}"
13893 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13894 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}"
13895 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}"
13905 case $cc_basename in
13907 # FIXME: insert proper C++ library support
13911 # Green Hills C++ Compiler
13912 # FIXME: insert proper C++ library support
13916 # FIXME: insert proper C++ library support
13923 # C++ shared libraries reported to be fairly broken before
13929 archive_cmds_need_lc_CXX=no
13932 freebsd* | dragonfly*)
13933 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13942 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13943 link_all_deplibs_CXX=yes
13947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13948 hardcode_libdir_separator_CXX=:
13949 export_dynamic_flag_spec_CXX='${wl}-E'
13950 hardcode_direct_CXX=yes
13951 hardcode_minus_L_CXX=yes # Not in the search PATH,
13952 # but as the default
13953 # location of the library.
13955 case $cc_basename in
13957 # FIXME: insert proper C++ library support
13961 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'
13962 # Commands to make compiler produce verbose output that lists
13963 # what "hidden" libraries, object files and flags are used when
13964 # linking a shared library.
13966 # There doesn't appear to be a way to prevent this compiler from
13967 # explicitly linking system object files so we need to strip them
13968 # from the output so that they don't get included in the library
13970 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"'
13973 if test "$GXX" = yes; then
13974 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'
13976 # FIXME: insert proper C++ library support
13984 if test $with_gnu_ld = no; then
13985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13986 hardcode_libdir_separator_CXX=:
13992 export_dynamic_flag_spec_CXX='${wl}-E'
13998 hardcode_direct_CXX=no
13999 hardcode_shlibpath_var_CXX=no
14002 hardcode_direct_CXX=yes
14003 hardcode_direct_absolute_CXX=yes
14004 hardcode_minus_L_CXX=yes # Not in the search PATH,
14005 # but as the default
14006 # location of the library.
14010 case $cc_basename in
14012 # FIXME: insert proper C++ library support
14018 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14021 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14027 # Commands to make compiler produce verbose output that lists
14028 # what "hidden" libraries, object files and flags are used when
14029 # linking a shared library.
14031 # There doesn't appear to be a way to prevent this compiler from
14032 # explicitly linking system object files so we need to strip them
14033 # from the output so that they don't get included in the library
14035 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"'
14038 if test "$GXX" = yes; then
14039 if test $with_gnu_ld = no; then
14042 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048 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'
14053 # FIXME: insert proper C++ library support
14061 hardcode_direct_CXX=no
14062 hardcode_shlibpath_var_CXX=no
14063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14064 export_dynamic_flag_spec_CXX='${wl}-E'
14065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14066 # Instead, shared libraries are loaded at an image base (0x10000000 by
14067 # default) and relocated if they conflict, which is a slow very memory
14068 # consuming and fragmenting process. To avoid this, we pick a random,
14069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14071 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'
14072 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'
14075 case $cc_basename in
14078 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'
14080 # Archives containing C++ object files must be created using
14081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14082 # necessary to make sure instantiated templates are included
14084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14087 if test "$GXX" = yes; then
14088 if test "$with_gnu_ld" = no; then
14089 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'
14091 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'
14094 link_all_deplibs_CXX=yes
14097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14098 hardcode_libdir_separator_CXX=:
14099 inherit_rpath_CXX=yes
14102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14103 case $cc_basename in
14105 # Kuck and Associates, Inc. (KAI) C++ Compiler
14107 # KCC will only create a shared library if the output file
14108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14109 # to its proper name (with version) after linking.
14110 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'
14111 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'
14112 # Commands to make compiler produce verbose output that lists
14113 # what "hidden" libraries, object files and flags are used when
14114 # linking a shared library.
14116 # There doesn't appear to be a way to prevent this compiler from
14117 # explicitly linking system object files so we need to strip them
14118 # from the output so that they don't get included in the library
14120 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"'
14122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14125 # Archives containing C++ object files must be created using
14126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14132 # version 8.0 and above of icpc choke on multiply defined symbols
14133 # if we add $predep_objects and $postdep_objects, however 7.1 and
14134 # earlier do not add the objects themselves.
14135 case `$CC -V 2>&1` in
14137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138 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'
14140 *) # Version 8.0 or newer
14143 ia64*) tmp_idyn=' -i_dynamic';;
14145 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146 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'
14149 archive_cmds_need_lc_CXX=no
14150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14155 # Portland Group C++ compiler
14157 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14158 prelink_cmds_CXX='tpldir=Template.dir~
14160 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14161 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14162 old_archive_cmds_CXX='tpldir=Template.dir~
14164 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14165 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14167 archive_cmds_CXX='tpldir=Template.dir~
14169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14170 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14171 archive_expsym_cmds_CXX='tpldir=Template.dir~
14173 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14174 $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'
14176 *) # Version 6 and above use weak symbols
14177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14178 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'
14182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14184 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'
14188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189 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'
14191 runpath_var=LD_RUN_PATH
14192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14193 hardcode_libdir_separator_CXX=:
14195 # Commands to make compiler produce verbose output that lists
14196 # what "hidden" libraries, object files and flags are used when
14197 # linking a shared library.
14199 # There doesn't appear to be a way to prevent this compiler from
14200 # explicitly linking system object files so we need to strip them
14201 # from the output so that they don't get included in the library
14203 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'
14205 xl* | mpixl* | bgxl*)
14206 # IBM XL 8.0 on PPC, with GNU ld
14207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14209 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210 if test "x$supports_anon_versioning" = xyes; then
14211 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14213 echo "local: *; };" >> $output_objdir/$libname.ver~
14214 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14218 case `$CC -V 2>&1 | sed 5q` in
14221 no_undefined_flag_CXX=' -zdefs'
14222 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14223 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'
14224 hardcode_libdir_flag_spec_CXX='-R$libdir'
14225 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'
14226 compiler_needs_object_CXX=yes
14228 # Not sure whether something based on
14229 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14231 output_verbose_link_cmd='func_echo_all'
14233 # Archives containing C++ object files must be created using
14234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14235 # necessary to make sure instantiated templates are included
14237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14245 # FIXME: insert proper C++ library support
14250 # FIXME: insert proper C++ library support
14255 case $cc_basename in
14257 # FIXME: insert proper C++ library support
14261 # FIXME: insert proper C++ library support
14268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14269 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14271 hardcode_libdir_flag_spec_CXX='-R$libdir'
14272 hardcode_direct_CXX=yes
14273 hardcode_shlibpath_var_CXX=no
14275 # Workaround some broken pre-1.5 toolchains
14276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14284 # C++ shared libraries are fairly broken
14289 if test -f /usr/libexec/ld.so; then
14290 hardcode_direct_CXX=yes
14291 hardcode_shlibpath_var_CXX=no
14292 hardcode_direct_absolute_CXX=yes
14293 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14297 export_dynamic_flag_spec_CXX='${wl}-E'
14298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14300 output_verbose_link_cmd=func_echo_all
14306 osf3* | osf4* | osf5*)
14307 case $cc_basename in
14309 # Kuck and Associates, Inc. (KAI) C++ Compiler
14311 # KCC will only create a shared library if the output file
14312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14313 # to its proper name (with version) after linking.
14314 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'
14316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14317 hardcode_libdir_separator_CXX=:
14319 # Archives containing C++ object files must be created using
14320 # the KAI C++ compiler.
14322 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14323 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14327 # Rational C++ 2.4.1
14328 # FIXME: insert proper C++ library support
14334 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14335 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'
14336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14339 allow_undefined_flag_CXX=' -expect_unresolved \*'
14340 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'
14341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14342 echo "-hidden">> $lib.exp~
14343 $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~
14345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14349 hardcode_libdir_separator_CXX=:
14351 # Commands to make compiler produce verbose output that lists
14352 # what "hidden" libraries, object files and flags are used when
14353 # linking a shared library.
14355 # There doesn't appear to be a way to prevent this compiler from
14356 # explicitly linking system object files so we need to strip them
14357 # from the output so that they don't get included in the library
14359 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"'
14362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14366 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'
14369 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'
14373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14374 hardcode_libdir_separator_CXX=:
14376 # Commands to make compiler produce verbose output that lists
14377 # what "hidden" libraries, object files and flags are used when
14378 # linking a shared library.
14379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14382 # FIXME: insert proper C++ library support
14390 # FIXME: insert proper C++ library support
14395 case $cc_basename in
14398 # FIXME: insert proper C++ library support
14403 # FIXME: insert proper C++ library support
14407 # FIXME: insert proper C++ library support
14414 case $cc_basename in
14416 # Sun C++ 4.2, 5.x and Centerline C++
14417 archive_cmds_need_lc_CXX=yes
14418 no_undefined_flag_CXX=' -zdefs'
14419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14421 $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'
14423 hardcode_libdir_flag_spec_CXX='-R$libdir'
14424 hardcode_shlibpath_var_CXX=no
14426 solaris2.[0-5] | solaris2.[0-5].*) ;;
14428 # The compiler driver will combine and reorder linker options,
14429 # but understands `-z linker_flag'.
14430 # Supported since Solaris 2.6 (maybe 2.5.1?)
14431 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14434 link_all_deplibs_CXX=yes
14436 output_verbose_link_cmd='func_echo_all'
14438 # Archives containing C++ object files must be created using
14439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14440 # necessary to make sure instantiated templates are included
14442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14445 # Green Hills C++ Compiler
14446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14448 # The C++ compiler must be used to create the archive.
14449 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14452 # GNU C++ compiler with Solaris linker
14453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14454 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14455 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14456 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14458 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14460 # Commands to make compiler produce verbose output that lists
14461 # what "hidden" libraries, object files and flags are used when
14462 # linking a shared library.
14463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14465 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14467 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14469 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14471 # Commands to make compiler produce verbose output that lists
14472 # what "hidden" libraries, object files and flags are used when
14473 # linking a shared library.
14474 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14477 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14479 solaris2.[0-5] | solaris2.[0-5].*) ;;
14481 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14490 no_undefined_flag_CXX='${wl}-z,text'
14491 archive_cmds_need_lc_CXX=no
14492 hardcode_shlibpath_var_CXX=no
14493 runpath_var='LD_RUN_PATH'
14495 case $cc_basename in
14497 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 sysv5* | sco3.2v5* | sco5v6*)
14508 # Note: We can NOT use -z defs as we might desire, because we do not
14509 # link with -lc, and that would cause any symbols used from libc to
14510 # always be unresolved, which means just about no library would
14511 # ever link correctly. If we're not using GNU ld we use -z text
14512 # though, which does catch some bad symbols but isn't as heavy-handed
14514 no_undefined_flag_CXX='${wl}-z,text'
14515 allow_undefined_flag_CXX='${wl}-z,nodefs'
14516 archive_cmds_need_lc_CXX=no
14517 hardcode_shlibpath_var_CXX=no
14518 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14519 hardcode_libdir_separator_CXX=':'
14520 link_all_deplibs_CXX=yes
14521 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14522 runpath_var='LD_RUN_PATH'
14524 case $cc_basename in
14526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14529 '"$old_archive_cmds_CXX"
14530 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14531 '"$reload_cmds_CXX"
14534 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 case $cc_basename in
14543 # NonStop-UX NCC 3.20
14544 # FIXME: insert proper C++ library support
14548 # FIXME: insert proper C++ library support
14555 # FIXME: insert proper C++ library support
14560 # FIXME: insert proper C++ library support
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14566 $as_echo "$ld_shlibs_CXX" >&6; }
14567 test "$ld_shlibs_CXX" = no && can_build_shared=no
14573 ## There is no encapsulation within the following macros, do not change
14574 ## the running order or otherwise move them around unless you know exactly
14575 ## what you are doing...
14576 # Dependencies to place before and after the object being linked:
14577 predep_objects_CXX=
14578 postdep_objects_CXX=
14581 compiler_lib_search_path_CXX=
14583 cat > conftest.$ac_ext <<_LT_EOF
14587 Foo (void) { a = 0; }
14594 _lt_libdeps_save_CFLAGS=$CFLAGS
14595 case "$CC $CFLAGS " in #(
14596 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14597 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601 (eval $ac_compile) 2>&5
14603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; }; then
14605 # Parse the compiler output and extract the necessary
14606 # objects, libraries and library flags.
14608 # Sentinel used to keep track of whether or not we are before
14609 # the conftest object file.
14610 pre_test_object_deps_done=no
14612 for p in `eval "$output_verbose_link_cmd"`; do
14613 case ${prev}${p} in
14616 # Some compilers place space between "-{L,R}" and the path.
14617 # Remove the space.
14618 if test $p = "-L" ||
14619 test $p = "-R"; then
14624 # Expand the sysroot to ease extracting the directories later.
14625 if test -z "$prev"; then
14627 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14628 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14629 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14633 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14635 if test "$pre_test_object_deps_done" = no; then
14638 # Internal compiler library paths should come after those
14639 # provided the user. The postdeps already come after the
14640 # user supplied libs so there is no need to process them.
14641 if test -z "$compiler_lib_search_path_CXX"; then
14642 compiler_lib_search_path_CXX="${prev}${p}"
14644 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14647 # The "-l" case would never come before the object being
14648 # linked, so don't bother handling this case.
14651 if test -z "$postdeps_CXX"; then
14652 postdeps_CXX="${prev}${p}"
14654 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14660 *.lto.$objext) ;; # Ignore GCC LTO objects
14662 # This assumes that the test object file only shows up
14663 # once in the compiler output.
14664 if test "$p" = "conftest.$objext"; then
14665 pre_test_object_deps_done=yes
14669 if test "$pre_test_object_deps_done" = no; then
14670 if test -z "$predep_objects_CXX"; then
14671 predep_objects_CXX="$p"
14673 predep_objects_CXX="$predep_objects_CXX $p"
14676 if test -z "$postdep_objects_CXX"; then
14677 postdep_objects_CXX="$p"
14679 postdep_objects_CXX="$postdep_objects_CXX $p"
14684 *) ;; # Ignore the rest.
14692 echo "libtool.m4: error: problem compiling CXX test program"
14695 $RM -f confest.$objext
14696 CFLAGS=$_lt_libdeps_save_CFLAGS
14698 # PORTME: override above test on systems where it is broken
14701 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14702 # hack all around it, let's just trust "g++" to DTRT.
14703 predep_objects_CXX=
14704 postdep_objects_CXX=
14709 case `$CC -V 2>&1 | sed 5q` in
14713 # The more standards-conforming stlport4 library is
14714 # incompatible with the Cstd library. Avoid specifying
14715 # it if it's in CXXFLAGS. Ignore libCrun as
14716 # -library=stlport4 depends on it.
14717 case " $CXX $CXXFLAGS " in
14718 *" -library=stlport4 "*)
14719 solaris_use_stlport4=yes
14723 if test "$solaris_use_stlport4" != yes; then
14724 postdeps_CXX='-library=Cstd -library=Crun'
14731 case $cc_basename in
14733 # The more standards-conforming stlport4 library is
14734 # incompatible with the Cstd library. Avoid specifying
14735 # it if it's in CXXFLAGS. Ignore libCrun as
14736 # -library=stlport4 depends on it.
14737 case " $CXX $CXXFLAGS " in
14738 *" -library=stlport4 "*)
14739 solaris_use_stlport4=yes
14743 # Adding this requires a known-good setup of shared libraries for
14744 # Sun compiler versions before 5.6, else PIC objects from an old
14745 # archive will be linked into the output, leading to subtle bugs.
14746 if test "$solaris_use_stlport4" != yes; then
14747 postdeps_CXX='-library=Cstd -library=Crun'
14755 case " $postdeps_CXX " in
14756 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14758 compiler_lib_search_dirs_CXX=
14759 if test -n "${compiler_lib_search_path_CXX}"; then
14760 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14793 lt_prog_compiler_wl_CXX=
14794 lt_prog_compiler_pic_CXX=
14795 lt_prog_compiler_static_CXX=
14798 # C++ specific cases for pic, static, wl, etc.
14799 if test "$GXX" = yes; then
14800 lt_prog_compiler_wl_CXX='-Wl,'
14801 lt_prog_compiler_static_CXX='-static'
14805 # All AIX code is PIC.
14806 if test "$host_cpu" = ia64; then
14807 # AIX 5 now supports IA64 processor
14808 lt_prog_compiler_static_CXX='-Bstatic'
14815 # see comment about AmigaOS4 .so support
14816 lt_prog_compiler_pic_CXX='-fPIC'
14819 # FIXME: we need at least 68020 code to build shared libraries, but
14820 # adding the `-m68020' flag to GCC prevents building anything better,
14822 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14827 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14828 # PIC is the default for these OSes.
14830 mingw* | cygwin* | os2* | pw32* | cegcc*)
14831 # This hack is so that the source file can tell whether it is being
14832 # built for inclusion in a dll (and should export symbols for example).
14833 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14834 # (--disable-auto-import) libraries
14835 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14837 darwin* | rhapsody*)
14838 # PIC is the default on this platform
14839 # Common symbols not allowed in MH_DYLIB files
14840 lt_prog_compiler_pic_CXX='-fno-common'
14843 # DJGPP does not support shared libraries at all
14844 lt_prog_compiler_pic_CXX=
14847 # PIC is the default for Haiku.
14848 # The "-static" flag exists, but is broken.
14849 lt_prog_compiler_static_CXX=
14852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853 # Instead, we relocate shared libraries at runtime.
14856 if test -d /usr/nec; then
14857 lt_prog_compiler_pic_CXX=-Kconform_pic
14861 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14862 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14863 # sets the default TLS model and affects inlining.
14868 lt_prog_compiler_pic_CXX='-fPIC'
14873 # QNX uses GNU C++, but need to define -shared option too, otherwise
14874 # it will coredump.
14875 lt_prog_compiler_pic_CXX='-fPIC -shared'
14878 lt_prog_compiler_pic_CXX='-fPIC'
14884 # All AIX code is PIC.
14885 if test "$host_cpu" = ia64; then
14886 # AIX 5 now supports IA64 processor
14887 lt_prog_compiler_static_CXX='-Bstatic'
14889 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14893 case $cc_basename in
14895 # Green Hills C++ Compiler
14896 # _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"
14900 mingw* | cygwin* | os2* | pw32* | cegcc*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14906 case $cc_basename in
14908 lt_prog_compiler_pic_CXX='-KPIC'
14911 # Green Hills C++ Compiler
14912 lt_prog_compiler_pic_CXX='-pic'
14918 freebsd* | dragonfly*)
14919 # FreeBSD uses GNU C++
14921 hpux9* | hpux10* | hpux11*)
14922 case $cc_basename in
14924 lt_prog_compiler_wl_CXX='-Wl,'
14925 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14926 if test "$host_cpu" != ia64; then
14927 lt_prog_compiler_pic_CXX='+Z'
14931 lt_prog_compiler_wl_CXX='-Wl,'
14932 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14938 lt_prog_compiler_pic_CXX='+Z'
14947 # This is c89, which is MS Visual C++ (no shared libs)
14948 # Anyone wants to do a port?
14950 irix5* | irix6* | nonstopux*)
14951 case $cc_basename in
14953 lt_prog_compiler_wl_CXX='-Wl,'
14954 lt_prog_compiler_static_CXX='-non_shared'
14955 # CC pic flag -KPIC is the default.
14961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14962 case $cc_basename in
14965 lt_prog_compiler_wl_CXX='--backend -Wl,'
14966 lt_prog_compiler_pic_CXX='-fPIC'
14969 # old Intel C++ for x86_64 which still supported -KPIC.
14970 lt_prog_compiler_wl_CXX='-Wl,'
14971 lt_prog_compiler_pic_CXX='-KPIC'
14972 lt_prog_compiler_static_CXX='-static'
14975 # Intel C++, used to be incompatible with GCC.
14976 # ICC 10 doesn't accept -KPIC any more.
14977 lt_prog_compiler_wl_CXX='-Wl,'
14978 lt_prog_compiler_pic_CXX='-fPIC'
14979 lt_prog_compiler_static_CXX='-static'
14982 # Portland Group C++ compiler
14983 lt_prog_compiler_wl_CXX='-Wl,'
14984 lt_prog_compiler_pic_CXX='-fpic'
14985 lt_prog_compiler_static_CXX='-Bstatic'
14989 # Make sure the PIC flag is empty. It appears that all Alpha
14990 # Linux and Compaq Tru64 Unix objects are PIC.
14991 lt_prog_compiler_pic_CXX=
14992 lt_prog_compiler_static_CXX='-non_shared'
14994 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14995 # IBM XL 8.0, 9.0 on PPC and BlueGene
14996 lt_prog_compiler_wl_CXX='-Wl,'
14997 lt_prog_compiler_pic_CXX='-qpic'
14998 lt_prog_compiler_static_CXX='-qstaticlink'
15001 case `$CC -V 2>&1 | sed 5q` in
15004 lt_prog_compiler_pic_CXX='-KPIC'
15005 lt_prog_compiler_static_CXX='-Bstatic'
15006 lt_prog_compiler_wl_CXX='-Qoption ld '
15017 case $cc_basename in
15019 lt_prog_compiler_pic_CXX='-W c,exportall'
15028 # QNX uses GNU C++, but need to define -shared option too, otherwise
15029 # it will coredump.
15030 lt_prog_compiler_pic_CXX='-fPIC -shared'
15032 osf3* | osf4* | osf5*)
15033 case $cc_basename in
15035 lt_prog_compiler_wl_CXX='--backend -Wl,'
15038 # Rational C++ 2.4.1
15039 lt_prog_compiler_pic_CXX='-pic'
15042 # Digital/Compaq C++
15043 lt_prog_compiler_wl_CXX='-Wl,'
15044 # Make sure the PIC flag is empty. It appears that all Alpha
15045 # Linux and Compaq Tru64 Unix objects are PIC.
15046 lt_prog_compiler_pic_CXX=
15047 lt_prog_compiler_static_CXX='-non_shared'
15056 case $cc_basename in
15058 # Sun C++ 4.2, 5.x and Centerline C++
15059 lt_prog_compiler_pic_CXX='-KPIC'
15060 lt_prog_compiler_static_CXX='-Bstatic'
15061 lt_prog_compiler_wl_CXX='-Qoption ld '
15064 # Green Hills C++ Compiler
15065 lt_prog_compiler_pic_CXX='-PIC'
15072 case $cc_basename in
15075 lt_prog_compiler_pic_CXX='-pic'
15076 lt_prog_compiler_static_CXX='-Bstatic'
15080 lt_prog_compiler_pic_CXX='-pic'
15086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087 case $cc_basename in
15089 lt_prog_compiler_wl_CXX='-Wl,'
15090 lt_prog_compiler_pic_CXX='-KPIC'
15091 lt_prog_compiler_static_CXX='-Bstatic'
15096 case $cc_basename in
15098 # NonStop-UX NCC 3.20
15099 lt_prog_compiler_pic_CXX='-KPIC'
15108 lt_prog_compiler_can_build_shared_CXX=no
15114 # For platforms which do not support PIC, -DPIC is meaningless:
15116 lt_prog_compiler_pic_CXX=
15119 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15125 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
15126 $as_echo_n "(cached) " >&6
15128 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15132 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15135 # Check to make sure the PIC flag actually works.
15137 if test -n "$lt_prog_compiler_pic_CXX"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15140 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15141 $as_echo_n "(cached) " >&6
15143 lt_cv_prog_compiler_pic_works_CXX=no
15144 ac_outfile=conftest.$ac_objext
15145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15146 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15147 # Insert the option either (1) after the last *FLAGS variable, or
15148 # (2) before a word containing "conftest.", or (3) at the end.
15149 # Note that $ac_compile itself does not contain backslashes and begins
15150 # with a dollar sign (not a hyphen), so the echo should work correctly.
15151 # The option is referenced via a variable to avoid confusing sed.
15152 lt_compile=`echo "$ac_compile" | $SED \
15153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15155 -e 's:$: $lt_compiler_flag:'`
15156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15157 (eval "$lt_compile" 2>conftest.err)
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 if (exit $ac_status) && test -s "$ac_outfile"; then
15162 # The compiler can only warn and ignore the option if not recognized
15163 # So say no if there are warnings other than the usual output.
15164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15167 lt_cv_prog_compiler_pic_works_CXX=yes
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15174 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15176 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15177 case $lt_prog_compiler_pic_CXX in
15179 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15182 lt_prog_compiler_pic_CXX=
15183 lt_prog_compiler_can_build_shared_CXX=no
15193 # Check to make sure the static flag actually works.
15195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15197 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15198 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15199 $as_echo_n "(cached) " >&6
15201 lt_cv_prog_compiler_static_works_CXX=no
15202 save_LDFLAGS="$LDFLAGS"
15203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15206 # The linker can only warn and ignore the option if not recognized
15207 # So say no if there are warnings
15208 if test -s conftest.err; then
15209 # Append any errors to the config.log.
15210 cat conftest.err 1>&5
15211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15213 if diff conftest.exp conftest.er2 >/dev/null; then
15214 lt_cv_prog_compiler_static_works_CXX=yes
15217 lt_cv_prog_compiler_static_works_CXX=yes
15221 LDFLAGS="$save_LDFLAGS"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15225 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15227 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15230 lt_prog_compiler_static_CXX=
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15238 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15239 $as_echo_n "(cached) " >&6
15241 lt_cv_prog_compiler_c_o_CXX=no
15242 $RM -r conftest 2>/dev/null
15246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="-o out/conftest2.$ac_objext"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 lt_compile=`echo "$ac_compile" | $SED \
15254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256 -e 's:$: $lt_compiler_flag:'`
15257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15258 (eval "$lt_compile" 2>out/conftest.err)
15260 cat out/conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings
15266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15269 lt_cv_prog_compiler_c_o_CXX=yes
15274 # SGI C++ compiler will create directory out/ii_files/ for
15275 # template instantiation
15276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15277 $RM out/* && rmdir out
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15284 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15291 $as_echo_n "(cached) " >&6
15293 lt_cv_prog_compiler_c_o_CXX=no
15294 $RM -r conftest 2>/dev/null
15298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15300 lt_compiler_flag="-o out/conftest2.$ac_objext"
15301 # Insert the option either (1) after the last *FLAGS variable, or
15302 # (2) before a word containing "conftest.", or (3) at the end.
15303 # Note that $ac_compile itself does not contain backslashes and begins
15304 # with a dollar sign (not a hyphen), so the echo should work correctly.
15305 lt_compile=`echo "$ac_compile" | $SED \
15306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308 -e 's:$: $lt_compiler_flag:'`
15309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310 (eval "$lt_compile" 2>out/conftest.err)
15312 cat out/conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15316 # The compiler can only warn and ignore the option if not recognized
15317 # So say no if there are warnings
15318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321 lt_cv_prog_compiler_c_o_CXX=yes
15326 # SGI C++ compiler will create directory out/ii_files/ for
15327 # template instantiation
15328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329 $RM out/* && rmdir out
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15341 hard_links="nottested"
15342 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15343 # do not overwrite the value of need_locks provided by the user
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15345 $as_echo_n "checking if we can lock with hard links... " >&6; }
15348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15350 ln conftest.a conftest.b 2>&5 || hard_links=no
15351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15353 $as_echo "$hard_links" >&6; }
15354 if test "$hard_links" = no; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15369 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15372 # If we're using GNU nm, then we don't want the "-C" option.
15373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15374 # Also, AIX nm treats weak defined symbols like other global defined
15375 # symbols, whereas GNU nm marks them as "W".
15376 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15377 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'
15379 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'
15383 export_symbols_cmds_CXX="$ltdll_cmds"
15385 cygwin* | mingw* | cegcc*)
15386 case $cc_basename in
15389 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'
15390 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15395 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15400 $as_echo "$ld_shlibs_CXX" >&6; }
15401 test "$ld_shlibs_CXX" = no && can_build_shared=no
15403 with_gnu_ld_CXX=$with_gnu_ld
15411 # Do we need to explicitly link libc?
15413 case "x$archive_cmds_need_lc_CXX" in
15415 # Assume -lc should be added
15416 archive_cmds_need_lc_CXX=yes
15418 if test "$enable_shared" = yes && test "$GCC" = yes; then
15419 case $archive_cmds_CXX in
15421 # FIXME: we may have to deal with multi-command sequences.
15424 # Test whether the compiler implicitly links with -lc since on some
15425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15426 # to ld, don't add -lc before -lgcc.
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15429 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15430 $as_echo_n "(cached) " >&6
15433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15436 (eval $ac_compile) 2>&5
15438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439 test $ac_status = 0; } 2>conftest.err; then
15442 libobjs=conftest.$ac_objext
15444 wl=$lt_prog_compiler_wl_CXX
15445 pic_flag=$lt_prog_compiler_pic_CXX
15451 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15452 allow_undefined_flag_CXX=
15453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15454 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15457 test $ac_status = 0; }
15459 lt_cv_archive_cmds_need_lc_CXX=no
15461 lt_cv_archive_cmds_need_lc_CXX=yes
15463 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15465 cat conftest.err 1>&5
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15471 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15472 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15545 library_names_spec=
15546 libname_spec='lib$name'
15550 postuninstall_cmds=
15554 shlibpath_overrides_runpath=unknown
15556 dynamic_linker="$host_os ld.so"
15557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15558 need_lib_prefix=unknown
15559 hardcode_into_libs=no
15561 # when you set need_version to no, make sure it does not cause -set_version
15562 # flags to be left without arguments
15563 need_version=unknown
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15569 shlibpath_var=LIBPATH
15571 # AIX 3 has no versioning support, so we append a major version to the name.
15572 soname_spec='${libname}${release}${shared_ext}$major'
15579 hardcode_into_libs=yes
15580 if test "$host_cpu" = ia64; then
15581 # AIX 5 supports IA64
15582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15583 shlibpath_var=LD_LIBRARY_PATH
15585 # With GCC up to 2.95.x, collect2 would create an import file
15586 # for dependence libraries. The import file would start with
15587 # the line `#! .'. This would cause the generated library to
15588 # depend on `.', always an invalid library. This was fixed in
15589 # development snapshots of GCC prior to 3.0.
15591 aix4 | aix4.[01] | aix4.[01].*)
15592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15594 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15597 can_build_shared=no
15601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15602 # soname into executable. Probably we can add versioning support to
15603 # collect2, so additional links can be useful in future.
15604 if test "$aix_use_runtimelinking" = yes; then
15605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15606 # instead of lib<name>.a to let people know that these are not
15607 # typical AIX shared libraries.
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610 # We preserve .a as extension for shared libraries through AIX4.2
15611 # and later when we are not doing run time linking.
15612 library_names_spec='${libname}${release}.a $libname.a'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15615 shlibpath_var=LIBPATH
15622 # Since July 2007 AmigaOS4 officially supports .so libraries.
15623 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 library_names_spec='$libname.ixlibrary $libname.a'
15628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15629 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'
15635 library_names_spec='${libname}${shared_ext}'
15636 dynamic_linker="$host_os ld.so"
15637 shlibpath_var=LIBRARY_PATH
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15649 # the default ld.so.conf also contains /usr/contrib/lib and
15650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15651 # libtool to hard-code these into programs
15654 cygwin* | mingw* | pw32* | cegcc*)
15655 version_type=windows
15660 case $GCC,$cc_basename in
15663 library_names_spec='$libname.dll.a'
15664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665 postinstall_cmds='base_file=`basename \${file}`~
15666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15667 dldir=$destdir/`dirname \$dlpath`~
15668 test -d \$dldir || mkdir -p \$dldir~
15669 $install_prog $dir/$dlname \$dldir/$dlname~
15670 chmod a+x \$dldir/$dlname~
15671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15675 dlpath=$dir/\$dldll~
15677 shlibpath_overrides_runpath=yes
15681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15686 # MinGW DLLs use traditional 'lib' prefix
15687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15690 # pw32 DLLs use 'pw' prefix rather than 'lib'
15691 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15694 dynamic_linker='Win32 ld.exe'
15699 libname_spec='$name'
15700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701 library_names_spec='${libname}.dll.lib'
15705 sys_lib_search_path_spec=
15708 for lt_path in $LIB
15711 # Let DOS variable expansion print the short 8.3 style file name.
15712 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15713 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15716 # Convert to MSYS style.
15717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15720 # Convert to unix form, then to dos form, then back to unix form
15721 # but this time dos style (no spaces!) so that the unix form looks
15722 # like /cygdrive/c/PROGRA~1:/cygdr...
15723 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15724 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15725 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15728 sys_lib_search_path_spec="$LIB"
15729 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15730 # It is most probably a Windows format PATH.
15731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15735 # FIXME: find the short name or the path components, as spaces are
15736 # common. (e.g. "Program Files" -> "PROGRA~1")
15740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15741 postinstall_cmds='base_file=`basename \${file}`~
15742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15743 dldir=$destdir/`dirname \$dlpath`~
15744 test -d \$dldir || mkdir -p \$dldir~
15745 $install_prog $dir/$dlname \$dldir/$dlname'
15746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15747 dlpath=$dir/\$dldll~
15749 shlibpath_overrides_runpath=yes
15750 dynamic_linker='Win32 link.exe'
15754 # Assume MSVC wrapper
15755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15756 dynamic_linker='Win32 ld.exe'
15759 # FIXME: first we should search . and the directory the executable is in
15763 darwin* | rhapsody*)
15764 dynamic_linker="$host_os dyld"
15765 version_type=darwin
15768 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15769 soname_spec='${libname}${release}${major}$shared_ext'
15770 shlibpath_overrides_runpath=yes
15771 shlibpath_var=DYLD_LIBRARY_PATH
15772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15790 freebsd* | dragonfly*)
15791 # DragonFly does not have aout. When/if they implement a new
15792 # versioning mechanism, adjust this.
15793 if test -x /usr/bin/objformat; then
15794 objformat=`/usr/bin/objformat`
15797 freebsd[123]*) objformat=aout ;;
15798 *) objformat=elf ;;
15801 version_type=freebsd-$objformat
15802 case $version_type in
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15813 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes
15818 freebsd3.[01]* | freebsdelf3.[01]*)
15819 shlibpath_overrides_runpath=yes
15820 hardcode_into_libs=yes
15822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15824 shlibpath_overrides_runpath=no
15825 hardcode_into_libs=yes
15827 *) # from 4.6 on, and DragonFly
15828 shlibpath_overrides_runpath=yes
15829 hardcode_into_libs=yes
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 hardcode_into_libs=yes
15848 dynamic_linker="$host_os runtime_loader"
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 shlibpath_var=LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes
15853 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15854 hardcode_into_libs=yes
15857 hpux9* | hpux10* | hpux11*)
15858 # Give a soname corresponding to the major version so that dld.sl refuses to
15859 # link against other versions.
15866 hardcode_into_libs=yes
15867 dynamic_linker="$host_os dld.so"
15868 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 if test "X$HPUX_IA64_MODE" = X32; then
15873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15881 hardcode_into_libs=yes
15882 dynamic_linker="$host_os dld.sl"
15883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886 soname_spec='${libname}${release}${shared_ext}$major'
15887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15892 dynamic_linker="$host_os dld.sl"
15893 shlibpath_var=SHLIB_PATH
15894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15899 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15900 postinstall_cmds='chmod 555 $lib'
15901 # or fails outright, so override atomically:
15902 install_override_mode=555
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=no
15914 hardcode_into_libs=yes
15917 irix5* | irix6* | nonstopux*)
15919 nonstopux*) version_type=nonstopux ;;
15921 if test "$lt_cv_prog_gnu_ld" = yes; then
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15932 irix5* | nonstopux*)
15933 libsuff= shlibsuff=
15936 case $LD in # libtool.m4 will add one of these switches to LD
15937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15938 libsuff= shlibsuff= libmagic=32-bit;;
15939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15940 libsuff=32 shlibsuff=N32 libmagic=N32;;
15941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15943 *) libsuff= shlibsuff= libmagic=never-match;;
15947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15948 shlibpath_overrides_runpath=no
15949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15951 hardcode_into_libs=yes
15954 # No shared lib support for Linux oldld, aout, or coff.
15955 linux*oldld* | linux*aout* | linux*coff*)
15959 # This must be Linux ELF.
15960 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=no
15970 # Some binutils ld are patched to set DT_RUNPATH
15971 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15972 $as_echo_n "(cached) " >&6
15974 lt_cv_shlibpath_overrides_runpath=no
15975 save_LDFLAGS=$LDFLAGS
15976 save_libdir=$libdir
15977 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15978 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15990 if ac_fn_cxx_try_link "$LINENO"; then :
15991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15992 lt_cv_shlibpath_overrides_runpath=yes
15995 rm -f core conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15997 LDFLAGS=$save_LDFLAGS
15998 libdir=$save_libdir
16002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16004 # This implies no fast_install, which is unacceptable.
16005 # Some rework will be needed to allow for fast_install
16006 # before this can be enabled.
16007 hardcode_into_libs=yes
16009 # Append ld.so.conf contents to the search path
16010 if test -f /etc/ld.so.conf; then
16011 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' ' '`
16012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16015 # We used to test for /lib/ld.so.1 and disable shared libraries on
16016 # powerpc, because MkLinux only supported shared libraries with the
16017 # GNU dynamic linker. Since this was broken with cross compilers,
16018 # most powerpc-linux boxes support dynamic linking these days and
16019 # people can always --disable-shared, the test was removed, and we
16020 # assume the GNU/Linux dynamic linker is in use.
16021 dynamic_linker='GNU/Linux ld.so'
16028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16031 dynamic_linker='NetBSD (a.out) ld.so'
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 dynamic_linker='NetBSD ld.elf_so'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=yes
16039 hardcode_into_libs=yes
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 shlibpath_var=LD_LIBRARY_PATH
16046 shlibpath_overrides_runpath=yes
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=no
16057 hardcode_into_libs=yes
16058 dynamic_linker='ldqnx.so'
16063 sys_lib_dlsearch_path_spec="/usr/lib"
16065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16068 *) need_version=no ;;
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16075 openbsd2.[89] | openbsd2.[89].*)
16076 shlibpath_overrides_runpath=no
16079 shlibpath_overrides_runpath=yes
16083 shlibpath_overrides_runpath=yes
16088 libname_spec='$name'
16091 library_names_spec='$libname${shared_ext} $libname.a'
16092 dynamic_linker='OS/2 ld.exe'
16093 shlibpath_var=LIBPATH
16096 osf3* | osf4* | osf5*)
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=yes
16119 hardcode_into_libs=yes
16120 # ldd complains unless libraries are executable
16121 postinstall_cmds='chmod +x $lib'
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16130 if test "$with_gnu_ld" = yes; then
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 case $host_vendor in
16143 shlibpath_overrides_runpath=no
16145 runpath_var=LD_RUN_PATH
16153 shlibpath_overrides_runpath=no
16154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16160 if test -d /usr/nec ;then
16162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16163 soname_spec='$libname${shared_ext}.$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16169 version_type=freebsd-elf
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173 soname_spec='${libname}${release}${shared_ext}$major'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=yes
16176 hardcode_into_libs=yes
16177 if test "$with_gnu_ld" = yes; then
16178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16183 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16187 sys_lib_dlsearch_path_spec='/usr/lib'
16191 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=no
16198 hardcode_into_libs=yes
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16213 $as_echo "$dynamic_linker" >&6; }
16214 test "$dynamic_linker" = no && can_build_shared=no
16216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16217 if test "$GCC" = yes; then
16218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16266 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16267 hardcode_action_CXX=
16268 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16269 test -n "$runpath_var_CXX" ||
16270 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16272 # We can hardcode non-existent directories.
16273 if test "$hardcode_direct_CXX" != no &&
16274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275 # have to relink, otherwise we might link with an installed library
16276 # when we should be linking with a yet-to-be-installed one
16277 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16278 test "$hardcode_minus_L_CXX" != no; then
16279 # Linking always hardcodes the temporary library directory.
16280 hardcode_action_CXX=relink
16282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283 hardcode_action_CXX=immediate
16286 # We cannot hardcode anything, or else we can only hardcode existing
16288 hardcode_action_CXX=unsupported
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16291 $as_echo "$hardcode_action_CXX" >&6; }
16293 if test "$hardcode_action_CXX" = relink ||
16294 test "$inherit_rpath_CXX" = yes; then
16295 # Fast installation is not supported
16296 enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298 test "$enable_shared" = no; then
16299 # Fast installation is not necessary
16300 enable_fast_install=needless
16309 fi # test -n "$compiler"
16312 CFLAGS=$lt_save_CFLAGS
16316 with_gnu_ld=$lt_save_with_gnu_ld
16317 lt_cv_path_LDCXX=$lt_cv_path_LD
16318 lt_cv_path_LD=$lt_save_path_LD
16319 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16320 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16321 fi # test "$_lt_caught_CXX_error" != yes
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16341 ac_config_commands="$ac_config_commands libtool"
16346 # Only expand once:
16351 if test x$use_libtool != xno; then
16352 DEFAULT_OBJECT_TYPE=".lo"
16353 DEFAULT_ARCHIVE_TYPE=".la"
16354 DEFAULT_SHARED_OBJECT_TYPE=".la"
16355 LIBTOOL="\$(LIBTOOL)"
16356 LIBTOOL_INSTALL_TARGET="libtool-install"
16357 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16358 LIBTOOL_CLEAN_TARGET="libtool-clean"
16359 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16360 FD_PLUGIN_DIR="src/plugins/fd"
16363 DEFAULT_OBJECT_TYPE=".o"
16364 DEFAULT_ARCHIVE_TYPE=".a"
16365 DEFAULT_SHARED_OBJECT_TYPE=".so"
16366 LIBTOOL="# \$(LIBTOOL)"
16367 LIBTOOL_INSTALL_TARGET=""
16368 LIBTOOL_UNINSTALL_TARGET=""
16369 LIBTOOL_CLEAN_TARGET=""
16370 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16385 # Check whether --enable-includes was given.
16386 if test "${enable_includes+set}" = set; then :
16387 enableval=$enable_includes;
16388 if test x$enableval = xyes; then
16389 install_includes=yes
16397 if test x$use_libtool != xno -a x$install_includes = xyes; then
16398 INCLUDE_INSTALL_TARGET="install-includes"
16399 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16401 INCLUDE_INSTALL_TARGET=""
16402 INCLUDE_UNINSTALL_TARGET=""
16410 *cygwin* ) CYGWIN=yes;;
16414 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16420 HAVE_SUN_OS_FALSE='#'
16422 HAVE_SUN_OS_TRUE='#'
16425 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16432 HAVE_SUN_OS_FALSE='#'
16434 HAVE_SUN_OS_TRUE='#'
16439 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16445 HAVE_OSF1_OS_FALSE='#'
16447 HAVE_OSF1_OS_TRUE='#'
16448 HAVE_OSF1_OS_FALSE=
16450 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16457 HAVE_OSF1_OS_FALSE='#'
16459 HAVE_OSF1_OS_TRUE='#'
16460 HAVE_OSF1_OS_FALSE=
16464 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16470 HAVE_AIX_OS_FALSE='#'
16472 HAVE_AIX_OS_TRUE='#'
16475 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16482 HAVE_AIX_OS_FALSE='#'
16484 HAVE_AIX_OS_TRUE='#'
16489 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16495 HAVE_HPUX_OS_FALSE='#'
16497 HAVE_HPUX_OS_TRUE='#'
16498 HAVE_HPUX_OS_FALSE=
16500 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16507 HAVE_HPUX_OS_FALSE='#'
16509 HAVE_HPUX_OS_TRUE='#'
16510 HAVE_HPUX_OS_FALSE=
16514 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16519 HAVE_LINUX_OS_TRUE=
16520 HAVE_LINUX_OS_FALSE='#'
16522 HAVE_LINUX_OS_TRUE='#'
16523 HAVE_LINUX_OS_FALSE=
16525 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16531 HAVE_LINUX_OS_TRUE=
16532 HAVE_LINUX_OS_FALSE='#'
16534 HAVE_LINUX_OS_TRUE='#'
16535 HAVE_LINUX_OS_FALSE=
16539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16544 HAVE_FREEBSD_OS_TRUE=
16545 HAVE_FREEBSD_OS_FALSE='#'
16547 HAVE_FREEBSD_OS_TRUE='#'
16548 HAVE_FREEBSD_OS_FALSE=
16550 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16556 HAVE_FREEBSD_OS_TRUE=
16557 HAVE_FREEBSD_OS_FALSE='#'
16559 HAVE_FREEBSD_OS_TRUE='#'
16560 HAVE_FREEBSD_OS_FALSE=
16564 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16569 HAVE_NETBSD_OS_TRUE=
16570 HAVE_NETBSD_OS_FALSE='#'
16572 HAVE_NETBSD_OS_TRUE='#'
16573 HAVE_NETBSD_OS_FALSE=
16575 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16581 HAVE_NETBSD_OS_TRUE=
16582 HAVE_NETBSD_OS_FALSE='#'
16584 HAVE_NETBSD_OS_TRUE='#'
16585 HAVE_NETBSD_OS_FALSE=
16589 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16594 HAVE_OPENBSD_OS_TRUE=
16595 HAVE_OPENBSD_OS_FALSE='#'
16597 HAVE_OPENBSD_OS_TRUE='#'
16598 HAVE_OPENBSD_OS_FALSE=
16600 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16606 HAVE_OPENBSD_OS_TRUE=
16607 HAVE_OPENBSD_OS_FALSE='#'
16609 HAVE_OPENBSD_OS_TRUE='#'
16610 HAVE_OPENBSD_OS_FALSE=
16614 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16620 HAVE_BSDI_OS_FALSE='#'
16622 HAVE_BSDI_OS_TRUE='#'
16623 HAVE_BSDI_OS_FALSE=
16625 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16632 HAVE_BSDI_OS_FALSE='#'
16634 HAVE_BSDI_OS_TRUE='#'
16635 HAVE_BSDI_OS_FALSE=
16639 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16645 HAVE_SGI_OS_FALSE='#'
16647 HAVE_SGI_OS_TRUE='#'
16650 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16657 HAVE_SGI_OS_FALSE='#'
16659 HAVE_SGI_OS_TRUE='#'
16664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16670 HAVE_IRIX_OS_FALSE='#'
16672 HAVE_IRIX_OS_TRUE='#'
16673 HAVE_IRIX_OS_FALSE=
16675 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16682 HAVE_IRIX_OS_FALSE='#'
16684 HAVE_IRIX_OS_TRUE='#'
16685 HAVE_IRIX_OS_FALSE=
16689 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16694 HAVE_DARWIN_OS_TRUE=
16695 HAVE_DARWIN_OS_FALSE='#'
16697 HAVE_DARWIN_OS_TRUE='#'
16698 HAVE_DARWIN_OS_FALSE=
16700 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16706 HAVE_DARWIN_OS_TRUE=
16707 HAVE_DARWIN_OS_FALSE='#'
16709 HAVE_DARWIN_OS_TRUE='#'
16710 HAVE_DARWIN_OS_FALSE=
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16716 $as_echo_n "checking for Operating System Distribution... " >&6; }
16717 if test "x$DISTNAME" != "x"
16719 echo "distname set to $DISTNAME"
16720 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16723 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16726 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16729 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16732 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16735 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16738 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16741 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16744 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16747 elif test -f /etc/SuSE-release
16750 elif test -d /etc/SuSEconfig
16753 elif test -f /etc/mandrake-release
16756 elif test -f /etc/whitebox-release
16759 elif test -f /etc/redhat-release
16762 elif test -f /etc/gentoo-release
16765 elif test -f /etc/debian_version
16768 elif test -f /etc/slackware-version
16771 elif test x$host_vendor = xapple
16774 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16777 elif test -f /etc/engarde-version
16780 elif test -f /etc/arch-release
16783 elif test "$CYGWIN" = yes
16786 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16792 $as_echo "done" >&6; }
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16800 $as_echo_n "(cached) " >&6
16802 cat >conftest.make <<\_ACEOF
16805 @echo '@@@%%%=$(MAKE)=@@@%%%'
16807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16809 *@@@%%%=?*=@@@%%%*)
16810 eval ac_cv_prog_make_${ac_make}_set=yes;;
16812 eval ac_cv_prog_make_${ac_make}_set=no;;
16814 rm -f conftest.make
16816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16823 SET_MAKE="MAKE=${MAKE-make}"
16829 if test -n "$ac_aux_dir"; then
16830 case "$ac_aux_dir" in
16831 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16832 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16835 if test -z "$MKINSTALLDIRS"; then
16836 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16842 $as_echo_n "checking whether NLS is requested... " >&6; }
16843 # Check whether --enable-nls was given.
16844 if test "${enable_nls+set}" = set; then :
16845 enableval=$enable_nls; USE_NLS=$enableval
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16851 $as_echo "$USE_NLS" >&6; }
16858 # Prepare PATH_SEPARATOR.
16859 # The user is always right.
16860 if test "${PATH_SEPARATOR+set}" != set; then
16861 echo "#! /bin/sh" >conf$$.sh
16862 echo "exit 0" >>conf$$.sh
16864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16872 # Find out how to test for executable files. Don't use a zero-byte file,
16873 # as systems may use methods other than mode bits to determine executability.
16874 cat >conf$$.file <<_ASEOF
16878 chmod +x conf$$.file
16879 if test -x conf$$.file >/dev/null 2>&1; then
16880 ac_executable_p="test -x"
16882 ac_executable_p="test -f"
16886 # Extract the first word of "msgfmt", so it can be a program name with args.
16887 set dummy msgfmt; ac_word=$2
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16889 $as_echo_n "checking for $ac_word... " >&6; }
16890 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16898 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16899 for ac_dir in $PATH; do
16901 test -z "$ac_dir" && ac_dir=.
16902 for ac_exec_ext in '' $ac_executable_extensions; do
16903 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16904 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16905 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16906 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16907 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16914 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16918 MSGFMT="$ac_cv_path_MSGFMT"
16919 if test "$MSGFMT" != ":"; then
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16921 $as_echo "$MSGFMT" >&6; }
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 $as_echo "no" >&6; }
16927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16928 set dummy gmsgfmt; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940 for as_dir in $PATH
16943 test -z "$as_dir" && as_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16954 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16958 GMSGFMT=$ac_cv_path_GMSGFMT
16959 if test -n "$GMSGFMT"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16961 $as_echo "$GMSGFMT" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16970 # Prepare PATH_SEPARATOR.
16971 # The user is always right.
16972 if test "${PATH_SEPARATOR+set}" != set; then
16973 echo "#! /bin/sh" >conf$$.sh
16974 echo "exit 0" >>conf$$.sh
16976 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16984 # Find out how to test for executable files. Don't use a zero-byte file,
16985 # as systems may use methods other than mode bits to determine executability.
16986 cat >conf$$.file <<_ASEOF
16990 chmod +x conf$$.file
16991 if test -x conf$$.file >/dev/null 2>&1; then
16992 ac_executable_p="test -x"
16994 ac_executable_p="test -f"
16998 # Extract the first word of "xgettext", so it can be a program name with args.
16999 set dummy xgettext; ac_word=$2
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001 $as_echo_n "checking for $ac_word... " >&6; }
17002 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17003 $as_echo_n "(cached) " >&6
17005 case "$XGETTEXT" in
17007 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17010 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17011 for ac_dir in $PATH; do
17013 test -z "$ac_dir" && ac_dir=.
17014 for ac_exec_ext in '' $ac_executable_extensions; do
17015 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17016 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17017 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17018 (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
17019 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17026 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17030 XGETTEXT="$ac_cv_path_XGETTEXT"
17031 if test "$XGETTEXT" != ":"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17033 $as_echo "$XGETTEXT" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17042 # Prepare PATH_SEPARATOR.
17043 # The user is always right.
17044 if test "${PATH_SEPARATOR+set}" != set; then
17045 echo "#! /bin/sh" >conf$$.sh
17046 echo "exit 0" >>conf$$.sh
17048 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17056 # Find out how to test for executable files. Don't use a zero-byte file,
17057 # as systems may use methods other than mode bits to determine executability.
17058 cat >conf$$.file <<_ASEOF
17062 chmod +x conf$$.file
17063 if test -x conf$$.file >/dev/null 2>&1; then
17064 ac_executable_p="test -x"
17066 ac_executable_p="test -f"
17070 # Extract the first word of "msgmerge", so it can be a program name with args.
17071 set dummy msgmerge; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17073 $as_echo_n "checking for $ac_word... " >&6; }
17074 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17075 $as_echo_n "(cached) " >&6
17077 case "$MSGMERGE" in
17079 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17082 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17083 for ac_dir in $PATH; do
17085 test -z "$ac_dir" && ac_dir=.
17086 for ac_exec_ext in '' $ac_executable_extensions; do
17087 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17088 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17101 MSGMERGE="$ac_cv_path_MSGMERGE"
17102 if test "$MSGMERGE" != ":"; then
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17104 $as_echo "$MSGMERGE" >&6; }
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107 $as_echo "no" >&6; }
17111 if test "$GMSGFMT" != ":"; then
17112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17123 if test "$XGETTEXT" != ":"; then
17124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17125 (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
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17135 ac_config_commands="$ac_config_commands default-1"
17139 if test "X$prefix" = "XNONE"; then
17140 acl_final_prefix="$ac_default_prefix"
17142 acl_final_prefix="$prefix"
17144 if test "X$exec_prefix" = "XNONE"; then
17145 acl_final_exec_prefix='${prefix}'
17147 acl_final_exec_prefix="$exec_prefix"
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17152 prefix="$acl_save_prefix"
17155 # Check whether --with-gnu-ld was given.
17156 if test "${with_gnu_ld+set}" = set; then :
17157 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17162 # Prepare PATH_SEPARATOR.
17163 # The user is always right.
17164 if test "${PATH_SEPARATOR+set}" != set; then
17165 echo "#! /bin/sh" >conf$$.sh
17166 echo "exit 0" >>conf$$.sh
17168 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17176 if test "$GCC" = yes; then
17177 # Check if gcc -print-prog-name=ld gives a path.
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17179 $as_echo_n "checking for ld used by GCC... " >&6; }
17182 # gcc leaves a trailing carriage return which upsets mingw
17183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17188 # Accept absolute paths.
17189 [\\/]* | [A-Za-z]:[\\/]*)
17190 re_direlt='/[^/][^/]*/\.\./'
17191 # Canonicalize the path of ld
17192 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17193 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17194 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17196 test -z "$LD" && LD="$ac_prog"
17199 # If it fails, then pretend we aren't using GCC.
17203 # If it is relative, then search for the first ld in PATH.
17204 with_gnu_ld=unknown
17207 elif test "$with_gnu_ld" = yes; then
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17209 $as_echo_n "checking for GNU ld... " >&6; }
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17212 $as_echo_n "checking for non-GNU ld... " >&6; }
17214 if test "${acl_cv_path_LD+set}" = set; then :
17215 $as_echo_n "(cached) " >&6
17217 if test -z "$LD"; then
17218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17219 for ac_dir in $PATH; do
17220 test -z "$ac_dir" && ac_dir=.
17221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17222 acl_cv_path_LD="$ac_dir/$ac_prog"
17223 # Check to see if the program is GNU ld. I'd rather use --version,
17224 # but apparently some GNU ld's only accept -v.
17225 # Break only if it was the GNU/non-GNU ld that we prefer.
17226 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17227 *GNU* | *'with BFD'*)
17228 test "$with_gnu_ld" != no && break ;;
17230 test "$with_gnu_ld" != yes && break ;;
17236 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17240 LD="$acl_cv_path_LD"
17241 if test -n "$LD"; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17243 $as_echo "$LD" >&6; }
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; }
17248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17251 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17252 $as_echo_n "(cached) " >&6
17254 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17255 case `$LD -v 2>&1 </dev/null` in
17256 *GNU* | *'with BFD'*)
17257 acl_cv_prog_gnu_ld=yes ;;
17259 acl_cv_prog_gnu_ld=no ;;
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17263 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17264 with_gnu_ld=$acl_cv_prog_gnu_ld
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17270 $as_echo_n "checking for shared library run path origin... " >&6; }
17271 if test "${acl_cv_rpath+set}" = set; then :
17272 $as_echo_n "(cached) " >&6
17275 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17276 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17278 rm -f ./conftest.sh
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17283 $as_echo "$acl_cv_rpath" >&6; }
17285 libext="$acl_cv_libext"
17286 shlibext="$acl_cv_shlibext"
17287 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17288 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17289 hardcode_direct="$acl_cv_hardcode_direct"
17290 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17291 # Check whether --enable-rpath was given.
17292 if test "${enable_rpath+set}" = set; then :
17293 enableval=$enable_rpath; :
17307 acl_save_prefix="$prefix"
17308 prefix="$acl_final_prefix"
17309 acl_save_exec_prefix="$exec_prefix"
17310 exec_prefix="$acl_final_exec_prefix"
17312 eval additional_includedir=\"$includedir\"
17313 eval additional_libdir=\"$libdir\"
17315 exec_prefix="$acl_save_exec_prefix"
17316 prefix="$acl_save_prefix"
17319 # Check whether --with-libiconv-prefix was given.
17320 if test "${with_libiconv_prefix+set}" = set; then :
17321 withval=$with_libiconv_prefix;
17322 if test "X$withval" = "Xno"; then
17325 if test "X$withval" = "X"; then
17327 acl_save_prefix="$prefix"
17328 prefix="$acl_final_prefix"
17329 acl_save_exec_prefix="$exec_prefix"
17330 exec_prefix="$acl_final_exec_prefix"
17332 eval additional_includedir=\"$includedir\"
17333 eval additional_libdir=\"$libdir\"
17335 exec_prefix="$acl_save_exec_prefix"
17336 prefix="$acl_save_prefix"
17339 additional_includedir="$withval/include"
17340 additional_libdir="$withval/lib"
17351 names_already_handled=
17352 names_next_round='iconv '
17353 while test -n "$names_next_round"; do
17354 names_this_round="$names_next_round"
17356 for name in $names_this_round; do
17358 for n in $names_already_handled; do
17359 if test "$n" = "$name"; then
17360 already_handled=yes
17364 if test -z "$already_handled"; then
17365 names_already_handled="$names_already_handled $name"
17366 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17367 eval value=\"\$HAVE_LIB$uppername\"
17368 if test -n "$value"; then
17369 if test "$value" = yes; then
17370 eval value=\"\$LIB$uppername\"
17371 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17372 eval value=\"\$LTLIB$uppername\"
17373 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17382 if test $use_additional = yes; then
17383 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17384 found_dir="$additional_libdir"
17385 found_so="$additional_libdir/lib$name.$shlibext"
17386 if test -f "$additional_libdir/lib$name.la"; then
17387 found_la="$additional_libdir/lib$name.la"
17390 if test -f "$additional_libdir/lib$name.$libext"; then
17391 found_dir="$additional_libdir"
17392 found_a="$additional_libdir/lib$name.$libext"
17393 if test -f "$additional_libdir/lib$name.la"; then
17394 found_la="$additional_libdir/lib$name.la"
17399 if test "X$found_dir" = "X"; then
17400 for x in $LDFLAGS $LTLIBICONV; do
17402 acl_save_prefix="$prefix"
17403 prefix="$acl_final_prefix"
17404 acl_save_exec_prefix="$exec_prefix"
17405 exec_prefix="$acl_final_exec_prefix"
17407 exec_prefix="$acl_save_exec_prefix"
17408 prefix="$acl_save_prefix"
17412 dir=`echo "X$x" | sed -e 's/^X-L//'`
17413 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17415 found_so="$dir/lib$name.$shlibext"
17416 if test -f "$dir/lib$name.la"; then
17417 found_la="$dir/lib$name.la"
17420 if test -f "$dir/lib$name.$libext"; then
17422 found_a="$dir/lib$name.$libext"
17423 if test -f "$dir/lib$name.la"; then
17424 found_la="$dir/lib$name.la"
17430 if test "X$found_dir" != "X"; then
17435 if test "X$found_dir" != "X"; then
17436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17437 if test "X$found_so" != "X"; then
17438 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17442 for x in $ltrpathdirs; do
17443 if test "X$x" = "X$found_dir"; then
17448 if test -z "$haveit"; then
17449 ltrpathdirs="$ltrpathdirs $found_dir"
17451 if test "$hardcode_direct" = yes; then
17452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17454 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17457 for x in $rpathdirs; do
17458 if test "X$x" = "X$found_dir"; then
17463 if test -z "$haveit"; then
17464 rpathdirs="$rpathdirs $found_dir"
17468 for x in $LDFLAGS $LIBICONV; do
17470 acl_save_prefix="$prefix"
17471 prefix="$acl_final_prefix"
17472 acl_save_exec_prefix="$exec_prefix"
17473 exec_prefix="$acl_final_exec_prefix"
17475 exec_prefix="$acl_save_exec_prefix"
17476 prefix="$acl_save_prefix"
17478 if test "X$x" = "X-L$found_dir"; then
17483 if test -z "$haveit"; then
17484 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17486 if test "$hardcode_minus_L" != no; then
17487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17489 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17495 if test "X$found_a" != "X"; then
17496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17501 additional_includedir=
17502 case "$found_dir" in
17504 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17505 additional_includedir="$basedir/include"
17508 if test "X$additional_includedir" != "X"; then
17509 if test "X$additional_includedir" != "X/usr/include"; then
17511 if test "X$additional_includedir" = "X/usr/local/include"; then
17512 if test -n "$GCC"; then
17514 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17518 if test -z "$haveit"; then
17519 for x in $CPPFLAGS $INCICONV; do
17521 acl_save_prefix="$prefix"
17522 prefix="$acl_final_prefix"
17523 acl_save_exec_prefix="$exec_prefix"
17524 exec_prefix="$acl_final_exec_prefix"
17526 exec_prefix="$acl_save_exec_prefix"
17527 prefix="$acl_save_prefix"
17529 if test "X$x" = "X-I$additional_includedir"; then
17534 if test -z "$haveit"; then
17535 if test -d "$additional_includedir"; then
17536 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17542 if test -n "$found_la"; then
17543 save_libdir="$libdir"
17544 case "$found_la" in
17545 */* | *\\*) . "$found_la" ;;
17546 *) . "./$found_la" ;;
17548 libdir="$save_libdir"
17549 for dep in $dependency_libs; do
17552 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17553 if test "X$additional_libdir" != "X/usr/lib"; then
17555 if test "X$additional_libdir" = "X/usr/local/lib"; then
17556 if test -n "$GCC"; then
17558 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17562 if test -z "$haveit"; then
17564 for x in $LDFLAGS $LIBICONV; do
17566 acl_save_prefix="$prefix"
17567 prefix="$acl_final_prefix"
17568 acl_save_exec_prefix="$exec_prefix"
17569 exec_prefix="$acl_final_exec_prefix"
17571 exec_prefix="$acl_save_exec_prefix"
17572 prefix="$acl_save_prefix"
17574 if test "X$x" = "X-L$additional_libdir"; then
17579 if test -z "$haveit"; then
17580 if test -d "$additional_libdir"; then
17581 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17585 for x in $LDFLAGS $LTLIBICONV; do
17587 acl_save_prefix="$prefix"
17588 prefix="$acl_final_prefix"
17589 acl_save_exec_prefix="$exec_prefix"
17590 exec_prefix="$acl_final_exec_prefix"
17592 exec_prefix="$acl_save_exec_prefix"
17593 prefix="$acl_save_prefix"
17595 if test "X$x" = "X-L$additional_libdir"; then
17600 if test -z "$haveit"; then
17601 if test -d "$additional_libdir"; then
17602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17609 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17610 if test "$enable_rpath" != no; then
17612 for x in $rpathdirs; do
17613 if test "X$x" = "X$dir"; then
17618 if test -z "$haveit"; then
17619 rpathdirs="$rpathdirs $dir"
17622 for x in $ltrpathdirs; do
17623 if test "X$x" = "X$dir"; then
17628 if test -z "$haveit"; then
17629 ltrpathdirs="$ltrpathdirs $dir"
17634 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17637 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17640 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17641 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17647 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17648 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17654 if test "X$rpathdirs" != "X"; then
17655 if test -n "$hardcode_libdir_separator"; then
17657 for found_dir in $rpathdirs; do
17658 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17660 acl_save_libdir="$libdir"
17662 eval flag=\"$hardcode_libdir_flag_spec\"
17663 libdir="$acl_save_libdir"
17664 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17666 for found_dir in $rpathdirs; do
17667 acl_save_libdir="$libdir"
17668 libdir="$found_dir"
17669 eval flag=\"$hardcode_libdir_flag_spec\"
17670 libdir="$acl_save_libdir"
17671 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17675 if test "X$ltrpathdirs" != "X"; then
17676 for found_dir in $ltrpathdirs; do
17677 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17699 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17700 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17701 $as_echo_n "(cached) " >&6
17703 gt_save_CPPFLAGS="$CPPFLAGS"
17704 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17705 gt_save_LIBS="$LIBS"
17706 LIBS="$LIBS -framework CoreFoundation"
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <CFPreferences.h>
17713 CFPreferencesCopyAppValue(NULL, NULL)
17718 if ac_fn_c_try_link "$LINENO"; then :
17719 gt_cv_func_CFPreferencesCopyAppValue=yes
17721 gt_cv_func_CFPreferencesCopyAppValue=no
17723 rm -f core conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17725 CPPFLAGS="$gt_save_CPPFLAGS"
17726 LIBS="$gt_save_LIBS"
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17729 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17730 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17732 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17736 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17737 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17738 $as_echo_n "(cached) " >&6
17740 gt_save_CPPFLAGS="$CPPFLAGS"
17741 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17742 gt_save_LIBS="$LIBS"
17743 LIBS="$LIBS -framework CoreFoundation"
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17746 #include <CFLocale.h>
17750 CFLocaleCopyCurrent();
17755 if ac_fn_c_try_link "$LINENO"; then :
17756 gt_cv_func_CFLocaleCopyCurrent=yes
17758 gt_cv_func_CFLocaleCopyCurrent=no
17760 rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17762 CPPFLAGS="$gt_save_CPPFLAGS"
17763 LIBS="$gt_save_LIBS"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17766 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17767 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17769 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17774 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17781 $as_echo_n "checking whether NLS is requested... " >&6; }
17782 # Check whether --enable-nls was given.
17783 if test "${enable_nls+set}" = set; then :
17784 enableval=$enable_nls; USE_NLS=$enableval
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17790 $as_echo "$USE_NLS" >&6; }
17799 if test "$USE_NLS" = "yes"; then
17800 gt_use_preinstalled_gnugettext=no
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17808 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17809 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814 #include <libintl.h>
17815 extern int _nl_msg_cat_cntr;
17816 extern int *_nl_domain_bindings;
17820 bindtextdomain ("", "");
17821 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 gt_cv_func_gnugettext1_libc=yes
17829 gt_cv_func_gnugettext1_libc=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17835 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17837 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17843 am_save_CPPFLAGS="$CPPFLAGS"
17845 for element in $INCICONV; do
17847 for x in $CPPFLAGS; do
17849 acl_save_prefix="$prefix"
17850 prefix="$acl_final_prefix"
17851 acl_save_exec_prefix="$exec_prefix"
17852 exec_prefix="$acl_final_exec_prefix"
17854 exec_prefix="$acl_save_exec_prefix"
17855 prefix="$acl_save_prefix"
17857 if test "X$x" = "X$element"; then
17862 if test -z "$haveit"; then
17863 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17869 $as_echo_n "checking for iconv... " >&6; }
17870 if test "${am_cv_func_iconv+set}" = set; then :
17871 $as_echo_n "(cached) " >&6
17874 am_cv_func_iconv="no, consider installing GNU libiconv"
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 #include <stdlib.h>
17883 iconv_t cd = iconv_open("","");
17884 iconv(cd,NULL,NULL,NULL,NULL);
17890 if ac_fn_c_try_link "$LINENO"; then :
17891 am_cv_func_iconv=yes
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895 if test "$am_cv_func_iconv" != yes; then
17896 am_save_LIBS="$LIBS"
17897 LIBS="$LIBS $LIBICONV"
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 #include <stdlib.h>
17905 iconv_t cd = iconv_open("","");
17906 iconv(cd,NULL,NULL,NULL,NULL);
17912 if ac_fn_c_try_link "$LINENO"; then :
17913 am_cv_lib_iconv=yes
17914 am_cv_func_iconv=yes
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS="$am_save_LIBS"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17923 $as_echo "$am_cv_func_iconv" >&6; }
17924 if test "$am_cv_func_iconv" = yes; then
17926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17929 if test "$am_cv_lib_iconv" = yes; then
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17931 $as_echo_n "checking how to link with libiconv... " >&6; }
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17933 $as_echo "$LIBICONV" >&6; }
17935 CPPFLAGS="$am_save_CPPFLAGS"
17947 acl_save_prefix="$prefix"
17948 prefix="$acl_final_prefix"
17949 acl_save_exec_prefix="$exec_prefix"
17950 exec_prefix="$acl_final_exec_prefix"
17952 eval additional_includedir=\"$includedir\"
17953 eval additional_libdir=\"$libdir\"
17955 exec_prefix="$acl_save_exec_prefix"
17956 prefix="$acl_save_prefix"
17959 # Check whether --with-libintl-prefix was given.
17960 if test "${with_libintl_prefix+set}" = set; then :
17961 withval=$with_libintl_prefix;
17962 if test "X$withval" = "Xno"; then
17965 if test "X$withval" = "X"; then
17967 acl_save_prefix="$prefix"
17968 prefix="$acl_final_prefix"
17969 acl_save_exec_prefix="$exec_prefix"
17970 exec_prefix="$acl_final_exec_prefix"
17972 eval additional_includedir=\"$includedir\"
17973 eval additional_libdir=\"$libdir\"
17975 exec_prefix="$acl_save_exec_prefix"
17976 prefix="$acl_save_prefix"
17979 additional_includedir="$withval/include"
17980 additional_libdir="$withval/lib"
17991 names_already_handled=
17992 names_next_round='intl '
17993 while test -n "$names_next_round"; do
17994 names_this_round="$names_next_round"
17996 for name in $names_this_round; do
17998 for n in $names_already_handled; do
17999 if test "$n" = "$name"; then
18000 already_handled=yes
18004 if test -z "$already_handled"; then
18005 names_already_handled="$names_already_handled $name"
18006 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18007 eval value=\"\$HAVE_LIB$uppername\"
18008 if test -n "$value"; then
18009 if test "$value" = yes; then
18010 eval value=\"\$LIB$uppername\"
18011 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18012 eval value=\"\$LTLIB$uppername\"
18013 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18022 if test $use_additional = yes; then
18023 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18024 found_dir="$additional_libdir"
18025 found_so="$additional_libdir/lib$name.$shlibext"
18026 if test -f "$additional_libdir/lib$name.la"; then
18027 found_la="$additional_libdir/lib$name.la"
18030 if test -f "$additional_libdir/lib$name.$libext"; then
18031 found_dir="$additional_libdir"
18032 found_a="$additional_libdir/lib$name.$libext"
18033 if test -f "$additional_libdir/lib$name.la"; then
18034 found_la="$additional_libdir/lib$name.la"
18039 if test "X$found_dir" = "X"; then
18040 for x in $LDFLAGS $LTLIBINTL; do
18042 acl_save_prefix="$prefix"
18043 prefix="$acl_final_prefix"
18044 acl_save_exec_prefix="$exec_prefix"
18045 exec_prefix="$acl_final_exec_prefix"
18047 exec_prefix="$acl_save_exec_prefix"
18048 prefix="$acl_save_prefix"
18052 dir=`echo "X$x" | sed -e 's/^X-L//'`
18053 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18055 found_so="$dir/lib$name.$shlibext"
18056 if test -f "$dir/lib$name.la"; then
18057 found_la="$dir/lib$name.la"
18060 if test -f "$dir/lib$name.$libext"; then
18062 found_a="$dir/lib$name.$libext"
18063 if test -f "$dir/lib$name.la"; then
18064 found_la="$dir/lib$name.la"
18070 if test "X$found_dir" != "X"; then
18075 if test "X$found_dir" != "X"; then
18076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18077 if test "X$found_so" != "X"; then
18078 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18079 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18082 for x in $ltrpathdirs; do
18083 if test "X$x" = "X$found_dir"; then
18088 if test -z "$haveit"; then
18089 ltrpathdirs="$ltrpathdirs $found_dir"
18091 if test "$hardcode_direct" = yes; then
18092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18094 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18097 for x in $rpathdirs; do
18098 if test "X$x" = "X$found_dir"; then
18103 if test -z "$haveit"; then
18104 rpathdirs="$rpathdirs $found_dir"
18108 for x in $LDFLAGS $LIBINTL; do
18110 acl_save_prefix="$prefix"
18111 prefix="$acl_final_prefix"
18112 acl_save_exec_prefix="$exec_prefix"
18113 exec_prefix="$acl_final_exec_prefix"
18115 exec_prefix="$acl_save_exec_prefix"
18116 prefix="$acl_save_prefix"
18118 if test "X$x" = "X-L$found_dir"; then
18123 if test -z "$haveit"; then
18124 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18126 if test "$hardcode_minus_L" != no; then
18127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18129 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18135 if test "X$found_a" != "X"; then
18136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18141 additional_includedir=
18142 case "$found_dir" in
18144 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18145 additional_includedir="$basedir/include"
18148 if test "X$additional_includedir" != "X"; then
18149 if test "X$additional_includedir" != "X/usr/include"; then
18151 if test "X$additional_includedir" = "X/usr/local/include"; then
18152 if test -n "$GCC"; then
18154 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18158 if test -z "$haveit"; then
18159 for x in $CPPFLAGS $INCINTL; do
18161 acl_save_prefix="$prefix"
18162 prefix="$acl_final_prefix"
18163 acl_save_exec_prefix="$exec_prefix"
18164 exec_prefix="$acl_final_exec_prefix"
18166 exec_prefix="$acl_save_exec_prefix"
18167 prefix="$acl_save_prefix"
18169 if test "X$x" = "X-I$additional_includedir"; then
18174 if test -z "$haveit"; then
18175 if test -d "$additional_includedir"; then
18176 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18182 if test -n "$found_la"; then
18183 save_libdir="$libdir"
18184 case "$found_la" in
18185 */* | *\\*) . "$found_la" ;;
18186 *) . "./$found_la" ;;
18188 libdir="$save_libdir"
18189 for dep in $dependency_libs; do
18192 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18193 if test "X$additional_libdir" != "X/usr/lib"; then
18195 if test "X$additional_libdir" = "X/usr/local/lib"; then
18196 if test -n "$GCC"; then
18198 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18202 if test -z "$haveit"; then
18204 for x in $LDFLAGS $LIBINTL; do
18206 acl_save_prefix="$prefix"
18207 prefix="$acl_final_prefix"
18208 acl_save_exec_prefix="$exec_prefix"
18209 exec_prefix="$acl_final_exec_prefix"
18211 exec_prefix="$acl_save_exec_prefix"
18212 prefix="$acl_save_prefix"
18214 if test "X$x" = "X-L$additional_libdir"; then
18219 if test -z "$haveit"; then
18220 if test -d "$additional_libdir"; then
18221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18225 for x in $LDFLAGS $LTLIBINTL; do
18227 acl_save_prefix="$prefix"
18228 prefix="$acl_final_prefix"
18229 acl_save_exec_prefix="$exec_prefix"
18230 exec_prefix="$acl_final_exec_prefix"
18232 exec_prefix="$acl_save_exec_prefix"
18233 prefix="$acl_save_prefix"
18235 if test "X$x" = "X-L$additional_libdir"; then
18240 if test -z "$haveit"; then
18241 if test -d "$additional_libdir"; then
18242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18249 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18250 if test "$enable_rpath" != no; then
18252 for x in $rpathdirs; do
18253 if test "X$x" = "X$dir"; then
18258 if test -z "$haveit"; then
18259 rpathdirs="$rpathdirs $dir"
18262 for x in $ltrpathdirs; do
18263 if test "X$x" = "X$dir"; then
18268 if test -z "$haveit"; then
18269 ltrpathdirs="$ltrpathdirs $dir"
18274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18280 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18287 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18294 if test "X$rpathdirs" != "X"; then
18295 if test -n "$hardcode_libdir_separator"; then
18297 for found_dir in $rpathdirs; do
18298 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18300 acl_save_libdir="$libdir"
18302 eval flag=\"$hardcode_libdir_flag_spec\"
18303 libdir="$acl_save_libdir"
18304 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18306 for found_dir in $rpathdirs; do
18307 acl_save_libdir="$libdir"
18308 libdir="$found_dir"
18309 eval flag=\"$hardcode_libdir_flag_spec\"
18310 libdir="$acl_save_libdir"
18311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18315 if test "X$ltrpathdirs" != "X"; then
18316 for found_dir in $ltrpathdirs; do
18317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18323 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
18324 $as_echo_n "(cached) " >&6
18326 gt_save_CPPFLAGS="$CPPFLAGS"
18327 CPPFLAGS="$CPPFLAGS $INCINTL"
18328 gt_save_LIBS="$LIBS"
18329 LIBS="$LIBS $LIBINTL"
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332 #include <libintl.h>
18333 extern int _nl_msg_cat_cntr;
18338 const char *_nl_expand_alias (const char *);
18342 bindtextdomain ("", "");
18343 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18348 if ac_fn_c_try_link "$LINENO"; then :
18349 gt_cv_func_gnugettext1_libintl=yes
18351 gt_cv_func_gnugettext1_libintl=no
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18356 LIBS="$LIBS $LIBICONV"
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359 #include <libintl.h>
18360 extern int _nl_msg_cat_cntr;
18365 const char *_nl_expand_alias (const char *);
18369 bindtextdomain ("", "");
18370 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18375 if ac_fn_c_try_link "$LINENO"; then :
18376 LIBINTL="$LIBINTL $LIBICONV"
18377 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18378 gt_cv_func_gnugettext1_libintl=yes
18381 rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18384 CPPFLAGS="$gt_save_CPPFLAGS"
18385 LIBS="$gt_save_LIBS"
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18388 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18391 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18392 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18393 && test "$PACKAGE" != gettext-runtime \
18394 && test "$PACKAGE" != gettext-tools; }; then
18395 gt_use_preinstalled_gnugettext=yes
18404 if test -n "$INTL_MACOSX_LIBS"; then
18405 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18406 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18407 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18408 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18412 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18413 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18415 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18423 $as_echo_n "checking whether to use NLS... " >&6; }
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18425 $as_echo "$USE_NLS" >&6; }
18426 if test "$USE_NLS" = "yes"; then
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18428 $as_echo_n "checking where the gettext function comes from... " >&6; }
18429 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18430 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18431 gt_source="external libintl"
18436 gt_source="included intl directory"
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18439 $as_echo "$gt_source" >&6; }
18442 if test "$USE_NLS" = "yes"; then
18444 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18445 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18447 $as_echo_n "checking how to link with libintl... " >&6; }
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18449 $as_echo "$LIBINTL" >&6; }
18451 for element in $INCINTL; do
18453 for x in $CPPFLAGS; do
18455 acl_save_prefix="$prefix"
18456 prefix="$acl_final_prefix"
18457 acl_save_exec_prefix="$exec_prefix"
18458 exec_prefix="$acl_final_exec_prefix"
18460 exec_prefix="$acl_save_exec_prefix"
18461 prefix="$acl_save_prefix"
18463 if test "X$x" = "X$element"; then
18468 if test -z "$haveit"; then
18469 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18476 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18479 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18488 INTLLIBS="$LIBINTL"
18496 os_name=`uname -s 2>/dev/null`
18497 if test x${prefix} = xNONE ; then
18498 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18499 sysconfdir=/etc/bacula
18502 if test `eval echo ${libdir}` = NONE/lib ; then
18505 os_processor=`uname -p 2>/dev/null`
18506 case ${os_processor} in
18521 if test `eval echo ${includedir}` = NONE/include ; then
18522 includedir=/usr/include
18525 if test `eval echo ${datarootdir}` = NONE/share ; then
18526 datarootdir=/usr/share
18531 if test x${exec_prefix} = xNONE ; then
18532 exec_prefix=${prefix}
18535 sysconfdir=`eval echo ${sysconfdir}`
18536 datarootdir=`eval echo ${datarootdir}`
18537 docdir=`eval echo ${docdir}`
18538 htmldir=`eval echo ${htmldir}`
18539 libdir=`eval echo ${libdir}`
18540 includedir=`eval echo ${includedir}`
18541 localedir=`eval echo ${datarootdir}/locale`
18542 cat >>confdefs.h <<_ACEOF
18543 #define SYSCONFDIR "$sysconfdir"
18546 cat >>confdefs.h <<_ACEOF
18547 #define LOCALEDIR "$localedir"
18551 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18552 sbindir=${exec_prefix}/sbin
18554 sbindir=`eval echo ${sbindir}`
18556 if test x$mandir = x'${prefix}/man' ; then
18557 mandir=/usr/share/man
18560 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18561 htmldir=`eval echo ${docdir}html`
18564 if test x$docdir = x'/usr/share/doc/' ; then
18565 docdir=`eval echo ${docdir}bacula`
18569 for ac_prog in msgfmt
18571 # Extract the first word of "$ac_prog", so it can be a program name with args.
18572 set dummy $ac_prog; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574 $as_echo_n "checking for $ac_word... " >&6; }
18575 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18580 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18590 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18601 MSGFMT=$ac_cv_path_MSGFMT
18602 if test -n "$MSGFMT"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18604 $as_echo "$MSGFMT" >&6; }
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18611 test -n "$MSGFMT" && break
18613 test -n "$MSGFMT" || MSGFMT="no"
18615 if test "$MSGFMT" = "no"
18617 echo 'msgfmt program not found, disabling NLS !'
18619 USE_INCLUDED_LIBINTL=no
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18623 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18624 if test "${ac_cv_gnu_library_2+set}" = set; then :
18625 $as_echo_n "(cached) " >&6
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18630 #include <features.h>
18631 #ifdef __GNU_LIBRARY__
18632 #if (__GLIBC__ >= 2)
18638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18639 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18640 ac_cv_gnu_library_2=yes
18642 ac_cv_gnu_library_2=no
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18650 $as_echo "$ac_cv_gnu_library_2" >&6; }
18652 GLIBC2="$ac_cv_gnu_library_2"
18655 if test -n "$ac_tool_prefix"; then
18656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 $as_echo_n "checking for $ac_word... " >&6; }
18660 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18661 $as_echo_n "(cached) " >&6
18663 if test -n "$RANLIB"; then
18664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18670 test -z "$as_dir" && as_dir=.
18671 for ac_exec_ext in '' $ac_executable_extensions; do
18672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18683 RANLIB=$ac_cv_prog_RANLIB
18684 if test -n "$RANLIB"; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18686 $as_echo "$RANLIB" >&6; }
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18694 if test -z "$ac_cv_prog_RANLIB"; then
18695 ac_ct_RANLIB=$RANLIB
18696 # Extract the first word of "ranlib", so it can be a program name with args.
18697 set dummy ranlib; ac_word=$2
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18699 $as_echo_n "checking for $ac_word... " >&6; }
18700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18701 $as_echo_n "(cached) " >&6
18703 if test -n "$ac_ct_RANLIB"; then
18704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707 for as_dir in $PATH
18710 test -z "$as_dir" && as_dir=.
18711 for ac_exec_ext in '' $ac_executable_extensions; do
18712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18713 ac_cv_prog_ac_ct_RANLIB="ranlib"
18714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18724 if test -n "$ac_ct_RANLIB"; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18726 $as_echo "$ac_ct_RANLIB" >&6; }
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18732 if test "x$ac_ct_RANLIB" = x; then
18735 case $cross_compiling:$ac_tool_warned in
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18739 ac_tool_warned=yes ;;
18741 RANLIB=$ac_ct_RANLIB
18744 RANLIB="$ac_cv_prog_RANLIB"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18749 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18750 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lcposix $LIBS"
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18768 return strerror ();
18773 if ac_fn_c_try_link "$LINENO"; then :
18774 ac_cv_lib_cposix_strerror=yes
18776 ac_cv_lib_cposix_strerror=no
18778 rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18783 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18784 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18785 LIBS="$LIBS -lcposix"
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18792 if test "${ac_cv_c_const+set}" = set; then :
18793 $as_echo_n "(cached) " >&6
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803 /* Ultrix mips cc rejects this. */
18804 typedef int charset[2];
18806 /* SunOS 4.1.1 cc rejects this. */
18807 char const *const *pcpcc;
18809 /* NEC SVR4.0.2 mips cc rejects this. */
18810 struct point {int x, y;};
18811 static struct point const zero = {0,0};
18812 /* AIX XL C 1.02.0.0 rejects this.
18813 It does not let you subtract one const X* pointer from another in
18814 an arm of an if-expression whose if-part is not a constant
18816 const char *g = "string";
18817 pcpcc = &g + (g ? g-g : 0);
18818 /* HPUX 7.0 cc rejects these. */
18820 ppc = (char**) pcpcc;
18821 pcpcc = (char const *const *) ppc;
18822 { /* SCO 3.2v4 cc rejects this. */
18824 char const *s = 0 ? (char *) 0 : (char const *) 0;
18829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18830 int x[] = {25, 17};
18831 const int *foo = &x[0];
18834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835 typedef const int *iptr;
18839 { /* AIX XL C 1.02.0.0 rejects this saying
18840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841 struct s { int j; const int *ap[3]; };
18842 struct s *b; b->j = 5;
18844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845 const int foo = 10;
18846 if (!foo) return 0;
18848 return !cs[0] && !zero.x;
18855 if ac_fn_c_try_compile "$LINENO"; then :
18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18863 $as_echo "$ac_cv_c_const" >&6; }
18864 if test $ac_cv_c_const = no; then
18866 $as_echo "#define const /**/" >>confdefs.h
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18872 $as_echo_n "checking for signed... " >&6; }
18873 if test "${bh_cv_c_signed+set}" = set; then :
18874 $as_echo_n "(cached) " >&6
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18887 if ac_fn_c_try_compile "$LINENO"; then :
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18895 $as_echo "$bh_cv_c_signed" >&6; }
18896 if test $bh_cv_c_signed = no; then
18898 $as_echo "#define signed /**/" >>confdefs.h
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18903 $as_echo_n "checking for inline... " >&6; }
18904 if test "${ac_cv_c_inline+set}" = set; then :
18905 $as_echo_n "(cached) " >&6
18908 for ac_kw in inline __inline__ __inline; do
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18911 #ifndef __cplusplus
18913 static $ac_kw foo_t static_foo () {return 0; }
18914 $ac_kw foo_t foo () {return 0; }
18918 if ac_fn_c_try_compile "$LINENO"; then :
18919 ac_cv_c_inline=$ac_kw
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 test "$ac_cv_c_inline" != no && break
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18927 $as_echo "$ac_cv_c_inline" >&6; }
18929 case $ac_cv_c_inline in
18932 case $ac_cv_c_inline in
18934 *) ac_val=$ac_cv_c_inline;;
18936 cat >>confdefs.h <<_ACEOF
18937 #ifndef __cplusplus
18938 #define inline $ac_val
18944 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18945 if test "x$ac_cv_type_off_t" = x""yes; then :
18949 cat >>confdefs.h <<_ACEOF
18950 #define off_t long int
18955 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18956 if test "x$ac_cv_type_size_t" = x""yes; then :
18960 cat >>confdefs.h <<_ACEOF
18961 #define size_t unsigned int
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18968 $as_echo_n "checking for long long... " >&6; }
18969 if test "${ac_cv_type_long_long+set}" = set; then :
18970 $as_echo_n "(cached) " >&6
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18974 long long ll = 1LL; int i = 63;
18978 long long llmax = (long long) -1;
18979 return ll << i | ll >> i | llmax / ll | llmax % ll;
18984 if ac_fn_c_try_link "$LINENO"; then :
18985 ac_cv_type_long_long=yes
18987 ac_cv_type_long_long=no
18989 rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18993 $as_echo "$ac_cv_type_long_long" >&6; }
18994 if test $ac_cv_type_long_long = yes; then
18996 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19002 $as_echo_n "checking for long double... " >&6; }
19003 if test "${gt_cv_c_long_double+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19006 if test "$GCC" = yes; then
19007 gt_cv_c_long_double=yes
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19012 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19013 long double foo = 0.0;
19014 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19015 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19025 if ac_fn_c_try_compile "$LINENO"; then :
19026 gt_cv_c_long_double=yes
19028 gt_cv_c_long_double=no
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19034 $as_echo "$gt_cv_c_long_double" >&6; }
19035 if test $gt_cv_c_long_double = yes; then
19037 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19043 $as_echo_n "checking for wchar_t... " >&6; }
19044 if test "${gt_cv_c_wchar_t+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049 #include <stddef.h>
19050 wchar_t foo = (wchar_t)'\0';
19059 if ac_fn_c_try_compile "$LINENO"; then :
19060 gt_cv_c_wchar_t=yes
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19067 $as_echo "$gt_cv_c_wchar_t" >&6; }
19068 if test $gt_cv_c_wchar_t = yes; then
19070 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19076 $as_echo_n "checking for wint_t... " >&6; }
19077 if test "${gt_cv_c_wint_t+set}" = set; then :
19078 $as_echo_n "(cached) " >&6
19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h. */
19083 wint_t foo = (wchar_t)'\0';
19092 if ac_fn_c_try_compile "$LINENO"; then :
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19100 $as_echo "$gt_cv_c_wint_t" >&6; }
19101 if test $gt_cv_c_wint_t = yes; then
19103 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19109 $as_echo_n "checking for inttypes.h... " >&6; }
19110 if test "${gl_cv_header_inttypes_h+set}" = set; then :
19111 $as_echo_n "(cached) " >&6
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115 #include <sys/types.h>
19116 #include <inttypes.h>
19120 uintmax_t i = (uintmax_t) -1;
19125 if ac_fn_c_try_compile "$LINENO"; then :
19126 gl_cv_header_inttypes_h=yes
19128 gl_cv_header_inttypes_h=no
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19133 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19134 if test $gl_cv_header_inttypes_h = yes; then
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19144 $as_echo_n "checking for stdint.h... " >&6; }
19145 if test "${gl_cv_header_stdint_h+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150 #include <sys/types.h>
19151 #include <stdint.h>
19155 uintmax_t i = (uintmax_t) -1;
19160 if ac_fn_c_try_compile "$LINENO"; then :
19161 gl_cv_header_stdint_h=yes
19163 gl_cv_header_stdint_h=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19168 $as_echo "$gl_cv_header_stdint_h" >&6; }
19169 if test $gl_cv_header_stdint_h = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_STDINT_H_WITH_UINTMAX 1
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19181 $as_echo_n "checking for intmax_t... " >&6; }
19182 if test "${gt_cv_c_intmax_t+set}" = set; then :
19183 $as_echo_n "(cached) " >&6
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19188 #include <stddef.h>
19189 #include <stdlib.h>
19190 #if HAVE_STDINT_H_WITH_UINTMAX
19191 #include <stdint.h>
19193 #if HAVE_INTTYPES_H_WITH_UINTMAX
19194 #include <inttypes.h>
19205 if ac_fn_c_try_compile "$LINENO"; then :
19206 gt_cv_c_intmax_t=yes
19208 gt_cv_c_intmax_t=no
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19213 $as_echo "$gt_cv_c_intmax_t" >&6; }
19214 if test $gt_cv_c_intmax_t = yes; then
19216 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19223 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19224 if test "${gt_cv_func_printf_posix+set}" = set; then :
19225 $as_echo_n "(cached) " >&6
19228 if test "$cross_compiling" = yes; then :
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19233 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19239 $EGREP "notposix" >/dev/null 2>&1; then :
19240 gt_cv_func_printf_posix="guessing no"
19242 gt_cv_func_printf_posix="guessing yes"
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19252 #include <string.h>
19253 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19254 dollar expansion (possibly an autoconf bug). */
19255 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19256 static char buf[100];
19259 sprintf (buf, format, 33, 55);
19260 return (strcmp (buf, "55 33") != 0);
19263 if ac_fn_c_try_run "$LINENO"; then :
19264 gt_cv_func_printf_posix=yes
19266 gt_cv_func_printf_posix=no
19268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19269 conftest.$ac_objext conftest.beam conftest.$ac_ext
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19275 $as_echo "$gt_cv_func_printf_posix" >&6; }
19276 case $gt_cv_func_printf_posix in
19279 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19284 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19285 # for constant arguments. Useless!
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19287 $as_echo_n "checking for working alloca.h... " >&6; }
19288 if test "${ac_cv_working_alloca_h+set}" = set; then :
19289 $as_echo_n "(cached) " >&6
19291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h. */
19293 #include <alloca.h>
19297 char *p = (char *) alloca (2 * sizeof (int));
19303 if ac_fn_c_try_link "$LINENO"; then :
19304 ac_cv_working_alloca_h=yes
19306 ac_cv_working_alloca_h=no
19308 rm -f core conftest.err conftest.$ac_objext \
19309 conftest$ac_exeext conftest.$ac_ext
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19312 $as_echo "$ac_cv_working_alloca_h" >&6; }
19313 if test $ac_cv_working_alloca_h = yes; then
19315 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19320 $as_echo_n "checking for alloca... " >&6; }
19321 if test "${ac_cv_func_alloca_works+set}" = set; then :
19322 $as_echo_n "(cached) " >&6
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19327 # define alloca __builtin_alloca
19330 # include <malloc.h>
19331 # define alloca _alloca
19333 # ifdef HAVE_ALLOCA_H
19334 # include <alloca.h>
19339 # ifndef alloca /* predefined by HP cc +Olibcalls */
19350 char *p = (char *) alloca (1);
19356 if ac_fn_c_try_link "$LINENO"; then :
19357 ac_cv_func_alloca_works=yes
19359 ac_cv_func_alloca_works=no
19361 rm -f core conftest.err conftest.$ac_objext \
19362 conftest$ac_exeext conftest.$ac_ext
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19365 $as_echo "$ac_cv_func_alloca_works" >&6; }
19367 if test $ac_cv_func_alloca_works = yes; then
19369 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19372 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19373 # that cause trouble. Some versions do not even contain alloca or
19374 # contain a buggy version. If you still want to use their alloca,
19375 # use ar to extract alloca.o from them instead of compiling alloca.c.
19377 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19379 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19383 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19384 if test "${ac_cv_os_cray+set}" = set; then :
19385 $as_echo_n "(cached) " >&6
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389 #if defined CRAY && ! defined CRAY2
19396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19397 $EGREP "webecray" >/dev/null 2>&1; then :
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19406 $as_echo "$ac_cv_os_cray" >&6; }
19407 if test $ac_cv_os_cray = yes; then
19408 for ac_func in _getb67 GETB67 getb67; do
19409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19411 eval as_val=\$$as_ac_var
19412 if test "x$as_val" = x""yes; then :
19414 cat >>confdefs.h <<_ACEOF
19415 #define CRAY_STACKSEG_END $ac_func
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19425 $as_echo_n "checking stack direction for C alloca... " >&6; }
19426 if test "${ac_cv_c_stack_direction+set}" = set; then :
19427 $as_echo_n "(cached) " >&6
19429 if test "$cross_compiling" = yes; then :
19430 ac_cv_c_stack_direction=0
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434 $ac_includes_default
19436 find_stack_direction ()
19438 static char *addr = 0;
19443 return find_stack_direction ();
19446 return (&dummy > addr) ? 1 : -1;
19452 return find_stack_direction () < 0;
19455 if ac_fn_c_try_run "$LINENO"; then :
19456 ac_cv_c_stack_direction=1
19458 ac_cv_c_stack_direction=-1
19460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19461 conftest.$ac_objext conftest.beam conftest.$ac_ext
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19466 $as_echo "$ac_cv_c_stack_direction" >&6; }
19467 cat >>confdefs.h <<_ACEOF
19468 #define STACK_DIRECTION $ac_cv_c_stack_direction
19477 for ac_header in $ac_header_list
19479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19482 eval as_val=\$$as_ac_Header
19483 if test "x$as_val" = x""yes; then :
19484 cat >>confdefs.h <<_ACEOF
19485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19499 for ac_func in getpagesize
19501 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19502 if test "x$ac_cv_func_getpagesize" = x""yes; then :
19503 cat >>confdefs.h <<_ACEOF
19504 #define HAVE_GETPAGESIZE 1
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19511 $as_echo_n "checking for working mmap... " >&6; }
19512 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
19513 $as_echo_n "(cached) " >&6
19515 if test "$cross_compiling" = yes; then :
19516 ac_cv_func_mmap_fixed_mapped=no
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19520 $ac_includes_default
19521 /* malloc might have been renamed as rpl_malloc. */
19524 /* Thanks to Mike Haertel and Jim Avera for this test.
19525 Here is a matrix of mmap possibilities:
19526 mmap private not fixed
19527 mmap private fixed at somewhere currently unmapped
19528 mmap private fixed at somewhere already mapped
19529 mmap shared not fixed
19530 mmap shared fixed at somewhere currently unmapped
19531 mmap shared fixed at somewhere already mapped
19532 For private mappings, we should verify that changes cannot be read()
19533 back from the file, nor mmap's back from the file at a different
19534 address. (There have been systems where private was not correctly
19535 implemented like the infamous i386 svr4.0, and systems where the
19536 VM page cache was not coherent with the file system buffer cache
19537 like early versions of FreeBSD and possibly contemporary NetBSD.)
19538 For shared mappings, we should conversely verify that changes get
19539 propagated back to all the places they're supposed to be.
19541 Grep wants private fixed already mapped.
19542 The main things grep needs to know about mmap are:
19543 * does it exist and is it safe to write into the mmap'd area
19544 * how to use it (BSD variants) */
19547 #include <sys/mman.h>
19549 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19553 /* This mess was copied from the GNU getpagesize.h. */
19554 #ifndef HAVE_GETPAGESIZE
19555 # ifdef _SC_PAGESIZE
19556 # define getpagesize() sysconf(_SC_PAGESIZE)
19557 # else /* no _SC_PAGESIZE */
19558 # ifdef HAVE_SYS_PARAM_H
19559 # include <sys/param.h>
19560 # ifdef EXEC_PAGESIZE
19561 # define getpagesize() EXEC_PAGESIZE
19562 # else /* no EXEC_PAGESIZE */
19564 # define getpagesize() NBPG * CLSIZE
19567 # endif /* no CLSIZE */
19568 # else /* no NBPG */
19570 # define getpagesize() NBPC
19571 # else /* no NBPC */
19573 # define getpagesize() PAGESIZE
19574 # endif /* PAGESIZE */
19575 # endif /* no NBPC */
19576 # endif /* no NBPG */
19577 # endif /* no EXEC_PAGESIZE */
19578 # else /* no HAVE_SYS_PARAM_H */
19579 # define getpagesize() 8192 /* punt totally */
19580 # endif /* no HAVE_SYS_PARAM_H */
19581 # endif /* no _SC_PAGESIZE */
19583 #endif /* no HAVE_GETPAGESIZE */
19588 char *data, *data2, *data3;
19589 const char *cdata2;
19593 pagesize = getpagesize ();
19595 /* First, make a file with some known garbage in it. */
19596 data = (char *) malloc (pagesize);
19599 for (i = 0; i < pagesize; ++i)
19600 *(data + i) = rand ();
19602 fd = creat ("conftest.mmap", 0600);
19605 if (write (fd, data, pagesize) != pagesize)
19609 /* Next, check that the tail of a page is zero-filled. File must have
19610 non-zero length, otherwise we risk SIGBUS for entire page. */
19611 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19615 if (write (fd2, cdata2, 1) != 1)
19617 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19618 if (data2 == MAP_FAILED)
19620 for (i = 0; i < pagesize; ++i)
19624 if (munmap (data2, pagesize))
19627 /* Next, try to mmap the file at a fixed address which already has
19628 something else allocated at it. If we can, also make sure that
19629 we see the same garbage. */
19630 fd = open ("conftest.mmap", O_RDWR);
19633 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19634 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19636 for (i = 0; i < pagesize; ++i)
19637 if (*(data + i) != *(data2 + i))
19640 /* Finally, make sure that changes to the mapped area do not
19641 percolate back to the file as seen by read(). (This is a bug on
19642 some variants of i386 svr4.0.) */
19643 for (i = 0; i < pagesize; ++i)
19644 *(data2 + i) = *(data2 + i) + 1;
19645 data3 = (char *) malloc (pagesize);
19648 if (read (fd, data3, pagesize) != pagesize)
19650 for (i = 0; i < pagesize; ++i)
19651 if (*(data + i) != *(data3 + i))
19657 if ac_fn_c_try_run "$LINENO"; then :
19658 ac_cv_func_mmap_fixed_mapped=yes
19660 ac_cv_func_mmap_fixed_mapped=no
19662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19663 conftest.$ac_objext conftest.beam conftest.$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19668 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19671 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19674 rm -f conftest.mmap conftest.txt
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19678 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19679 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
19680 $as_echo_n "(cached) " >&6
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h. */
19685 #include <features.h>
19686 #ifdef __GNU_LIBRARY__
19687 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19695 ac_cv_gnu_library_2_1=yes
19697 ac_cv_gnu_library_2_1=no
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19705 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19707 GLIBC21="$ac_cv_gnu_library_2_1"
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19713 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19714 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
19715 $as_echo_n "(cached) " >&6
19718 if test "$cross_compiling" = yes; then :
19720 # Guess based on the CPU.
19721 case "$host_cpu" in
19722 alpha* | i3456786 | m68k | s390*)
19723 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19725 gt_cv_int_divbyzero_sigfpe="guessing no";;
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19732 #include <stdlib.h>
19733 #include <signal.h>
19737 sigfpe_handler (int sig)
19739 sigfpe_handler (sig) int sig;
19742 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19743 exit (sig != SIGFPE);
19753 signal (SIGFPE, sigfpe_handler);
19754 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19755 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19756 signal (SIGTRAP, sigfpe_handler);
19758 /* Linux/SPARC yields signal SIGILL. */
19759 #if defined (__sparc__) && defined (__linux__)
19760 signal (SIGILL, sigfpe_handler);
19769 if ac_fn_c_try_run "$LINENO"; then :
19770 gt_cv_int_divbyzero_sigfpe=yes
19772 gt_cv_int_divbyzero_sigfpe=no
19774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19775 conftest.$ac_objext conftest.beam conftest.$ac_ext
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19781 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19782 case "$gt_cv_int_divbyzero_sigfpe" in
19787 cat >>confdefs.h <<_ACEOF
19788 #define INTDIV0_RAISES_SIGFPE $value
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19794 $as_echo_n "checking for unsigned long long... " >&6; }
19795 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19796 $as_echo_n "(cached) " >&6
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19800 unsigned long long ull = 1ULL; int i = 63;
19804 unsigned long long ullmax = (unsigned long long) -1;
19805 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 ac_cv_type_unsigned_long_long=yes
19813 ac_cv_type_unsigned_long_long=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19819 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19820 if test $ac_cv_type_unsigned_long_long = yes; then
19822 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19829 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19831 test $ac_cv_type_unsigned_long_long = yes \
19832 && ac_type='unsigned long long' \
19833 || ac_type='unsigned long'
19835 cat >>confdefs.h <<_ACEOF
19836 #define uintmax_t $ac_type
19841 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19847 $as_echo_n "checking for inttypes.h... " >&6; }
19848 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19849 $as_echo_n "(cached) " >&6
19852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h. */
19854 #include <sys/types.h>
19855 #include <inttypes.h>
19864 if ac_fn_c_try_compile "$LINENO"; then :
19865 gt_cv_header_inttypes_h=yes
19867 gt_cv_header_inttypes_h=no
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19873 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19874 if test $gt_cv_header_inttypes_h = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE_INTTYPES_H 1
19884 if test $gt_cv_header_inttypes_h = yes; then
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19886 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19887 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19888 $as_echo_n "(cached) " >&6
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <inttypes.h>
19906 if ac_fn_c_try_compile "$LINENO"; then :
19907 gt_cv_inttypes_pri_broken=no
19909 gt_cv_inttypes_pri_broken=yes
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19915 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19917 if test "$gt_cv_inttypes_pri_broken" = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define PRI_MACROS_BROKEN 1
19926 for ac_header in stdint.h
19928 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19929 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_STDINT_H 1
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19939 $as_echo_n "checking for SIZE_MAX... " >&6; }
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19944 #include <limits.h>
19946 #include <stdint.h>
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954 $EGREP "Found it" >/dev/null 2>&1; then :
19959 if test -z "$result"; then
19960 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19967 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19974 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19981 if test "$fits_in_uint" = 1; then
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19984 #include <stddef.h>
19986 extern unsigned long foo;
19996 if ac_fn_c_try_compile "$LINENO"; then :
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20001 if test -z "$result"; then
20002 if test "$fits_in_uint" = 1; then
20003 result="$res_hi$res_lo"U
20005 result="$res_hi$res_lo"UL
20008 result='~(size_t)0'
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20012 $as_echo "$result" >&6; }
20013 if test "$result" != yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define SIZE_MAX $result
20024 for ac_header in stdint.h
20026 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20027 if test "x$ac_cv_header_stdint_h" = x""yes; then :
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_STDINT_H 1
20043 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20044 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20048 $as_echo "#define ptrdiff_t long" >>confdefs.h
20053 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20054 stdlib.h string.h unistd.h sys/param.h
20056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20058 eval as_val=\$$as_ac_Header
20059 if test "x$as_val" = x""yes; then :
20060 cat >>confdefs.h <<_ACEOF
20061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20069 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20070 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20073 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20074 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20075 eval as_val=\$$as_ac_var
20076 if test "x$as_val" = x""yes; then :
20077 cat >>confdefs.h <<_ACEOF
20078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20087 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20088 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
20089 $as_echo_n "(cached) " >&6
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20099 char *p = (char *) _snprintf;
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107 ac_cv_have_decl__snprintf=yes
20109 ac_cv_have_decl__snprintf=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20114 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20115 if test $ac_cv_have_decl__snprintf = yes; then
20121 cat >>confdefs.h <<_ACEOF
20122 #define HAVE_DECL__SNPRINTF $gt_value
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20128 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20129 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h. */
20140 char *p = (char *) _snwprintf;
20147 if ac_fn_c_try_compile "$LINENO"; then :
20148 ac_cv_have_decl__snwprintf=yes
20150 ac_cv_have_decl__snwprintf=no
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20155 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20156 if test $ac_cv_have_decl__snwprintf = yes; then
20162 cat >>confdefs.h <<_ACEOF
20163 #define HAVE_DECL__SNWPRINTF $gt_value
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20170 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20171 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
20172 $as_echo_n "(cached) " >&6
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20181 #ifndef feof_unlocked
20182 char *p = (char *) feof_unlocked;
20189 if ac_fn_c_try_compile "$LINENO"; then :
20190 ac_cv_have_decl_feof_unlocked=yes
20192 ac_cv_have_decl_feof_unlocked=no
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20197 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20198 if test $ac_cv_have_decl_feof_unlocked = yes; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20211 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20212 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
20213 $as_echo_n "(cached) " >&6
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20222 #ifndef fgets_unlocked
20223 char *p = (char *) fgets_unlocked;
20230 if ac_fn_c_try_compile "$LINENO"; then :
20231 ac_cv_have_decl_fgets_unlocked=yes
20233 ac_cv_have_decl_fgets_unlocked=no
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20238 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20239 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20252 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20253 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
20254 $as_echo_n "(cached) " >&6
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20263 #ifndef getc_unlocked
20264 char *p = (char *) getc_unlocked;
20271 if ac_fn_c_try_compile "$LINENO"; then :
20272 ac_cv_have_decl_getc_unlocked=yes
20274 ac_cv_have_decl_getc_unlocked=no
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20279 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20280 if test $ac_cv_have_decl_getc_unlocked = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20292 case $gt_cv_func_printf_posix in
20293 *yes) HAVE_POSIX_PRINTF=1 ;;
20294 *) HAVE_POSIX_PRINTF=0 ;;
20297 if test "$ac_cv_func_asprintf" = yes; then
20303 if test "$ac_cv_func_snprintf" = yes; then
20309 if test "$ac_cv_func_wprintf" = yes; then
20321 am_save_CPPFLAGS="$CPPFLAGS"
20323 for element in $INCICONV; do
20325 for x in $CPPFLAGS; do
20327 acl_save_prefix="$prefix"
20328 prefix="$acl_final_prefix"
20329 acl_save_exec_prefix="$exec_prefix"
20330 exec_prefix="$acl_final_exec_prefix"
20332 exec_prefix="$acl_save_exec_prefix"
20333 prefix="$acl_save_prefix"
20335 if test "X$x" = "X$element"; then
20340 if test -z "$haveit"; then
20341 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20347 $as_echo_n "checking for iconv... " >&6; }
20348 if test "${am_cv_func_iconv+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20352 am_cv_func_iconv="no, consider installing GNU libiconv"
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356 #include <stdlib.h>
20361 iconv_t cd = iconv_open("","");
20362 iconv(cd,NULL,NULL,NULL,NULL);
20368 if ac_fn_c_try_link "$LINENO"; then :
20369 am_cv_func_iconv=yes
20371 rm -f core conftest.err conftest.$ac_objext \
20372 conftest$ac_exeext conftest.$ac_ext
20373 if test "$am_cv_func_iconv" != yes; then
20374 am_save_LIBS="$LIBS"
20375 LIBS="$LIBS $LIBICONV"
20376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20378 #include <stdlib.h>
20383 iconv_t cd = iconv_open("","");
20384 iconv(cd,NULL,NULL,NULL,NULL);
20390 if ac_fn_c_try_link "$LINENO"; then :
20391 am_cv_lib_iconv=yes
20392 am_cv_func_iconv=yes
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 LIBS="$am_save_LIBS"
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20401 $as_echo "$am_cv_func_iconv" >&6; }
20402 if test "$am_cv_func_iconv" = yes; then
20404 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20407 if test "$am_cv_lib_iconv" = yes; then
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20409 $as_echo_n "checking how to link with libiconv... " >&6; }
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20411 $as_echo "$LIBICONV" >&6; }
20413 CPPFLAGS="$am_save_CPPFLAGS"
20420 if test "$am_cv_func_iconv" = yes; then
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20422 $as_echo_n "checking for iconv declaration... " >&6; }
20423 if test "${am_cv_proto_iconv+set}" = set; then :
20424 $as_echo_n "(cached) " >&6
20427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 #include <stdlib.h>
20436 #if defined(__STDC__) || defined(__cplusplus)
20437 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20450 if ac_fn_c_try_compile "$LINENO"; then :
20451 am_cv_proto_iconv_arg1=""
20453 am_cv_proto_iconv_arg1="const"
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 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);"
20459 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20461 }$am_cv_proto_iconv" >&5
20463 }$am_cv_proto_iconv" >&6; }
20465 cat >>confdefs.h <<_ACEOF
20466 #define ICONV_CONST $am_cv_proto_iconv_arg1
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20474 if test "${am_cv_langinfo_codeset+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479 #include <langinfo.h>
20483 char* cs = nl_langinfo(CODESET);
20488 if ac_fn_c_try_link "$LINENO"; then :
20489 am_cv_langinfo_codeset=yes
20491 am_cv_langinfo_codeset=no
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20498 $as_echo "$am_cv_langinfo_codeset" >&6; }
20499 if test $am_cv_langinfo_codeset = yes; then
20501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20505 if test $ac_cv_header_locale_h = yes; then
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20508 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20509 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
20510 $as_echo_n "(cached) " >&6
20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h. */
20514 #include <locale.h>
20523 if ac_fn_c_try_link "$LINENO"; then :
20524 gt_cv_val_LC_MESSAGES=yes
20526 gt_cv_val_LC_MESSAGES=no
20528 rm -f core conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20532 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20533 if test $gt_cv_val_LC_MESSAGES = yes; then
20535 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20541 if test -n "$INTL_MACOSX_LIBS"; then
20542 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20545 for ac_prog in bison
20547 # Extract the first word of "$ac_prog", so it can be a program name with args.
20548 set dummy $ac_prog; ac_word=$2
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20550 $as_echo_n "checking for $ac_word... " >&6; }
20551 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
20552 $as_echo_n "(cached) " >&6
20554 if test -n "$INTLBISON"; then
20555 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20558 for as_dir in $PATH
20561 test -z "$as_dir" && as_dir=.
20562 for ac_exec_ext in '' $ac_executable_extensions; do
20563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20564 ac_cv_prog_INTLBISON="$ac_prog"
20565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20574 INTLBISON=$ac_cv_prog_INTLBISON
20575 if test -n "$INTLBISON"; then
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20577 $as_echo "$INTLBISON" >&6; }
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 $as_echo "no" >&6; }
20584 test -n "$INTLBISON" && break
20587 if test -z "$INTLBISON"; then
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20591 $as_echo_n "checking version of bison... " >&6; }
20592 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20593 case $ac_prog_version in
20594 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20595 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20596 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20597 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20600 $as_echo "$ac_prog_version" >&6; }
20602 if test $ac_verc_fail = yes; then
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20622 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20623 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
20624 $as_echo_n "(cached) " >&6
20626 gt_save_CPPFLAGS="$CPPFLAGS"
20627 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20628 gt_save_LIBS="$LIBS"
20629 LIBS="$LIBS -framework CoreFoundation"
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20632 #include <CFPreferences.h>
20636 CFPreferencesCopyAppValue(NULL, NULL)
20641 if ac_fn_c_try_link "$LINENO"; then :
20642 gt_cv_func_CFPreferencesCopyAppValue=yes
20644 gt_cv_func_CFPreferencesCopyAppValue=no
20646 rm -f core conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
20648 CPPFLAGS="$gt_save_CPPFLAGS"
20649 LIBS="$gt_save_LIBS"
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20652 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20653 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20655 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20659 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20660 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
20661 $as_echo_n "(cached) " >&6
20663 gt_save_CPPFLAGS="$CPPFLAGS"
20664 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20665 gt_save_LIBS="$LIBS"
20666 LIBS="$LIBS -framework CoreFoundation"
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669 #include <CFLocale.h>
20673 CFLocaleCopyCurrent();
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 gt_cv_func_CFLocaleCopyCurrent=yes
20681 gt_cv_func_CFLocaleCopyCurrent=no
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20685 CPPFLAGS="$gt_save_CPPFLAGS"
20686 LIBS="$gt_save_LIBS"
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20689 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20690 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20692 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20696 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20697 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20704 $as_echo_n "checking whether NLS is requested... " >&6; }
20705 # Check whether --enable-nls was given.
20706 if test "${enable_nls+set}" = set; then :
20707 enableval=$enable_nls; USE_NLS=$enableval
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20713 $as_echo "$USE_NLS" >&6; }
20718 BUILD_INCLUDED_LIBINTL=no
20719 USE_INCLUDED_LIBINTL=no
20725 if test "$USE_NLS" = "yes"; then
20726 gt_use_preinstalled_gnugettext=no
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20729 $as_echo_n "checking whether included gettext is requested... " >&6; }
20731 # Check whether --with-included-gettext was given.
20732 if test "${with_included_gettext+set}" = set; then :
20733 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20735 nls_cv_force_use_gnu_gettext=no
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20739 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20741 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20742 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20750 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20751 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20752 $as_echo_n "(cached) " >&6
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20756 #include <libintl.h>
20757 extern int _nl_msg_cat_cntr;
20758 extern int *_nl_domain_bindings;
20762 bindtextdomain ("", "");
20763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20768 if ac_fn_c_try_link "$LINENO"; then :
20769 gt_cv_func_gnugettext1_libc=yes
20771 gt_cv_func_gnugettext1_libc=no
20773 rm -f core conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20777 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20779 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20785 acl_save_prefix="$prefix"
20786 prefix="$acl_final_prefix"
20787 acl_save_exec_prefix="$exec_prefix"
20788 exec_prefix="$acl_final_exec_prefix"
20790 eval additional_includedir=\"$includedir\"
20791 eval additional_libdir=\"$libdir\"
20793 exec_prefix="$acl_save_exec_prefix"
20794 prefix="$acl_save_prefix"
20797 # Check whether --with-libintl-prefix was given.
20798 if test "${with_libintl_prefix+set}" = set; then :
20799 withval=$with_libintl_prefix;
20800 if test "X$withval" = "Xno"; then
20803 if test "X$withval" = "X"; then
20805 acl_save_prefix="$prefix"
20806 prefix="$acl_final_prefix"
20807 acl_save_exec_prefix="$exec_prefix"
20808 exec_prefix="$acl_final_exec_prefix"
20810 eval additional_includedir=\"$includedir\"
20811 eval additional_libdir=\"$libdir\"
20813 exec_prefix="$acl_save_exec_prefix"
20814 prefix="$acl_save_prefix"
20817 additional_includedir="$withval/include"
20818 additional_libdir="$withval/lib"
20829 names_already_handled=
20830 names_next_round='intl '
20831 while test -n "$names_next_round"; do
20832 names_this_round="$names_next_round"
20834 for name in $names_this_round; do
20836 for n in $names_already_handled; do
20837 if test "$n" = "$name"; then
20838 already_handled=yes
20842 if test -z "$already_handled"; then
20843 names_already_handled="$names_already_handled $name"
20844 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20845 eval value=\"\$HAVE_LIB$uppername\"
20846 if test -n "$value"; then
20847 if test "$value" = yes; then
20848 eval value=\"\$LIB$uppername\"
20849 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20850 eval value=\"\$LTLIB$uppername\"
20851 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20860 if test $use_additional = yes; then
20861 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20862 found_dir="$additional_libdir"
20863 found_so="$additional_libdir/lib$name.$shlibext"
20864 if test -f "$additional_libdir/lib$name.la"; then
20865 found_la="$additional_libdir/lib$name.la"
20868 if test -f "$additional_libdir/lib$name.$libext"; then
20869 found_dir="$additional_libdir"
20870 found_a="$additional_libdir/lib$name.$libext"
20871 if test -f "$additional_libdir/lib$name.la"; then
20872 found_la="$additional_libdir/lib$name.la"
20877 if test "X$found_dir" = "X"; then
20878 for x in $LDFLAGS $LTLIBINTL; do
20880 acl_save_prefix="$prefix"
20881 prefix="$acl_final_prefix"
20882 acl_save_exec_prefix="$exec_prefix"
20883 exec_prefix="$acl_final_exec_prefix"
20885 exec_prefix="$acl_save_exec_prefix"
20886 prefix="$acl_save_prefix"
20890 dir=`echo "X$x" | sed -e 's/^X-L//'`
20891 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20893 found_so="$dir/lib$name.$shlibext"
20894 if test -f "$dir/lib$name.la"; then
20895 found_la="$dir/lib$name.la"
20898 if test -f "$dir/lib$name.$libext"; then
20900 found_a="$dir/lib$name.$libext"
20901 if test -f "$dir/lib$name.la"; then
20902 found_la="$dir/lib$name.la"
20908 if test "X$found_dir" != "X"; then
20913 if test "X$found_dir" != "X"; then
20914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20915 if test "X$found_so" != "X"; then
20916 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20917 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20920 for x in $ltrpathdirs; do
20921 if test "X$x" = "X$found_dir"; then
20926 if test -z "$haveit"; then
20927 ltrpathdirs="$ltrpathdirs $found_dir"
20929 if test "$hardcode_direct" = yes; then
20930 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20932 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20935 for x in $rpathdirs; do
20936 if test "X$x" = "X$found_dir"; then
20941 if test -z "$haveit"; then
20942 rpathdirs="$rpathdirs $found_dir"
20946 for x in $LDFLAGS $LIBINTL; do
20948 acl_save_prefix="$prefix"
20949 prefix="$acl_final_prefix"
20950 acl_save_exec_prefix="$exec_prefix"
20951 exec_prefix="$acl_final_exec_prefix"
20953 exec_prefix="$acl_save_exec_prefix"
20954 prefix="$acl_save_prefix"
20956 if test "X$x" = "X-L$found_dir"; then
20961 if test -z "$haveit"; then
20962 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20964 if test "$hardcode_minus_L" != no; then
20965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20967 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20973 if test "X$found_a" != "X"; then
20974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20976 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20979 additional_includedir=
20980 case "$found_dir" in
20982 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20983 additional_includedir="$basedir/include"
20986 if test "X$additional_includedir" != "X"; then
20987 if test "X$additional_includedir" != "X/usr/include"; then
20989 if test "X$additional_includedir" = "X/usr/local/include"; then
20990 if test -n "$GCC"; then
20992 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20996 if test -z "$haveit"; then
20997 for x in $CPPFLAGS $INCINTL; do
20999 acl_save_prefix="$prefix"
21000 prefix="$acl_final_prefix"
21001 acl_save_exec_prefix="$exec_prefix"
21002 exec_prefix="$acl_final_exec_prefix"
21004 exec_prefix="$acl_save_exec_prefix"
21005 prefix="$acl_save_prefix"
21007 if test "X$x" = "X-I$additional_includedir"; then
21012 if test -z "$haveit"; then
21013 if test -d "$additional_includedir"; then
21014 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21020 if test -n "$found_la"; then
21021 save_libdir="$libdir"
21022 case "$found_la" in
21023 */* | *\\*) . "$found_la" ;;
21024 *) . "./$found_la" ;;
21026 libdir="$save_libdir"
21027 for dep in $dependency_libs; do
21030 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21031 if test "X$additional_libdir" != "X/usr/lib"; then
21033 if test "X$additional_libdir" = "X/usr/local/lib"; then
21034 if test -n "$GCC"; then
21036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21040 if test -z "$haveit"; then
21042 for x in $LDFLAGS $LIBINTL; do
21044 acl_save_prefix="$prefix"
21045 prefix="$acl_final_prefix"
21046 acl_save_exec_prefix="$exec_prefix"
21047 exec_prefix="$acl_final_exec_prefix"
21049 exec_prefix="$acl_save_exec_prefix"
21050 prefix="$acl_save_prefix"
21052 if test "X$x" = "X-L$additional_libdir"; then
21057 if test -z "$haveit"; then
21058 if test -d "$additional_libdir"; then
21059 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21063 for x in $LDFLAGS $LTLIBINTL; do
21065 acl_save_prefix="$prefix"
21066 prefix="$acl_final_prefix"
21067 acl_save_exec_prefix="$exec_prefix"
21068 exec_prefix="$acl_final_exec_prefix"
21070 exec_prefix="$acl_save_exec_prefix"
21071 prefix="$acl_save_prefix"
21073 if test "X$x" = "X-L$additional_libdir"; then
21078 if test -z "$haveit"; then
21079 if test -d "$additional_libdir"; then
21080 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21087 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21088 if test "$enable_rpath" != no; then
21090 for x in $rpathdirs; do
21091 if test "X$x" = "X$dir"; then
21096 if test -z "$haveit"; then
21097 rpathdirs="$rpathdirs $dir"
21100 for x in $ltrpathdirs; do
21101 if test "X$x" = "X$dir"; then
21106 if test -z "$haveit"; then
21107 ltrpathdirs="$ltrpathdirs $dir"
21112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21118 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21125 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21132 if test "X$rpathdirs" != "X"; then
21133 if test -n "$hardcode_libdir_separator"; then
21135 for found_dir in $rpathdirs; do
21136 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21138 acl_save_libdir="$libdir"
21140 eval flag=\"$hardcode_libdir_flag_spec\"
21141 libdir="$acl_save_libdir"
21142 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21144 for found_dir in $rpathdirs; do
21145 acl_save_libdir="$libdir"
21146 libdir="$found_dir"
21147 eval flag=\"$hardcode_libdir_flag_spec\"
21148 libdir="$acl_save_libdir"
21149 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21153 if test "X$ltrpathdirs" != "X"; then
21154 for found_dir in $ltrpathdirs; do
21155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21160 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21161 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
21162 $as_echo_n "(cached) " >&6
21164 gt_save_CPPFLAGS="$CPPFLAGS"
21165 CPPFLAGS="$CPPFLAGS $INCINTL"
21166 gt_save_LIBS="$LIBS"
21167 LIBS="$LIBS $LIBINTL"
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21176 const char *_nl_expand_alias (const char *);
21180 bindtextdomain ("", "");
21181 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21186 if ac_fn_c_try_link "$LINENO"; then :
21187 gt_cv_func_gnugettext1_libintl=yes
21189 gt_cv_func_gnugettext1_libintl=no
21191 rm -f core conftest.err conftest.$ac_objext \
21192 conftest$ac_exeext conftest.$ac_ext
21193 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21194 LIBS="$LIBS $LIBICONV"
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 #include <libintl.h>
21198 extern int _nl_msg_cat_cntr;
21203 const char *_nl_expand_alias (const char *);
21207 bindtextdomain ("", "");
21208 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21213 if ac_fn_c_try_link "$LINENO"; then :
21214 LIBINTL="$LIBINTL $LIBICONV"
21215 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21216 gt_cv_func_gnugettext1_libintl=yes
21219 rm -f core conftest.err conftest.$ac_objext \
21220 conftest$ac_exeext conftest.$ac_ext
21222 CPPFLAGS="$gt_save_CPPFLAGS"
21223 LIBS="$gt_save_LIBS"
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21226 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21229 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21230 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21231 && test "$PACKAGE" != gettext-runtime \
21232 && test "$PACKAGE" != gettext-tools; }; then
21233 gt_use_preinstalled_gnugettext=yes
21241 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21242 nls_cv_use_gnu_gettext=yes
21246 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21247 BUILD_INCLUDED_LIBINTL=yes
21248 USE_INCLUDED_LIBINTL=yes
21249 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21250 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21251 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21255 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21256 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21261 if test -n "$INTL_MACOSX_LIBS"; then
21262 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21263 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21264 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21265 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21269 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21270 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21272 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21280 $as_echo_n "checking whether to use NLS... " >&6; }
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21282 $as_echo "$USE_NLS" >&6; }
21283 if test "$USE_NLS" = "yes"; then
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21285 $as_echo_n "checking where the gettext function comes from... " >&6; }
21286 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21287 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21288 gt_source="external libintl"
21293 gt_source="included intl directory"
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21296 $as_echo "$gt_source" >&6; }
21299 if test "$USE_NLS" = "yes"; then
21301 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21302 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21304 $as_echo_n "checking how to link with libintl... " >&6; }
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21306 $as_echo "$LIBINTL" >&6; }
21308 for element in $INCINTL; do
21310 for x in $CPPFLAGS; do
21312 acl_save_prefix="$prefix"
21313 prefix="$acl_final_prefix"
21314 acl_save_exec_prefix="$exec_prefix"
21315 exec_prefix="$acl_final_exec_prefix"
21317 exec_prefix="$acl_save_exec_prefix"
21318 prefix="$acl_save_prefix"
21320 if test "X$x" = "X$element"; then
21325 if test -z "$haveit"; then
21326 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21333 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21336 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21344 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21345 BUILD_INCLUDED_LIBINTL=yes
21352 nls_cv_header_intl=
21353 nls_cv_header_libgt=
21365 if test "$USE_INCLUDED_LIBINTL" = yes; then
21366 INTLOBJS="\$(GETTOBJS)"
21370 INTL_LIBTOOL_SUFFIX_PREFIX=
21374 INTLLIBS="$LIBINTL"
21383 support_smartalloc=yes
21384 support_readline=yes
21388 support_wx_console=no
21389 support_tray_monitor=no
21394 support_static_tools=no
21395 support_static_fd=no
21396 support_static_sd=no
21397 support_static_dir=no
21398 support_static_cons=no
21400 build_client_only=no
21407 # Check whether --enable-gnome was given.
21408 if test "${enable_gnome+set}" = set; then :
21409 enableval=$enable_gnome;
21410 if test x$enableval = xyes; then
21419 if test x$support_gnome = xyes; then
21420 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
21421 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
21423 # AC_SUBST(GNOME_DIR)
21425 # Check whether --enable-bat was given.
21426 if test "${enable_bat+set}" = set; then :
21427 enableval=$enable_bat;
21428 if test x$enableval = xyes; then
21430 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21440 if test x$support_bat = xyes; then
21441 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21443 if test $pkg = 0; then
21444 BAT_DIR=src/qt-console
21446 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21464 # Check whether --enable-bwx-console was given.
21465 if test "${enable_bwx_console+set}" = set; then :
21466 enableval=$enable_bwx_console;
21467 if test x$enableval = xyes; then
21468 support_wx_console=yes
21476 if test x$support_wx_console = xyes; then
21477 abc=`$WXCONFIG $WXFLAGS --cppflags`
21479 if test $pkg = 0; then
21480 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21481 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21482 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21486 WX_DIR="src/wx-console"
21489 echo "wx-config program not found. bwx-console disabled."
21491 support_wx_console=no
21496 # Check whether --enable-tray-monitor was given.
21497 if test "${enable_tray_monitor+set}" = set; then :
21498 enableval=$enable_tray_monitor;
21499 if test x$enableval = xyes; then
21500 support_tray_monitor=yes
21508 if test x$support_tray_monitor = xyes; then
21509 abc=`$PKGCONFIG --exists gtk+-2.0`
21511 if test $pkg = 0; then
21512 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21513 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21516 TRAY_MONITOR_DIR=src/tray-monitor
21517 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21519 if test $pkg = 0; then
21521 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21528 # Check whether --enable-smartalloc was given.
21529 if test "${enable_smartalloc+set}" = set; then :
21530 enableval=$enable_smartalloc;
21531 if test x$enableval = xno; then
21532 support_smartalloc=no
21539 if test x$support_smartalloc = xyes; then
21541 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21545 # Check whether --enable-lockmgr was given.
21546 if test "${enable_lockmgr+set}" = set; then :
21547 enableval=$enable_lockmgr;
21548 if test x$enableval = xyes; then
21549 support_lockmgr=yes
21556 if test x$support_lockmgr = xyes; then
21558 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21563 # Check whether --enable-static-tools was given.
21564 if test "${enable_static_tools+set}" = set; then :
21565 enableval=$enable_static_tools;
21566 if test x$enableval = xyes; then
21567 if test x$use_libtool = xyes; then
21568 as_fn_error "Libtool is enabled, not compatible with static tools,
21569 please rerun configure with --disable-libtool" "$LINENO" 5
21571 support_static_tools=yes
21579 if test x$support_static_tools = xyes; then
21580 TTOOL_LDFLAGS="-static"
21584 # Check whether --enable-static-fd was given.
21585 if test "${enable_static_fd+set}" = set; then :
21586 enableval=$enable_static_fd;
21587 if test x$enableval = xyes; then
21588 if test x$use_libtool = xyes; then
21589 as_fn_error "Libtool is enabled, not compatible with static tools,
21590 please rerun configure with --disable-libtool" "$LINENO" 5
21592 support_static_fd=yes
21600 if test x$support_static_fd = xyes; then
21601 STATIC_FD="static-bacula-fd"
21605 # Check whether --enable-static-sd was given.
21606 if test "${enable_static_sd+set}" = set; then :
21607 enableval=$enable_static_sd;
21608 if test x$enableval = xyes; then
21609 if test x$use_libtool = xyes; then
21610 as_fn_error "Libtool is enabled, not compatible with static tools,
21611 please rerun configure with --disable-libtool" "$LINENO" 5
21613 support_static_sd=yes
21621 if test x$support_static_sd = xyes; then
21622 STATIC_SD="static-bacula-sd"
21626 # Check whether --enable-static-dir was given.
21627 if test "${enable_static_dir+set}" = set; then :
21628 enableval=$enable_static_dir;
21629 if test x$enableval = xyes; then
21630 if test x$use_libtool = xyes; then
21631 as_fn_error "Libtool is enabled, not compatible with static tools,
21632 please rerun configure with --disable-libtool" "$LINENO" 5
21634 support_static_dir=yes
21642 if test x$support_static_dir = xyes; then
21643 STATIC_DIR="static-bacula-dir"
21647 # Check whether --enable-static-cons was given.
21648 if test "${enable_static_cons+set}" = set; then :
21649 enableval=$enable_static_cons;
21650 if test x$enableval = xyes; then
21651 if test x$use_libtool = xyes; then
21652 as_fn_error "Libtool is enabled, not compatible with static tools,
21653 please rerun configure with --disable-libtool" "$LINENO" 5
21655 support_static_cons=yes
21665 if test x$support_static_cons = xyes; then
21666 STATIC_CONS="static-bconsole"
21667 STATIC_GNOME_CONS="static-bgnome-console"
21668 STATIC_WX_CONS="static-bwx-console"
21674 # Check whether --enable-client-only was given.
21675 if test "${enable_client_only+set}" = set; then :
21676 enableval=$enable_client_only;
21677 if test x$enableval = xyes; then
21678 build_client_only=yes
21686 if test x$build_client_only = xno; then
21693 # Check whether --enable-build-dird was given.
21694 if test "${enable_build_dird+set}" = set; then :
21695 enableval=$enable_build_dird;
21696 if test x$enableval = xno; then
21703 if test x$build_dird = xyes; then
21704 DIRD_DIR="src/dird"
21705 DIR_TOOLS="DIRTOOLS"
21708 DIR_TOOLS="NODIRTOOLS"
21713 # Check whether --enable-build-stored was given.
21714 if test "${enable_build_stored+set}" = set; then :
21715 enableval=$enable_build_stored;
21716 if test x$enableval = xno; then
21723 if test x$build_stored = xyes; then
21724 STORED_DIR="src/stored"
21730 # Check whether --enable-conio was given.
21731 if test "${enable_conio+set}" = set; then :
21732 enableval=$enable_conio;
21733 if test x$enableval = xno; then
21743 # Check whether --enable-ipv6 was given.
21744 if test "${enable_ipv6+set}" = set; then :
21745 enableval=$enable_ipv6;
21746 if test x$enableval = xno; then
21754 if test x$support_ipv6 = xyes; then
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21757 #include <sys/types.h>
21758 #include <sys/socket.h>
21759 #include <netinet/in.h>
21763 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21768 if ac_fn_c_try_link "$LINENO"; then :
21773 rm -f core conftest.err conftest.$ac_objext \
21774 conftest$ac_exeext conftest.$ac_ext
21777 if test x$support_ipv6 = xyes; then
21779 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21784 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_curses_h" = x""yes; then :
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21788 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21789 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21790 $as_echo_n "(cached) " >&6
21792 ac_check_lib_save_LIBS=$LIBS
21793 LIBS="-ltinfo $LIBS"
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21797 /* Override any GCC internal prototype to avoid an error.
21798 Use char because int might match the return type of a GCC
21799 builtin and then its argument prototype would still apply. */
21812 if ac_fn_c_try_link "$LINENO"; then :
21813 ac_cv_lib_tinfo_tgetent=yes
21815 ac_cv_lib_tinfo_tgetent=no
21817 rm -f core conftest.err conftest.$ac_objext \
21818 conftest$ac_exeext conftest.$ac_ext
21819 LIBS=$ac_check_lib_save_LIBS
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21822 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21823 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21828 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21829 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21830 $as_echo_n "(cached) " >&6
21832 ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-lncurses $LIBS"
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 /* Override any GCC internal prototype to avoid an error.
21838 Use char because int might match the return type of a GCC
21839 builtin and then its argument prototype would still apply. */
21852 if ac_fn_c_try_link "$LINENO"; then :
21853 ac_cv_lib_ncurses_tgetent=yes
21855 ac_cv_lib_ncurses_tgetent=no
21857 rm -f core conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21862 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21863 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21864 TERM_LIB="-lncurses"
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21868 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21869 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21872 ac_check_lib_save_LIBS=$LIBS
21873 LIBS="-ltermcap $LIBS"
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h. */
21877 /* Override any GCC internal prototype to avoid an error.
21878 Use char because int might match the return type of a GCC
21879 builtin and then its argument prototype would still apply. */
21892 if ac_fn_c_try_link "$LINENO"; then :
21893 ac_cv_lib_termcap_tgetent=yes
21895 ac_cv_lib_termcap_tgetent=no
21897 rm -f core conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
21899 LIBS=$ac_check_lib_save_LIBS
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21902 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21903 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21904 TERM_LIB="-ltermcap"
21915 for ac_header in curses.h
21917 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21918 if test "x$ac_cv_header_curses_h" = x""yes; then :
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_CURSES_H 1
21927 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21928 if test "x$ac_cv_header_term_h" = x""yes; then :
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21930 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21931 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21934 ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lcurses $LIBS"
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21939 /* Override any GCC internal prototype to avoid an error.
21940 Use char because int might match the return type of a GCC
21941 builtin and then its argument prototype would still apply. */
21954 if ac_fn_c_try_link "$LINENO"; then :
21955 ac_cv_lib_curses_tgetent=yes
21957 ac_cv_lib_curses_tgetent=no
21959 rm -f core conftest.err conftest.$ac_objext \
21960 conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21964 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21965 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21966 TERM_LIB="-lcurses"
21980 if test x$support_conio = xyes; then
21981 if test x$TERM_LIB != x; then
21982 CONS_LIBS=$TERM_LIB
21986 support_readline=no
21988 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21991 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21996 # Check whether --enable-readline was given.
21997 if test "${enable_readline+set}" = set; then :
21998 enableval=$enable_readline;
21999 if test x$enableval = xno; then
22000 support_readline=no
22006 if test x$TERM_LIB = x ; then
22007 support_readline=no
22012 if test x$support_readline = xyes; then
22014 # Check whether --with-readline was given.
22015 if test "${with_readline+set}" = set; then :
22016 withval=$with_readline;
22017 case "$with_readline" in
22022 if test -f ${with_readline}/readline.h; then
22023 CONS_INC="-I${with_readline}"
22024 CONS_LDFLAGS="-L$with_readline"
22025 elif test -f ${with_readline}/include/readline/readline.h; then
22026 CONS_INC="-I${with_readline}/include/readline"
22027 CONS_LDFLAGS="-L${with_readline}/lib"
22028 with_readline="${with_readline}/include/readline"
22030 with_readline="/usr/include/readline"
22033 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22034 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22035 eval as_val=\$$as_ac_Header
22036 if test "x$as_val" = x""yes; then :
22039 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22041 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22047 echo "readline.h not found. readline turned off ..."
22059 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22060 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22063 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22066 CONS_INC="-I/usr/include/readline"
22067 CONS_LIBS="-lreadline $TERM_LIB"
22071 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22072 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22073 eval as_val=\$$as_ac_Header
22074 if test "x$as_val" = x""yes; then :
22077 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22080 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22081 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22082 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22083 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22088 echo "readline.h not found. readline turned off ..."
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22116 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22117 if test "${ac_cv_header_stat_broken+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h. */
22122 #include <sys/types.h>
22123 #include <sys/stat.h>
22125 #if defined S_ISBLK && defined S_IFDIR
22126 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22129 #if defined S_ISBLK && defined S_IFCHR
22130 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22133 #if defined S_ISLNK && defined S_IFREG
22134 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22137 #if defined S_ISSOCK && defined S_IFREG
22138 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22142 if ac_fn_c_try_compile "$LINENO"; then :
22143 ac_cv_header_stat_broken=no
22145 ac_cv_header_stat_broken=yes
22147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22150 $as_echo "$ac_cv_header_stat_broken" >&6; }
22151 if test $ac_cv_header_stat_broken = yes; then
22153 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22157 ac_header_dirent=no
22158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22159 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22161 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
22163 $as_echo_n "(cached) " >&6
22165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h. */
22167 #include <sys/types.h>
22179 if ac_fn_c_try_compile "$LINENO"; then :
22180 eval "$as_ac_Header=yes"
22182 eval "$as_ac_Header=no"
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 eval ac_res=\$$as_ac_Header
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22188 $as_echo "$ac_res" >&6; }
22189 eval as_val=\$$as_ac_Header
22190 if test "x$as_val" = x""yes; then :
22191 cat >>confdefs.h <<_ACEOF
22192 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22195 ac_header_dirent=$ac_hdr; break
22199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22200 if test $ac_header_dirent = dirent.h; then
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22202 $as_echo_n "checking for library containing opendir... " >&6; }
22203 if test "${ac_cv_search_opendir+set}" = set; then :
22204 $as_echo_n "(cached) " >&6
22206 ac_func_search_save_LIBS=$LIBS
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22210 /* Override any GCC internal prototype to avoid an error.
22211 Use char because int might match the return type of a GCC
22212 builtin and then its argument prototype would still apply. */
22225 for ac_lib in '' dir; do
22226 if test -z "$ac_lib"; then
22227 ac_res="none required"
22230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22232 if ac_fn_c_try_link "$LINENO"; then :
22233 ac_cv_search_opendir=$ac_res
22235 rm -f core conftest.err conftest.$ac_objext \
22237 if test "${ac_cv_search_opendir+set}" = set; then :
22241 if test "${ac_cv_search_opendir+set}" = set; then :
22244 ac_cv_search_opendir=no
22246 rm conftest.$ac_ext
22247 LIBS=$ac_func_search_save_LIBS
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22250 $as_echo "$ac_cv_search_opendir" >&6; }
22251 ac_res=$ac_cv_search_opendir
22252 if test "$ac_res" != no; then :
22253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22259 $as_echo_n "checking for library containing opendir... " >&6; }
22260 if test "${ac_cv_search_opendir+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22263 ac_func_search_save_LIBS=$LIBS
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h. */
22267 /* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22282 for ac_lib in '' x; do
22283 if test -z "$ac_lib"; then
22284 ac_res="none required"
22287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22289 if ac_fn_c_try_link "$LINENO"; then :
22290 ac_cv_search_opendir=$ac_res
22292 rm -f core conftest.err conftest.$ac_objext \
22294 if test "${ac_cv_search_opendir+set}" = set; then :
22298 if test "${ac_cv_search_opendir+set}" = set; then :
22301 ac_cv_search_opendir=no
22303 rm conftest.$ac_ext
22304 LIBS=$ac_func_search_save_LIBS
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22307 $as_echo "$ac_cv_search_opendir" >&6; }
22308 ac_res=$ac_cv_search_opendir
22309 if test "$ac_res" != no; then :
22310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22316 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22320 eval as_val=\$$as_ac_var
22321 if test "x$as_val" = x""yes; then :
22322 cat >>confdefs.h <<_ACEOF
22323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329 for ac_func in nanosleep nl_langinfo
22331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22333 eval as_val=\$$as_ac_var
22334 if test "x$as_val" = x""yes; then :
22335 cat >>confdefs.h <<_ACEOF
22336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22342 for ac_header in varargs.h
22344 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22345 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22346 cat >>confdefs.h <<_ACEOF
22347 #define HAVE_VARARGS_H 1
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22357 $as_echo_n "checking for Python support... " >&6; }
22359 # Check whether --with-python was given.
22360 if test "${with_python+set}" = set; then :
22361 withval=$with_python;
22364 if test "$withval" != "no"; then
22365 if test "$withval" = "yes"; then
22366 if test -e /usr/bin/python-config ; then
22367 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22368 PYTHON_LIBS=`/usr/bin/python-config --libs`
22370 for python_root in /usr /usr/local /usr/sfw; do
22371 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22372 if test -f $python_root/include/${ver}/Python.h; then
22373 PYTHON_INCDIR=-I$python_root/include/${ver}
22374 if test -d $python_root/lib64/${ver}/config; then
22375 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22377 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22384 if test x$PYTHON_INCDIR = x; then
22385 if test -f $prefix/include/Python.h; then
22386 PYTHON_INCDIR=-I$prefix/include
22387 if test -d $prefix/lib64/config; then
22388 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22390 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22394 $as_echo "no" >&6; }
22395 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
22400 if test -e $withval/bin/python-config ; then
22401 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22402 PYTHON_LIBS=`$withval/bin/python-config --libs`
22403 elif test -f $withval/Python.h; then
22404 PYTHON_INCDIR=-I$withval
22405 PYTHON_LIBS="-L$withval/config -lpython"
22406 elif test -f $withval/include/Python.h; then
22407 PYTHON_INCDIR=-I$withval/include
22408 if test -d $withval/lib64/config; then
22409 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22411 PYTHON_LIBS="-L$withval/lib/config -lpython"
22413 elif test -f $withval/include/python/Python.h; then
22414 PYTHON_INCDIR=-I$withval/include/python
22415 if test -d $withval/lib64/python/config; then
22416 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22418 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22427 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22433 $as_echo "$as_me: checking for more Python libs" >&6;}
22434 saved_LIBS="$LIBS"; LIBS=
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22436 $as_echo_n "checking for library containing shm_open... " >&6; }
22437 if test "${ac_cv_search_shm_open+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22440 ac_func_search_save_LIBS=$LIBS
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h. */
22444 /* Override any GCC internal prototype to avoid an error.
22445 Use char because int might match the return type of a GCC
22446 builtin and then its argument prototype would still apply. */
22454 return shm_open ();
22459 for ac_lib in '' rt; do
22460 if test -z "$ac_lib"; then
22461 ac_res="none required"
22464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22466 if ac_fn_c_try_link "$LINENO"; then :
22467 ac_cv_search_shm_open=$ac_res
22469 rm -f core conftest.err conftest.$ac_objext \
22471 if test "${ac_cv_search_shm_open+set}" = set; then :
22475 if test "${ac_cv_search_shm_open+set}" = set; then :
22478 ac_cv_search_shm_open=no
22480 rm conftest.$ac_ext
22481 LIBS=$ac_func_search_save_LIBS
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22484 $as_echo "$ac_cv_search_shm_open" >&6; }
22485 ac_res=$ac_cv_search_shm_open
22486 if test "$ac_res" != no; then :
22487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22492 $as_echo_n "checking for openpty in -lutil... " >&6; }
22493 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22496 ac_check_lib_save_LIBS=$LIBS
22497 LIBS="-lutil $LIBS"
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22501 /* Override any GCC internal prototype to avoid an error.
22502 Use char because int might match the return type of a GCC
22503 builtin and then its argument prototype would still apply. */
22516 if ac_fn_c_try_link "$LINENO"; then :
22517 ac_cv_lib_util_openpty=yes
22519 ac_cv_lib_util_openpty=no
22521 rm -f core conftest.err conftest.$ac_objext \
22522 conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22526 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22527 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_LIBUTIL 1
22532 LIBS="-lutil $LIBS"
22536 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22540 $as_echo "no" >&6; }
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22554 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22555 if test "x$ac_cv_func_socket" = x""yes; then :
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22557 $as_echo "using libc's socket" >&6; }
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22560 $as_echo_n "checking for socket in -lxnet... " >&6; }
22561 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22564 ac_check_lib_save_LIBS=$LIBS
22565 LIBS="-lxnet $LIBS"
22566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567 /* end confdefs.h. */
22569 /* Override any GCC internal prototype to avoid an error.
22570 Use char because int might match the return type of a GCC
22571 builtin and then its argument prototype would still apply. */
22584 if ac_fn_c_try_link "$LINENO"; then :
22585 ac_cv_lib_xnet_socket=yes
22587 ac_cv_lib_xnet_socket=no
22589 rm -f core conftest.err conftest.$ac_objext \
22590 conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22594 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22595 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_LIBXNET 1
22600 LIBS="-lxnet $LIBS"
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22605 $as_echo_n "checking for socket in -lsocket... " >&6; }
22606 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22609 ac_check_lib_save_LIBS=$LIBS
22610 LIBS="-lsocket $LIBS"
22611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22614 /* Override any GCC internal prototype to avoid an error.
22615 Use char because int might match the return type of a GCC
22616 builtin and then its argument prototype would still apply. */
22629 if ac_fn_c_try_link "$LINENO"; then :
22630 ac_cv_lib_socket_socket=yes
22632 ac_cv_lib_socket_socket=no
22634 rm -f core conftest.err conftest.$ac_objext \
22635 conftest$ac_exeext conftest.$ac_ext
22636 LIBS=$ac_check_lib_save_LIBS
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22639 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22640 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_LIBSOCKET 1
22645 LIBS="-lsocket $LIBS"
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22650 $as_echo_n "checking for socket in -linet... " >&6; }
22651 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
22654 ac_check_lib_save_LIBS=$LIBS
22655 LIBS="-linet $LIBS"
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h. */
22659 /* Override any GCC internal prototype to avoid an error.
22660 Use char because int might match the return type of a GCC
22661 builtin and then its argument prototype would still apply. */
22674 if ac_fn_c_try_link "$LINENO"; then :
22675 ac_cv_lib_inet_socket=yes
22677 ac_cv_lib_inet_socket=no
22679 rm -f core conftest.err conftest.$ac_objext \
22680 conftest$ac_exeext conftest.$ac_ext
22681 LIBS=$ac_check_lib_save_LIBS
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22684 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22685 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22686 cat >>confdefs.h <<_ACEOF
22687 #define HAVE_LIBINET 1
22690 LIBS="-linet $LIBS"
22700 # Check whether --with-tcp-wrappers was given.
22701 if test "${with_tcp_wrappers+set}" = set; then :
22702 withval=$with_tcp_wrappers;
22703 if test "x$withval" != "xno" ; then
22705 LIBS="$saved_LIBS -lwrap"
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22707 $as_echo_n "checking for library containing nanosleep... " >&6; }
22708 if test "${ac_cv_search_nanosleep+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22711 ac_func_search_save_LIBS=$LIBS
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22725 return nanosleep ();
22730 for ac_lib in '' rt; do
22731 if test -z "$ac_lib"; then
22732 ac_res="none required"
22735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22737 if ac_fn_c_try_link "$LINENO"; then :
22738 ac_cv_search_nanosleep=$ac_res
22740 rm -f core conftest.err conftest.$ac_objext \
22742 if test "${ac_cv_search_nanosleep+set}" = set; then :
22746 if test "${ac_cv_search_nanosleep+set}" = set; then :
22749 ac_cv_search_nanosleep=no
22751 rm conftest.$ac_ext
22752 LIBS=$ac_func_search_save_LIBS
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22755 $as_echo "$ac_cv_search_nanosleep" >&6; }
22756 ac_res=$ac_cv_search_nanosleep
22757 if test "$ac_res" != no; then :
22758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22763 $as_echo_n "checking for libwrap... " >&6; }
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h. */
22767 #include <sys/types.h>
22769 int deny_severity = 0;
22770 int allow_severity = 0;
22771 struct request_info *req;
22783 if ac_fn_c_try_link "$LINENO"; then :
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22786 $as_echo "yes" >&6; }
22788 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22796 LIBS="$saved_LIBS -lwrap -lnsl"
22797 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22801 #include <sys/types.h>
22803 int deny_severity = 0;
22804 int allow_severity = 0;
22805 struct request_info *req;
22817 if ac_fn_c_try_link "$LINENO"; then :
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22820 $as_echo "yes" >&6; }
22822 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22830 as_fn_error "*** libwrap missing" "$LINENO" 5
22834 rm -f core conftest.err conftest.$ac_objext \
22835 conftest$ac_exeext conftest.$ac_ext
22839 rm -f core conftest.err conftest.$ac_objext \
22840 conftest$ac_exeext conftest.$ac_ext
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22848 $as_echo_n "checking for OpenSSL... " >&6; }
22850 # Check whether --with-openssl was given.
22851 if test "${with_openssl+set}" = set; then :
22852 withval=$with_openssl;
22853 with_openssl_directory=${withval}
22859 if test "x$with_openssl_directory" != "xno"; then
22860 OPENSSL_LIBS="-lssl -lcrypto"
22863 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22865 # Make sure the $with_openssl_directory also makes sense
22867 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22868 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22869 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22873 saved_LIBS="${LIBS}"
22874 saved_CFLAGS="${CFLAGS}"
22875 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22876 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h. */
22881 #include <openssl/ssl.h>
22887 CRYPTO_set_id_callback(NULL);
22893 if ac_fn_c_try_link "$LINENO"; then :
22896 support_crypto="yes"
22901 support_crypto="no"
22905 rm -f core conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h. */
22911 #include <openssl/evp.h>
22923 if ac_fn_c_try_link "$LINENO"; then :
22925 ac_cv_openssl_sha2="yes"
22929 ac_cv_openssl_sha2="no"
22933 rm -f core conftest.err conftest.$ac_objext \
22934 conftest$ac_exeext conftest.$ac_ext
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 #include <openssl/evp.h>
22951 if ac_fn_c_try_link "$LINENO"; then :
22953 ac_cv_openssl_export="no"
22957 ac_cv_openssl_export="yes"
22961 rm -f core conftest.err conftest.$ac_objext \
22962 conftest$ac_exeext conftest.$ac_ext
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22965 $as_echo "$support_tls" >&6; }
22966 if test "$support_tls" = "yes"; then
22968 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22971 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22974 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22978 if test "$ac_cv_openssl_sha2" = "yes"; then
22980 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22984 if test "$ac_cv_openssl_export" = "yes"; then
22986 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22990 if test "$support_crypto" = "yes"; then
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22992 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22993 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22994 $as_echo_n "(cached) " >&6
22996 ac_check_lib_save_LIBS=$LIBS
22997 LIBS="-lcrypto $LIBS"
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23001 /* Override any GCC internal prototype to avoid an error.
23002 Use char because int might match the return type of a GCC
23003 builtin and then its argument prototype would still apply. */
23007 char EVP_PKEY_encrypt_old ();
23011 return EVP_PKEY_encrypt_old ();
23016 if ac_fn_c_try_link "$LINENO"; then :
23017 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23019 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23021 rm -f core conftest.err conftest.$ac_objext \
23022 conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23026 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23027 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23029 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23035 LIBS="${saved_LIBS}"
23036 CFLAGS="${saved_CFLAGS}"
23039 support_crypto="no"
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23041 $as_echo "$support_tls" >&6; }
23044 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23053 $as_echo_n "checking for library containing dlopen... " >&6; }
23054 if test "${ac_cv_search_dlopen+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23057 ac_func_search_save_LIBS=$LIBS
23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059 /* end confdefs.h. */
23061 /* Override any GCC internal prototype to avoid an error.
23062 Use char because int might match the return type of a GCC
23063 builtin and then its argument prototype would still apply. */
23076 for ac_lib in '' dl; do
23077 if test -z "$ac_lib"; then
23078 ac_res="none required"
23081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23083 if ac_fn_c_try_link "$LINENO"; then :
23084 ac_cv_search_dlopen=$ac_res
23086 rm -f core conftest.err conftest.$ac_objext \
23088 if test "${ac_cv_search_dlopen+set}" = set; then :
23092 if test "${ac_cv_search_dlopen+set}" = set; then :
23095 ac_cv_search_dlopen=no
23097 rm conftest.$ac_ext
23098 LIBS=$ac_func_search_save_LIBS
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23101 $as_echo "$ac_cv_search_dlopen" >&6; }
23102 ac_res=$ac_cv_search_dlopen
23103 if test "$ac_res" != no; then :
23104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23109 working_dir=`eval echo ${prefix}/var/bacula/working`
23111 # Check whether --with-working-dir was given.
23112 if test "${with_working_dir+set}" = set; then :
23113 withval=$with_working_dir;
23114 if test "x$withval" != "xno" ; then
23115 working_dir=$withval
23126 # Check whether --with-archivedir was given.
23127 if test "${with_archivedir+set}" = set; then :
23128 withval=$with_archivedir;
23129 if test "x$withval" != "xno" ; then
23130 archivedir=$withval
23139 basename=`hostname`
23141 # Check whether --with-basename was given.
23142 if test "${with_basename+set}" = set; then :
23143 withval=$with_basename;
23144 if test "x$withval" != "xno" ; then
23154 hostname=`uname -n | cut -d '.' -f 1`
23155 if test x${hostname} = x ; then
23156 hostname="localhost"
23159 # Check whether --with-hostname was given.
23160 if test "${with_hostname+set}" = set; then :
23161 withval=$with_hostname;
23162 if test "x$withval" != "xno" ; then
23173 scriptdir=`eval echo ${sysconfdir}`
23175 # Check whether --with-scriptdir was given.
23176 if test "${with_scriptdir+set}" = set; then :
23177 withval=$with_scriptdir;
23178 if test "x$withval" != "xno" ; then
23191 # Check whether --with-bsrdir was given.
23192 if test "${with_bsrdir+set}" = set; then :
23193 withval=$with_bsrdir;
23194 if test "x$withval" != "xno" ; then
23206 # Check whether --with-logdir was given.
23207 if test "${with_logdir+set}" = set; then :
23208 withval=$with_logdir;
23209 if test "x$withval" != "xno" ; then
23220 # ------------------------------------------
23221 # Where to place plugindir (plugin files)
23222 # ------------------------------------------
23223 plugindir=`eval echo ${libdir}`
23225 # Check whether --with-plugindir was given.
23226 if test "${with_plugindir+set}" = set; then :
23227 withval=$with_plugindir;
23228 if test "x$withval" != "xno" ; then
23238 dump_email=root@localhost
23240 # Check whether --with-dump-email was given.
23241 if test "${with_dump_email+set}" = set; then :
23242 withval=$with_dump_email;
23243 if test "x$withval" != "xno" ; then
23244 dump_email=$withval
23253 job_email=root@localhost
23255 # Check whether --with-job-email was given.
23256 if test "${with_job_email+set}" = set; then :
23257 withval=$with_job_email;
23258 if test "x$withval" != "xno" ; then
23268 smtp_host=localhost
23270 # Check whether --with-smtp_host was given.
23271 if test "${with_smtp_host+set}" = set; then :
23272 withval=$with_smtp_host;
23273 if test "x$withval" != "xno" ; then
23285 # Check whether --with-pid-dir was given.
23286 if test "${with_pid_dir+set}" = set; then :
23287 withval=$with_pid_dir;
23288 if test "x$withval" != "xno" ; then
23296 cat >>confdefs.h <<_ACEOF
23297 #define _PATH_BACULA_PIDDIR "$piddir"
23302 subsysdir=/var/run/subsys
23303 if test -d /var/run/subsys; then
23304 subsysdir=/var/run/subsys
23305 elif test -d /var/lock/subsys; then
23306 subsysdir=/var/lock/subsys
23308 subsysdir=/var/run/subsys
23311 # Check whether --with-subsys-dir was given.
23312 if test "${with_subsys_dir+set}" = set; then :
23313 withval=$with_subsys_dir;
23314 if test "x$withval" != "xno" ; then
23326 # Check whether --with-baseport was given.
23327 if test "${with_baseport+set}" = set; then :
23328 withval=$with_baseport;
23329 if test "x$withval" != "xno" ; then
23338 dir_port=`expr $baseport`
23339 fd_port=`expr $baseport + 1`
23340 sd_port=`expr $fd_port + 1`
23348 # Check whether --with-dir-password was given.
23349 if test "${with_dir_password+set}" = set; then :
23350 withval=$with_dir_password;
23351 if test "x$withval" != "xno" ; then
23352 dir_password=$withval
23359 if test "x$dir_password" = "x" ; then
23360 if test "x$OPENSSL" = "xnone" ; then
23361 key=`autoconf/randpass 33`
23363 key=`openssl rand -base64 33`
23370 # Check whether --with-fd-password was given.
23371 if test "${with_fd_password+set}" = set; then :
23372 withval=$with_fd_password;
23373 if test "x$withval" != "xno" ; then
23374 fd_password=$withval
23381 if test "x$fd_password" = "x" ; then
23382 if test "x$OPENSSL" = "xnone" ; then
23383 key=`autoconf/randpass 37`
23385 key=`openssl rand -base64 33`
23392 # Check whether --with-sd-password was given.
23393 if test "${with_sd_password+set}" = set; then :
23394 withval=$with_sd_password;
23395 if test "x$withval" != "xno" ; then
23396 sd_password=$withval
23403 if test "x$sd_password" = "x" ; then
23404 if test "x$OPENSSL" = "xnone" ; then
23405 key=`autoconf/randpass 41`
23407 key=`openssl rand -base64 33`
23414 # Check whether --with-mon-dir-password was given.
23415 if test "${with_mon_dir_password+set}" = set; then :
23416 withval=$with_mon_dir_password;
23417 if test "x$withval" != "xno" ; then
23418 mon_dir_password=$withval
23425 if test "x$mon_dir_password" = "x" ; then
23426 if test "x$OPENSSL" = "xnone" ; then
23427 key=`autoconf/randpass 33`
23429 key=`openssl rand -base64 33`
23431 mon_dir_password=$key
23436 # Check whether --with-mon-fd-password was given.
23437 if test "${with_mon_fd_password+set}" = set; then :
23438 withval=$with_mon_fd_password;
23439 if test "x$withval" != "xno" ; then
23440 mon_fd_password=$withval
23447 if test "x$mon_fd_password" = "x" ; then
23448 if test "x$OPENSSL" = "xnone" ; then
23449 key=`autoconf/randpass 37`
23451 key=`openssl rand -base64 33`
23453 mon_fd_password=$key
23458 # Check whether --with-mon-sd-password was given.
23459 if test "${with_mon_sd_password+set}" = set; then :
23460 withval=$with_mon_sd_password;
23461 if test "x$withval" != "xno" ; then
23462 mon_sd_password=$withval
23469 if test "x$mon_sd_password" = "x" ; then
23470 if test "x$OPENSSL" = "xnone" ; then
23471 key=`autoconf/randpass 41`
23473 key=`openssl rand -base64 33`
23475 mon_sd_password=$key
23487 # Check whether --with-db_name was given.
23488 if test "${with_db_name+set}" = set; then :
23489 withval=$with_db_name;
23490 if test "x$withval" != "x" ; then
23501 # Check whether --with-db_user was given.
23502 if test "${with_db_user+set}" = set; then :
23503 withval=$with_db_user;
23504 if test "x$withval" != "x" ; then
23515 # Check whether --with-db_password was given.
23516 if test "${with_db_password+set}" = set; then :
23517 withval=$with_db_password;
23518 if test "x$withval" != "x" ; then
23519 db_password=$withval
23529 # Check whether --with-db_port was given.
23530 if test "${with_db_port+set}" = set; then :
23531 withval=$with_db_port;
23532 if test "x$withval" != "x" ; then
23542 # Handle users and groups for each daemon
23546 # Check whether --with-dir_user was given.
23547 if test "${with_dir_user+set}" = set; then :
23548 withval=$with_dir_user;
23549 if test "x$withval" != "x" ; then
23559 # Check whether --with-dir_group was given.
23560 if test "${with_dir_group+set}" = set; then :
23561 withval=$with_dir_group;
23562 if test "x$withval" != "x" ; then
23572 # Check whether --with-sd_user was given.
23573 if test "${with_sd_user+set}" = set; then :
23574 withval=$with_sd_user;
23575 if test "x$withval" != "x" ; then
23585 # Check whether --with-sd_group was given.
23586 if test "${with_sd_group+set}" = set; then :
23587 withval=$with_sd_group;
23588 if test "x$withval" != "x" ; then
23598 # Check whether --with-fd_user was given.
23599 if test "${with_fd_user+set}" = set; then :
23600 withval=$with_fd_user;
23601 if test "x$withval" != "x" ; then
23611 # Check whether --with-fd_group was given.
23612 if test "${with_fd_group+set}" = set; then :
23613 withval=$with_fd_group;
23614 if test "x$withval" != "x" ; then
23631 # Check whether --with-sbin-perm was given.
23632 if test "${with_sbin_perm+set}" = set; then :
23633 withval=$with_sbin_perm;
23634 if test "x$withval" != "x" ; then
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23646 $as_echo_n "checking for PostgreSQL support... " >&6; }
23648 # Check whether --with-postgresql was given.
23649 if test "${with_postgresql+set}" = set; then :
23650 withval=$with_postgresql;
23651 if test "$withval" != "no"; then
23652 if test "$withval" = "yes"; then
23653 PG_CONFIG=`which pg_config`
23654 if test -n "$PG_CONFIG"; then
23655 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23656 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23657 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23658 elif test -f /usr/local/include/libpq-fe.h; then
23659 POSTGRESQL_INCDIR=/usr/local/include
23660 if test -d /usr/local/lib64; then
23661 POSTGRESQL_LIBDIR=/usr/local/lib64
23663 POSTGRESQL_LIBDIR=/usr/local/lib
23665 POSTGRESQL_BINDIR=/usr/local/bin
23666 elif test -f /usr/include/libpq-fe.h; then
23667 POSTGRESQL_INCDIR=/usr/include
23668 if test -d /usr/lib64; then
23669 POSTGRESQL_LIBDIR=/usr/lib64
23671 POSTGRESQL_LIBDIR=/usr/lib
23673 POSTGRESQL_BINDIR=/usr/bin
23674 elif test -f /usr/include/pgsql/libpq-fe.h; then
23675 POSTGRESQL_INCDIR=/usr/include/pgsql
23676 if test -d /usr/lib64/pgsql; then
23677 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23679 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23681 POSTGRESQL_BINDIR=/usr/bin
23682 elif test -f /usr/include/postgresql/libpq-fe.h; then
23683 POSTGRESQL_INCDIR=/usr/include/postgresql
23684 if test -d /usr/lib64/postgresql; then
23685 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23687 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23689 POSTGRESQL_BINDIR=/usr/bin
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23692 $as_echo "no" >&6; }
23693 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23695 elif test -f $withval/include/libpq-fe.h; then
23696 POSTGRESQL_INCDIR=$withval/include
23697 POSTGRESQL_LIBDIR=$withval/lib
23698 POSTGRESQL_BINDIR=$withval/bin
23699 elif test -f $withval/include/postgresql/libpq-fe.h; then
23700 POSTGRESQL_INCDIR=$withval/include/postgresql
23701 if test -d $withval/lib64; then
23702 POSTGRESQL_LIBDIR=$withval/lib64
23704 POSTGRESQL_LIBDIR=$withval/lib
23706 POSTGRESQL_BINDIR=$withval/bin
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23713 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716 $as_echo "yes" >&6; }
23718 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23719 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23720 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23721 if test "x$ac_cv_func_crypt" = x""yes; then :
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23725 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23726 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23727 $as_echo_n "(cached) " >&6
23729 ac_check_lib_save_LIBS=$LIBS
23730 LIBS="-lcrypt $LIBS"
23731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23732 /* end confdefs.h. */
23734 /* Override any GCC internal prototype to avoid an error.
23735 Use char because int might match the return type of a GCC
23736 builtin and then its argument prototype would still apply. */
23749 if ac_fn_c_try_link "$LINENO"; then :
23750 ac_cv_lib_crypt_crypt=yes
23752 ac_cv_lib_crypt_crypt=no
23754 rm -f core conftest.err conftest.$ac_objext \
23755 conftest$ac_exeext conftest.$ac_ext
23756 LIBS=$ac_check_lib_save_LIBS
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23759 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23760 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23761 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23766 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23767 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23769 if test -z "${db_backends}"; then
23770 db_backends="PostgreSQL"
23772 db_backends="${db_backends} PostgreSQL"
23774 if test -z "${DB_BACKENDS}"; then
23775 DB_BACKENDS="postgresql"
23777 DB_BACKENDS="${DB_BACKENDS} postgresql"
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23781 $as_echo "no" >&6; }
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787 $as_echo "no" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23799 $as_echo_n "checking for MySQL support... " >&6; }
23801 # Check whether --with-mysql was given.
23802 if test "${with_mysql+set}" = set; then :
23803 withval=$with_mysql;
23804 if test "$withval" != "no"; then
23805 if test "$withval" = "yes"; then
23806 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23807 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23808 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23809 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23810 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23812 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23814 MYSQL_BINDIR=/usr/local/mysql/bin
23815 elif test -f /usr/include/mysql/mysql.h; then
23816 MYSQL_INCDIR=/usr/include/mysql
23817 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23818 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23819 MYSQL_LIBDIR=/usr/lib64/mysql
23820 elif test -f /usr/lib64/libmysqlclient_r.a \
23821 -o -f /usr/lib64/libmysqlclient_r.so; then
23822 MYSQL_LIBDIR=/usr/lib64
23823 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23824 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23825 MYSQL_LIBDIR=/usr/lib/mysql
23827 MYSQL_LIBDIR=/usr/lib
23829 MYSQL_BINDIR=/usr/bin
23830 elif test -f /usr/include/mysql.h; then
23831 MYSQL_INCDIR=/usr/include
23832 if test -f /usr/lib64/libmysqlclient_r.a \
23833 -o -f /usr/lib64/libmysqlclient_r.so; then
23834 MYSQL_LIBDIR=/usr/lib64
23836 MYSQL_LIBDIR=/usr/lib
23838 MYSQL_BINDIR=/usr/bin
23839 elif test -f /usr/local/include/mysql/mysql.h; then
23840 MYSQL_INCDIR=/usr/local/include/mysql
23841 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23842 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23843 MYSQL_LIBDIR=/usr/local/lib64/mysql
23845 MYSQL_LIBDIR=/usr/local/lib/mysql
23847 MYSQL_BINDIR=/usr/local/bin
23848 elif test -f /usr/local/include/mysql.h; then
23849 MYSQL_INCDIR=/usr/local/include
23850 if test -f /usr/local/lib64/libmysqlclient_r.a \
23851 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23852 MYSQL_LIBDIR=/usr/local/lib64
23854 MYSQL_LIBDIR=/usr/local/lib
23856 MYSQL_BINDIR=/usr/local/bin
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23859 $as_echo "no" >&6; }
23860 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23863 if test -f $withval/include/mysql/mysql.h; then
23864 MYSQL_INCDIR=$withval/include/mysql
23865 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23866 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23867 MYSQL_LIBDIR=$withval/lib64/mysql
23868 elif test -f $withval/lib64/libmysqlclient_r.a \
23869 -o -f $withval/lib64/libmysqlclient_r.so; then
23870 MYSQL_LIBDIR=$withval/lib64
23871 elif test -f $withval/lib/libmysqlclient_r.a \
23872 -o -f $withval/lib/libmysqlclient_r.so; then
23873 MYSQL_LIBDIR=$withval/lib
23875 MYSQL_LIBDIR=$withval/lib/mysql
23877 MYSQL_BINDIR=$withval/bin
23878 elif test -f $withval/include/mysql.h; then
23879 MYSQL_INCDIR=$withval/include
23880 if test -f $withval/lib64/libmysqlclient_r.a \
23881 -o -f $withval/lib64/libmysqlclient_r.so; then
23882 MYSQL_LIBDIR=$withval/lib64
23884 MYSQL_LIBDIR=$withval/lib
23886 MYSQL_BINDIR=$withval/bin
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23889 $as_echo "no" >&6; }
23890 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23893 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23894 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23895 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23896 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23898 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23900 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23902 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23905 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23908 $as_echo "yes" >&6; }
23910 if test -z "${db_backends}" ; then
23911 db_backends="MySQL"
23913 db_backends="${db_backends} MySQL"
23915 if test -z "${DB_BACKENDS}" ; then
23916 DB_BACKENDS="mysql"
23918 DB_BACKENDS="${DB_BACKENDS} mysql"
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23922 $as_echo "no" >&6; }
23930 # Check whether --with-embedded-mysql was given.
23931 if test "${with_embedded_mysql+set}" = set; then :
23932 withval=$with_embedded_mysql;
23933 if test "$withval" != "no"; then
23934 if test "$withval" = "yes"; then
23935 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23936 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23937 if test -d /usr/local/mysql/lib64/mysql; then
23938 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23940 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23942 MYSQL_BINDIR=/usr/local/mysql/bin
23943 elif test -f /usr/include/mysql/mysql.h; then
23944 MYSQL_INCDIR=/usr/include/mysql
23945 if test -d /usr/lib64/mysql; then
23946 MYSQL_LIBDIR=/usr/lib64/mysql
23948 MYSQL_LIBDIR=/usr/lib/mysql
23950 MYSQL_BINDIR=/usr/bin
23951 elif test -f /usr/include/mysql.h; then
23952 MYSQL_INCDIR=/usr/include
23953 if test -d /usr/lib64; then
23954 MYSQL_LIBDIR=/usr/lib64
23956 MYSQL_LIBDIR=/usr/lib
23958 MYSQL_BINDIR=/usr/bin
23959 elif test -f /usr/local/include/mysql/mysql.h; then
23960 MYSQL_INCDIR=/usr/local/include/mysql
23961 if test -d /usr/local/lib64/mysql; then
23962 MYSQL_LIBDIR=/usr/local/lib64/mysql
23964 MYSQL_LIBDIR=/usr/local/lib/mysql
23966 MYSQL_BINDIR=/usr/local/bin
23967 elif test -f /usr/local/include/mysql.h; then
23968 MYSQL_INCDIR=/usr/local/include
23969 if test -d /usr/local/lib64; then
23970 MYSQL_LIBDIR=/usr/local/lib64
23972 MYSQL_LIBDIR=/usr/local/lib
23974 MYSQL_BINDIR=/usr/local/bin
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 $as_echo "no" >&6; }
23978 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23981 if test -f $withval/include/mysql/mysql.h; then
23982 MYSQL_INCDIR=$withval/include/mysql
23983 if test -d $withval/lib64/mysql; then
23984 MYSQL_LIBDIR=$withval/lib64/mysql
23986 MYSQL_LIBDIR=$withval/lib/mysql
23988 MYSQL_BINDIR=$withval/bin
23989 elif test -f $withval/include/mysql.h; then
23990 MYSQL_INCDIR=$withval/include
23991 if test -d $withval/lib64; then
23992 MYSQL_LIBDIR=$withval/lib64
23994 MYSQL_LIBDIR=$withval/lib
23996 MYSQL_BINDIR=$withval/bin
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23999 $as_echo "no" >&6; }
24000 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24003 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24004 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24005 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24006 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24009 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24012 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24015 $as_echo "yes" >&6; }
24017 if test -z "${db_backends}"; then
24018 db_backends="MySQL"
24020 db_backends="${db_backends} MySQL"
24022 if test -z "${DB_BACKENDS}"; then
24023 DB_BACKENDS="mysql"
24025 DB_BACKENDS="${DB_BACKENDS} mysql"
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24029 $as_echo "no" >&6; }
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24044 $as_echo_n "checking for SQLite3 support... " >&6; }
24046 # Check whether --with-sqlite3 was given.
24047 if test "${with_sqlite3+set}" = set; then :
24048 withval=$with_sqlite3;
24049 if test "$withval" != "no"; then
24050 if test "$withval" = "yes"; then
24051 if test -f /usr/local/include/sqlite3.h; then
24052 SQLITE_INCDIR=/usr/local/include
24053 if test -d /usr/local/lib64; then
24054 SQLITE_LIBDIR=/usr/local/lib64
24056 SQLITE_LIBDIR=/usr/local/lib
24058 SQLITE_BINDIR=/usr/local/bin
24059 elif test -f /usr/include/sqlite3.h; then
24060 SQLITE_INCDIR=/usr/include
24061 if test -d /usr/lib64; then
24062 SQLITE_LIBDIR=/usr/lib64
24064 SQLITE_LIBDIR=/usr/lib
24066 SQLITE_BINDIR=/usr/bin
24067 elif test -f $prefix/include/sqlite3.h; then
24068 SQLITE_INCDIR=$prefix/include
24069 if test -d $prefix/lib64; then
24070 SQLITE_LIBDIR=$prefix/lib64
24072 SQLITE_LIBDIR=$prefix/lib
24074 SQLITE_BINDIR=$prefix/bin
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24077 $as_echo "no" >&6; }
24078 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24081 if test -f $withval/sqlite3.h; then
24082 SQLITE_INCDIR=$withval
24083 SQLITE_LIBDIR=$withval
24084 SQLITE_BINDIR=$withval
24085 elif test -f $withval/include/sqlite3.h; then
24086 SQLITE_INCDIR=$withval/include
24087 if test -d $withval/lib64; then
24088 SQLITE_LIBDIR=$withval/lib64
24090 SQLITE_LIBDIR=$withval/lib
24092 SQLITE_BINDIR=$withval/bin
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24095 $as_echo "no" >&6; }
24096 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24099 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24100 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24101 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24102 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24105 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24108 $as_echo "yes" >&6; }
24110 if test -z "${db_backends}"; then
24111 db_backends="SQLite3"
24113 db_backends="${db_backends} SQLite3"
24115 if test -z "${DB_BACKENDS}"; then
24116 DB_BACKENDS="sqlite3"
24118 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24128 $as_echo "no" >&6; }
24138 #BA_CHECK_INGRES_DB
24142 #BA_CHECK_DBI_DRIVER
24144 if test "x${db_backends}" = "x" ; then
24147 echo "You have not specified either --enable-client-only or one of the"
24148 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24149 echo "This is not permitted. Please reconfigure."
24151 echo "Aborting the configuration ..."
24157 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24159 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24160 if test x$use_libtool = xno; then
24161 SHARED_CATALOG_TARGETS=""
24163 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24167 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24169 if test x$use_libtool = xno; then
24172 echo "You have specified two or more of the"
24173 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24174 echo "This is not permitted when not using libtool Please reconfigure."
24176 echo "Aborting the configuration ..."
24182 SHARED_CATALOG_TARGETS=""
24183 for db_type in ${DB_BACKENDS}
24185 if test -z "${SHARED_CATALOG_TARGETS}"; then
24186 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24188 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24194 if test x$use_libtool = xyes; then
24203 support_batch_insert=yes
24204 # Check whether --enable-batch-insert was given.
24205 if test "${enable_batch_insert+set}" = set; then :
24206 enableval=$enable_batch_insert;
24207 if test x$enableval = xno; then
24208 support_batch_insert=no
24215 if test x$support_batch_insert = xyes; then
24217 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24221 if test ! -z "$MYSQL_LIB"; then
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24223 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24224 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24227 ac_check_lib_save_LIBS=$LIBS
24228 LIBS="-lmysql_r $LIBS"
24229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h. */
24232 /* Override any GCC internal prototype to avoid an error.
24233 Use char because int might match the return type of a GCC
24234 builtin and then its argument prototype would still apply. */
24238 char mysql_thread_safe ();
24242 return mysql_thread_safe ();
24247 if ac_fn_c_try_link "$LINENO"; then :
24248 ac_cv_lib_mysql_r_mysql_thread_safe=yes
24250 ac_cv_lib_mysql_r_mysql_thread_safe=no
24252 rm -f core conftest.err conftest.$ac_objext \
24253 conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24257 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24258 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
24260 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24266 if test ! -z "SQLITE_LIB"; then
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24268 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24269 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24270 $as_echo_n "(cached) " >&6
24272 ac_check_lib_save_LIBS=$LIBS
24273 LIBS="-lsqlite3 $LIBS"
24274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24275 /* end confdefs.h. */
24277 /* Override any GCC internal prototype to avoid an error.
24278 Use char because int might match the return type of a GCC
24279 builtin and then its argument prototype would still apply. */
24283 char sqlite3_threadsafe ();
24287 return sqlite3_threadsafe ();
24292 if ac_fn_c_try_link "$LINENO"; then :
24293 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24295 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24297 rm -f core conftest.err conftest.$ac_objext \
24298 conftest$ac_exeext conftest.$ac_ext
24299 LIBS=$ac_check_lib_save_LIBS
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24302 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24303 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24305 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24311 if test ! -z "$POSTGRESQL_LIB"; then
24312 saved_LIBS="${LIBS}"
24313 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24316 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24317 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24318 $as_echo_n "(cached) " >&6
24320 ac_check_lib_save_LIBS=$LIBS
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h. */
24325 /* Override any GCC internal prototype to avoid an error.
24326 Use char because int might match the return type of a GCC
24327 builtin and then its argument prototype would still apply. */
24331 char PQisthreadsafe ();
24335 return PQisthreadsafe ();
24340 if ac_fn_c_try_link "$LINENO"; then :
24341 ac_cv_lib_pq_PQisthreadsafe=yes
24343 ac_cv_lib_pq_PQisthreadsafe=no
24345 rm -f core conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
24347 LIBS=$ac_check_lib_save_LIBS
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24350 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24351 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24353 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24358 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24359 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24360 $as_echo_n "(cached) " >&6
24362 ac_check_lib_save_LIBS=$LIBS
24364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365 /* end confdefs.h. */
24367 /* Override any GCC internal prototype to avoid an error.
24368 Use char because int might match the return type of a GCC
24369 builtin and then its argument prototype would still apply. */
24373 char PQputCopyData ();
24377 return PQputCopyData ();
24382 if ac_fn_c_try_link "$LINENO"; then :
24383 ac_cv_lib_pq_PQputCopyData=yes
24385 ac_cv_lib_pq_PQputCopyData=no
24387 rm -f core conftest.err conftest.$ac_objext \
24388 conftest$ac_exeext conftest.$ac_ext
24389 LIBS=$ac_check_lib_save_LIBS
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24392 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24393 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24395 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24399 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24400 if test $support_batch_insert = yes ; then
24402 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24407 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24409 echo "WARNING: Your PostgreSQL client library is too old to detect "
24410 echo "if it was compiled with --enable-thread-safety, consider to "
24411 echo "upgrade it in order to avoid problems with Batch insert mode"
24415 LIBS="${saved_LIBS}"
24418 if test ! -z "$DBI_LIBS"; then
24419 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24421 if test $DB_PROG = postgresql; then
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24423 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24424 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24425 $as_echo_n "(cached) " >&6
24427 ac_check_lib_save_LIBS=$LIBS
24429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430 /* end confdefs.h. */
24432 /* Override any GCC internal prototype to avoid an error.
24433 Use char because int might match the return type of a GCC
24434 builtin and then its argument prototype would still apply. */
24438 char PQisthreadsafe ();
24442 return PQisthreadsafe ();
24447 if ac_fn_c_try_link "$LINENO"; then :
24448 ac_cv_lib_pq_PQisthreadsafe=yes
24450 ac_cv_lib_pq_PQisthreadsafe=no
24452 rm -f core conftest.err conftest.$ac_objext \
24453 conftest$ac_exeext conftest.$ac_ext
24454 LIBS=$ac_check_lib_save_LIBS
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24457 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24458 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24459 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24464 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24465 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24466 $as_echo_n "(cached) " >&6
24468 ac_check_lib_save_LIBS=$LIBS
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24473 /* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24479 char PQputCopyData ();
24483 return PQputCopyData ();
24488 if ac_fn_c_try_link "$LINENO"; then :
24489 ac_cv_lib_pq_PQputCopyData=yes
24491 ac_cv_lib_pq_PQputCopyData=no
24493 rm -f core conftest.err conftest.$ac_objext \
24494 conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24498 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24499 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24500 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24504 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24506 if test $pkg = 0; then
24507 if test $support_batch_insert = yes ; then
24509 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24520 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24523 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24524 if test -z "$CCOPTS"; then
24525 CCOPTS='-g -O2 -Wall'
24532 largefile_support="no"
24534 # Check whether --enable-largefile was given.
24535 if test "${enable_largefile+set}" = set; then :
24536 enableval=$enable_largefile;
24539 if test "$enable_largefile" != no; then
24540 if test -n "$ac_tool_prefix"; then
24541 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24542 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24544 $as_echo_n "checking for $ac_word... " >&6; }
24545 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24548 if test -n "$GETCONF"; then
24549 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24552 for as_dir in $PATH
24555 test -z "$as_dir" && as_dir=.
24556 for ac_exec_ext in '' $ac_executable_extensions; do
24557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24558 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24568 GETCONF=$ac_cv_prog_GETCONF
24569 if test -n "$GETCONF"; then
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24571 $as_echo "$GETCONF" >&6; }
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24574 $as_echo "no" >&6; }
24579 if test -z "$ac_cv_prog_GETCONF"; then
24580 ac_ct_GETCONF=$GETCONF
24581 # Extract the first word of "getconf", so it can be a program name with args.
24582 set dummy getconf; ac_word=$2
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24584 $as_echo_n "checking for $ac_word... " >&6; }
24585 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24586 $as_echo_n "(cached) " >&6
24588 if test -n "$ac_ct_GETCONF"; then
24589 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24592 for as_dir in $PATH
24595 test -z "$as_dir" && as_dir=.
24596 for ac_exec_ext in '' $ac_executable_extensions; do
24597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24598 ac_cv_prog_ac_ct_GETCONF="getconf"
24599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24608 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24609 if test -n "$ac_ct_GETCONF"; then
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24611 $as_echo "$ac_ct_GETCONF" >&6; }
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24614 $as_echo "no" >&6; }
24617 if test "x$ac_ct_GETCONF" = x; then
24620 case $cross_compiling:$ac_tool_warned in
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24624 ac_tool_warned=yes ;;
24626 GETCONF=$ac_ct_GETCONF
24629 GETCONF="$ac_cv_prog_GETCONF"
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24633 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24634 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24637 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24638 ac_cv_sys_largefile_CFLAGS=no
24640 # IRIX 6.2 and later require cc -n32.
24641 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24642 if test "$GCC" != yes; then
24643 ac_cv_sys_largefile_CFLAGS=-n32
24646 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24658 if ac_fn_c_try_link "$LINENO"; then :
24661 ac_cv_sys_largefile_CFLAGS=no
24663 rm -f core conftest.err conftest.$ac_objext \
24664 conftest$ac_exeext conftest.$ac_ext
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24670 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24672 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24673 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24676 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24677 ac_cv_sys_largefile_LDFLAGS=no
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24682 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24684 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24685 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24688 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24689 ac_cv_sys_largefile_LIBS=no
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24694 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24696 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24699 -D_FILE_OFFSET_BITS=*) ;;
24700 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24701 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24706 case "$CPPFLAGS" in
24707 '') CPPFLAGS="$ac_flag" ;;
24708 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24716 '') CFLAGS="$ac_flag" ;;
24717 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24722 case "$ac_cv_sys_largefile_LDFLAGS" in
24726 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24727 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24730 case "$ac_cv_sys_largefile_LIBS" in
24734 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24735 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24739 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24740 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 ac_cv_sys_file_offset_bits=no
24744 ac_cv_sys_file_offset_bits=64
24745 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24747 -D_FILE_OFFSET_BITS)
24748 ac_cv_sys_file_offset_bits=1 ;;
24749 -D_FILE_OFFSET_BITS=*)
24750 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24757 if test "$ac_cv_sys_file_offset_bits" != no; then
24759 cat >>confdefs.h <<_ACEOF
24760 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24765 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24766 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24767 $as_echo_n "(cached) " >&6
24769 ac_cv_sys_largefile_source=no
24770 ac_cv_sys_largefile_source=1
24771 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24773 -D_LARGEFILE_SOURCE)
24774 ac_cv_sys_largefile_source=1 ;;
24775 -D_LARGEFILE_SOURCE=*)
24776 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24782 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24783 if test "$ac_cv_sys_largefile_source" != no; then
24785 cat >>confdefs.h <<_ACEOF
24786 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24791 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24792 if test "${ac_cv_sys_large_files+set}" = set; then :
24793 $as_echo_n "(cached) " >&6
24795 ac_cv_sys_large_files=no
24796 ac_cv_sys_large_files=1
24797 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24800 ac_cv_sys_large_files=1 ;;
24802 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24808 $as_echo "$ac_cv_sys_large_files" >&6; }
24809 if test "$ac_cv_sys_large_files" != no; then
24811 cat >>confdefs.h <<_ACEOF
24812 #define _LARGE_FILES $ac_cv_sys_large_files
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24820 $as_echo_n "checking for X... " >&6; }
24823 # Check whether --with-x was given.
24824 if test "${with_x+set}" = set; then :
24828 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24829 if test "x$with_x" = xno; then
24830 # The user explicitly disabled X.
24833 case $x_includes,$x_libraries in #(
24834 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24835 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24838 # One or both of the vars are not set, and there is no cached value.
24839 ac_x_includes=no ac_x_libraries=no
24840 rm -f -r conftest.dir
24841 if mkdir conftest.dir; then
24843 cat >Imakefile <<'_ACEOF'
24845 @echo incroot='${INCROOT}'
24847 @echo usrlibdir='${USRLIBDIR}'
24849 @echo libdir='${LIBDIR}'
24851 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24853 for ac_var in incroot usrlibdir libdir; do
24854 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24856 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24857 for ac_extension in a so sl dylib la dll; do
24858 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24859 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24860 ac_im_usrlibdir=$ac_im_libdir; break
24863 # Screen out bogus values from the imake configuration. They are
24864 # bogus both because they are the default anyway, and because
24865 # using them would break gcc on systems where it needs fixed includes.
24866 case $ac_im_incroot in
24867 /usr/include) ac_x_includes= ;;
24868 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24870 case $ac_im_usrlibdir in
24871 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24872 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24876 rm -f -r conftest.dir
24879 # Standard set of common directories for X headers.
24880 # Check X11 before X11Rn because it is often a symlink to the current release.
24894 /usr/local/X11/include
24895 /usr/local/X11R7/include
24896 /usr/local/X11R6/include
24897 /usr/local/X11R5/include
24898 /usr/local/X11R4/include
24900 /usr/local/include/X11
24901 /usr/local/include/X11R7
24902 /usr/local/include/X11R6
24903 /usr/local/include/X11R5
24904 /usr/local/include/X11R4
24908 /usr/XFree86/include/X11
24912 /usr/unsupported/include
24913 /usr/athena/include
24914 /usr/local/x11r5/include
24915 /usr/lpp/Xamples/include
24917 /usr/openwin/include
24918 /usr/openwin/share/include'
24920 if test "$ac_x_includes" = no; then
24921 # Guess where to find include files, by looking for Xlib.h.
24922 # First, try using that file with no special directory specified.
24923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24925 #include <X11/Xlib.h>
24927 if ac_fn_c_try_cpp "$LINENO"; then :
24928 # We can compile using X headers with no special include directory.
24931 for ac_dir in $ac_x_header_dirs; do
24932 if test -r "$ac_dir/X11/Xlib.h"; then
24933 ac_x_includes=$ac_dir
24938 rm -f conftest.err conftest.$ac_ext
24939 fi # $ac_x_includes = no
24941 if test "$ac_x_libraries" = no; then
24942 # Check for the libraries.
24943 # See if we find them without any special options.
24944 # Don't add to $LIBS permanently.
24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h. */
24949 #include <X11/Xlib.h>
24958 if ac_fn_c_try_link "$LINENO"; then :
24960 # We can link X programs with no special library path.
24964 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24966 # Don't even attempt the hair of trying to link an X program!
24967 for ac_extension in a so sl dylib la dll; do
24968 if test -r "$ac_dir/libX11.$ac_extension"; then
24969 ac_x_libraries=$ac_dir
24975 rm -f core conftest.err conftest.$ac_objext \
24976 conftest$ac_exeext conftest.$ac_ext
24977 fi # $ac_x_libraries = no
24979 case $ac_x_includes,$ac_x_libraries in #(
24980 no,* | *,no | *\'*)
24981 # Didn't find X, or a directory has "'" in its name.
24982 ac_cv_have_x="have_x=no";; #(
24984 # Record where we found X for the cache.
24985 ac_cv_have_x="have_x=yes\
24986 ac_x_includes='$ac_x_includes'\
24987 ac_x_libraries='$ac_x_libraries'"
24993 eval "$ac_cv_have_x"
24996 if test "$have_x" != yes; then
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24998 $as_echo "$have_x" >&6; }
25001 # If each of the values was on the command line, it overrides each guess.
25002 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25003 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25004 # Update the cache value to reflect the command line values.
25005 ac_cv_have_x="have_x=yes\
25006 ac_x_includes='$x_includes'\
25007 ac_x_libraries='$x_libraries'"
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25009 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25012 if test "$no_x" = yes; then
25013 # Not all programs may use this symbol, but it does not hurt to define it.
25015 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25017 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25019 if test -n "$x_includes"; then
25020 X_CFLAGS="$X_CFLAGS -I$x_includes"
25023 # It would also be nice to do this for all -L options, not just this one.
25024 if test -n "$x_libraries"; then
25025 X_LIBS="$X_LIBS -L$x_libraries"
25026 # For Solaris; some versions of Sun CC require a space after -R and
25027 # others require no space. Words are not sufficient . . . .
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25029 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25030 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25031 ac_xsave_c_werror_flag=$ac_c_werror_flag
25032 ac_c_werror_flag=yes
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h. */
25044 if ac_fn_c_try_link "$LINENO"; then :
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25047 X_LIBS="$X_LIBS -R$x_libraries"
25049 LIBS="$ac_xsave_LIBS -R $x_libraries"
25050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25051 /* end confdefs.h. */
25061 if ac_fn_c_try_link "$LINENO"; then :
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25063 $as_echo "yes" >&6; }
25064 X_LIBS="$X_LIBS -R $x_libraries"
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25067 $as_echo "neither works" >&6; }
25069 rm -f core conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
25072 rm -f core conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
25074 ac_c_werror_flag=$ac_xsave_c_werror_flag
25075 LIBS=$ac_xsave_LIBS
25078 # Check for system-dependent libraries X programs must link with.
25079 # Do this before checking for the system-independent R6 libraries
25080 # (-lICE), since we may need -lsocket or whatever for X linking.
25082 if test "$ISC" = yes; then
25083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25085 # Martyn Johnson says this is needed for Ultrix, if the X
25086 # libraries were built with DECnet support. And Karl Berry says
25087 # the Alpha needs dnet_stub (dnet does not exist).
25088 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25092 /* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25098 char XOpenDisplay ();
25102 return XOpenDisplay ();
25107 if ac_fn_c_try_link "$LINENO"; then :
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25111 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25112 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25115 ac_check_lib_save_LIBS=$LIBS
25116 LIBS="-ldnet $LIBS"
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h. */
25120 /* Override any GCC internal prototype to avoid an error.
25121 Use char because int might match the return type of a GCC
25122 builtin and then its argument prototype would still apply. */
25130 return dnet_ntoa ();
25135 if ac_fn_c_try_link "$LINENO"; then :
25136 ac_cv_lib_dnet_dnet_ntoa=yes
25138 ac_cv_lib_dnet_dnet_ntoa=no
25140 rm -f core conftest.err conftest.$ac_objext \
25141 conftest$ac_exeext conftest.$ac_ext
25142 LIBS=$ac_check_lib_save_LIBS
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25145 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25146 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25147 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25150 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25152 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25153 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25156 ac_check_lib_save_LIBS=$LIBS
25157 LIBS="-ldnet_stub $LIBS"
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h. */
25161 /* Override any GCC internal prototype to avoid an error.
25162 Use char because int might match the return type of a GCC
25163 builtin and then its argument prototype would still apply. */
25171 return dnet_ntoa ();
25176 if ac_fn_c_try_link "$LINENO"; then :
25177 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25179 ac_cv_lib_dnet_stub_dnet_ntoa=no
25181 rm -f core conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
25183 LIBS=$ac_check_lib_save_LIBS
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25186 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25187 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25188 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25193 rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS="$ac_xsave_LIBS"
25197 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25198 # to get the SysV transport functions.
25199 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25201 # The nsl library prevents programs from opening the X display
25202 # on Irix 5.2, according to T.E. Dickey.
25203 # The functions gethostbyname, getservbyname, and inet_addr are
25204 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25205 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25206 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25210 if test $ac_cv_func_gethostbyname = no; then
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25212 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25213 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25216 ac_check_lib_save_LIBS=$LIBS
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h. */
25221 /* Override any GCC internal prototype to avoid an error.
25222 Use char because int might match the return type of a GCC
25223 builtin and then its argument prototype would still apply. */
25227 char gethostbyname ();
25231 return gethostbyname ();
25236 if ac_fn_c_try_link "$LINENO"; then :
25237 ac_cv_lib_nsl_gethostbyname=yes
25239 ac_cv_lib_nsl_gethostbyname=no
25241 rm -f core conftest.err conftest.$ac_objext \
25242 conftest$ac_exeext conftest.$ac_ext
25243 LIBS=$ac_check_lib_save_LIBS
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25246 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25247 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25251 if test $ac_cv_lib_nsl_gethostbyname = no; then
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25253 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25254 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25255 $as_echo_n "(cached) " >&6
25257 ac_check_lib_save_LIBS=$LIBS
25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h. */
25262 /* Override any GCC internal prototype to avoid an error.
25263 Use char because int might match the return type of a GCC
25264 builtin and then its argument prototype would still apply. */
25268 char gethostbyname ();
25272 return gethostbyname ();
25277 if ac_fn_c_try_link "$LINENO"; then :
25278 ac_cv_lib_bsd_gethostbyname=yes
25280 ac_cv_lib_bsd_gethostbyname=no
25282 rm -f core conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
25284 LIBS=$ac_check_lib_save_LIBS
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25287 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25288 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25295 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25296 # socket/setsockopt and other routines are undefined under SCO ODT
25297 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25298 # on later versions), says Simon Leinen: it contains gethostby*
25299 # variants that don't use the name server (or something). -lsocket
25300 # must be given before -lnsl if both are needed. We assume that
25301 # if connect needs -lnsl, so does gethostbyname.
25302 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25303 if test "x$ac_cv_func_connect" = x""yes; then :
25307 if test $ac_cv_func_connect = no; then
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25309 $as_echo_n "checking for connect in -lsocket... " >&6; }
25310 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25313 ac_check_lib_save_LIBS=$LIBS
25314 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25318 /* Override any GCC internal prototype to avoid an error.
25319 Use char because int might match the return type of a GCC
25320 builtin and then its argument prototype would still apply. */
25333 if ac_fn_c_try_link "$LINENO"; then :
25334 ac_cv_lib_socket_connect=yes
25336 ac_cv_lib_socket_connect=no
25338 rm -f core conftest.err conftest.$ac_objext \
25339 conftest$ac_exeext conftest.$ac_ext
25340 LIBS=$ac_check_lib_save_LIBS
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25343 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25344 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25345 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25350 # Guillermo Gomez says -lposix is necessary on A/UX.
25351 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25352 if test "x$ac_cv_func_remove" = x""yes; then :
25356 if test $ac_cv_func_remove = no; then
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25358 $as_echo_n "checking for remove in -lposix... " >&6; }
25359 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25362 ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-lposix $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 /* Override any GCC internal prototype to avoid an error.
25368 Use char because int might match the return type of a GCC
25369 builtin and then its argument prototype would still apply. */
25382 if ac_fn_c_try_link "$LINENO"; then :
25383 ac_cv_lib_posix_remove=yes
25385 ac_cv_lib_posix_remove=no
25387 rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25392 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25393 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25400 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25401 if test "x$ac_cv_func_shmat" = x""yes; then :
25405 if test $ac_cv_func_shmat = no; then
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25407 $as_echo_n "checking for shmat in -lipc... " >&6; }
25408 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25409 $as_echo_n "(cached) " >&6
25411 ac_check_lib_save_LIBS=$LIBS
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25416 /* Override any GCC internal prototype to avoid an error.
25417 Use char because int might match the return type of a GCC
25418 builtin and then its argument prototype would still apply. */
25431 if ac_fn_c_try_link "$LINENO"; then :
25432 ac_cv_lib_ipc_shmat=yes
25434 ac_cv_lib_ipc_shmat=no
25436 rm -f core conftest.err conftest.$ac_objext \
25437 conftest$ac_exeext conftest.$ac_ext
25438 LIBS=$ac_check_lib_save_LIBS
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25441 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25442 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25449 # Check for libraries that X11R6 Xt/Xaw programs need.
25450 ac_save_LDFLAGS=$LDFLAGS
25451 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25452 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25453 # check for ICE first), but we must link in the order -lSM -lICE or
25454 # we get undefined symbols. So assume we have SM if we have ICE.
25455 # These have to be linked with before -lX11, unlike the other
25456 # libraries we check for below, so use a different variable.
25457 # John Interrante, Karl Berry
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25459 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25460 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25463 ac_check_lib_save_LIBS=$LIBS
25464 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25468 /* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25474 char IceConnectionNumber ();
25478 return IceConnectionNumber ();
25483 if ac_fn_c_try_link "$LINENO"; then :
25484 ac_cv_lib_ICE_IceConnectionNumber=yes
25486 ac_cv_lib_ICE_IceConnectionNumber=no
25488 rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25493 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25494 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25495 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25498 LDFLAGS=$ac_save_LDFLAGS
25535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25537 eval as_val=\$$as_ac_Header
25538 if test "x$as_val" = x""yes; then :
25539 cat >>confdefs.h <<_ACEOF
25540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25548 $as_echo_n "checking for ANSI C header files... " >&6; }
25549 if test "${ac_cv_header_stdc+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25553 /* end confdefs.h. */
25554 #include <stdlib.h>
25555 #include <stdarg.h>
25556 #include <string.h>
25567 if ac_fn_c_try_compile "$LINENO"; then :
25568 ac_cv_header_stdc=yes
25570 ac_cv_header_stdc=no
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 if test $ac_cv_header_stdc = yes; then
25575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577 /* end confdefs.h. */
25578 #include <string.h>
25581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25582 $EGREP "memchr" >/dev/null 2>&1; then :
25585 ac_cv_header_stdc=no
25591 if test $ac_cv_header_stdc = yes; then
25592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h. */
25595 #include <stdlib.h>
25598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25599 $EGREP "free" >/dev/null 2>&1; then :
25602 ac_cv_header_stdc=no
25608 if test $ac_cv_header_stdc = yes; then
25609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25610 if test "$cross_compiling" = yes; then :
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25616 #include <stdlib.h>
25617 #if ((' ' & 0x0FF) == 0x020)
25618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25621 # define ISLOWER(c) \
25622 (('a' <= (c) && (c) <= 'i') \
25623 || ('j' <= (c) && (c) <= 'r') \
25624 || ('s' <= (c) && (c) <= 'z'))
25625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25633 for (i = 0; i < 256; i++)
25634 if (XOR (islower (i), ISLOWER (i))
25635 || toupper (i) != TOUPPER (i))
25640 if ac_fn_c_try_run "$LINENO"; then :
25643 ac_cv_header_stdc=no
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25646 conftest.$ac_objext conftest.beam conftest.$ac_ext
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25652 $as_echo "$ac_cv_header_stdc" >&6; }
25653 if test $ac_cv_header_stdc = yes; then
25655 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25660 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25661 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25662 $as_echo_n "(cached) " >&6
25664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h. */
25666 #include <sys/types.h>
25670 return makedev(0, 0);
25675 if ac_fn_c_try_link "$LINENO"; then :
25676 ac_cv_header_sys_types_h_makedev=yes
25678 ac_cv_header_sys_types_h_makedev=no
25680 rm -f core conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25685 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25687 if test $ac_cv_header_sys_types_h_makedev = no; then
25688 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25689 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25691 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25697 if test $ac_cv_header_sys_mkdev_h = no; then
25698 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25699 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25701 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25709 ac_header_dirent=no
25710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25711 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25713 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25715 $as_echo_n "(cached) " >&6
25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h. */
25719 #include <sys/types.h>
25731 if ac_fn_c_try_compile "$LINENO"; then :
25732 eval "$as_ac_Header=yes"
25734 eval "$as_ac_Header=no"
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 eval ac_res=\$$as_ac_Header
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25740 $as_echo "$ac_res" >&6; }
25741 eval as_val=\$$as_ac_Header
25742 if test "x$as_val" = x""yes; then :
25743 cat >>confdefs.h <<_ACEOF
25744 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25747 ac_header_dirent=$ac_hdr; break
25751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25752 if test $ac_header_dirent = dirent.h; then
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25754 $as_echo_n "checking for library containing opendir... " >&6; }
25755 if test "${ac_cv_search_opendir+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25758 ac_func_search_save_LIBS=$LIBS
25759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760 /* end confdefs.h. */
25762 /* Override any GCC internal prototype to avoid an error.
25763 Use char because int might match the return type of a GCC
25764 builtin and then its argument prototype would still apply. */
25777 for ac_lib in '' dir; do
25778 if test -z "$ac_lib"; then
25779 ac_res="none required"
25782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25784 if ac_fn_c_try_link "$LINENO"; then :
25785 ac_cv_search_opendir=$ac_res
25787 rm -f core conftest.err conftest.$ac_objext \
25789 if test "${ac_cv_search_opendir+set}" = set; then :
25793 if test "${ac_cv_search_opendir+set}" = set; then :
25796 ac_cv_search_opendir=no
25798 rm conftest.$ac_ext
25799 LIBS=$ac_func_search_save_LIBS
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25802 $as_echo "$ac_cv_search_opendir" >&6; }
25803 ac_res=$ac_cv_search_opendir
25804 if test "$ac_res" != no; then :
25805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25811 $as_echo_n "checking for library containing opendir... " >&6; }
25812 if test "${ac_cv_search_opendir+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25815 ac_func_search_save_LIBS=$LIBS
25816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25817 /* end confdefs.h. */
25819 /* Override any GCC internal prototype to avoid an error.
25820 Use char because int might match the return type of a GCC
25821 builtin and then its argument prototype would still apply. */
25834 for ac_lib in '' x; do
25835 if test -z "$ac_lib"; then
25836 ac_res="none required"
25839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25841 if ac_fn_c_try_link "$LINENO"; then :
25842 ac_cv_search_opendir=$ac_res
25844 rm -f core conftest.err conftest.$ac_objext \
25846 if test "${ac_cv_search_opendir+set}" = set; then :
25850 if test "${ac_cv_search_opendir+set}" = set; then :
25853 ac_cv_search_opendir=no
25855 rm conftest.$ac_ext
25856 LIBS=$ac_func_search_save_LIBS
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25859 $as_echo "$ac_cv_search_opendir" >&6; }
25860 ac_res=$ac_cv_search_opendir
25861 if test "$ac_res" != no; then :
25862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25869 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25870 if test "${ac_cv_header_stat_broken+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25875 #include <sys/types.h>
25876 #include <sys/stat.h>
25878 #if defined S_ISBLK && defined S_IFDIR
25879 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25882 #if defined S_ISBLK && defined S_IFCHR
25883 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25886 #if defined S_ISLNK && defined S_IFREG
25887 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25890 #if defined S_ISSOCK && defined S_IFREG
25891 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25895 if ac_fn_c_try_compile "$LINENO"; then :
25896 ac_cv_header_stat_broken=no
25898 ac_cv_header_stat_broken=yes
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25903 $as_echo "$ac_cv_header_stat_broken" >&6; }
25904 if test $ac_cv_header_stat_broken = yes; then
25906 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25911 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25912 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25913 $as_echo_n "(cached) " >&6
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25917 #include <sys/types.h>
25918 #include <sys/wait.h>
25919 #ifndef WEXITSTATUS
25920 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25923 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25931 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25936 if ac_fn_c_try_compile "$LINENO"; then :
25937 ac_cv_header_sys_wait_h=yes
25939 ac_cv_header_sys_wait_h=no
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25944 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25945 if test $ac_cv_header_sys_wait_h = yes; then
25947 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25952 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25953 if test "${ac_cv_header_time+set}" = set; then :
25954 $as_echo_n "(cached) " >&6
25956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25957 /* end confdefs.h. */
25958 #include <sys/types.h>
25959 #include <sys/time.h>
25965 if ((struct tm *) 0)
25971 if ac_fn_c_try_compile "$LINENO"; then :
25972 ac_cv_header_time=yes
25974 ac_cv_header_time=no
25976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25979 $as_echo "$ac_cv_header_time" >&6; }
25980 if test $ac_cv_header_time = yes; then
25982 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25986 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25987 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25989 cat >>confdefs.h <<_ACEOF
25990 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25994 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25999 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26000 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26002 cat >>confdefs.h <<_ACEOF
26003 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26007 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26010 case " $LIBOBJS " in
26011 *" fileblocks.$ac_objext "* ) ;;
26012 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26020 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26021 if test "${ac_cv_struct_tm+set}" = set; then :
26022 $as_echo_n "(cached) " >&6
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26026 #include <sys/types.h>
26033 int *p = &tm.tm_sec;
26039 if ac_fn_c_try_compile "$LINENO"; then :
26040 ac_cv_struct_tm=time.h
26042 ac_cv_struct_tm=sys/time.h
26044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26047 $as_echo "$ac_cv_struct_tm" >&6; }
26048 if test $ac_cv_struct_tm = sys/time.h; then
26050 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26054 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26055 #include <$ac_cv_struct_tm>
26058 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26060 cat >>confdefs.h <<_ACEOF
26061 #define HAVE_STRUCT_TM_TM_ZONE 1
26067 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26069 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26072 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26074 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26080 cat >>confdefs.h <<_ACEOF
26081 #define HAVE_DECL_TZNAME $ac_have_decl
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26085 $as_echo_n "checking for tzname... " >&6; }
26086 if test "${ac_cv_var_tzname+set}" = set; then :
26087 $as_echo_n "(cached) " >&6
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26092 #if !HAVE_DECL_TZNAME
26093 extern char *tzname[];
26099 return tzname[0][0];
26104 if ac_fn_c_try_link "$LINENO"; then :
26105 ac_cv_var_tzname=yes
26107 ac_cv_var_tzname=no
26109 rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26113 $as_echo "$ac_cv_var_tzname" >&6; }
26114 if test $ac_cv_var_tzname = yes; then
26116 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26123 $as_echo_n "checking for utime.h... " >&6; }
26124 if test "${ba_cv_header_utime_h+set}" = set; then :
26125 $as_echo_n "(cached) " >&6
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26131 #include <sys/types.h>
26144 if ac_fn_c_try_compile "$LINENO"; then :
26146 ba_cv_header_utime_h=yes
26150 ba_cv_header_utime_h=no
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26159 $as_echo "$ba_cv_header_utime_h" >&6; }
26160 test $ba_cv_header_utime_h = yes &&
26161 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26165 $as_echo_n "checking for socklen_t... " >&6; }
26166 if test "${ba_cv_header_socklen_t+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h. */
26173 #include <sys/types.h>
26174 #include <sys/socket.h>
26186 if ac_fn_c_try_compile "$LINENO"; then :
26188 ba_cv_header_socklen_t=yes
26192 ba_cv_header_socklen_t=no
26196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26201 $as_echo "$ba_cv_header_socklen_t" >&6; }
26202 test $ba_cv_header_socklen_t = yes &&
26203 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26207 ac_cpp='$CXXCPP $CPPFLAGS'
26208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26213 $as_echo_n "checking for ioctl_req_t... " >&6; }
26214 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26219 /* end confdefs.h. */
26221 #include <unistd.h>
26222 #include <sys/types.h>
26223 #include <sys/ioctl.h>
26229 int (*d_ioctl)(int fd, unsigned long int request, ...);
26236 if ac_fn_cxx_try_compile "$LINENO"; then :
26238 ba_cv_header_ioctl_req_t=yes
26242 ba_cv_header_ioctl_req_t=no
26246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26251 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26252 test $ba_cv_header_ioctl_req_t = yes &&
26253 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26257 ac_cpp='$CPP $CPPFLAGS'
26258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26264 ac_cpp='$CXXCPP $CPPFLAGS'
26265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26270 $as_echo_n "checking for typeof... " >&6; }
26271 if test "${ba_cv_have_typeof+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26275 if test "$cross_compiling" = yes; then :
26277 ba_cv_have_typeof=no
26281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h. */
26284 main(){char *a = 0; a = (typeof a)a;}
26287 if ac_fn_cxx_try_run "$LINENO"; then :
26289 ba_cv_have_typeof=yes
26293 ba_cv_have_typeof=no
26296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26297 conftest.$ac_objext conftest.beam conftest.$ac_ext
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26304 $as_echo "$ba_cv_have_typeof" >&6; }
26305 test $ba_cv_have_typeof = yes &&
26306 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26309 ac_cpp='$CPP $CPPFLAGS'
26310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26317 if test "${ac_cv_c_const+set}" = set; then :
26318 $as_echo_n "(cached) " >&6
26320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h. */
26326 /* FIXME: Include the comments suggested by Paul. */
26327 #ifndef __cplusplus
26328 /* Ultrix mips cc rejects this. */
26329 typedef int charset[2];
26331 /* SunOS 4.1.1 cc rejects this. */
26332 char const *const *pcpcc;
26334 /* NEC SVR4.0.2 mips cc rejects this. */
26335 struct point {int x, y;};
26336 static struct point const zero = {0,0};
26337 /* AIX XL C 1.02.0.0 rejects this.
26338 It does not let you subtract one const X* pointer from another in
26339 an arm of an if-expression whose if-part is not a constant
26341 const char *g = "string";
26342 pcpcc = &g + (g ? g-g : 0);
26343 /* HPUX 7.0 cc rejects these. */
26345 ppc = (char**) pcpcc;
26346 pcpcc = (char const *const *) ppc;
26347 { /* SCO 3.2v4 cc rejects this. */
26349 char const *s = 0 ? (char *) 0 : (char const *) 0;
26354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26355 int x[] = {25, 17};
26356 const int *foo = &x[0];
26359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26360 typedef const int *iptr;
26364 { /* AIX XL C 1.02.0.0 rejects this saying
26365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26366 struct s { int j; const int *ap[3]; };
26367 struct s *b; b->j = 5;
26369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26370 const int foo = 10;
26371 if (!foo) return 0;
26373 return !cs[0] && !zero.x;
26380 if ac_fn_c_try_compile "$LINENO"; then :
26385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26388 $as_echo "$ac_cv_c_const" >&6; }
26389 if test $ac_cv_c_const = no; then
26391 $as_echo "#define const /**/" >>confdefs.h
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26397 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26398 if test "${ac_cv_c_bigendian+set}" = set; then :
26399 $as_echo_n "(cached) " >&6
26401 ac_cv_c_bigendian=unknown
26402 # See if we're dealing with a universal compiler.
26403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26404 /* end confdefs.h. */
26405 #ifndef __APPLE_CC__
26406 not a universal capable compiler
26411 if ac_fn_c_try_compile "$LINENO"; then :
26413 # Check for potential -arch flags. It is not universal unless
26414 # there are at least two -arch flags with different values.
26417 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26418 if test -n "$ac_prev"; then
26420 i?86 | x86_64 | ppc | ppc64)
26421 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26424 ac_cv_c_bigendian=universal
26430 elif test "x$ac_word" = "x-arch"; then
26435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 if test $ac_cv_c_bigendian = unknown; then
26437 # See if sys/param.h defines the BYTE_ORDER macro.
26438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26439 /* end confdefs.h. */
26440 #include <sys/types.h>
26441 #include <sys/param.h>
26446 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26447 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26449 bogus endian macros
26456 if ac_fn_c_try_compile "$LINENO"; then :
26457 # It does; now see whether it defined to BIG_ENDIAN or not.
26458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26459 /* end confdefs.h. */
26460 #include <sys/types.h>
26461 #include <sys/param.h>
26466 #if BYTE_ORDER != BIG_ENDIAN
26474 if ac_fn_c_try_compile "$LINENO"; then :
26475 ac_cv_c_bigendian=yes
26477 ac_cv_c_bigendian=no
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26483 if test $ac_cv_c_bigendian = unknown; then
26484 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h. */
26487 #include <limits.h>
26492 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26493 bogus endian macros
26500 if ac_fn_c_try_compile "$LINENO"; then :
26501 # It does; now see whether it defined to _BIG_ENDIAN or not.
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26504 #include <limits.h>
26509 #ifndef _BIG_ENDIAN
26517 if ac_fn_c_try_compile "$LINENO"; then :
26518 ac_cv_c_bigendian=yes
26520 ac_cv_c_bigendian=no
26522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526 if test $ac_cv_c_bigendian = unknown; then
26527 # Compile a test program.
26528 if test "$cross_compiling" = yes; then :
26529 # Try to guess by grepping values from an object file.
26530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h. */
26532 short int ascii_mm[] =
26533 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26534 short int ascii_ii[] =
26535 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26536 int use_ascii (int i) {
26537 return ascii_mm[i] + ascii_ii[i];
26539 short int ebcdic_ii[] =
26540 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26541 short int ebcdic_mm[] =
26542 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26543 int use_ebcdic (int i) {
26544 return ebcdic_mm[i] + ebcdic_ii[i];
26551 return use_ascii (foo) == use_ebcdic (foo);
26556 if ac_fn_c_try_compile "$LINENO"; then :
26557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26558 ac_cv_c_bigendian=yes
26560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26561 if test "$ac_cv_c_bigendian" = unknown; then
26562 ac_cv_c_bigendian=no
26564 # finding both strings is unlikely to happen, but who knows?
26565 ac_cv_c_bigendian=unknown
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572 /* end confdefs.h. */
26573 $ac_includes_default
26578 /* Are we little or big endian? From Harbison&Steele. */
26582 char c[sizeof (long int)];
26585 return u.c[sizeof (long int) - 1] == 1;
26591 if ac_fn_c_try_run "$LINENO"; then :
26592 ac_cv_c_bigendian=no
26594 ac_cv_c_bigendian=yes
26596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26597 conftest.$ac_objext conftest.beam conftest.$ac_ext
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26603 $as_echo "$ac_cv_c_bigendian" >&6; }
26604 case $ac_cv_c_bigendian in #(
26607 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26611 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26615 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26619 as_fn_error "unknown endianness
26620 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26625 $as_echo_n "checking how to get filesystem type... " >&6; }
26627 # The order of these tests is important.
26628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26629 /* end confdefs.h. */
26631 #include <sys/statvfs.h>
26632 #include <sys/fstyp.h>
26635 if ac_fn_c_try_cpp "$LINENO"; then :
26636 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26640 rm -f conftest.err conftest.$ac_ext
26641 if test $fstype = no; then
26642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h. */
26645 #include <sys/statfs.h>
26646 #include <sys/fstyp.h>
26649 if ac_fn_c_try_cpp "$LINENO"; then :
26650 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26654 rm -f conftest.err conftest.$ac_ext
26656 if test $fstype = no; then
26657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26658 /* end confdefs.h. */
26660 #include <sys/statfs.h>
26661 #include <sys/vmount.h>
26664 if ac_fn_c_try_cpp "$LINENO"; then :
26665 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26669 rm -f conftest.err conftest.$ac_ext
26671 if test $fstype = no; then
26672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26673 /* end confdefs.h. */
26675 #include <mntent.h>
26678 if ac_fn_c_try_cpp "$LINENO"; then :
26679 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26683 rm -f conftest.err conftest.$ac_ext
26685 if test $fstype = no; then
26686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h. */
26688 #include <sys/mount.h>
26691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26692 $EGREP "f_type;" >/dev/null 2>&1; then :
26693 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26699 if test $fstype = no; then
26700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701 /* end confdefs.h. */
26703 #include <sys/mount.h>
26704 #include <sys/fs_types.h>
26707 if ac_fn_c_try_cpp "$LINENO"; then :
26708 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26712 rm -f conftest.err conftest.$ac_ext
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26715 $as_echo "$fstype" >&6; }
26717 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26718 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26720 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26727 ac_cpp='$CXXCPP $CPPFLAGS'
26728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26732 for ac_func in backtrace
26734 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26735 if test "x$ac_cv_func_backtrace" = x""yes; then :
26736 cat >>confdefs.h <<_ACEOF
26737 #define HAVE_BACKTRACE 1
26744 ac_cpp='$CPP $CPPFLAGS'
26745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26751 $as_echo_n "checking return type of signal handlers... " >&6; }
26752 if test "${ac_cv_type_signal+set}" = set; then :
26753 $as_echo_n "(cached) " >&6
26755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26756 /* end confdefs.h. */
26757 #include <sys/types.h>
26758 #include <signal.h>
26763 return *(signal (0, 0)) (0) == 1;
26768 if ac_fn_c_try_compile "$LINENO"; then :
26769 ac_cv_type_signal=int
26771 ac_cv_type_signal=void
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26776 $as_echo "$ac_cv_type_signal" >&6; }
26778 cat >>confdefs.h <<_ACEOF
26779 #define RETSIGTYPE $ac_cv_type_signal
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26785 $as_echo_n "checking for type of signal functions... " >&6; }
26786 if test "${bash_cv_signal_vintage+set}" = set; then :
26787 $as_echo_n "(cached) " >&6
26790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26791 /* end confdefs.h. */
26792 #include <signal.h>
26798 struct sigaction sa;
26799 sigemptyset(&ss); sigsuspend(&ss);
26800 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26801 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26807 if ac_fn_c_try_link "$LINENO"; then :
26808 bash_cv_signal_vintage="posix"
26811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26813 #include <signal.h>
26818 int mask = sigmask(SIGINT);
26819 sigsetmask(mask); sigblock(mask); sigpause(mask);
26825 if ac_fn_c_try_link "$LINENO"; then :
26826 bash_cv_signal_vintage="4.2bsd"
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26832 #include <signal.h>
26833 RETSIGTYPE foo() { }
26838 int mask = sigmask(SIGINT);
26839 sigset(SIGINT, foo); sigrelse(SIGINT);
26840 sighold(SIGINT); sigpause(SIGINT);
26846 if ac_fn_c_try_link "$LINENO"; then :
26847 bash_cv_signal_vintage="svr3"
26849 bash_cv_signal_vintage="v7"
26852 rm -f core conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
26856 rm -f core conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
26860 rm -f core conftest.err conftest.$ac_objext \
26861 conftest$ac_exeext conftest.$ac_ext
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26866 $as_echo "$bash_cv_signal_vintage" >&6; }
26867 if test "$bash_cv_signal_vintage" = "posix"; then
26868 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26870 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26871 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26873 elif test "$bash_cv_signal_vintage" = "svr3"; then
26874 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26878 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26879 if test "x$ac_cv_type_mode_t" = x""yes; then :
26883 cat >>confdefs.h <<_ACEOF
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26890 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26891 if test "${ac_cv_type_uid_t+set}" = set; then :
26892 $as_echo_n "(cached) " >&6
26894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26895 /* end confdefs.h. */
26896 #include <sys/types.h>
26899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26900 $EGREP "uid_t" >/dev/null 2>&1; then :
26901 ac_cv_type_uid_t=yes
26903 ac_cv_type_uid_t=no
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26909 $as_echo "$ac_cv_type_uid_t" >&6; }
26910 if test $ac_cv_type_uid_t = no; then
26912 $as_echo "#define uid_t int" >>confdefs.h
26915 $as_echo "#define gid_t int" >>confdefs.h
26919 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26920 if test "x$ac_cv_type_size_t" = x""yes; then :
26924 cat >>confdefs.h <<_ACEOF
26925 #define size_t unsigned int
26930 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26931 if test "x$ac_cv_type_pid_t" = x""yes; then :
26935 cat >>confdefs.h <<_ACEOF
26941 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26942 if test "x$ac_cv_type_off_t" = x""yes; then :
26946 cat >>confdefs.h <<_ACEOF
26947 #define off_t long int
26953 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26954 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26956 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26959 for ac_type in 'int' 'long int' 'long long int'; do
26960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h. */
26962 $ac_includes_default
26966 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26973 if ac_fn_c_try_compile "$LINENO"; then :
26975 cat >>confdefs.h <<_ACEOF
26976 #define intptr_t $ac_type
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26982 test -z "$ac_type" && break
26988 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26989 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26991 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26994 for ac_type in 'unsigned int' 'unsigned long int' \
26995 'unsigned long long int'; do
26996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26997 /* end confdefs.h. */
26998 $ac_includes_default
27002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27009 if ac_fn_c_try_compile "$LINENO"; then :
27011 cat >>confdefs.h <<_ACEOF
27012 #define uintptr_t $ac_type
27017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27018 test -z "$ac_type" && break
27023 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27024 if test "x$ac_cv_type_ino_t" = x""yes; then :
27028 cat >>confdefs.h <<_ACEOF
27029 #define ino_t unsigned long
27034 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27035 if test "x$ac_cv_type_dev_t" = x""yes; then :
27039 cat >>confdefs.h <<_ACEOF
27040 #define dev_t unsigned long
27045 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27046 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27050 cat >>confdefs.h <<_ACEOF
27051 #define daddr_t long
27056 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27057 if test "x$ac_cv_type_major_t" = x""yes; then :
27061 cat >>confdefs.h <<_ACEOF
27062 #define major_t int
27067 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27068 if test "x$ac_cv_type_minor_t" = x""yes; then :
27072 cat >>confdefs.h <<_ACEOF
27073 #define minor_t int
27078 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27079 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27083 cat >>confdefs.h <<_ACEOF
27084 #define ssize_t int
27089 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27090 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27092 cat >>confdefs.h <<_ACEOF
27093 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27097 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27100 case " $LIBOBJS " in
27101 *" fileblocks.$ac_objext "* ) ;;
27102 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27109 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27110 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27112 cat >>confdefs.h <<_ACEOF
27113 #define HAVE_STRUCT_STAT_ST_RDEV 1
27117 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27123 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27124 if test "${ac_cv_struct_tm+set}" = set; then :
27125 $as_echo_n "(cached) " >&6
27127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27128 /* end confdefs.h. */
27129 #include <sys/types.h>
27136 int *p = &tm.tm_sec;
27142 if ac_fn_c_try_compile "$LINENO"; then :
27143 ac_cv_struct_tm=time.h
27145 ac_cv_struct_tm=sys/time.h
27147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27150 $as_echo "$ac_cv_struct_tm" >&6; }
27151 if test $ac_cv_struct_tm = sys/time.h; then
27153 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27159 if test "${ac_cv_c_const+set}" = set; then :
27160 $as_echo_n "(cached) " >&6
27162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h. */
27168 /* FIXME: Include the comments suggested by Paul. */
27169 #ifndef __cplusplus
27170 /* Ultrix mips cc rejects this. */
27171 typedef int charset[2];
27173 /* SunOS 4.1.1 cc rejects this. */
27174 char const *const *pcpcc;
27176 /* NEC SVR4.0.2 mips cc rejects this. */
27177 struct point {int x, y;};
27178 static struct point const zero = {0,0};
27179 /* AIX XL C 1.02.0.0 rejects this.
27180 It does not let you subtract one const X* pointer from another in
27181 an arm of an if-expression whose if-part is not a constant
27183 const char *g = "string";
27184 pcpcc = &g + (g ? g-g : 0);
27185 /* HPUX 7.0 cc rejects these. */
27187 ppc = (char**) pcpcc;
27188 pcpcc = (char const *const *) ppc;
27189 { /* SCO 3.2v4 cc rejects this. */
27191 char const *s = 0 ? (char *) 0 : (char const *) 0;
27196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27197 int x[] = {25, 17};
27198 const int *foo = &x[0];
27201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27202 typedef const int *iptr;
27206 { /* AIX XL C 1.02.0.0 rejects this saying
27207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27208 struct s { int j; const int *ap[3]; };
27209 struct s *b; b->j = 5;
27211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27212 const int foo = 10;
27213 if (!foo) return 0;
27215 return !cs[0] && !zero.x;
27222 if ac_fn_c_try_compile "$LINENO"; then :
27227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27230 $as_echo "$ac_cv_c_const" >&6; }
27231 if test $ac_cv_c_const = no; then
27233 $as_echo "#define const /**/" >>confdefs.h
27238 # The cast to long int works around a bug in the HP C Compiler
27239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27241 # This bug is HP SR number 8606223364.
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27243 $as_echo_n "checking size of char... " >&6; }
27244 if test "${ac_cv_sizeof_char+set}" = set; then :
27245 $as_echo_n "(cached) " >&6
27247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27250 if test "$ac_cv_type_char" = yes; then
27251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27253 { as_fn_set_status 77
27254 as_fn_error "cannot compute sizeof (char)
27255 See \`config.log' for more details." "$LINENO" 5; }; }
27257 ac_cv_sizeof_char=0
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27263 $as_echo "$ac_cv_sizeof_char" >&6; }
27267 cat >>confdefs.h <<_ACEOF
27268 #define SIZEOF_CHAR $ac_cv_sizeof_char
27272 # The cast to long int works around a bug in the HP C Compiler
27273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27275 # This bug is HP SR number 8606223364.
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27277 $as_echo_n "checking size of short int... " >&6; }
27278 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27279 $as_echo_n "(cached) " >&6
27281 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27284 if test "$ac_cv_type_short_int" = yes; then
27285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27287 { as_fn_set_status 77
27288 as_fn_error "cannot compute sizeof (short int)
27289 See \`config.log' for more details." "$LINENO" 5; }; }
27291 ac_cv_sizeof_short_int=0
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27297 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27301 cat >>confdefs.h <<_ACEOF
27302 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27306 # The cast to long int works around a bug in the HP C Compiler
27307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27309 # This bug is HP SR number 8606223364.
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27311 $as_echo_n "checking size of int... " >&6; }
27312 if test "${ac_cv_sizeof_int+set}" = set; then :
27313 $as_echo_n "(cached) " >&6
27315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27318 if test "$ac_cv_type_int" = yes; then
27319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27321 { as_fn_set_status 77
27322 as_fn_error "cannot compute sizeof (int)
27323 See \`config.log' for more details." "$LINENO" 5; }; }
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27331 $as_echo "$ac_cv_sizeof_int" >&6; }
27335 cat >>confdefs.h <<_ACEOF
27336 #define SIZEOF_INT $ac_cv_sizeof_int
27340 # The cast to long int works around a bug in the HP C Compiler
27341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27343 # This bug is HP SR number 8606223364.
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27345 $as_echo_n "checking size of long int... " >&6; }
27346 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27347 $as_echo_n "(cached) " >&6
27349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27352 if test "$ac_cv_type_long_int" = yes; then
27353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27355 { as_fn_set_status 77
27356 as_fn_error "cannot compute sizeof (long int)
27357 See \`config.log' for more details." "$LINENO" 5; }; }
27359 ac_cv_sizeof_long_int=0
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27365 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27369 cat >>confdefs.h <<_ACEOF
27370 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27374 # The cast to long int works around a bug in the HP C Compiler
27375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27377 # This bug is HP SR number 8606223364.
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27379 $as_echo_n "checking size of long long int... " >&6; }
27380 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27381 $as_echo_n "(cached) " >&6
27383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27386 if test "$ac_cv_type_long_long_int" = yes; then
27387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27389 { as_fn_set_status 77
27390 as_fn_error "cannot compute sizeof (long long int)
27391 See \`config.log' for more details." "$LINENO" 5; }; }
27393 ac_cv_sizeof_long_long_int=0
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27399 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27403 cat >>confdefs.h <<_ACEOF
27404 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27408 # The cast to long int works around a bug in the HP C Compiler
27409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27411 # This bug is HP SR number 8606223364.
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27413 $as_echo_n "checking size of int *... " >&6; }
27414 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27415 $as_echo_n "(cached) " >&6
27417 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27420 if test "$ac_cv_type_int_p" = yes; then
27421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27423 { as_fn_set_status 77
27424 as_fn_error "cannot compute sizeof (int *)
27425 See \`config.log' for more details." "$LINENO" 5; }; }
27427 ac_cv_sizeof_int_p=0
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27433 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27437 cat >>confdefs.h <<_ACEOF
27438 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27444 $as_echo_n "checking for u_int type... " >&6; }
27445 if test "${ac_cv_have_u_int+set}" = set; then :
27446 $as_echo_n "(cached) " >&6
27449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h. */
27452 #include <sys/types.h>
27464 if ac_fn_c_try_compile "$LINENO"; then :
27466 ac_cv_have_u_int="yes"
27470 ac_cv_have_u_int="no"
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27479 $as_echo "$ac_cv_have_u_int" >&6; }
27480 if test "x$ac_cv_have_u_int" = "xyes" ; then
27481 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27487 $as_echo_n "checking for intmax_t type... " >&6; }
27488 if test "${ac_cv_have_intmax_t+set}" = set; then :
27489 $as_echo_n "(cached) " >&6
27492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27493 /* end confdefs.h. */
27495 #include <sys/types.h>
27507 if ac_fn_c_try_compile "$LINENO"; then :
27509 ac_cv_have_intmax_t="yes"
27513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h. */
27516 #include <stdint.h>
27528 if ac_fn_c_try_compile "$LINENO"; then :
27530 ac_cv_have_intmax_t="yes"
27534 ac_cv_have_intmax_t="no"
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27547 $as_echo "$ac_cv_have_intmax_t" >&6; }
27548 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27549 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27555 $as_echo_n "checking for u_intmax_t type... " >&6; }
27556 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27557 $as_echo_n "(cached) " >&6
27560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561 /* end confdefs.h. */
27563 #include <sys/types.h>
27569 u_intmax_t a; a = 1;
27575 if ac_fn_c_try_compile "$LINENO"; then :
27577 ac_cv_have_u_intmax_t="yes"
27581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h. */
27584 #include <stdint.h>
27590 u_intmax_t a; a = 1;
27596 if ac_fn_c_try_compile "$LINENO"; then :
27598 ac_cv_have_u_intmax_t="yes"
27602 ac_cv_have_u_intmax_t="no"
27606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27615 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27616 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27617 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27623 $as_echo_n "checking for intXX_t types... " >&6; }
27624 if test "${ac_cv_have_intxx_t+set}" = set; then :
27625 $as_echo_n "(cached) " >&6
27628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27631 #include <sys/types.h>
27637 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27643 if ac_fn_c_try_compile "$LINENO"; then :
27645 ac_cv_have_intxx_t="yes"
27649 ac_cv_have_intxx_t="no"
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27658 $as_echo "$ac_cv_have_intxx_t" >&6; }
27659 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27660 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27666 $as_echo_n "checking for int64_t type... " >&6; }
27667 if test "${ac_cv_have_int64_t+set}" = set; then :
27668 $as_echo_n "(cached) " >&6
27671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27674 #include <sys/types.h>
27686 if ac_fn_c_try_compile "$LINENO"; then :
27688 ac_cv_have_int64_t="yes"
27692 ac_cv_have_int64_t="no"
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27701 $as_echo "$ac_cv_have_int64_t" >&6; }
27702 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27703 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27709 $as_echo_n "checking for u_intXX_t types... " >&6; }
27710 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27711 $as_echo_n "(cached) " >&6
27714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27715 /* end confdefs.h. */
27717 #include <sys/types.h>
27723 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27729 if ac_fn_c_try_compile "$LINENO"; then :
27731 ac_cv_have_u_intxx_t="yes"
27735 ac_cv_have_u_intxx_t="no"
27739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27744 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27745 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27746 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27752 $as_echo_n "checking for u_int64_t types... " >&6; }
27753 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27754 $as_echo_n "(cached) " >&6
27757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27758 /* end confdefs.h. */
27760 #include <sys/types.h>
27766 u_int64_t a; a = 1;
27772 if ac_fn_c_try_compile "$LINENO"; then :
27774 ac_cv_have_u_int64_t="yes"
27778 ac_cv_have_u_int64_t="no"
27782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27787 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27788 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27789 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27794 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27795 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27798 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h. */
27802 #include <sys/bitypes.h>
27808 int8_t a; int16_t b; int32_t c;
27809 u_int8_t e; u_int16_t f; u_int32_t g;
27810 a = b = c = e = f = g = 1;
27816 if ac_fn_c_try_compile "$LINENO"; then :
27818 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27820 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27822 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27825 $as_echo "yes" >&6; }
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27830 $as_echo "no" >&6; }
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27837 if test -z "$have_u_intxx_t" ; then
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27839 $as_echo_n "checking for uintXX_t types... " >&6; }
27840 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27841 $as_echo_n "(cached) " >&6
27844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h. */
27847 #include <sys/types.h>
27853 uint8_t a; uint16_t b;
27854 uint32_t c; a = b = c = 1;
27860 if ac_fn_c_try_compile "$LINENO"; then :
27862 ac_cv_have_uintxx_t="yes"
27866 ac_cv_have_uintxx_t="no"
27870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27875 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27876 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27877 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27882 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27883 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27886 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h. */
27890 #include <sys/bitypes.h>
27896 int64_t a; u_int64_t b;
27903 if ac_fn_c_try_compile "$LINENO"; then :
27905 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27907 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27910 $as_echo "yes" >&6; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915 $as_echo "no" >&6; }
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27922 if (test -z "$have_uintxx_t" && \
27923 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27926 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27928 /* end confdefs.h. */
27930 #include <sys/bitypes.h>
27936 uint8_t a; uint16_t b;
27937 uint32_t c; a = b = c = 1;
27943 if ac_fn_c_try_compile "$LINENO"; then :
27945 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27948 $as_echo "yes" >&6; }
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27978 eval as_val=\$$as_ac_var
27979 if test "x$as_val" = x""yes; then :
27980 cat >>confdefs.h <<_ACEOF
27981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27985 echo 'configure: cannot find needed function.'; exit 1
27991 for ac_func in getpagesize
27993 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27994 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27995 cat >>confdefs.h <<_ACEOF
27996 #define HAVE_GETPAGESIZE 1
27999 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28004 for ac_func in malloc_trim
28006 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28007 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28008 cat >>confdefs.h <<_ACEOF
28009 #define HAVE_MALLOC_TRIM 1
28012 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28018 for ac_func in fchdir
28020 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28021 if test "x$ac_cv_func_fchdir" = x""yes; then :
28022 cat >>confdefs.h <<_ACEOF
28023 #define HAVE_FCHDIR 1
28025 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28030 for ac_func in strtoll
28032 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28033 if test "x$ac_cv_func_strtoll" = x""yes; then :
28034 cat >>confdefs.h <<_ACEOF
28035 #define HAVE_STRTOLL 1
28037 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28042 for ac_func in posix_fadvise
28044 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28045 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28046 cat >>confdefs.h <<_ACEOF
28047 #define HAVE_POSIX_FADVISE 1
28053 for ac_func in fdatasync
28055 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28056 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28057 cat >>confdefs.h <<_ACEOF
28058 #define HAVE_FDATASYNC 1
28065 for ac_func in chflags
28067 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28068 if test "x$ac_cv_func_chflags" = x""yes; then :
28069 cat >>confdefs.h <<_ACEOF
28070 #define HAVE_CHFLAGS 1
28077 for ac_func in snprintf vsnprintf gethostid fseeko
28079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28081 eval as_val=\$$as_ac_var
28082 if test "x$as_val" = x""yes; then :
28083 cat >>confdefs.h <<_ACEOF
28084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28092 $as_echo_n "checking for va_copy... " >&6; }
28093 if test "${ba_cv_va_copy+set}" = set; then :
28094 $as_echo_n "(cached) " >&6
28097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h. */
28100 #include <stdarg.h>
28101 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28102 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28108 call_use_va_copy(1,2,3)
28114 if ac_fn_c_try_link "$LINENO"; then :
28124 rm -f core conftest.err conftest.$ac_objext \
28125 conftest$ac_exeext conftest.$ac_ext
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28130 $as_echo "$ba_cv_va_copy" >&6; }
28131 test $ba_cv_va_copy = yes &&
28132 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28135 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28139 eval as_val=\$$as_ac_var
28140 if test "x$as_val" = x""yes; then :
28141 cat >>confdefs.h <<_ACEOF
28142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28149 # If resolver functions are not in libc check for -lnsl or -lresolv.
28150 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28151 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28153 $as_echo "using libc's resolver" >&6; }
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28156 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28157 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28158 $as_echo_n "(cached) " >&6
28160 ac_check_lib_save_LIBS=$LIBS
28162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28163 /* end confdefs.h. */
28165 /* Override any GCC internal prototype to avoid an error.
28166 Use char because int might match the return type of a GCC
28167 builtin and then its argument prototype would still apply. */
28171 char gethostbyname_r ();
28175 return gethostbyname_r ();
28180 if ac_fn_c_try_link "$LINENO"; then :
28181 ac_cv_lib_nsl_gethostbyname_r=yes
28183 ac_cv_lib_nsl_gethostbyname_r=no
28185 rm -f core conftest.err conftest.$ac_objext \
28186 conftest$ac_exeext conftest.$ac_ext
28187 LIBS=$ac_check_lib_save_LIBS
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28190 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28191 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28192 cat >>confdefs.h <<_ACEOF
28193 #define HAVE_LIBNSL 1
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28201 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28202 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28203 $as_echo_n "(cached) " >&6
28205 ac_check_lib_save_LIBS=$LIBS
28206 LIBS="-lresolv $LIBS"
28207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208 /* end confdefs.h. */
28210 /* Override any GCC internal prototype to avoid an error.
28211 Use char because int might match the return type of a GCC
28212 builtin and then its argument prototype would still apply. */
28216 char gethostbyname_r ();
28220 return gethostbyname_r ();
28225 if ac_fn_c_try_link "$LINENO"; then :
28226 ac_cv_lib_resolv_gethostbyname_r=yes
28228 ac_cv_lib_resolv_gethostbyname_r=no
28230 rm -f core conftest.err conftest.$ac_objext \
28231 conftest$ac_exeext conftest.$ac_ext
28232 LIBS=$ac_check_lib_save_LIBS
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28235 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28236 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28237 cat >>confdefs.h <<_ACEOF
28238 #define HAVE_LIBRESOLV 1
28241 LIBS="-lresolv $LIBS"
28248 for ac_func in inet_pton
28250 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28251 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28252 cat >>confdefs.h <<_ACEOF
28253 #define HAVE_INET_PTON 1
28255 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28260 for ac_func in inet_ntop
28262 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28263 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28264 cat >>confdefs.h <<_ACEOF
28265 #define HAVE_INET_NTOP 1
28267 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28272 for ac_func in gethostbyname2
28274 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28275 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28276 cat >>confdefs.h <<_ACEOF
28277 #define HAVE_GETHOSTBYNAME2 1
28279 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28286 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28287 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28288 $as_echo_n "(cached) " >&6
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h. */
28294 #include <sys/socket.h>
28300 struct sockaddr s; s.sa_len;
28306 if ac_fn_c_try_compile "$LINENO"; then :
28308 ac_cv_struct_sockaddr_sa_len=yes
28311 ac_cv_struct_sockaddr_sa_len=no
28315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28320 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28322 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28324 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28328 for ac_func in strftime
28330 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28331 if test "x$ac_cv_func_strftime" = x""yes; then :
28332 cat >>confdefs.h <<_ACEOF
28333 #define HAVE_STRFTIME 1
28337 # strftime is in -lintl on SCO UNIX.
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28339 $as_echo_n "checking for strftime in -lintl... " >&6; }
28340 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28341 $as_echo_n "(cached) " >&6
28343 ac_check_lib_save_LIBS=$LIBS
28344 LIBS="-lintl $LIBS"
28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346 /* end confdefs.h. */
28348 /* Override any GCC internal prototype to avoid an error.
28349 Use char because int might match the return type of a GCC
28350 builtin and then its argument prototype would still apply. */
28358 return strftime ();
28363 if ac_fn_c_try_link "$LINENO"; then :
28364 ac_cv_lib_intl_strftime=yes
28366 ac_cv_lib_intl_strftime=no
28368 rm -f core conftest.err conftest.$ac_objext \
28369 conftest$ac_exeext conftest.$ac_ext
28370 LIBS=$ac_check_lib_save_LIBS
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28373 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28374 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28375 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28377 LIBS="-lintl $LIBS"
28383 for ac_func in vprintf
28385 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28386 if test "x$ac_cv_func_vprintf" = x""yes; then :
28387 cat >>confdefs.h <<_ACEOF
28388 #define HAVE_VPRINTF 1
28391 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28392 if test "x$ac_cv_func__doprnt" = x""yes; then :
28394 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28403 # for constant arguments. Useless!
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28405 $as_echo_n "checking for working alloca.h... " >&6; }
28406 if test "${ac_cv_working_alloca_h+set}" = set; then :
28407 $as_echo_n "(cached) " >&6
28409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h. */
28411 #include <alloca.h>
28415 char *p = (char *) alloca (2 * sizeof (int));
28421 if ac_fn_c_try_link "$LINENO"; then :
28422 ac_cv_working_alloca_h=yes
28424 ac_cv_working_alloca_h=no
28426 rm -f core conftest.err conftest.$ac_objext \
28427 conftest$ac_exeext conftest.$ac_ext
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28430 $as_echo "$ac_cv_working_alloca_h" >&6; }
28431 if test $ac_cv_working_alloca_h = yes; then
28433 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28438 $as_echo_n "checking for alloca... " >&6; }
28439 if test "${ac_cv_func_alloca_works+set}" = set; then :
28440 $as_echo_n "(cached) " >&6
28442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443 /* end confdefs.h. */
28445 # define alloca __builtin_alloca
28448 # include <malloc.h>
28449 # define alloca _alloca
28451 # ifdef HAVE_ALLOCA_H
28452 # include <alloca.h>
28457 # ifndef alloca /* predefined by HP cc +Olibcalls */
28468 char *p = (char *) alloca (1);
28474 if ac_fn_c_try_link "$LINENO"; then :
28475 ac_cv_func_alloca_works=yes
28477 ac_cv_func_alloca_works=no
28479 rm -f core conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28483 $as_echo "$ac_cv_func_alloca_works" >&6; }
28485 if test $ac_cv_func_alloca_works = yes; then
28487 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28490 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28491 # that cause trouble. Some versions do not even contain alloca or
28492 # contain a buggy version. If you still want to use their alloca,
28493 # use ar to extract alloca.o from them instead of compiling alloca.c.
28495 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28497 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28501 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28502 if test "${ac_cv_os_cray+set}" = set; then :
28503 $as_echo_n "(cached) " >&6
28505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506 /* end confdefs.h. */
28507 #if defined CRAY && ! defined CRAY2
28514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28515 $EGREP "webecray" >/dev/null 2>&1; then :
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28524 $as_echo "$ac_cv_os_cray" >&6; }
28525 if test $ac_cv_os_cray = yes; then
28526 for ac_func in _getb67 GETB67 getb67; do
28527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 eval as_val=\$$as_ac_var
28530 if test "x$as_val" = x""yes; then :
28532 cat >>confdefs.h <<_ACEOF
28533 #define CRAY_STACKSEG_END $ac_func
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28543 $as_echo_n "checking stack direction for C alloca... " >&6; }
28544 if test "${ac_cv_c_stack_direction+set}" = set; then :
28545 $as_echo_n "(cached) " >&6
28547 if test "$cross_compiling" = yes; then :
28548 ac_cv_c_stack_direction=0
28550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h. */
28552 $ac_includes_default
28554 find_stack_direction ()
28556 static char *addr = 0;
28561 return find_stack_direction ();
28564 return (&dummy > addr) ? 1 : -1;
28570 return find_stack_direction () < 0;
28573 if ac_fn_c_try_run "$LINENO"; then :
28574 ac_cv_c_stack_direction=1
28576 ac_cv_c_stack_direction=-1
28578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28579 conftest.$ac_objext conftest.beam conftest.$ac_ext
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28584 $as_echo "$ac_cv_c_stack_direction" >&6; }
28585 cat >>confdefs.h <<_ACEOF
28586 #define STACK_DIRECTION $ac_cv_c_stack_direction
28592 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28593 # -lseq on Dynix/PTX, -lgen on Unixware.
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28595 $as_echo_n "checking for library containing getmntent... " >&6; }
28596 if test "${ac_cv_search_getmntent+set}" = set; then :
28597 $as_echo_n "(cached) " >&6
28599 ac_func_search_save_LIBS=$LIBS
28600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601 /* end confdefs.h. */
28603 /* Override any GCC internal prototype to avoid an error.
28604 Use char because int might match the return type of a GCC
28605 builtin and then its argument prototype would still apply. */
28613 return getmntent ();
28618 for ac_lib in '' sun seq gen; do
28619 if test -z "$ac_lib"; then
28620 ac_res="none required"
28623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28625 if ac_fn_c_try_link "$LINENO"; then :
28626 ac_cv_search_getmntent=$ac_res
28628 rm -f core conftest.err conftest.$ac_objext \
28630 if test "${ac_cv_search_getmntent+set}" = set; then :
28634 if test "${ac_cv_search_getmntent+set}" = set; then :
28637 ac_cv_search_getmntent=no
28639 rm conftest.$ac_ext
28640 LIBS=$ac_func_search_save_LIBS
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28643 $as_echo "$ac_cv_search_getmntent" >&6; }
28644 ac_res=$ac_cv_search_getmntent
28645 if test "$ac_res" != no; then :
28646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28647 ac_cv_func_getmntent=yes
28649 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28652 ac_cv_func_getmntent=no
28656 for ac_func in getmntinfo
28658 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28659 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28660 cat >>confdefs.h <<_ACEOF
28661 #define HAVE_GETMNTINFO 1
28663 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28669 $as_echo_n "checking whether closedir returns void... " >&6; }
28670 if test "${ac_cv_func_closedir_void+set}" = set; then :
28671 $as_echo_n "(cached) " >&6
28673 if test "$cross_compiling" = yes; then :
28674 ac_cv_func_closedir_void=yes
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h. */
28678 $ac_includes_default
28679 #include <$ac_header_dirent>
28680 #ifndef __cplusplus
28687 return closedir (opendir (".")) != 0;
28692 if ac_fn_c_try_run "$LINENO"; then :
28693 ac_cv_func_closedir_void=no
28695 ac_cv_func_closedir_void=yes
28697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28698 conftest.$ac_objext conftest.beam conftest.$ac_ext
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28703 $as_echo "$ac_cv_func_closedir_void" >&6; }
28704 if test $ac_cv_func_closedir_void = yes; then
28706 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28711 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28712 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28713 $as_echo_n "(cached) " >&6
28715 if test "$cross_compiling" = yes; then :
28716 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28719 /* end confdefs.h. */
28720 $ac_includes_default
28724 /* If this system has a BSD-style setpgrp which takes arguments,
28725 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28726 exit successfully. */
28727 return setpgrp (1,1) != -1;
28732 if ac_fn_c_try_run "$LINENO"; then :
28733 ac_cv_func_setpgrp_void=no
28735 ac_cv_func_setpgrp_void=yes
28737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28738 conftest.$ac_objext conftest.beam conftest.$ac_ext
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28743 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28744 if test $ac_cv_func_setpgrp_void = yes; then
28746 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28749 # AC_FUNC_FNMATCH dnl use local version
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28752 $as_echo_n "checking for gettext in -lintl... " >&6; }
28753 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28754 $as_echo_n "(cached) " >&6
28756 ac_check_lib_save_LIBS=$LIBS
28757 LIBS="-lintl $LIBS"
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28761 /* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28776 if ac_fn_c_try_link "$LINENO"; then :
28777 ac_cv_lib_intl_gettext=yes
28779 ac_cv_lib_intl_gettext=no
28781 rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
28783 LIBS=$ac_check_lib_save_LIBS
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28786 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28787 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28788 LIBS="$LIBS -lintl"
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28793 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28794 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28795 $as_echo_n "(cached) " >&6
28797 ac_check_lib_save_LIBS=$LIBS
28799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28800 /* end confdefs.h. */
28802 /* Override any GCC internal prototype to avoid an error.
28803 Use char because int might match the return type of a GCC
28804 builtin and then its argument prototype would still apply. */
28812 return getpwnam ();
28817 if ac_fn_c_try_link "$LINENO"; then :
28818 ac_cv_lib_sun_getpwnam=yes
28820 ac_cv_lib_sun_getpwnam=no
28822 rm -f core conftest.err conftest.$ac_objext \
28823 conftest$ac_exeext conftest.$ac_ext
28824 LIBS=$ac_check_lib_save_LIBS
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28827 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28828 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28829 cat >>confdefs.h <<_ACEOF
28830 #define HAVE_LIBSUN 1
28838 for ac_header in zlib.h
28840 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28841 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28842 cat >>confdefs.h <<_ACEOF
28843 #define HAVE_ZLIB_H 1
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28851 $as_echo_n "checking for deflate in -lz... " >&6; }
28852 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28853 $as_echo_n "(cached) " >&6
28855 ac_check_lib_save_LIBS=$LIBS
28857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28858 /* end confdefs.h. */
28860 /* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28875 if ac_fn_c_try_link "$LINENO"; then :
28876 ac_cv_lib_z_deflate=yes
28878 ac_cv_lib_z_deflate=no
28880 rm -f core conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
28882 LIBS=$ac_check_lib_save_LIBS
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28885 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28886 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28891 if test x$ZLIBS = x-lz; then
28892 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28898 for ac_header in lzo/lzoconf.h
28900 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28901 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28902 cat >>confdefs.h <<_ACEOF
28903 #define HAVE_LZO_LZOCONF_H 1
28910 for ac_header in lzo/lzo1x.h
28912 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28913 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28914 cat >>confdefs.h <<_ACEOF
28915 #define HAVE_LZO_LZO1X_H 1
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28923 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28924 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28925 $as_echo_n "(cached) " >&6
28927 ac_check_lib_save_LIBS=$LIBS
28928 LIBS="-llzo2 $LIBS"
28929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28930 /* end confdefs.h. */
28932 /* Override any GCC internal prototype to avoid an error.
28933 Use char because int might match the return type of a GCC
28934 builtin and then its argument prototype would still apply. */
28938 char lzo1x_1_compress ();
28942 return lzo1x_1_compress ();
28947 if ac_fn_c_try_link "$LINENO"; then :
28948 ac_cv_lib_lzo2_lzo1x_1_compress=yes
28950 ac_cv_lib_lzo2_lzo1x_1_compress=no
28952 rm -f core conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28957 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28958 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
28963 if test x$LZOLIBS = x-llzo2; then
28964 $as_echo "#define HAVE_LZO 1" >>confdefs.h
28971 # Check whether --enable-acl was given.
28972 if test "${enable_acl+set}" = set; then :
28973 enableval=$enable_acl;
28974 if test x$enableval = xyes; then
28976 elif test x$enableval = xno; then
28985 have_extended_acl=no
28986 if test x$support_acl = xyes -o x$support_acl = xauto; then
28987 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28988 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28990 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28996 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28997 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
29005 if test $have_acl = no; then
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29007 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29008 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29009 $as_echo_n "(cached) " >&6
29011 ac_check_lib_save_LIBS=$LIBS
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h. */
29016 /* Override any GCC internal prototype to avoid an error.
29017 Use char because int might match the return type of a GCC
29018 builtin and then its argument prototype would still apply. */
29022 char acl_get_file ();
29026 return acl_get_file ();
29031 if ac_fn_c_try_link "$LINENO"; then :
29032 ac_cv_lib_acl_acl_get_file=yes
29034 ac_cv_lib_acl_acl_get_file=no
29036 rm -f core conftest.err conftest.$ac_objext \
29037 conftest$ac_exeext conftest.$ac_ext
29038 LIBS=$ac_check_lib_save_LIBS
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29041 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29042 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29045 FDLIBS="-lacl $FDLIBS"
29052 if test $have_acl = no -a \
29053 x${HAVE_OSF1_OS_TRUE} = x; then
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29055 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29056 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29057 $as_echo_n "(cached) " >&6
29059 ac_check_lib_save_LIBS=$LIBS
29060 LIBS="-lpacl $LIBS"
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h. */
29064 /* Override any GCC internal prototype to avoid an error.
29065 Use char because int might match the return type of a GCC
29066 builtin and then its argument prototype would still apply. */
29070 char acl_get_file ();
29074 return acl_get_file ();
29079 if ac_fn_c_try_link "$LINENO"; then :
29080 ac_cv_lib_pacl_acl_get_file=yes
29082 ac_cv_lib_pacl_acl_get_file=no
29084 rm -f core conftest.err conftest.$ac_objext \
29085 conftest$ac_exeext conftest.$ac_ext
29086 LIBS=$ac_check_lib_save_LIBS
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29089 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29090 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29093 FDLIBS="-lpacl $FDLIBS"
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29100 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29101 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29102 if test $? = 0; then
29104 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29107 $as_echo "yes" >&6; }
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29110 $as_echo "no" >&6; }
29114 if test $have_acl = yes -a \
29115 x${HAVE_DARWIN_OS_TRUE} = x; then
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29117 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29118 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29119 if test $? = 0; then
29121 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124 $as_echo "yes" >&6; }
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29127 $as_echo "no" >&6; }
29131 if test $have_acl = yes -a \
29132 x${HAVE_FREEBSD_OS_TRUE} = x; then
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29134 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29135 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29136 if test $? = 0; then
29138 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29141 $as_echo "yes" >&6; }
29143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29144 $as_echo "no" >&6; }
29148 if test $have_acl = no -a \
29149 x${HAVE_SUN_OS_TRUE} = x; then
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29151 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29152 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29153 $as_echo_n "(cached) " >&6
29155 ac_check_lib_save_LIBS=$LIBS
29157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29158 /* end confdefs.h. */
29160 /* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29170 return acltotext ();
29175 if ac_fn_c_try_link "$LINENO"; then :
29176 ac_cv_lib_sec_acltotext=yes
29178 ac_cv_lib_sec_acltotext=no
29180 rm -f core conftest.err conftest.$ac_objext \
29181 conftest$ac_exeext conftest.$ac_ext
29182 LIBS=$ac_check_lib_save_LIBS
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29185 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29186 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29189 FDLIBS="-lsec $FDLIBS"
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29192 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29193 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29194 $as_echo_n "(cached) " >&6
29196 ac_check_lib_save_LIBS=$LIBS
29198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29199 /* end confdefs.h. */
29201 /* Override any GCC internal prototype to avoid an error.
29202 Use char because int might match the return type of a GCC
29203 builtin and then its argument prototype would still apply. */
29207 char acl_totext ();
29211 return acl_totext ();
29216 if ac_fn_c_try_link "$LINENO"; then :
29217 ac_cv_lib_sec_acl_totext=yes
29219 ac_cv_lib_sec_acl_totext=no
29221 rm -f core conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
29223 LIBS=$ac_check_lib_save_LIBS
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29226 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29227 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29229 have_extended_acl=yes
29240 if test $have_acl = no -a \
29241 x${HAVE_AIX_OS_TRUE} = x; then
29242 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29243 if test "x$ac_cv_func_acl_get" = x""yes; then :
29247 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29248 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29250 have_extended_acl=yes
29261 if test x$support_acl = xyes -a $have_acl != yes; then
29262 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
29263 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29265 if test $have_acl = yes; then
29267 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29271 if test $have_extended_acl = yes; then
29273 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29280 # Check whether --enable-xattr was given.
29281 if test "${enable_xattr+set}" = set; then :
29282 enableval=$enable_xattr;
29283 if test x$enableval = xyes; then
29285 elif test x$enableval = xno; then
29294 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29295 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29296 x${HAVE_NETBSD_OS_TRUE} = x -o \
29297 x${HAVE_OPENBSD_OS_TRUE} = x; then
29298 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29299 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29301 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29306 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29307 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29309 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29314 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29318 eval as_val=\$$as_ac_var
29319 if test "x$as_val" = x""yes; then :
29320 cat >>confdefs.h <<_ACEOF
29321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29326 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29329 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29332 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29340 if test $have_xattr = no; then
29341 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29345 eval as_val=\$$as_ac_var
29346 if test "x$as_val" = x""yes; then :
29347 cat >>confdefs.h <<_ACEOF
29348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29353 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29356 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29359 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29368 if test $have_xattr = yes; then
29369 have_extattr_string_in_libc=no
29370 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29374 eval as_val=\$$as_ac_var
29375 if test "x$as_val" = x""yes; then :
29376 cat >>confdefs.h <<_ACEOF
29377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29380 have_extattr_string_in_libc=yes
29382 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29385 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29393 if test $have_extattr_string_in_libc = no; then
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29395 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29396 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29397 $as_echo_n "(cached) " >&6
29399 ac_check_lib_save_LIBS=$LIBS
29400 LIBS="-lutil $LIBS"
29401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29402 /* end confdefs.h. */
29404 /* Override any GCC internal prototype to avoid an error.
29405 Use char because int might match the return type of a GCC
29406 builtin and then its argument prototype would still apply. */
29410 char extattr_namespace_to_string extattr_string_to_namespace ();
29414 return extattr_namespace_to_string extattr_string_to_namespace ();
29419 if ac_fn_c_try_link "$LINENO"; then :
29420 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29422 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29424 rm -f core conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
29426 LIBS=$ac_check_lib_save_LIBS
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29429 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29430 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29433 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29436 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29438 FDLIBS="-lutil $FDLIBS"
29447 if test $have_xattr = no -a \
29448 x${HAVE_AIX_OS_TRUE} = x; then
29449 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29450 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29452 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29457 for ac_func in llistea lgetea lsetea
29459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29461 eval as_val=\$$as_ac_var
29462 if test "x$as_val" = x""yes; then :
29463 cat >>confdefs.h <<_ACEOF
29464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29469 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29472 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29475 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29483 if test $have_xattr = no; then
29484 for ac_func in listea getea setea
29486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29488 eval as_val=\$$as_ac_var
29489 if test "x$as_val" = x""yes; then :
29490 cat >>confdefs.h <<_ACEOF
29491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29496 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29499 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29502 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29512 if test $have_xattr = no -a \
29513 x${HAVE_OSF1_OS_TRUE} = x; then
29514 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29515 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29517 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29522 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29526 eval as_val=\$$as_ac_var
29527 if test "x$as_val" = x""yes; then :
29528 cat >>confdefs.h <<_ACEOF
29529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29534 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29537 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29540 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29543 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29546 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29555 if test $have_xattr = no -a \
29556 x${HAVE_SUN_OS_TRUE} = x; then
29557 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29558 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29560 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29565 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29566 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29568 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29573 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29574 if test "x$ac_cv_header_attr_h" = x""yes; then :
29576 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29582 for ac_func in openat fstatat unlinkat fchownat futimesat
29584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29585 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29586 eval as_val=\$$as_ac_var
29587 if test "x$as_val" = x""yes; then :
29588 cat >>confdefs.h <<_ACEOF
29589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29594 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29597 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29600 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29603 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29606 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29614 if test $have_xattr = yes; then
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29616 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29617 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29618 $as_echo_n "(cached) " >&6
29620 ac_check_lib_save_LIBS=$LIBS
29621 LIBS="-lnvpair $LIBS"
29622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29623 /* end confdefs.h. */
29625 /* Override any GCC internal prototype to avoid an error.
29626 Use char because int might match the return type of a GCC
29627 builtin and then its argument prototype would still apply. */
29631 char nvlist_next_nvpair ();
29635 return nvlist_next_nvpair ();
29640 if ac_fn_c_try_link "$LINENO"; then :
29641 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29643 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29645 rm -f core conftest.err conftest.$ac_objext \
29646 conftest$ac_exeext conftest.$ac_ext
29647 LIBS=$ac_check_lib_save_LIBS
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29650 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29651 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29654 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29656 FDLIBS="-lnvpair $FDLIBS"
29664 if test $have_xattr = no; then
29665 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29666 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29668 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29673 for ac_func in llistxattr lgetxattr lsetxattr
29675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29677 eval as_val=\$$as_ac_var
29678 if test "x$as_val" = x""yes; then :
29679 cat >>confdefs.h <<_ACEOF
29680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29685 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29688 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29691 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29699 if test $have_xattr = no; then
29700 for ac_func in listxattr getxattr setxattr
29702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29704 eval as_val=\$$as_ac_var
29705 if test "x$as_val" = x""yes; then :
29706 cat >>confdefs.h <<_ACEOF
29707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29712 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29715 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29718 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29728 if test x$support_xattr = xyes -a $have_xattr != yes; then
29729 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29730 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29732 if test $have_xattr = yes; then
29734 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29742 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29743 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29744 $as_echo_n "(cached) " >&6
29746 ac_check_lib_save_LIBS=$LIBS
29747 LIBS="-lpthread $LIBS"
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h. */
29751 /* Override any GCC internal prototype to avoid an error.
29752 Use char because int might match the return type of a GCC
29753 builtin and then its argument prototype would still apply. */
29757 char pthread_create ();
29761 return pthread_create ();
29766 if ac_fn_c_try_link "$LINENO"; then :
29767 ac_cv_lib_pthread_pthread_create=yes
29769 ac_cv_lib_pthread_pthread_create=no
29771 rm -f core conftest.err conftest.$ac_objext \
29772 conftest$ac_exeext conftest.$ac_ext
29773 LIBS=$ac_check_lib_save_LIBS
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29776 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29777 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29778 PTHREAD_LIB="-lpthread"
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29782 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29783 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29784 $as_echo_n "(cached) " >&6
29786 ac_check_lib_save_LIBS=$LIBS
29787 LIBS="-lpthreads $LIBS"
29788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29789 /* end confdefs.h. */
29791 /* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29797 char pthread_create ();
29801 return pthread_create ();
29806 if ac_fn_c_try_link "$LINENO"; then :
29807 ac_cv_lib_pthreads_pthread_create=yes
29809 ac_cv_lib_pthreads_pthread_create=no
29811 rm -f core conftest.err conftest.$ac_objext \
29812 conftest$ac_exeext conftest.$ac_ext
29813 LIBS=$ac_check_lib_save_LIBS
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29816 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29817 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29818 PTHREAD_LIB="-lpthreads"
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29822 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29823 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29824 $as_echo_n "(cached) " >&6
29826 ac_check_lib_save_LIBS=$LIBS
29828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29829 /* end confdefs.h. */
29831 /* Override any GCC internal prototype to avoid an error.
29832 Use char because int might match the return type of a GCC
29833 builtin and then its argument prototype would still apply. */
29837 char pthread_create ();
29841 return pthread_create ();
29846 if ac_fn_c_try_link "$LINENO"; then :
29847 ac_cv_lib_c_r_pthread_create=yes
29849 ac_cv_lib_c_r_pthread_create=no
29851 rm -f core conftest.err conftest.$ac_objext \
29852 conftest$ac_exeext conftest.$ac_ext
29853 LIBS=$ac_check_lib_save_LIBS
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29856 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29857 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29858 PTHREAD_LIB="-lc_r"
29861 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29862 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29879 for ac_header in sys/prctl.h sys/capability.h
29881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29882 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29883 eval as_val=\$$as_ac_Header
29884 if test "x$as_val" = x""yes; then :
29885 cat >>confdefs.h <<_ACEOF
29886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29893 for ac_func in prctl setreuid
29895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29897 eval as_val=\$$as_ac_var
29898 if test "x$as_val" = x""yes; then :
29899 cat >>confdefs.h <<_ACEOF
29900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29907 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29908 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29909 $as_echo_n "(cached) " >&6
29911 ac_check_lib_save_LIBS=$LIBS
29913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29914 /* end confdefs.h. */
29916 /* Override any GCC internal prototype to avoid an error.
29917 Use char because int might match the return type of a GCC
29918 builtin and then its argument prototype would still apply. */
29922 char cap_set_proc ();
29926 return cap_set_proc ();
29931 if ac_fn_c_try_link "$LINENO"; then :
29932 ac_cv_lib_cap_cap_set_proc=yes
29934 ac_cv_lib_cap_cap_set_proc=no
29936 rm -f core conftest.err conftest.$ac_objext \
29937 conftest$ac_exeext conftest.$ac_ext
29938 LIBS=$ac_check_lib_save_LIBS
29940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29941 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29942 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29948 if test x$CAP_LIBS = x-lcap; then
29950 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29956 $as_echo "#define FDLIBS 1" >>confdefs.h
29959 CFLAGS=${CFLAGS--O}
29961 if test x$have_gcc = xyes ; then
29962 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29963 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29965 LDFLAGS=${LDFLAGS--O}
29966 CPPFLAGS="$CPPFLAGS"
29992 PFILES="platforms/Makefile"
29996 COMPRESS_MANPAGES=yes
29998 hostname=`uname -n | cut -d '.' -f 1`
29999 if test x${hostname} = x ; then
30000 hostname="localhost"
30002 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30003 if test ! $? = 0; then
30004 hostname="localhost"
30007 case "$DISTNAME" in
30010 PSCMD="ps -e -o pid,comm"
30011 PFILES="${PFILES} \
30012 platforms/aix/Makefile"
30013 TAPEDRIVE="/dev/rmt0.1"
30017 PTHREAD_LIB="-lpthread -lexc"
30018 if test "${CC}" = "gcc" ; then
30025 TAPEDRIVE="/dev/nrmt0"
30028 DISTVER=`uname -a |awk '{print $3}'`
30029 TAPEDRIVE="/dev/nrmt0"
30030 PTHREAD_LIB="-pthread"
30031 CFLAGS="${CFLAGS} -pthread"
30032 PSCMD="ps -ax -o pid,command"
30035 PFILES="${PFILES} \
30036 platforms/bsdi/Makefile \
30037 platforms/bsdi/bacula-fd \
30038 platforms/bsdi/bacula-sd \
30039 platforms/bsdi/bacula-dir"
30040 largefile_support="yes"
30043 DISTVER=`uname -a |awk '{print $3}'`
30044 TAPEDRIVE="/dev/nrst0"
30046 WCFLAGS="-mwindows"
30047 WLDFLAGS="-mwindows"
30051 TAPEDRIVE="/dev/nst0"
30052 PSCMD="ps -e -o pid,command"
30054 PFILES="${PFILES} \
30055 platforms/darwin/Makefile"
30059 TAPEDRIVE="/dev/nst0"
30060 PSCMD="ps -e -o pid,command"
30062 PFILES="${PFILES} \
30063 platforms/osx/Makefile"
30066 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30069 DISTVER=`cat /etc/debian_version`
30070 if test -f /etc/lsb-release ; then
30072 if test "x$DISTRIB_ID" != "x" ; then
30073 DISTNAME=$DISTRIB_ID
30075 if test "x$DISTRIB_RELEASE" != "x" ; then
30076 DISTVER=$DISTRIB_RELEASE
30079 if test "$DISTNAME" = "Ubuntu" ; then
30082 TAPEDRIVE="/dev/nst0"
30083 PSCMD="ps -e -o pid,command"
30084 if test "$DISTNAME" = "ubuntu" ; then
30085 PFILES="${PFILES} \
30086 platforms/ubuntu/Makefile \
30087 platforms/ubuntu/bacula-fd \
30088 platforms/ubuntu/bacula-sd \
30089 platforms/ubuntu/bacula-dir"
30091 PFILES="${PFILES} \
30092 platforms/debian/Makefile \
30093 platforms/debian/bacula-fd \
30094 platforms/debian/bacula-sd \
30095 platforms/debian/bacula-dir"
30099 DISTVER=`uname -a |awk '{print $3}'`
30100 VER=`echo $DISTVER | cut -c 1`
30101 if test x$VER = x4 ; then
30102 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30103 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30107 TAPEDRIVE="/dev/nrsa0"
30108 PSCMD="ps -ax -o pid,command"
30109 PFILES="${PFILES} \
30110 platforms/freebsd/Makefile \
30111 platforms/freebsd/bacula-fd \
30112 platforms/freebsd/bacula-sd \
30113 platforms/freebsd/bacula-dir"
30114 largefile_support="yes"
30117 PSCMD="UNIX95=1; ps -e -o pid,comm"
30118 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30120 TAPEDRIVE="/dev/rmt/0hnb"
30121 PTHREAD_LIB="-lpthread"
30122 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30127 TAPEDRIVE="/dev/rmt/0cbn"
30128 PSCMD="ps -e -o pid,comm"
30129 PFILES="${PFILES} \
30130 platforms/irix/Makefile \
30131 platforms/irix/bacula-fd \
30132 platforms/irix/bacula-sd \
30133 platforms/irix/bacula-dir"
30136 DISTVER=`uname -a |awk '{print $3}'`
30139 TAPEDRIVE="/dev/nrst0"
30140 PSCMD="ps -ax -o pid,command"
30141 PTHREAD_LIB="-pthread"
30142 CFLAGS="${CFLAGS} -pthread"
30145 DISTVER=`uname -a |awk '{print $3}'`
30148 TAPEDRIVE="/dev/nrst0"
30149 PSCMD="ps -ax -o pid,command"
30150 PTHREAD_LIB="-pthread"
30151 CFLAGS="${CFLAGS} -pthread"
30152 PFILES="${PFILES} \
30153 platforms/openbsd/Makefile \
30154 platforms/openbsd/bacula-fd \
30155 platforms/openbsd/bacula-sd \
30156 platforms/openbsd/bacula-dir"
30159 if test -f /etc/whitebox-release ; then
30160 f=/etc/whitebox-release
30162 f=/etc/redhat-release
30164 if test `cat $f | grep release |\
30165 cut -f 3 -d ' '`x = "Enterprise"x ; then
30166 DISTVER="Enterprise "`cat $f | grep release |\
30169 DISTVER=`cat /etc/redhat-release | grep release |\
30172 TAPEDRIVE="/dev/nst0"
30173 PSCMD="ps -e -o pid,command"
30174 PFILES="${PFILES} \
30175 platforms/redhat/Makefile \
30176 platforms/redhat/bacula-fd \
30177 platforms/redhat/bacula-sd \
30178 platforms/redhat/bacula-dir
30182 DISTVER=`cat /etc/mandrake-release | grep release |\
30184 TAPEDRIVE="/dev/nst0"
30185 PSCMD="ps -e -o pid,command"
30186 PFILES="${PFILES} \
30187 platforms/mandrake/Makefile \
30188 platforms/mandrake/bacula-fd \
30189 platforms/mandrake/bacula-sd \
30190 platforms/mandrake/bacula-dir \
30194 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30195 TAPEDRIVE="/dev/nst0"
30196 PSCMD="ps -e -o pid,command"
30197 PFILES="${PFILES} \
30198 platforms/gentoo/Makefile \
30199 platforms/gentoo/bacula-init \
30200 platforms/gentoo/bacula-fd \
30201 platforms/gentoo/bacula-sd \
30202 platforms/gentoo/bacula-dir"
30205 DISTVER=`cat /etc/slackware-version`
30206 TAPEDRIVE="/dev/nst0"
30207 PSCMD="ps -e -o pid,command"
30208 PFILES="${PFILES} \
30209 platforms/slackware/Makefile \
30210 platforms/slackware/rc.bacula-fd \
30211 platforms/slackware/rc.bacula-sd \
30212 platforms/slackware/rc.bacula-dir\
30213 platforms/slackware/functions.bacula"
30217 TAPEDRIVE="/dev/rmt/0cbn"
30218 PSCMD="ps -e -o pid,comm"
30219 PFILES="${PFILES} \
30220 platforms/solaris/Makefile \
30221 platforms/solaris/bacula-fd \
30222 platforms/solaris/bacula-sd \
30223 platforms/solaris/bacula-dir"
30227 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30229 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30233 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30239 LIBS="$LIBS -lresolv -lrt"
30242 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30244 TAPEDRIVE="/dev/nst0"
30245 PSCMD="ps -e -o pid,command"
30246 PFILES="${PFILES} \
30247 platforms/suse/Makefile \
30248 platforms/suse/bacula-fd \
30249 platforms/suse/bacula-sd \
30250 platforms/suse/bacula-dir \
30251 platforms/suse/bacula"
30256 TAPEDRIVE="/dev/nst0"
30257 PSCMD="ps -e -o pid,command"
30258 PFILES="${PFILES} \
30259 platforms/suse/Makefile \
30260 platforms/suse/bacula-fd \
30261 platforms/suse/bacula-sd \
30262 platforms/suse/bacula-dir"
30266 TAPEDRIVE="/dev/nst0"
30269 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30275 LIBS="$PTHREAD_LIB $LIBS"
30277 cat >>confdefs.h <<_ACEOF
30281 cat >>confdefs.h <<_ACEOF
30293 MCOMMON=./autoconf/Make.common
30296 if test "x${subsysdir}" = "x${sbindir}" ; then
30299 echo "You have set both --sbindir and --with-subsys-dir"
30300 echo " equal to: ${subsysdir} "
30301 echo "This is not permitted. Please reconfigure."
30303 echo "Aborting configuration ..."
30309 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/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf 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 src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile $PFILES"
30311 ac_config_commands="$ac_config_commands default"
30313 cat >confcache <<\_ACEOF
30314 # This file is a shell script that caches the results of configure
30315 # tests run on this system so they can be shared between configure
30316 # scripts and configure runs, see configure's option --config-cache.
30317 # It is not useful on other systems. If it contains results you don't
30318 # want to keep, you may remove or edit it.
30320 # config.status only pays attention to the cache file if you give it
30321 # the --recheck option to rerun configure.
30323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30325 # following values.
30329 # The following way of writing the cache mishandles newlines in values,
30330 # but we know of no workaround that is simple, portable, and efficient.
30331 # So, we kill variables containing newlines.
30332 # Ultrix sh set writes to stderr and can't be redirected directly,
30333 # and sets the high bit in the cache file unless we assign to the vars.
30335 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30336 eval ac_val=\$$ac_var
30340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30344 _ | IFS | as_nl) ;; #(
30345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30346 *) { eval $ac_var=; unset $ac_var;} ;;
30352 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30353 *${as_nl}ac_space=\ *)
30354 # `set' does not quote correctly, so add quotes: double-quote
30355 # substitution turns \\\\ into \\, and sed turns \\ into \.
30358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30361 # `set' quotes correctly as required by POSIX, so do not add quotes.
30362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30373 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30376 if test -w "$cache_file"; then
30377 test "x$cache_file" != "x/dev/null" &&
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30379 $as_echo "$as_me: updating cache $cache_file" >&6;}
30380 cat confcache >$cache_file
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30389 # Let make expand exec_prefix.
30390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30392 DEFS=-DHAVE_CONFIG_H
30396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30397 # 1. Remove the extension, and $U if already installed.
30398 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30399 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30400 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30401 # will be set to the directory where LIBOBJS objects are built.
30402 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30403 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30405 LIBOBJS=$ac_libobjs
30407 LTLIBOBJS=$ac_ltlibobjs
30412 : ${CONFIG_STATUS=./config.status}
30414 ac_clean_files_save=$ac_clean_files
30415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30421 # Generated by $as_me.
30422 # Run this file to recreate the current configuration.
30423 # Compiler output produced by configure, useful for debugging
30424 # configure, is in config.log if it exists.
30427 ac_cs_recheck=false
30430 SHELL=\${CONFIG_SHELL-$SHELL}
30433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30434 ## -------------------- ##
30435 ## M4sh Initialization. ##
30436 ## -------------------- ##
30438 # Be more Bourne compatible
30439 DUALCASE=1; export DUALCASE # for MKS sh
30440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30444 # is contrary to our usage. Disable this feature.
30445 alias -g '${1+"$@"}'='"$@"'
30446 setopt NO_GLOB_SUBST
30448 case `(set -o) 2>/dev/null` in #(
30460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30464 # Prefer a ksh shell builtin over an external printf program on Solaris,
30465 # but without wasting forks for bash or zsh.
30466 if test -z "$BASH_VERSION$ZSH_VERSION" \
30467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30468 as_echo='print -r --'
30469 as_echo_n='print -rn --'
30470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30471 as_echo='printf %s\n'
30472 as_echo_n='printf %s'
30474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30476 as_echo_n='/usr/ucb/echo -n'
30478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30479 as_echo_n_body='eval
30483 expr "X$arg" : "X\\(.*\\)$as_nl";
30484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30488 export as_echo_n_body
30489 as_echo_n='sh -c $as_echo_n_body as_echo'
30491 export as_echo_body
30492 as_echo='sh -c $as_echo_body as_echo'
30495 # The user is always right.
30496 if test "${PATH_SEPARATOR+set}" != set; then
30498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30506 # We need space, tab and new line, in precisely that order. Quoting is
30507 # there to prevent editors from complaining about space-tab.
30508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30509 # splitting by setting IFS to empty value.)
30512 # Find who we are. Look in the path if we contain no directory separator.
30514 *[\\/]* ) as_myself=$0 ;;
30515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30516 for as_dir in $PATH
30519 test -z "$as_dir" && as_dir=.
30520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30526 # We did not find ourselves, most probably we were run as `sh COMMAND'
30527 # in which case we are not to be found in the path.
30528 if test "x$as_myself" = x; then
30531 if test ! -f "$as_myself"; then
30532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30536 # Unset variables that we do not need and which cause bugs (e.g. in
30537 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30538 # suppresses any "Segmentation fault" message there. '((' could
30539 # trigger a bug in pdksh 5.2.14.
30540 for as_var in BASH_ENV ENV MAIL MAILPATH
30541 do eval test x\${$as_var+set} = xset \
30542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30558 # as_fn_error ERROR [LINENO LOG_FD]
30559 # ---------------------------------
30560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30562 # script with status $?, using 1 if that was 0.
30565 as_status=$?; test $as_status -eq 0 && as_status=1
30567 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30570 $as_echo "$as_me: error: $1" >&2
30571 as_fn_exit $as_status
30575 # as_fn_set_status STATUS
30576 # -----------------------
30577 # Set $? to STATUS, without forking.
30578 as_fn_set_status ()
30581 } # as_fn_set_status
30583 # as_fn_exit STATUS
30584 # -----------------
30585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30589 as_fn_set_status $1
30595 # Portably unset VAR.
30598 { eval $1=; unset $1;}
30600 as_unset=as_fn_unset
30601 # as_fn_append VAR VALUE
30602 # ----------------------
30603 # Append the text in VALUE to the end of the definition contained in VAR. Take
30604 # advantage of any shell optimizations that allow amortized linear growth over
30605 # repeated appends, instead of the typical quadratic growth present in naive
30607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30608 eval 'as_fn_append ()
30619 # as_fn_arith ARG...
30620 # ------------------
30621 # Perform arithmetic evaluation on the ARGs, and store the result in the
30622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30623 # must be portable across $(()) and expr.
30624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30625 eval 'as_fn_arith ()
30632 as_val=`expr "$@" || test $? -eq 1`
30637 if expr a : '\(a\)' >/dev/null 2>&1 &&
30638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30645 as_basename=basename
30650 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30656 as_me=`$as_basename -- "$0" ||
30657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30658 X"$0" : 'X\(//\)$' \| \
30659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30661 sed '/^.*\/\([^/][^/]*\)\/*$/{
30675 # Avoid depending upon Character Ranges.
30676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30679 as_cr_digits='0123456789'
30680 as_cr_alnum=$as_cr_Letters$as_cr_digits
30682 ECHO_C= ECHO_N= ECHO_T=
30683 case `echo -n x` in #(((((
30685 case `echo 'xy\c'` in
30686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30695 rm -f conf$$ conf$$.exe conf$$.file
30696 if test -d conf$$.dir; then
30697 rm -f conf$$.dir/conf$$.file
30700 mkdir conf$$.dir 2>/dev/null
30702 if (echo >conf$$.file) 2>/dev/null; then
30703 if ln -s conf$$.file conf$$ 2>/dev/null; then
30705 # ... but there are two gotchas:
30706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30708 # In both cases, we have to default to `cp -p'.
30709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30711 elif ln conf$$.file conf$$ 2>/dev/null; then
30719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30720 rmdir conf$$.dir 2>/dev/null
30725 # Create "$as_dir" as a directory, including parents if necessary.
30730 -*) as_dir=./$as_dir;;
30732 test -d "$as_dir" || eval $as_mkdir_p || {
30736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30737 *) as_qdir=$as_dir;;
30739 as_dirs="'$as_qdir' $as_dirs"
30740 as_dir=`$as_dirname -- "$as_dir" ||
30741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30742 X"$as_dir" : 'X\(//\)[^/]' \| \
30743 X"$as_dir" : 'X\(//\)$' \| \
30744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30745 $as_echo X"$as_dir" |
30746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30750 /^X\(\/\/\)[^/].*/{
30763 test -d "$as_dir" && break
30765 test -z "$as_dirs" || eval "mkdir $as_dirs"
30766 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30770 if mkdir -p . 2>/dev/null; then
30771 as_mkdir_p='mkdir -p "$as_dir"'
30773 test -d ./-p && rmdir ./-p
30777 if test -x / >/dev/null 2>&1; then
30778 as_test_x='test -x'
30780 if ls -dL / >/dev/null 2>&1; then
30787 if test -d "$1"; then
30793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30794 ???[sx]*):;;*)false;;esac;fi
30798 as_executable_p=$as_test_x
30800 # Sed expression to map a string onto a valid CPP name.
30801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30803 # Sed expression to map a string onto a valid variable name.
30804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30808 ## ----------------------------------- ##
30809 ## Main body of $CONFIG_STATUS script. ##
30810 ## ----------------------------------- ##
30812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30815 # Save the log message, to keep $0 and so on meaningful, and to
30816 # report actual input values of CONFIG_FILES etc. instead of their
30817 # values after options handling.
30819 This file was extended by bacula $as_me 5.2.0, which was
30820 generated by GNU Autoconf 2.65. Invocation command line was
30822 CONFIG_FILES = $CONFIG_FILES
30823 CONFIG_HEADERS = $CONFIG_HEADERS
30824 CONFIG_LINKS = $CONFIG_LINKS
30825 CONFIG_COMMANDS = $CONFIG_COMMANDS
30828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30833 case $ac_config_files in *"
30834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30837 case $ac_config_headers in *"
30838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 # Files that config.status was made for.
30844 config_files="$ac_config_files"
30845 config_headers="$ac_config_headers"
30846 config_commands="$ac_config_commands"
30850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30852 \`$as_me' instantiates files and other configuration actions
30853 from templates according to the current configuration. Unless the files
30854 and actions are specified as TAGs, all are instantiated by default.
30856 Usage: $0 [OPTION]... [TAG]...
30858 -h, --help print this help, then exit
30859 -V, --version print version number and configuration settings, then exit
30860 --config print configuration, then exit
30861 -q, --quiet, --silent
30862 do not print progress messages
30863 -d, --debug don't remove temporary files
30864 --recheck update $as_me by reconfiguring in the same conditions
30865 --file=FILE[:TEMPLATE]
30866 instantiate the configuration file FILE
30867 --header=FILE[:TEMPLATE]
30868 instantiate the configuration header FILE
30870 Configuration files:
30873 Configuration headers:
30876 Configuration commands:
30879 Report bugs to the package provider."
30882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30885 bacula config.status 5.2.0
30886 configured by $0, generated by GNU Autoconf 2.65,
30887 with options \\"\$ac_cs_config\\"
30889 Copyright (C) 2009 Free Software Foundation, Inc.
30890 This config.status script is free software; the Free Software Foundation
30891 gives unlimited permission to copy, distribute and modify it."
30897 test -n "\$AWK" || AWK=awk
30900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30901 # The default lists apply if the user does not specify any file.
30907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30919 # Handling of the options.
30920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30923 $as_echo "$ac_cs_version"; exit ;;
30924 --config | --confi | --conf | --con | --co | --c )
30925 $as_echo "$ac_cs_config"; exit ;;
30926 --debug | --debu | --deb | --de | --d | -d )
30928 --file | --fil | --fi | --f )
30931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30933 as_fn_append CONFIG_FILES " '$ac_optarg'"
30934 ac_need_defaults=false;;
30935 --header | --heade | --head | --hea )
30938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30940 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30941 ac_need_defaults=false;;
30943 # Conflict between --help and --header
30944 as_fn_error "ambiguous option: \`$1'
30945 Try \`$0 --help' for more information.";;
30946 --help | --hel | -h )
30947 $as_echo "$ac_cs_usage"; exit ;;
30948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30952 # This is an error.
30953 -*) as_fn_error "unrecognized option: \`$1'
30954 Try \`$0 --help' for more information." ;;
30956 *) as_fn_append ac_config_targets " $1"
30957 ac_need_defaults=false ;;
30963 ac_configure_extra_args=
30965 if $ac_cs_silent; then
30967 ac_configure_extra_args="$ac_configure_extra_args --silent"
30971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30972 if \$ac_cs_recheck; then
30973 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30975 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30976 CONFIG_SHELL='$SHELL'
30977 export CONFIG_SHELL
30982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30987 ## Running $as_me. ##
30993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30999 # The HP-UX ksh and POSIX shell print the target directory to stdout
31000 # if CDPATH is set.
31001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31003 sed_quote_subst='$sed_quote_subst'
31004 double_quote_subst='$double_quote_subst'
31005 delay_variable_subst='$delay_variable_subst'
31006 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31007 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31008 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31009 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31010 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31011 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31012 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31013 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31014 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31015 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31016 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31017 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31018 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31019 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31026 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31027 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31028 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31029 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31030 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31031 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31032 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31033 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31034 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31035 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31036 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31037 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31038 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31039 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31040 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31041 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31042 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31043 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31061 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"`'
31062 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31063 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31096 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31097 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31098 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31099 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31100 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31101 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31102 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31103 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31104 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31105 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31106 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31107 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31108 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31109 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31110 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31111 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31112 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31113 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31114 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31115 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31116 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31117 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31118 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31119 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31120 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31121 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31122 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31123 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31124 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31125 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31126 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31127 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31128 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31129 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31136 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31137 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31138 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31139 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31140 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31141 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31142 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31143 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31144 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31145 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31146 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31147 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31148 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31149 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31150 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31151 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31152 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31153 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31154 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31155 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31156 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31157 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31158 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31159 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31160 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31161 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31162 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31163 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31164 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31165 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31166 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31167 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31168 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31169 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31170 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31171 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31172 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31173 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31174 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31175 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31176 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31177 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31178 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31179 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31180 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31181 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31182 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31183 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31184 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31185 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31186 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31187 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31188 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31189 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31190 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31193 LTCFLAGS='$LTCFLAGS'
31194 compiler='$compiler_DEFAULT'
31196 # A function that is used when there is no print builtin or printf.
31197 func_fallback_echo ()
31199 eval 'cat <<_LTECHO_EOF
31204 # Quote evaled strings.
31218 deplibs_check_method \
31223 sharedlib_from_linklib_cmd \
31226 archiver_list_spec \
31232 lt_cv_sys_global_symbol_pipe \
31233 lt_cv_sys_global_symbol_to_cdecl \
31234 lt_cv_sys_global_symbol_to_c_name_address \
31235 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31236 nm_file_list_spec \
31237 lt_prog_compiler_no_builtin_flag \
31238 lt_prog_compiler_pic \
31239 lt_prog_compiler_wl \
31240 lt_prog_compiler_static \
31241 lt_cv_prog_compiler_c_o \
31250 export_dynamic_flag_spec \
31251 whole_archive_flag_spec \
31252 compiler_needs_object \
31254 allow_undefined_flag \
31255 no_undefined_flag \
31256 hardcode_libdir_flag_spec \
31257 hardcode_libdir_flag_spec_ld \
31258 hardcode_libdir_separator \
31262 variables_saved_for_relink \
31264 library_names_spec \
31266 install_override_mode \
31270 compiler_lib_search_dirs \
31275 compiler_lib_search_path \
31279 lt_prog_compiler_no_builtin_flag_CXX \
31280 lt_prog_compiler_pic_CXX \
31281 lt_prog_compiler_wl_CXX \
31282 lt_prog_compiler_static_CXX \
31283 lt_cv_prog_compiler_c_o_CXX \
31284 export_dynamic_flag_spec_CXX \
31285 whole_archive_flag_spec_CXX \
31286 compiler_needs_object_CXX \
31288 allow_undefined_flag_CXX \
31289 no_undefined_flag_CXX \
31290 hardcode_libdir_flag_spec_CXX \
31291 hardcode_libdir_flag_spec_ld_CXX \
31292 hardcode_libdir_separator_CXX \
31293 exclude_expsyms_CXX \
31294 include_expsyms_CXX \
31295 file_list_spec_CXX \
31296 compiler_lib_search_dirs_CXX \
31297 predep_objects_CXX \
31298 postdep_objects_CXX \
31301 compiler_lib_search_path_CXX; do
31302 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31303 *[\\\\\\\`\\"\\\$]*)
31304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31312 # Double-quote double-evaled strings.
31313 for var in reload_cmds \
31314 old_postinstall_cmds \
31315 old_postuninstall_cmds \
31317 extract_expsyms_cmds \
31318 old_archive_from_new_cmds \
31319 old_archive_from_expsyms_cmds \
31321 archive_expsym_cmds \
31323 module_expsym_cmds \
31324 export_symbols_cmds \
31328 postuninstall_cmds \
31330 sys_lib_search_path_spec \
31331 sys_lib_dlsearch_path_spec \
31333 old_archive_cmds_CXX \
31334 old_archive_from_new_cmds_CXX \
31335 old_archive_from_expsyms_cmds_CXX \
31337 archive_expsym_cmds_CXX \
31339 module_expsym_cmds_CXX \
31340 export_symbols_cmds_CXX \
31342 postlink_cmds_CXX; do
31343 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31344 *[\\\\\\\`\\"\\\$]*)
31345 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31348 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31353 ac_aux_dir='$ac_aux_dir'
31354 xsi_shell='$xsi_shell'
31355 lt_shell_append='$lt_shell_append'
31357 # See if we are running on zsh, and set the options which allow our
31358 # commands through without removal of \ escapes INIT.
31359 if test -n "\${ZSH_VERSION+set}" ; then
31360 setopt NO_GLOB_SUBST
31366 TIMESTAMP='$TIMESTAMP'
31374 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31375 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31377 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31378 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31379 LINGUAS="${LINGUAS-%UNSET%}"
31384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31386 # Handling of arguments.
31387 for ac_config_target in $ac_config_targets
31389 case $ac_config_target in
31390 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31391 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31392 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31393 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31395 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31396 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31397 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31398 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31399 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31400 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31401 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31402 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31403 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31404 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31405 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31406 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31407 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31408 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31409 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31410 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31411 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31412 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31413 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31414 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31415 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31416 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31417 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31418 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31419 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31420 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31421 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31422 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31423 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31424 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31425 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31426 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31427 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31428 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31429 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31430 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31431 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31432 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31433 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31434 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31435 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31436 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31437 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31438 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31439 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31440 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31441 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31442 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31443 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31444 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31445 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31446 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31447 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31448 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31449 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31450 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31451 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31452 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31453 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31454 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31455 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31456 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31457 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31458 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31459 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31460 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31461 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31462 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31463 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31464 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31465 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31466 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31467 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31468 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31469 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31470 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31471 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31472 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31473 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31474 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31475 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31476 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31477 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31478 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31479 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31480 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31481 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31482 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31483 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31484 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31485 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31486 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31487 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31488 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31489 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31490 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31491 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31492 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31493 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31494 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31495 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31496 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31497 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31498 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31500 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31505 # If the user did not use the arguments to specify the items to instantiate,
31506 # then the envvar interface is used. Set only those that are not.
31507 # We use the long form for the default assignment because of an extremely
31508 # bizarre bug on SunOS 4.1.3.
31509 if $ac_need_defaults; then
31510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31515 # Have a temporary directory for convenience. Make it in the build tree
31516 # simply because there is no reason against having it here, and in addition,
31517 # creating and moving files from /tmp can sometimes cause problems.
31518 # Hook for its removal unless debugging.
31519 # Note that there is a small window in which the directory will not be cleaned:
31520 # after its creation but before its name has been assigned to `$tmp'.
31524 trap 'exit_status=$?
31525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31527 trap 'as_fn_exit 1' 1 2 13 15
31529 # Create a (secure) tmp directory for tmp files.
31532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31533 test -n "$tmp" && test -d "$tmp"
31536 tmp=./conf$$-$RANDOM
31537 (umask 077 && mkdir "$tmp")
31538 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31540 # Set up the scripts for CONFIG_FILES section.
31541 # No need to generate them if there are no CONFIG_FILES.
31542 # This happens for instance with `./config.status config.h'.
31543 if test -n "$CONFIG_FILES"; then
31545 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31546 ac_cs_awk_getline=:
31547 ac_cs_awk_pipe_init=
31548 ac_cs_awk_read_file='
31549 while ((getline aline < (F[key])) > 0)
31552 ac_cs_awk_pipe_fini=
31554 ac_cs_awk_getline=false
31555 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31556 ac_cs_awk_read_file='
31558 print "cat " F[key] " &&"
31559 '$ac_cs_awk_pipe_init
31560 # The final `:' finishes the AND list.
31561 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31563 ac_cr=`echo X | tr X '\015'`
31564 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31565 # But we know of no other shell where ac_cr would be empty at this
31566 # point, so we can use a bashism as a fallback.
31567 if test "x$ac_cr" = x; then
31568 eval ac_cr=\$\'\\r\'
31570 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31571 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31574 ac_cs_awk_cr=$ac_cr
31577 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31580 # Create commands to substitute file output variables.
31582 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31583 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31584 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31587 } >conf$$files.sh &&
31588 . ./conf$$files.sh ||
31589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31590 rm -f conf$$files.sh
31593 echo "cat >conf$$subs.awk <<_ACEOF" &&
31594 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31596 } >conf$$subs.sh ||
31597 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31598 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31600 for ac_last_try in false false false false false :; do
31601 . ./conf$$subs.sh ||
31602 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31604 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31605 if test $ac_delim_n = $ac_delim_num; then
31607 elif $ac_last_try; then
31608 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31613 rm -f conf$$subs.sh
31615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31616 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31620 s/^/S["/; s/!.*/"]=/
31630 s/\(.\{148\}\)..*/\1/
31632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31644 s/\(.\{148\}\)..*/\1/
31646 s/["\\]/\\&/g; s/^/"/; s/$/"/
31650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31655 ' <conf$$subs.awk | sed '
31660 ' >>$CONFIG_STATUS || ac_write_fail=1
31661 rm -f conf$$subs.awk
31662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31664 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31665 for (key in S) S_is_set[key] = 1
31667 \$ac_cs_awk_pipe_init
31671 nfields = split(line, field, "@")
31673 len = length(field[1])
31674 for (i = 2; i < nfields; i++) {
31676 keylen = length(key)
31677 if (S_is_set[key]) {
31679 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31680 len += length(value) + length(field[++i])
31685 if (nfields == 3 && !substed) {
31687 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31688 \$ac_cs_awk_read_file
31694 \$ac_cs_awk_pipe_fini
31697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31703 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31708 # trailing colons and then remove the whole line if VPATH becomes empty
31709 # (actually we leave an empty line to preserve line numbers).
31710 if test "x$srcdir" = x.; then
31711 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31712 s/:*\$(srcdir):*/:/
31713 s/:*\${srcdir}:*/:/
31715 s/^\([^=]*=[ ]*\):*/\1/
31721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31722 fi # test -n "$CONFIG_FILES"
31724 # Set up the scripts for CONFIG_HEADERS section.
31725 # No need to generate them if there are no CONFIG_HEADERS.
31726 # This happens for instance with `./config.status Makefile'.
31727 if test -n "$CONFIG_HEADERS"; then
31728 cat >"$tmp/defines.awk" <<\_ACAWK ||
31732 # Transform confdefs.h into an awk script `defines.awk', embedded as
31733 # here-document in config.status, that substitutes the proper values into
31734 # config.h.in to produce config.h.
31736 # Create a delimiter string that does not exist in confdefs.h, to ease
31737 # handling of long lines.
31739 for ac_last_try in false false :; do
31740 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31741 if test -z "$ac_t"; then
31743 elif $ac_last_try; then
31744 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31750 # For the awk script, D is an array of macro values keyed by name,
31751 # likewise P contains macro parameters if any. Preserve backslash
31752 # newline sequences.
31754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31756 s/.\{148\}/&'"$ac_delim"'/g
31759 s/^[ ]*#[ ]*define[ ][ ]*/ /
31766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31768 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31773 D["\1"]=" \3\\\\\\n"\\/p
31775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31780 s/.\{148\}/&'"$ac_delim"'/g
31785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31790 ' <confdefs.h | sed '
31791 s/'"$ac_delim"'/"\\\
31792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31795 for (key in D) D_is_set[key] = 1
31798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31800 split(line, arg, " ")
31801 if (arg[1] == "#") {
31805 defundef = substr(arg[1], 2)
31808 split(mac1, mac2, "(") #)
31810 prefix = substr(line, 1, index(line, defundef) - 1)
31811 if (D_is_set[macro]) {
31812 # Preserve the white space surrounding the "#".
31813 print prefix "define", macro P[macro] D[macro]
31816 # Replace #undef with comments. This is necessary, for example,
31817 # in the case of _POSIX_SOURCE, which is predefined and required
31818 # on some systems where configure will not decide to define it.
31819 if (defundef == "undef") {
31820 print "/*", prefix defundef, macro, "*/"
31828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31829 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31830 fi # test -n "$CONFIG_HEADERS"
31833 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31838 :[FHLC]) ac_mode=$ac_tag; continue;;
31840 case $ac_mode$ac_tag in
31842 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31843 :[FH]-) ac_tag=-:-;;
31844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31861 -) ac_f="$tmp/stdin";;
31862 *) # Look for the file first in the build tree, then in the source tree
31863 # (if the path is not absolute). The absolute path cannot be DOS-style,
31864 # because $ac_f cannot contain `:'.
31868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31870 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31872 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31873 as_fn_append ac_file_inputs " '$ac_f'"
31876 # Let's still pretend it is `configure' which instantiates (i.e., don't
31877 # use $as_me), people would be surprised to read:
31878 # /* config.h. Generated by config.status. */
31879 configure_input='Generated from '`
31880 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31882 if test x"$ac_file" != x-; then
31883 configure_input="$ac_file. $configure_input"
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31885 $as_echo "$as_me: creating $ac_file" >&6;}
31887 # Neutralize special characters interpreted by sed in replacement strings.
31888 case $configure_input in #(
31889 *\&* | *\|* | *\\* )
31890 ac_sed_conf_input=`$as_echo "$configure_input" |
31891 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31892 *) ac_sed_conf_input=$configure_input;;
31896 *:-:* | *:-) cat >"$tmp/stdin" \
31897 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31902 ac_dir=`$as_dirname -- "$ac_file" ||
31903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31904 X"$ac_file" : 'X\(//\)[^/]' \| \
31905 X"$ac_file" : 'X\(//\)$' \| \
31906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31907 $as_echo X"$ac_file" |
31908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31912 /^X\(\/\/\)[^/].*/{
31925 as_dir="$ac_dir"; as_fn_mkdir_p
31929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31932 # A ".." for each directory in $ac_dir_suffix.
31933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31934 case $ac_top_builddir_sub in
31935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31939 ac_abs_top_builddir=$ac_pwd
31940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31941 # for backward compatibility:
31942 ac_top_builddir=$ac_top_build_prefix
31945 .) # We are building in place.
31947 ac_top_srcdir=$ac_top_builddir_sub
31948 ac_abs_top_srcdir=$ac_pwd ;;
31949 [\\/]* | ?:[\\/]* ) # Absolute name.
31950 ac_srcdir=$srcdir$ac_dir_suffix;
31951 ac_top_srcdir=$srcdir
31952 ac_abs_top_srcdir=$srcdir ;;
31953 *) # Relative name.
31954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31955 ac_top_srcdir=$ac_top_build_prefix$srcdir
31956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31969 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31974 # If the template does not know about datarootdir, expand it.
31975 # FIXME: This hack should be removed a few years after 2.60.
31976 ac_datarootdir_hack=; ac_datarootdir_seen=
31987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31988 *datarootdir*) ac_datarootdir_seen=yes;;
31989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31991 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31994 ac_datarootdir_hack='
31995 s&@datadir@&$datadir&g
31996 s&@docdir@&$docdir&g
31997 s&@infodir@&$infodir&g
31998 s&@localedir@&$localedir&g
31999 s&@mandir@&$mandir&g
32000 s&\\\${datarootdir}&$datarootdir&g' ;;
32004 # Neutralize VPATH when `$srcdir' = `.'.
32005 # Shell code in configure.ac might set extrasub.
32006 # FIXME: do we really want to maintain this feature?
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 ac_sed_extra="$ac_vpsub
32011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32014 s|@configure_input@|$ac_sed_conf_input|;t t
32015 s&@top_builddir@&$ac_top_builddir_sub&;t t
32016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32017 s&@srcdir@&$ac_srcdir&;t t
32018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32019 s&@top_srcdir@&$ac_top_srcdir&;t t
32020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32021 s&@builddir@&$ac_builddir&;t t
32022 s&@abs_builddir@&$ac_abs_builddir&;t t
32023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32024 s&@INSTALL@&$ac_INSTALL&;t t
32025 $ac_datarootdir_hack
32027 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32028 if $ac_cs_awk_getline; then
32029 $AWK -f "$tmp/subs.awk"
32031 $AWK -f "$tmp/subs.awk" | $SHELL
32033 || as_fn_error "could not create $ac_file" "$LINENO" 5
32035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32036 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32039 which seems to be undefined. Please make sure it is defined." >&5
32040 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32041 which seems to be undefined. Please make sure it is defined." >&2;}
32045 -) cat "$tmp/out" && rm -f "$tmp/out";;
32046 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32048 || as_fn_error "could not create $ac_file" "$LINENO" 5
32054 if test x"$ac_file" != x-; then
32056 $as_echo "/* $configure_input */" \
32057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32058 } >"$tmp/config.h" \
32059 || as_fn_error "could not create $ac_file" "$LINENO" 5
32060 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32065 mv "$tmp/config.h" "$ac_file" \
32066 || as_fn_error "could not create $ac_file" "$LINENO" 5
32069 $as_echo "/* $configure_input */" \
32070 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32071 || as_fn_error "could not create -" "$LINENO" 5
32075 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32076 $as_echo "$as_me: executing $ac_file commands" >&6;}
32081 case $ac_file$ac_mode in
32084 # See if we are running on zsh, and set the options which allow our
32085 # commands through without removal of \ escapes.
32086 if test -n "${ZSH_VERSION+set}" ; then
32087 setopt NO_GLOB_SUBST
32090 cfgfile="${ofile}T"
32091 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32094 cat <<_LT_EOF >> "$cfgfile"
32097 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32098 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32100 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32102 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32103 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32105 # Written by Gordon Matzigkeit, 1996
32107 # This file is part of GNU Libtool.
32109 # GNU Libtool is free software; you can redistribute it and/or
32110 # modify it under the terms of the GNU General Public License as
32111 # published by the Free Software Foundation; either version 2 of
32112 # the License, or (at your option) any later version.
32114 # As a special exception to the GNU General Public License,
32115 # if you distribute this file as part of a program or library that
32116 # is built using GNU Libtool, you may include this file under the
32117 # same distribution terms that you use for the rest of that program.
32119 # GNU Libtool is distributed in the hope that it will be useful,
32120 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32122 # GNU General Public License for more details.
32124 # You should have received a copy of the GNU General Public License
32125 # along with GNU Libtool; see the file COPYING. If not, a copy
32126 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32127 # obtained by writing to the Free Software Foundation, Inc.,
32128 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32131 # The names of the tagged configurations supported by this script.
32132 available_tags="CXX "
32134 # ### BEGIN LIBTOOL CONFIG
32136 # Which release of libtool.m4 was used?
32137 macro_version=$macro_version
32138 macro_revision=$macro_revision
32140 # Whether or not to build shared libraries.
32141 build_libtool_libs=$enable_shared
32143 # Whether or not to build static libraries.
32144 build_old_libs=$enable_static
32146 # What type of objects to build.
32149 # Whether or not to optimize for fast installation.
32150 fast_install=$enable_fast_install
32152 # Shell to use when invoking shell scripts.
32155 # An echo program that protects backslashes.
32159 host_alias=$host_alias
32163 # The build system.
32164 build_alias=$build_alias
32168 # A sed program that does not truncate output.
32171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32172 Xsed="\$SED -e 1s/^X//"
32174 # A grep program that handles long lines.
32180 # A literal string matcher.
32183 # A BSD- or MS-compatible name lister.
32186 # Whether we need soft or hard links.
32189 # What is the maximum length of a command?
32190 max_cmd_len=$max_cmd_len
32192 # Object file suffix (normally "o").
32195 # Executable file suffix (normally "").
32198 # whether the shell understands "unset".
32201 # turn spaces into newlines.
32204 # turn newlines into spaces.
32207 # convert \$build file names to \$host format.
32208 to_host_file_cmd=$lt_cv_to_host_file_cmd
32210 # convert \$build files to toolchain format.
32211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32213 # An object symbol dumper.
32214 OBJDUMP=$lt_OBJDUMP
32216 # Method to check whether dependent libraries are shared objects.
32217 deplibs_check_method=$lt_deplibs_check_method
32219 # Command to use when deplibs_check_method = "file_magic".
32220 file_magic_cmd=$lt_file_magic_cmd
32222 # How to find potential files when deplibs_check_method = "file_magic".
32223 file_magic_glob=$lt_file_magic_glob
32225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32226 want_nocaseglob=$lt_want_nocaseglob
32228 # DLL creation program.
32229 DLLTOOL=$lt_DLLTOOL
32231 # Command to associate shared and link libraries.
32232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32237 # Flags to create an archive.
32238 AR_FLAGS=$lt_AR_FLAGS
32240 # How to feed a file listing to the archiver.
32241 archiver_list_spec=$lt_archiver_list_spec
32243 # A symbol stripping program.
32246 # Commands used to install an old-style archive.
32248 old_postinstall_cmds=$lt_old_postinstall_cmds
32249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32251 # Whether to use a lock for old archive extraction.
32252 lock_old_archive_extraction=$lock_old_archive_extraction
32257 # LTCC compiler flags.
32258 LTCFLAGS=$lt_CFLAGS
32260 # Take the output of nm and produce a listing of raw symbols and C names.
32261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32263 # Transform the output of nm in a proper C declaration.
32264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32266 # Transform the output of nm in a C name address pair.
32267 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32269 # Transform the output of nm in a C name address pair when lib prefix is needed.
32270 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32272 # Specify filename containing input files for \$NM.
32273 nm_file_list_spec=$lt_nm_file_list_spec
32275 # The root where to search for dependent libraries,and in which our libraries should be installed.
32276 lt_sysroot=$lt_sysroot
32278 # The name of the directory that contains temporary libtool files.
32281 # Used to examine libraries when file_magic_cmd begins with "file".
32282 MAGIC_CMD=$MAGIC_CMD
32284 # Must we lock files when doing compilation?
32285 need_locks=$lt_need_locks
32288 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32290 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32291 DSYMUTIL=$lt_DSYMUTIL
32293 # Tool to change global to local symbols on Mac OS X.
32296 # Tool to manipulate fat objects and archives on Mac OS X.
32299 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32302 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32303 OTOOL64=$lt_OTOOL64
32305 # Old archive suffix (normally "a").
32308 # Shared library suffix (normally ".so").
32309 shrext_cmds=$lt_shrext_cmds
32311 # The commands to extract the exported symbol list from a shared archive.
32312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32314 # Variables whose values should be saved in libtool wrapper scripts and
32315 # restored at link time.
32316 variables_saved_for_relink=$lt_variables_saved_for_relink
32318 # Do we need the "lib" prefix for modules?
32319 need_lib_prefix=$need_lib_prefix
32321 # Do we need a version for libraries?
32322 need_version=$need_version
32324 # Library versioning type.
32325 version_type=$version_type
32327 # Shared library runtime path variable.
32328 runpath_var=$runpath_var
32330 # Shared library path variable.
32331 shlibpath_var=$shlibpath_var
32333 # Is shlibpath searched before the hard-coded library search path?
32334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32336 # Format of library name prefix.
32337 libname_spec=$lt_libname_spec
32339 # List of archive names. First name is the real one, the rest are links.
32340 # The last name is the one that the linker finds with -lNAME
32341 library_names_spec=$lt_library_names_spec
32343 # The coded name of the library, if different from the real name.
32344 soname_spec=$lt_soname_spec
32346 # Permission mode override for installation of shared libraries.
32347 install_override_mode=$lt_install_override_mode
32349 # Command to use after installation of a shared archive.
32350 postinstall_cmds=$lt_postinstall_cmds
32352 # Command to use after uninstallation of a shared archive.
32353 postuninstall_cmds=$lt_postuninstall_cmds
32355 # Commands used to finish a libtool library installation in a directory.
32356 finish_cmds=$lt_finish_cmds
32358 # As "finish_cmds", except a single script fragment to be evaled but
32360 finish_eval=$lt_finish_eval
32362 # Whether we should hardcode library paths into libraries.
32363 hardcode_into_libs=$hardcode_into_libs
32365 # Compile-time system search path for libraries.
32366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32368 # Run-time system search path for libraries.
32369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32371 # Whether dlopen is supported.
32372 dlopen_support=$enable_dlopen
32374 # Whether dlopen of programs is supported.
32375 dlopen_self=$enable_dlopen_self
32377 # Whether dlopen of statically linked programs is supported.
32378 dlopen_self_static=$enable_dlopen_self_static
32380 # Commands to strip libraries.
32381 old_striplib=$lt_old_striplib
32382 striplib=$lt_striplib
32385 # The linker used to build libraries.
32388 # How to create reloadable object files.
32389 reload_flag=$lt_reload_flag
32390 reload_cmds=$lt_reload_cmds
32392 # Commands used to build an old-style archive.
32393 old_archive_cmds=$lt_old_archive_cmds
32395 # A language specific compiler.
32398 # Is the compiler the GNU compiler?
32401 # Compiler flag to turn off builtin functions.
32402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32404 # Additional compiler flags for building library objects.
32405 pic_flag=$lt_lt_prog_compiler_pic
32407 # How to pass a linker flag through the compiler.
32408 wl=$lt_lt_prog_compiler_wl
32410 # Compiler flag to prevent dynamic linking.
32411 link_static_flag=$lt_lt_prog_compiler_static
32413 # Does compiler simultaneously support -c and -o options?
32414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32416 # Whether or not to add -lc for building shared libraries.
32417 build_libtool_need_lc=$archive_cmds_need_lc
32419 # Whether or not to disallow shared libs when runtime libs are static.
32420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32422 # Compiler flag to allow reflexive dlopens.
32423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32425 # Compiler flag to generate shared objects directly from archives.
32426 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32428 # Whether the compiler copes with passing no objects directly.
32429 compiler_needs_object=$lt_compiler_needs_object
32431 # Create an old-style archive from a shared archive.
32432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32434 # Create a temporary old-style archive to link instead of a shared archive.
32435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32437 # Commands used to build a shared archive.
32438 archive_cmds=$lt_archive_cmds
32439 archive_expsym_cmds=$lt_archive_expsym_cmds
32441 # Commands used to build a loadable module if different from building
32442 # a shared archive.
32443 module_cmds=$lt_module_cmds
32444 module_expsym_cmds=$lt_module_expsym_cmds
32446 # Whether we are building with GNU ld or not.
32447 with_gnu_ld=$lt_with_gnu_ld
32449 # Flag that allows shared libraries with undefined symbols to be built.
32450 allow_undefined_flag=$lt_allow_undefined_flag
32452 # Flag that enforces no undefined symbols.
32453 no_undefined_flag=$lt_no_undefined_flag
32455 # Flag to hardcode \$libdir into a binary during linking.
32456 # This must work even if \$libdir does not exist
32457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32459 # If ld is used when linking, flag to hardcode \$libdir into a binary
32460 # during linking. This must work even if \$libdir does not exist.
32461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32463 # Whether we need a single "-rpath" flag with a separated argument.
32464 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32467 # DIR into the resulting binary.
32468 hardcode_direct=$hardcode_direct
32470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32471 # DIR into the resulting binary and the resulting library dependency is
32472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32473 # library is relocated.
32474 hardcode_direct_absolute=$hardcode_direct_absolute
32476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32477 # into the resulting binary.
32478 hardcode_minus_L=$hardcode_minus_L
32480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32481 # into the resulting binary.
32482 hardcode_shlibpath_var=$hardcode_shlibpath_var
32484 # Set to "yes" if building a shared library automatically hardcodes DIR
32485 # into the library and all subsequent libraries and executables linked
32487 hardcode_automatic=$hardcode_automatic
32489 # Set to yes if linker adds runtime paths of dependent libraries
32490 # to runtime path list.
32491 inherit_rpath=$inherit_rpath
32493 # Whether libtool must link a program against all its dependency libraries.
32494 link_all_deplibs=$link_all_deplibs
32496 # Set to "yes" if exported symbols are required.
32497 always_export_symbols=$always_export_symbols
32499 # The commands to list exported symbols.
32500 export_symbols_cmds=$lt_export_symbols_cmds
32502 # Symbols that should not be listed in the preloaded symbols.
32503 exclude_expsyms=$lt_exclude_expsyms
32505 # Symbols that must always be exported.
32506 include_expsyms=$lt_include_expsyms
32508 # Commands necessary for linking programs (against libraries) with templates.
32509 prelink_cmds=$lt_prelink_cmds
32511 # Commands necessary for finishing linking programs.
32512 postlink_cmds=$lt_postlink_cmds
32514 # Specify filename containing input files.
32515 file_list_spec=$lt_file_list_spec
32517 # How to hardcode a shared library path into an executable.
32518 hardcode_action=$hardcode_action
32520 # The directories searched by this compiler when creating a shared library.
32521 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32523 # Dependencies to place before and after the objects being linked to
32524 # create a shared library.
32525 predep_objects=$lt_predep_objects
32526 postdep_objects=$lt_postdep_objects
32527 predeps=$lt_predeps
32528 postdeps=$lt_postdeps
32530 # The library search path used internally by the compiler when linking
32531 # a shared library.
32532 compiler_lib_search_path=$lt_compiler_lib_search_path
32534 # ### END LIBTOOL CONFIG
32540 cat <<\_LT_EOF >> "$cfgfile"
32541 # AIX sometimes has problems with the GCC collect2 program. For some
32542 # reason, if we set the COLLECT_NAMES environment variable, the problems
32543 # vanish in a puff of smoke.
32544 if test "X${COLLECT_NAMES+set}" != Xset; then
32546 export COLLECT_NAMES
32553 ltmain="$ac_aux_dir/ltmain.sh"
32556 # We use sed instead of cat because bash on DJGPP gets confused if
32557 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32558 # text mode, it properly converts lines to CR/LF. This bash problem
32559 # is reportedly fixed, but why not run on old versions too?
32560 sed '$q' "$ltmain" >> "$cfgfile" \
32561 || (rm -f "$cfgfile"; exit 1)
32563 if test x"$xsi_shell" = xyes; then
32564 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32568 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32569 \ * ) func_dirname_result="${3}" ;;\
32571 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32572 && mv -f "$cfgfile.tmp" "$cfgfile" \
32573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32574 test 0 -eq $? || _lt_function_replace_fail=:
32577 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32580 \ func_basename_result="${1##*/}"\
32581 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32582 && mv -f "$cfgfile.tmp" "$cfgfile" \
32583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32584 test 0 -eq $? || _lt_function_replace_fail=:
32587 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32588 func_dirname_and_basename ()\
32591 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32592 \ * ) func_dirname_result="${3}" ;;\
32594 \ func_basename_result="${1##*/}"\
32595 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32596 && mv -f "$cfgfile.tmp" "$cfgfile" \
32597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32598 test 0 -eq $? || _lt_function_replace_fail=:
32601 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32604 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32605 \ # positional parameters, so assign one to ordinary parameter first.\
32606 \ func_stripname_result=${3}\
32607 \ func_stripname_result=${func_stripname_result#"${1}"}\
32608 \ func_stripname_result=${func_stripname_result%"${2}"}\
32609 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32610 && mv -f "$cfgfile.tmp" "$cfgfile" \
32611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32612 test 0 -eq $? || _lt_function_replace_fail=:
32615 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32616 func_split_long_opt ()\
32618 \ func_split_long_opt_name=${1%%=*}\
32619 \ func_split_long_opt_arg=${1#*=}\
32620 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32621 && mv -f "$cfgfile.tmp" "$cfgfile" \
32622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32623 test 0 -eq $? || _lt_function_replace_fail=:
32626 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32627 func_split_short_opt ()\
32629 \ func_split_short_opt_arg=${1#??}\
32630 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32631 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32632 && mv -f "$cfgfile.tmp" "$cfgfile" \
32633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32634 test 0 -eq $? || _lt_function_replace_fail=:
32637 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32641 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32642 \ *) func_lo2o_result=${1} ;;\
32644 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32645 && mv -f "$cfgfile.tmp" "$cfgfile" \
32646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32647 test 0 -eq $? || _lt_function_replace_fail=:
32650 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32653 func_xform_result=${1%.*}.lo\
32654 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32655 && mv -f "$cfgfile.tmp" "$cfgfile" \
32656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32657 test 0 -eq $? || _lt_function_replace_fail=:
32660 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32663 func_arith_result=$(( $* ))\
32664 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32665 && mv -f "$cfgfile.tmp" "$cfgfile" \
32666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32667 test 0 -eq $? || _lt_function_replace_fail=:
32670 sed -e '/^func_len ()$/,/^} # func_len /c\
32673 func_len_result=${#1}\
32674 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32675 && mv -f "$cfgfile.tmp" "$cfgfile" \
32676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32677 test 0 -eq $? || _lt_function_replace_fail=:
32681 if test x"$lt_shell_append" = xyes; then
32682 sed -e '/^func_append ()$/,/^} # func_append /c\
32685 eval "${1}+=\\${2}"\
32686 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32687 && mv -f "$cfgfile.tmp" "$cfgfile" \
32688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32689 test 0 -eq $? || _lt_function_replace_fail=:
32692 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32693 func_append_quoted ()\
32695 \ func_quote_for_eval "${2}"\
32696 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32697 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32698 && mv -f "$cfgfile.tmp" "$cfgfile" \
32699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32700 test 0 -eq $? || _lt_function_replace_fail=:
32703 # Save a `func_append' function call where possible by direct use of '+='
32704 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32705 && mv -f "$cfgfile.tmp" "$cfgfile" \
32706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32707 test 0 -eq $? || _lt_function_replace_fail=:
32709 # Save a `func_append' function call even when '+=' is not available
32710 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32711 && mv -f "$cfgfile.tmp" "$cfgfile" \
32712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32713 test 0 -eq $? || _lt_function_replace_fail=:
32716 if test x"$_lt_function_replace_fail" = x":"; then
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32718 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32722 mv -f "$cfgfile" "$ofile" ||
32723 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32727 cat <<_LT_EOF >> "$ofile"
32729 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32731 # The linker used to build libraries.
32734 # How to create reloadable object files.
32735 reload_flag=$lt_reload_flag_CXX
32736 reload_cmds=$lt_reload_cmds_CXX
32738 # Commands used to build an old-style archive.
32739 old_archive_cmds=$lt_old_archive_cmds_CXX
32741 # A language specific compiler.
32742 CC=$lt_compiler_CXX
32744 # Is the compiler the GNU compiler?
32747 # Compiler flag to turn off builtin functions.
32748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32750 # Additional compiler flags for building library objects.
32751 pic_flag=$lt_lt_prog_compiler_pic_CXX
32753 # How to pass a linker flag through the compiler.
32754 wl=$lt_lt_prog_compiler_wl_CXX
32756 # Compiler flag to prevent dynamic linking.
32757 link_static_flag=$lt_lt_prog_compiler_static_CXX
32759 # Does compiler simultaneously support -c and -o options?
32760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32762 # Whether or not to add -lc for building shared libraries.
32763 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32765 # Whether or not to disallow shared libs when runtime libs are static.
32766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32768 # Compiler flag to allow reflexive dlopens.
32769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32771 # Compiler flag to generate shared objects directly from archives.
32772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32774 # Whether the compiler copes with passing no objects directly.
32775 compiler_needs_object=$lt_compiler_needs_object_CXX
32777 # Create an old-style archive from a shared archive.
32778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32780 # Create a temporary old-style archive to link instead of a shared archive.
32781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32783 # Commands used to build a shared archive.
32784 archive_cmds=$lt_archive_cmds_CXX
32785 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32787 # Commands used to build a loadable module if different from building
32788 # a shared archive.
32789 module_cmds=$lt_module_cmds_CXX
32790 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32792 # Whether we are building with GNU ld or not.
32793 with_gnu_ld=$lt_with_gnu_ld_CXX
32795 # Flag that allows shared libraries with undefined symbols to be built.
32796 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32798 # Flag that enforces no undefined symbols.
32799 no_undefined_flag=$lt_no_undefined_flag_CXX
32801 # Flag to hardcode \$libdir into a binary during linking.
32802 # This must work even if \$libdir does not exist
32803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32805 # If ld is used when linking, flag to hardcode \$libdir into a binary
32806 # during linking. This must work even if \$libdir does not exist.
32807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32809 # Whether we need a single "-rpath" flag with a separated argument.
32810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32813 # DIR into the resulting binary.
32814 hardcode_direct=$hardcode_direct_CXX
32816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32817 # DIR into the resulting binary and the resulting library dependency is
32818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32819 # library is relocated.
32820 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32823 # into the resulting binary.
32824 hardcode_minus_L=$hardcode_minus_L_CXX
32826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32827 # into the resulting binary.
32828 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32830 # Set to "yes" if building a shared library automatically hardcodes DIR
32831 # into the library and all subsequent libraries and executables linked
32833 hardcode_automatic=$hardcode_automatic_CXX
32835 # Set to yes if linker adds runtime paths of dependent libraries
32836 # to runtime path list.
32837 inherit_rpath=$inherit_rpath_CXX
32839 # Whether libtool must link a program against all its dependency libraries.
32840 link_all_deplibs=$link_all_deplibs_CXX
32842 # Set to "yes" if exported symbols are required.
32843 always_export_symbols=$always_export_symbols_CXX
32845 # The commands to list exported symbols.
32846 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32848 # Symbols that should not be listed in the preloaded symbols.
32849 exclude_expsyms=$lt_exclude_expsyms_CXX
32851 # Symbols that must always be exported.
32852 include_expsyms=$lt_include_expsyms_CXX
32854 # Commands necessary for linking programs (against libraries) with templates.
32855 prelink_cmds=$lt_prelink_cmds_CXX
32857 # Commands necessary for finishing linking programs.
32858 postlink_cmds=$lt_postlink_cmds_CXX
32860 # Specify filename containing input files.
32861 file_list_spec=$lt_file_list_spec_CXX
32863 # How to hardcode a shared library path into an executable.
32864 hardcode_action=$hardcode_action_CXX
32866 # The directories searched by this compiler when creating a shared library.
32867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32869 # Dependencies to place before and after the objects being linked to
32870 # create a shared library.
32871 predep_objects=$lt_predep_objects_CXX
32872 postdep_objects=$lt_postdep_objects_CXX
32873 predeps=$lt_predeps_CXX
32874 postdeps=$lt_postdeps_CXX
32876 # The library search path used internally by the compiler when linking
32877 # a shared library.
32878 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32880 # ### END LIBTOOL TAG CONFIG: CXX
32885 for ac_file in $CONFIG_FILES; do
32886 # Support "outfile[:infile[:infile...]]"
32888 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32890 # PO directories have a Makefile.in generated from Makefile.in.in.
32891 case "$ac_file" in */Makefile.in)
32892 # Adjust a relative srcdir.
32893 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32894 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32895 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32896 # In autoconf-2.13 it is called $ac_given_srcdir.
32897 # In autoconf-2.50 it is called $srcdir.
32898 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32899 case "$ac_given_srcdir" in
32900 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32901 /*) top_srcdir="$ac_given_srcdir" ;;
32902 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32904 # Treat a directory as a PO directory if and only if it has a
32905 # POTFILES.in file. This allows packages to have multiple PO
32906 # directories under different names or in different locations.
32907 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32908 rm -f "$ac_dir/POTFILES"
32909 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32910 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32911 POMAKEFILEDEPS="POTFILES.in"
32912 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32913 # on $ac_dir but don't depend on user-specified configuration
32915 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32916 # The LINGUAS file contains the set of available languages.
32917 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32918 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32920 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32921 # Hide the ALL_LINGUAS assigment from automake.
32922 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32923 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32925 # The set of available languages was given in configure.in.
32926 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32929 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32930 # Compute UPDATEPOFILES
32931 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32932 # Compute DUMMYPOFILES
32933 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32935 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32936 case "$ac_given_srcdir" in
32938 *) srcdirpre='$(srcdir)/' ;;
32944 for lang in $ALL_LINGUAS; do
32945 POFILES="$POFILES $srcdirpre$lang.po"
32946 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32947 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32948 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32950 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32951 # environment variable.
32953 if test -n "$ALL_LINGUAS"; then
32954 for presentlang in $ALL_LINGUAS; do
32956 if test "%UNSET%" != "$LINGUAS"; then
32957 desiredlanguages="$LINGUAS"
32959 desiredlanguages="$ALL_LINGUAS"
32961 for desiredlang in $desiredlanguages; do
32962 # Use the presentlang catalog if desiredlang is
32963 # a. equal to presentlang, or
32964 # b. a variant of presentlang (because in this case,
32965 # presentlang can be used as a fallback for messages
32966 # which are not translated in the desiredlang catalog).
32967 case "$desiredlang" in
32968 "$presentlang"*) useit=yes;;
32971 if test $useit = yes; then
32972 INST_LINGUAS="$INST_LINGUAS $presentlang"
32977 if test -n "$INST_LINGUAS"; then
32978 for lang in $INST_LINGUAS; do
32979 CATALOGS="$CATALOGS $lang.gmo"
32982 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32983 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"
32984 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32985 if test -f "$f"; then
32987 *.orig | *.bak | *~) ;;
32988 *) cat "$f" >> "$ac_dir/Makefile" ;;
33005 ac_clean_files=$ac_clean_files_save
33007 test $ac_write_fail = 0 ||
33008 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33011 # configure is writing to config.log, and then calls config.status.
33012 # config.status does its own redirection, appending to config.log.
33013 # Unfortunately, on DOS this fails, as config.log is still kept open
33014 # by configure, so config.status won't be able to write to it; its
33015 # output is simply discarded. So we exec the FD to /dev/null,
33016 # effectively closing config.log, so it can be properly (re)opened and
33017 # appended to by config.status. When coming back to configure, we
33018 # need to make the FD available again.
33019 if test "$no_create" != yes; then
33021 ac_config_status_args=
33022 test "$silent" = yes &&
33023 ac_config_status_args="$ac_config_status_args --quiet"
33025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33028 # would make configure fail if this is the last instruction.
33029 $ac_cs_success || as_fn_exit $?
33031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33037 if test "${support_bat}" = "yes" ; then
33038 if test "x$QMAKE" = "xnone"; then
33039 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33043 echo "Creating bat Makefile"
33048 ${MAKE:-make} clean
33052 if test X"$GCC" = "Xyes" ; then
33053 echo "Doing make of dependencies"
33054 ${MAKE:-make} depend
33058 chmod 755 install_conf_file build-depkgs-qt-console
33062 chmod 755 bacula btraceback mtx-changer
33063 chmod 755 dvd-handler dvd-simulator
33064 chmod 755 bconsole mtx-changer devel_bacula logrotate
33068 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33069 chmod 755 $c/update_postgresql_tables_10_to_11
33070 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33071 chmod 755 $c/update_postgresql_tables_11_to_12
33076 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33077 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33079 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33080 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33082 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33083 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33085 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33086 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33088 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33089 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33092 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33093 chmod 755 $c/sqlite
33096 chmod 755 $c/install-default-backend
33098 chmod 755 src/win32/build-depkgs-mingw32
33100 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33101 largefile_support="yes"
33104 if test X"$GCC" = "Xyes" ; then
33105 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33106 if test "x${CCVERSION}" = "x" ; then
33107 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33109 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33110 if test x"${CXXVERSION}" = x ; then
33111 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33115 # clean up any old junk
33119 ${MAKE:-make} clean
33122 Configuration on `date`:
33124 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33125 Bacula version: ${BACULA} ${VERSION} (${DATE})
33126 Source code location: ${srcdir}
33127 Install binaries: ${sbindir}
33128 Install libraries: ${libdir}
33129 Install config files: ${sysconfdir}
33130 Scripts directory: ${scriptdir}
33131 Archive directory: ${archivedir}
33132 Working directory: ${working_dir}
33133 PID directory: ${piddir}
33134 Subsys directory: ${subsysdir}
33135 Man directory: ${mandir}
33136 Data directory: ${datarootdir}
33137 Plugin directory: ${plugindir}
33138 C Compiler: ${CC} ${CCVERSION}
33139 C++ Compiler: ${CXX} ${CXXVERSION}
33140 Compiler flags: ${WCFLAGS} ${CFLAGS}
33141 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33143 Statically Linked Tools: ${support_static_tools}
33144 Statically Linked FD: ${support_static_fd}
33145 Statically Linked SD: ${support_static_sd}
33146 Statically Linked DIR: ${support_static_dir}
33147 Statically Linked CONS: ${support_static_cons}
33148 Database backends: ${db_backends}
33149 Database port: ${db_port}
33150 Database name: ${db_name}
33151 Database user: ${db_user}
33153 Job Output Email: ${job_email}
33154 Traceback Email: ${dump_email}
33155 SMTP Host Address: ${smtp_host}
33157 Director Port: ${dir_port}
33158 File daemon Port: ${fd_port}
33159 Storage daemon Port: ${sd_port}
33161 Director User: ${dir_user}
33162 Director Group: ${dir_group}
33163 Storage Daemon User: ${sd_user}
33164 Storage DaemonGroup: ${sd_group}
33165 File Daemon User: ${fd_user}
33166 File Daemon Group: ${fd_group}
33168 Large file support: $largefile_support
33169 Bacula conio support: ${got_conio} ${CONS_LIBS}
33170 readline support: ${got_readline} ${PRTREADLINE_SRC}
33171 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33172 TLS support: ${support_tls}
33173 Encryption support: ${support_crypto}
33174 ZLIB support: ${have_zlib}
33175 LZO support: ${have_lzo}
33176 enable-smartalloc: ${support_smartalloc}
33177 enable-lockmgr: ${support_lockmgr}
33178 bat support: ${support_bat}
33179 enable-gnome: ${support_gnome} ${gnome_version}
33180 enable-bwx-console: ${support_wx_console} ${wx_version}
33181 enable-tray-monitor: ${support_tray_monitor}
33182 client-only: ${build_client_only}
33183 build-dird: ${build_dird}
33184 build-stored: ${build_stored}
33185 Plugin support: ${have_plugins}
33186 ACL support: ${have_acl}
33187 XATTR support: ${have_xattr}
33188 Python support: ${support_python} ${PYTHON_LIBS}
33189 Batch insert enabled: ${support_batch_insert}
33193 # create a small shell script useful for support with
33194 # configure options and config.out info
33195 cat > scripts/bacula_config << EOF
33198 $ $0 $ac_configure_args
33200 cat config.out >> scripts/bacula_config
33201 echo __EOC__ >> scripts/bacula_config
33202 chmod 755 scripts/bacula_config