2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for bacula 5.2.0rc1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&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, old GNU/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.0rc1'
563 PACKAGE_STRING='bacula 5.2.0rc1'
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" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1093 -datadir | --datadir | --datadi | --datad)
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=no ;;
1121 -docdir | --docdir | --docdi | --doc | --do)
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1131 -enable-* | --enable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid feature name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=\$ac_optarg ;;
1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149 | --exec | --exe | --ex)
1150 ac_prev=exec_prefix ;;
1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153 | --exec=* | --exe=* | --ex=*)
1154 exec_prefix=$ac_optarg ;;
1156 -gas | --gas | --ga | --g)
1157 # Obsolete; use --with-gas.
1160 -help | --help | --hel | --he | -h)
1161 ac_init_help=long ;;
1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163 ac_init_help=recursive ;;
1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165 ac_init_help=short ;;
1167 -host | --host | --hos | --ho)
1168 ac_prev=host_alias ;;
1169 -host=* | --host=* | --hos=* | --ho=*)
1170 host_alias=$ac_optarg ;;
1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176 htmldir=$ac_optarg ;;
1178 -includedir | --includedir | --includedi | --included | --include \
1179 | --includ | --inclu | --incl | --inc)
1180 ac_prev=includedir ;;
1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182 | --includ=* | --inclu=* | --incl=* | --inc=*)
1183 includedir=$ac_optarg ;;
1185 -infodir | --infodir | --infodi | --infod | --info | --inf)
1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188 infodir=$ac_optarg ;;
1190 -libdir | --libdir | --libdi | --libd)
1192 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193 libdir=$ac_optarg ;;
1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196 | --libexe | --libex | --libe)
1197 ac_prev=libexecdir ;;
1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199 | --libexe=* | --libex=* | --libe=*)
1200 libexecdir=$ac_optarg ;;
1202 -localedir | --localedir | --localedi | --localed | --locale)
1203 ac_prev=localedir ;;
1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205 localedir=$ac_optarg ;;
1207 -localstatedir | --localstatedir | --localstatedi | --localstated \
1208 | --localstate | --localstat | --localsta | --localst | --locals)
1209 ac_prev=localstatedir ;;
1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212 localstatedir=$ac_optarg ;;
1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217 mandir=$ac_optarg ;;
1219 -nfp | --nfp | --nf)
1220 # Obsolete; use --without-fp.
1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224 | --no-cr | --no-c | -n)
1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233 | --oldin | --oldi | --old | --ol | --o)
1234 ac_prev=oldincludedir ;;
1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238 oldincludedir=$ac_optarg ;;
1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243 prefix=$ac_optarg ;;
1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246 | --program-pre | --program-pr | --program-p)
1247 ac_prev=program_prefix ;;
1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250 program_prefix=$ac_optarg ;;
1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253 | --program-suf | --program-su | --program-s)
1254 ac_prev=program_suffix ;;
1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257 program_suffix=$ac_optarg ;;
1259 -program-transform-name | --program-transform-name \
1260 | --program-transform-nam | --program-transform-na \
1261 | --program-transform-n | --program-transform- \
1262 | --program-transform | --program-transfor \
1263 | --program-transfo | --program-transf \
1264 | --program-trans | --program-tran \
1265 | --progr-tra | --program-tr | --program-t)
1266 ac_prev=program_transform_name ;;
1267 -program-transform-name=* | --program-transform-name=* \
1268 | --program-transform-nam=* | --program-transform-na=* \
1269 | --program-transform-n=* | --program-transform-=* \
1270 | --program-transform=* | --program-transfor=* \
1271 | --program-transfo=* | --program-transf=* \
1272 | --program-trans=* | --program-tran=* \
1273 | --progr-tra=* | --program-tr=* | --program-t=*)
1274 program_transform_name=$ac_optarg ;;
1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279 pdfdir=$ac_optarg ;;
1281 -psdir | --psdir | --psdi | --psd | --ps)
1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1309 -site=* | --site=* | --sit=*)
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1456 If a cross compiler is detected then cross compile mode will be used" >&2
1457 elif test "x$build_alias" != "x$host_alias"; then
1463 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465 test "$silent" = yes && exec 6>/dev/null
1468 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di=`ls -di .` &&
1470 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error $? "working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error $? "pwd does not report name of working directory"
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1536 # Report the --help message.
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1542 \`configure' configures bacula 5.2.0rc1 to adapt to many kinds of systems.
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1549 Defaults for the options are specified in brackets.
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking ...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1573 For better control, use the options below.
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1600 --x-includes=DIR X include files are in DIR
1601 --x-libraries=DIR X library files are in DIR
1604 --build=BUILD configure for building on BUILD [guessed]
1605 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 if test -n "$ac_init_help"; then
1610 case $ac_init_help in
1611 short | recursive ) echo "Configuration of bacula 5.2.0rc1:";;
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --enable-libtool enable building using GNU libtool [default=yes]
1620 --enable-shared[=PKGS] build shared libraries [default=yes]
1621 --enable-static[=PKGS] build static libraries [default=no]
1622 --enable-fast-install[=PKGS]
1623 optimize for fast installation [default=yes]
1624 --disable-libtool-lock avoid locking (might break parallel builds)
1625 --enable-includes enable installing of include files [default=no]
1626 --disable-nls do not use Native Language Support
1627 --disable-rpath do not hardcode runtime library paths
1628 --enable-gnome enable build of bgnome-console GUI [default=no]
1629 --enable-bat enable build of bat Qt4 GUI [default=no]
1630 --enable-bwx-console enable build of wxWidgets console [default=no]
1631 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1633 --enable-smartalloc enable smartalloc debugging support [default=no]
1634 --enable-lockmgr enable lock manager support [default=no]
1635 --enable-static-tools enable static tape tools [default=no]
1636 --enable-static-fd enable static File daemon [default=no]
1637 --enable-static-sd enable static Storage daemon [default=no]
1638 --enable-static-dir enable static Director [default=no]
1639 --enable-static-cons enable static Console [default=no]
1640 --enable-client-only build client (File daemon) only [default=no]
1641 --enable-build-dird enable building of dird (Director) [default=yes]
1642 --enable-build-stored enable building of stored (Storage daemon)
1644 --disable-conio disable conio support [default=no]
1645 --enable-ipv6 enable ipv6 support [default=yes]
1646 --disable-readline disable readline support [default=yes]
1647 --enable-batch-insert enable the DB batch insert code [default=yes]
1648 --disable-largefile omit support for large files
1649 --disable-acl disable acl support [default=auto]
1650 --disable-xattr disable xattr support [default=auto]
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-pic try to use only PIC/non-PIC objects [default=use
1657 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1658 --with-sysroot=DIR Search for dependent libraries within DIR
1659 (or the compiler's sysroot if not specified).
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1664 --without-libintl-prefix don't search for libintl in includedir and libdir
1665 --with-included-gettext use the GNU gettext library included here
1666 --with-readline[=DIR] specify readline library directory
1667 --with-python[=DIR] Include Python support. DIR is the Python base
1668 install directory, default is to search through a
1669 number of common places for the Python files.
1670 --with-tcp-wrappers[=DIR]
1671 enable tcpwrappers support
1672 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1673 --with-working-dir=PATH specify path of Bacula working directory
1674 --with-archivedir=PATH specify path of SD archive directory
1675 --with-basename=RESNAME specify base resource name for daemons
1676 --with-hostname=RESNAME specify host name for daemons
1677 --with-scriptdir=PATH specify path of Bacula scripts directory
1678 --with-bsrdir=PATH specify path of Bacula bsrs directory
1679 --with-logdir=PATH specify path of Bacula logs directory
1680 --with-plugindir=PATH specify path of Bacula plugins directory
1681 --with-dump-email=EMAIL dump email address
1682 --with-job-email=EMAIL job output email address
1683 --with-smtp-host=HOST SMTP mail host address
1684 --with-pid-dir=PATH specify location of Bacula pid files
1685 --with-subsys-dir=PATH specify location of Bacula subsys file
1686 --with-baseport=PORT specify base port address for daemons
1687 --with-dir-password=PASSWORD
1688 specify Director's password
1689 --with-fd-password=PASSWORD
1690 specify Client's password
1691 --with-sd-password=PASSWORD
1692 specify Storage daemon's password
1693 --with-mon-dir-password=PASSWORD
1694 specify Director's password used by the monitor
1695 --with-mon-fd-password=PASSWORD
1696 specify Client's password used by the monitor
1697 --with-mon-sd-password=PASSWORD
1698 specify Storage daemon's password used by the
1700 --with-db-name=DBNAME specify database name [default=bacula]
1701 --with-db-user=UNAME specify database user [default=bacula]
1702 --with-db-password=PWD specify database password [default=*none*]
1703 --with-db-port=DBPORT specify a database port [default=null]
1704 --with-dir-user=USER specify user for Director daemon
1705 --with-dir-group=GROUP specify group for Director daemon
1706 --with-sd-user=USER specify user for Storage daemon
1707 --with-sd-group=GROUP specify group for Storage daemon
1708 --with-fd-user=USER specify user for File daemon
1709 --with-fd-group=GROUP specify group for File daemon
1710 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1711 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712 base install directory, [default=/usr/local/pgsql]
1713 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1714 directory, default is to search through a number of
1715 common places for the MySQL files.
1716 --with-embedded-mysql[=DIR]
1717 Include MySQL support. DIR is the MySQL base install
1718 directory, default is to search through a number of
1719 common places for the MySQL files.
1720 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1721 install directory, default is to search through a
1722 number of common places for the SQLite3 files.
1723 --with-x use the X Window System
1725 Some influential environment variables:
1726 CC C compiler command
1727 CFLAGS C compiler flags
1728 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1729 nonstandard directory <lib dir>
1730 LIBS libraries to pass to the linker, e.g. -l<library>
1731 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1732 you have headers in a nonstandard directory <include dir>
1733 CXX C++ compiler command
1734 CXXFLAGS C++ compiler flags
1736 WXCONFIG wx-config command. On some systems, you must set it to
1737 wx-config-2.6 to use wxWidgets 2.6.
1738 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1739 CXXCPP C++ preprocessor
1740 XMKMF Path to xmkmf, Makefile generator for X Window System
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1745 Report bugs to the package provider.
1750 if test "$ac_init_help" = "recursive"; then
1751 # If there are subdirs, report their specific --help.
1752 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753 test -d "$ac_dir" ||
1754 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762 # A ".." for each directory in $ac_dir_suffix.
1763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764 case $ac_top_builddir_sub in
1765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1775 .) # We are building in place.
1777 ac_top_srcdir=$ac_top_builddir_sub
1778 ac_abs_top_srcdir=$ac_pwd ;;
1779 [\\/]* | ?:[\\/]* ) # Absolute name.
1780 ac_srcdir=$srcdir$ac_dir_suffix;
1781 ac_top_srcdir=$srcdir
1782 ac_abs_top_srcdir=$srcdir ;;
1784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785 ac_top_srcdir=$ac_top_build_prefix$srcdir
1786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1790 cd "$ac_dir" || { ac_status=$?; continue; }
1791 # Check for guested configure.
1792 if test -f "$ac_srcdir/configure.gnu"; then
1794 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795 elif test -f "$ac_srcdir/configure"; then
1797 $SHELL "$ac_srcdir/configure" --help=recursive
1799 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 cd "$ac_pwd" || { ac_status=$?; break; }
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1808 bacula configure 5.2.0rc1
1809 generated by GNU Autoconf 2.67
1811 Copyright (C) 2010 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_cxx_try_compile LINENO
1861 # ----------------------------
1862 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_compile ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext
1867 if { { ac_try="$ac_compile"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_compile") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest.$ac_objext; then :
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_cxx_try_compile
1898 # ac_fn_c_try_cpp LINENO
1899 # ----------------------
1900 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_cpp conftest.$ac_ext"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } > conftest.i && {
1920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 as_fn_set_status $ac_retval
1935 # ac_fn_c_try_link LINENO
1936 # -----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 $as_test_x conftest$ac_exeext
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_link
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval "test \"\${$3+set}\"" = set; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_header_compile
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_link"
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2030 { { case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_try") 2>&5
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; }; }; then :
2042 $as_echo "$as_me: program exited with status $ac_status" >&5
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=$ac_status
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 as_fn_set_status $ac_retval
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2077 # include <limits.h>
2079 # include <assert.h>
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2106 if ac_fn_c_try_link "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_check_func
2121 # ac_fn_cxx_try_cpp LINENO
2122 # ------------------------
2123 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_cxx_try_cpp ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } > conftest.i && {
2143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2144 test ! -s conftest.err
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 as_fn_set_status $ac_retval
2156 } # ac_fn_cxx_try_cpp
2158 # ac_fn_cxx_try_link LINENO
2159 # -------------------------
2160 # Try to link conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_cxx_try_link ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext conftest$ac_exeext
2165 if { { ac_try="$ac_link"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_link") 2>conftest.err
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_cxx_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest$ac_exeext && {
2184 test "$cross_compiling" = yes ||
2185 $as_test_x conftest$ac_exeext
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2195 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2196 # interfere with the next link command; also delete a directory that is
2197 # left behind by Apple's compiler. We do this before executing the actions.
2198 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200 as_fn_set_status $ac_retval
2202 } # ac_fn_cxx_try_link
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval "test \"\${$3+set}\"" = set; then :
2214 $as_echo_n "(cached) " >&6
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_check_type
2258 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2259 # -------------------------------------------------------
2260 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2261 # the include files in INCLUDES and setting the cache variable VAR
2263 ac_fn_c_check_header_mongrel ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 if eval "test \"\${$3+set}\"" = set; then :
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval "test \"\${$3+set}\"" = set; then :
2270 $as_echo_n "(cached) " >&6
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2276 # Is the header compilable?
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2278 $as_echo_n "checking $2 usability... " >&6; }
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285 ac_header_compiler=yes
2287 ac_header_compiler=no
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2291 $as_echo "$ac_header_compiler" >&6; }
2293 # Is the header present?
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2295 $as_echo_n "checking $2 presence... " >&6; }
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2300 if ac_fn_c_try_cpp "$LINENO"; then :
2301 ac_header_preproc=yes
2303 ac_header_preproc=no
2305 rm -f conftest.err conftest.i conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2307 $as_echo "$ac_header_preproc" >&6; }
2309 # So? What about this header?
2310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2313 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2315 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2319 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2321 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2323 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2325 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2327 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval "test \"\${$3+set}\"" = set; then :
2333 $as_echo_n "(cached) " >&6
2335 eval "$3=\$ac_header_compiler"
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 } # ac_fn_c_check_header_mongrel
2345 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346 # --------------------------------------------
2347 # Tries to find the compile-time value of EXPR in a program that includes
2348 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2350 ac_fn_c_compute_int ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if test "$cross_compiling" = yes; then
2354 # Depending upon the size, compute the lo and hi bounds.
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= 0)];
2368 if ac_fn_c_try_compile "$LINENO"; then :
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2377 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_hi=$ac_mid; break
2387 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2388 if test $ac_lo -le $ac_mid; then
2392 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2403 static int test_array [1 - 2 * !(($2) < 0)];
2410 if ac_fn_c_try_compile "$LINENO"; then :
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_lo=$ac_mid; break
2429 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2430 if test $ac_mid -le $ac_hi; then
2434 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 # Binary search between lo and hi bounds.
2445 while test "x$ac_lo" != "x$ac_hi"; do
2446 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2453 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2460 if ac_fn_c_try_compile "$LINENO"; then :
2463 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2475 static long int longval () { return $2; }
2476 static unsigned long int ulongval () { return $2; }
2483 FILE *f = fopen ("conftest.val", "w");
2488 long int i = longval ();
2491 fprintf (f, "%ld", i);
2495 unsigned long int i = ulongval ();
2498 fprintf (f, "%lu", i);
2500 /* Do not output a trailing newline, as this causes \r\n confusion
2501 on some platforms. */
2502 return ferror (f) || fclose (f) != 0;
2508 if ac_fn_c_try_run "$LINENO"; then :
2509 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2514 conftest.$ac_objext conftest.beam conftest.$ac_ext
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 as_fn_set_status $ac_retval
2521 } # ac_fn_c_compute_int
2523 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2524 # ----------------------------------------------------
2525 # Tries to find if the field MEMBER exists in type AGGR, after including
2526 # INCLUDES, setting cache variable VAR accordingly.
2527 ac_fn_c_check_member ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2531 $as_echo_n "checking for $2.$3... " >&6; }
2532 if eval "test \"\${$4+set}\"" = set; then :
2533 $as_echo_n "(cached) " >&6
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2548 if ac_fn_c_try_compile "$LINENO"; then :
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2558 if (sizeof ac_aggr.$3)
2564 if ac_fn_c_try_compile "$LINENO"; then :
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_c_check_member
2580 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2581 # ---------------------------------------------
2582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2584 ac_fn_c_check_decl ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 as_decl_name=`echo $2|sed 's/ *(.*//'`
2588 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2590 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2591 if eval "test \"\${$3+set}\"" = set; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2600 #ifndef $as_decl_name
2602 (void) $as_decl_use;
2604 (void) $as_decl_name;
2612 if ac_fn_c_try_compile "$LINENO"; then :
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_decl
2626 # ac_fn_cxx_try_run LINENO
2627 # ------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2629 # that executables *can* be run.
2630 ac_fn_cxx_try_run ()
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 if { { ac_try="$ac_link"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>&5
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2644 { { case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650 (eval "$ac_try") 2>&5
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; }; }; then :
2656 $as_echo "$as_me: program exited with status $ac_status" >&5
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_retval=$ac_status
2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 as_fn_set_status $ac_retval
2666 } # ac_fn_cxx_try_run
2668 # ac_fn_cxx_check_func LINENO FUNC VAR
2669 # ------------------------------------
2670 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2671 ac_fn_cxx_check_func ()
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if eval "test \"\${$3+set}\"" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2681 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2683 #define $2 innocuous_$2
2685 /* System header to define __stub macros and hopefully few prototypes,
2686 which can conflict with char $2 (); below.
2687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2688 <limits.h> exists even on freestanding compilers. */
2691 # include <limits.h>
2693 # include <assert.h>
2698 /* Override any GCC internal prototype to avoid an error.
2699 Use char because int might match the return type of a GCC
2700 builtin and then its argument prototype would still apply. */
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined __stub_$2 || defined __stub___$2
2720 if ac_fn_cxx_try_link "$LINENO"; then :
2725 rm -f core conftest.err conftest.$ac_objext \
2726 conftest$ac_exeext conftest.$ac_ext
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 } # ac_fn_cxx_check_func
2734 cat >config.log <<_ACEOF
2735 This file contains any messages produced by compilers while
2736 running configure, to aid debugging if configure makes a mistake.
2738 It was created by bacula $as_me 5.2.0rc1, which was
2739 generated by GNU Autoconf 2.67. Invocation command line was
2751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 $as_echo "PATH: $as_dir"
2791 # Keep a trace of the command line.
2792 # Strip out --no-create and --no-recursion so they do not pile up.
2793 # Strip out --silent because we don't want to record it for future runs.
2794 # Also quote any args containing shell meta-characters.
2795 # Make two passes to allow for proper duplicate-argument suppression.
2799 ac_must_keep_next=false
2805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2807 | -silent | --silent | --silen | --sile | --sil)
2810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2813 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2815 as_fn_append ac_configure_args1 " '$ac_arg'"
2816 if test $ac_must_keep_next = true; then
2817 ac_must_keep_next=false # Got value, back to normal.
2820 *=* | --config-cache | -C | -disable-* | --disable-* \
2821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2823 | -with-* | --with-* | -without-* | --without-* | --x)
2824 case "$ac_configure_args0 " in
2825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2828 -* ) ac_must_keep_next=true ;;
2831 as_fn_append ac_configure_args " '$ac_arg'"
2836 { ac_configure_args0=; unset ac_configure_args0;}
2837 { ac_configure_args1=; unset ac_configure_args1;}
2839 # When interrupted or exit'd, cleanup temporary files, and complete
2840 # config.log. We remove comments because anyway the quotes in there
2841 # would cause problems or look ugly.
2842 # WARNING: Use '\'' to represent an apostrophe within the trap.
2843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2844 trap 'exit_status=$?
2845 # Save into config.log some information that might help in debugging.
2849 $as_echo "## ---------------- ##
2850 ## Cache variables. ##
2851 ## ---------------- ##"
2853 # The following way of writing the cache mishandles newlines in values,
2855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856 eval ac_val=\$$ac_var
2860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2864 _ | IFS | as_nl) ;; #(
2865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866 *) { eval $ac_var=; unset $ac_var;} ;;
2871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872 *${as_nl}ac_space=\ *)
2874 "s/'\''/'\''\\\\'\'''\''/g;
2875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2885 $as_echo "## ----------------- ##
2886 ## Output variables. ##
2887 ## ----------------- ##"
2889 for ac_var in $ac_subst_vars
2891 eval ac_val=\$$ac_var
2893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2895 $as_echo "$ac_var='\''$ac_val'\''"
2899 if test -n "$ac_subst_files"; then
2900 $as_echo "## ------------------- ##
2901 ## File substitutions. ##
2902 ## ------------------- ##"
2904 for ac_var in $ac_subst_files
2906 eval ac_val=\$$ac_var
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2910 $as_echo "$ac_var='\''$ac_val'\''"
2915 if test -s confdefs.h; then
2916 $as_echo "## ----------- ##
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 # We do not want a PATH search for config.site.
2974 case $CONFIG_SITE in #((
2975 -*) ac_site_file1=./$CONFIG_SITE;;
2976 */*) ac_site_file1=$CONFIG_SITE;;
2977 *) ac_site_file1=./$CONFIG_SITE;;
2979 elif test "x$prefix" != xNONE; then
2980 ac_site_file1=$prefix/share/config.site
2981 ac_site_file2=$prefix/etc/config.site
2983 ac_site_file1=$ac_default_prefix/share/config.site
2984 ac_site_file2=$ac_default_prefix/etc/config.site
2986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2988 test "x$ac_site_file" = xNONE && continue
2989 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2992 sed 's/^/| /' "$ac_site_file" >&5
2994 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "failed to load site script $ac_site_file
2997 See \`config.log' for more details" "$LINENO" 5 ; }
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special files
3003 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3004 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3018 as_fn_append ac_header_list " stdlib.h"
3019 as_fn_append ac_header_list " unistd.h"
3020 as_fn_append ac_header_list " sys/param.h"
3021 # Check that the precious variables saved in the cache have kept the same
3023 ac_cache_corrupted=false
3024 for ac_var in $ac_precious_vars; do
3025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3026 eval ac_new_set=\$ac_env_${ac_var}_set
3027 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3028 eval ac_new_val=\$ac_env_${ac_var}_value
3029 case $ac_old_set,$ac_new_set in
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3032 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3033 ac_cache_corrupted=: ;;
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3036 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3037 ac_cache_corrupted=: ;;
3040 if test "x$ac_old_val" != "x$ac_new_val"; then
3041 # differences in whitespace do not lead to failure.
3042 ac_old_val_w=`echo x $ac_old_val`
3043 ac_new_val_w=`echo x $ac_new_val`
3044 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3046 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3047 ac_cache_corrupted=:
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3050 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3051 eval $ac_var=\$ac_old_val
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3054 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3056 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3059 # Pass precious variables to config.status.
3060 if test "$ac_new_set" = set; then
3062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3063 *) ac_arg=$ac_var=$ac_new_val ;;
3065 case " $ac_configure_args " in
3066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3067 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3071 if $ac_cache_corrupted; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3076 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3078 ## -------------------- ##
3079 ## Main body of script. ##
3080 ## -------------------- ##
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3099 if test -f "$ac_dir/install-sh"; then
3101 ac_install_sh="$ac_aux_dir/install-sh -c"
3103 elif test -f "$ac_dir/install.sh"; then
3105 ac_install_sh="$ac_aux_dir/install.sh -c"
3107 elif test -f "$ac_dir/shtool"; then
3109 ac_install_sh="$ac_aux_dir/shtool install -c"
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3129 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3130 WIN32MAINDIR=${BUILD_DIR}
3131 WIN32TOPDIR=${TOP_DIR}
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3147 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 TRUEPRG=$ac_cv_path_TRUEPRG
3169 if test -n "$TRUEPRG"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3171 $as_echo "$TRUEPRG" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3178 test -n "$TRUEPRG" && break
3180 test -n "$TRUEPRG" || TRUEPRG=":"
3182 for ac_prog in false
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3193 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 FALSEPRG=$ac_cv_path_FALSEPRG
3215 if test -n "$FALSEPRG"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3217 $as_echo "$FALSEPRG" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$FALSEPRG" && break
3226 test -n "$FALSEPRG" || FALSEPRG=":"
3231 if test "x$BACULA" != x; then
3232 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3234 BACULA=${BACULA:-Bacula}
3235 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3237 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3244 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3245 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3246 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3249 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3252 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3253 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3256 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3261 echo "configuring for ${BACULA} $VERSION ($DATE)"
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$ac_cv_prog_CC"; then
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3362 if test -z "$CC"; then
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="${ac_tool_prefix}cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3403 if test -z "$CC"; then
3404 # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423 ac_prog_rejected=yes
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test $ac_prog_rejected = yes; then
3435 # We found a bogon in the path, so make sure we never use it.
3436 set dummy $ac_cv_prog_CC
3438 if test $# != 0; then
3439 # We chose a different compiler from the bogus one.
3440 # However, it has the same basename, so the bogon will be chosen
3441 # first if we set CC to just the basename; use the full file name.
3443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$CC" && break
3503 if test -z "$CC"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_ac_ct_CC="$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$ac_ct_CC" && break
3547 if test "x$ac_ct_CC" = x; then
3550 case $cross_compiling:$ac_tool_warned in
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3572 for ac_option in --version -v -V -qversion; do
3573 { { ac_try="$ac_compiler $ac_option >&5"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582 if test -s conftest.err; then
3584 ... rest of stderr output deleted ...
3585 10q' conftest.err >conftest.er1
3586 cat conftest.er1 >&5
3588 rm -f conftest.er1 conftest.err
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613 # The possible output files:
3614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3617 for ac_file in $ac_files
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 if { { ac_try="$ac_link_default"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link_default") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3642 for ac_file in $ac_files ''
3644 test -f "$ac_file" || continue
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3649 # We found the default executable, but exeext='' is most
3653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 # We set ac_cv_exeext here because the later test for it is not
3658 # safe: cross compilers may not add the suffix if given an `-o'
3659 # argument, so we may need to know it at that point already.
3660 # Even if this section looks crufty: it has the advantage of
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3672 if test -z "$ac_file"; then :
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error 77 "C compiler cannot create executables
3681 See \`config.log' for more details" "$LINENO" 5 ; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details" "$LINENO" 5 ; }
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3739 FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run. If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752 { { ac_try="$ac_link"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 if { ac_try='./conftest$ac_cv_exeext'
3764 { { case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_try") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; }; then
3776 if test "$cross_compiling" = maybe; then
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if test "${ac_cv_objext+set}" = set; then :
3795 $as_echo_n "(cached) " >&6
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compile") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 for ac_file in conftest.o conftest.obj conftest.*; do
3821 test -f "$ac_file" || continue;
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5 ; }
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3862 if ac_fn_c_try_compile "$LINENO"; then :
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if test "${ac_cv_prog_cc_g+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_c_werror_flag=$ac_save_c_werror_flag
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3931 if ac_fn_c_try_compile "$LINENO"; then :
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3952 if test "$GCC" = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_cv_prog_cc_c89=no
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3969 #include <sys/types.h>
3970 #include <sys/stat.h>
3971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3972 struct buf { int x; };
3973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974 static char *e (p, i)
3980 static char *f (char * (*g) (char **, int), char **p, ...)
3985 s = g (p, va_arg (v,int));
3990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3991 function prototypes and stuff, but not '\xHH' hex character constants.
3992 These don't provoke an error unfortunately, instead are silently treated
3993 as 'x'. The following induces an error, until -std is added to get
3994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3995 array size at least. It's necessary to write '\x00'==0 to get something
3996 that's true only with -std. */
3997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000 inside strings and character constants. */
4002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004 int test (int i, double x);
4005 struct s1 {int (*f) (int a);};
4006 struct s2 {int (*f) (double a);};
4007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c89=$ac_arg
4025 rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c89" != "xno" && break
4028 rm -f conftest.$ac_ext
4033 case "x$ac_cv_prog_cc_c89" in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4041 CC="$CC $ac_cv_prog_cc_c89"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4045 if test "x$ac_cv_prog_cc_c89" != xno; then :
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 ac_cpp='$CXXCPP $CPPFLAGS'
4057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4060 if test -z "$CXX"; then
4061 if test -n "$CCC"; then
4064 if test -n "$ac_tool_prefix"; then
4065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_CXX+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 if test -n "$CXX"; then
4075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 if test -n "$CXX"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4097 $as_echo "$CXX" >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4104 test -n "$CXX" && break
4107 if test -z "$CXX"; then
4109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4111 # Extract the first word of "$ac_prog", so it can be a program name with args.
4112 set dummy $ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$ac_ct_CXX"; then
4119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_ac_ct_CXX="$ac_prog"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4139 if test -n "$ac_ct_CXX"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4141 $as_echo "$ac_ct_CXX" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4148 test -n "$ac_ct_CXX" && break
4151 if test "x$ac_ct_CXX" = x; then
4154 case $cross_compiling:$ac_tool_warned in
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158 ac_tool_warned=yes ;;
4166 # Provide some information about the compiler.
4167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4170 for ac_option in --version -v -V -qversion; do
4171 { { ac_try="$ac_compiler $ac_option >&5"
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180 if test -s conftest.err; then
4182 ... rest of stderr output deleted ...
4183 10q' conftest.err >conftest.er1
4184 cat conftest.er1 >&5
4186 rm -f conftest.er1 conftest.err
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4210 if ac_fn_cxx_try_compile "$LINENO"; then :
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4226 ac_test_CXXFLAGS=${CXXFLAGS+set}
4227 ac_save_CXXFLAGS=$CXXFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4230 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4234 ac_cxx_werror_flag=yes
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 if ac_fn_cxx_try_compile "$LINENO"; then :
4249 ac_cv_prog_cxx_g=yes
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4263 if ac_fn_cxx_try_compile "$LINENO"; then :
4266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 if ac_fn_cxx_try_compile "$LINENO"; then :
4280 ac_cv_prog_cxx_g=yes
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4291 if test "$ac_test_CXXFLAGS" = set; then
4292 CXXFLAGS=$ac_save_CXXFLAGS
4293 elif test $ac_cv_prog_cxx_g = yes; then
4294 if test "$GXX" = yes; then
4300 if test "$GXX" = yes; then
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 if test "x$CC" != xcc; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4314 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4317 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4319 set dummy $CC; ac_cc=`$as_echo "$2" |
4320 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4321 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4322 $as_echo_n "(cached) " >&6
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 # Make sure it works both with $CC and with simple cc.
4336 # We do the test twice because some compilers refuse to overwrite an
4337 # existing .o file with -o, though they will create one.
4338 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4340 if { { case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; } &&
4350 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355 $as_echo "$ac_try_echo"; } >&5
4356 (eval "$ac_try") 2>&5
4358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4359 test $ac_status = 0; };
4361 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4362 if test "x$CC" != xcc; then
4363 # Test first that cc exists at all.
4364 if { ac_try='cc -c conftest.$ac_ext >&5'
4365 { { case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }; }; then
4375 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4377 if { { case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_try") 2>&5
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; } &&
4387 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; };
4401 # cc exists but doesn't like -o.
4402 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4409 rm -f core conftest*
4412 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414 $as_echo "yes" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4419 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4430 # On Suns, sometimes $CPP names a directory.
4431 if test -n "$CPP" && test -d "$CPP"; then
4434 if test -z "$CPP"; then
4435 if test "${ac_cv_prog_CPP+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4438 # Double quotes because CPP needs to be expanded
4439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4442 for ac_c_preproc_warn_flag in '' yes
4444 # Use a header file that comes with gcc, so configuring glibc
4445 # with a fresh cross-compiler works.
4446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447 # <limits.h> exists even on freestanding compilers.
4448 # On the NeXT, cc -E runs the code through the compiler's parser,
4449 # not just through cpp. "Syntax error" is here to catch this case.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4453 # include <limits.h>
4455 # include <assert.h>
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: fails on valid input.
4465 rm -f conftest.err conftest.i conftest.$ac_ext
4467 # OK, works on sane cases. Now check whether nonexistent headers
4468 # can be detected and how.
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <ac_nonexistent.h>
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474 # Broken: success on invalid input.
4477 # Passes both tests.
4481 rm -f conftest.err conftest.i conftest.$ac_ext
4484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4485 rm -f conftest.i conftest.err conftest.$ac_ext
4486 if $ac_preproc_ok; then :
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4499 $as_echo "$CPP" >&6; }
4501 for ac_c_preproc_warn_flag in '' yes
4503 # Use a header file that comes with gcc, so configuring glibc
4504 # with a fresh cross-compiler works.
4505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506 # <limits.h> exists even on freestanding compilers.
4507 # On the NeXT, cc -E runs the code through the compiler's parser,
4508 # not just through cpp. "Syntax error" is here to catch this case.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 # include <limits.h>
4514 # include <assert.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: fails on valid input.
4524 rm -f conftest.err conftest.i conftest.$ac_ext
4526 # OK, works on sane cases. Now check whether nonexistent headers
4527 # can be detected and how.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533 # Broken: success on invalid input.
4536 # Passes both tests.
4540 rm -f conftest.err conftest.i conftest.$ac_ext
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.i conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4551 See \`config.log' for more details" "$LINENO" 5 ; }
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if test "${ac_cv_path_GREP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$GREP"; then
4567 ac_path_GREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579 # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'GREP' >> "conftest.nl"
4592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_GREP_found && break 3
4611 if test -z "$ac_cv_path_GREP"; then
4612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_GREP=$GREP
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621 GREP="$ac_cv_path_GREP"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if test "${ac_cv_path_EGREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4632 if test -z "$EGREP"; then
4633 ac_path_EGREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645 # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651 $as_echo_n 0123456789 >"conftest.in"
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'EGREP' >> "conftest.nl"
4658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_EGREP_found && break 3
4677 if test -z "$ac_cv_path_EGREP"; then
4678 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 ac_cv_path_EGREP=$EGREP
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4691 if test $ac_cv_c_compiler_gnu = yes; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4693 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4694 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4697 ac_pattern="Autoconf.*'x'"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4705 ac_cv_prog_gcc_traditional=yes
4707 ac_cv_prog_gcc_traditional=no
4712 if test $ac_cv_prog_gcc_traditional = no; then
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4719 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4720 ac_cv_prog_gcc_traditional=yes
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4727 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4728 if test $ac_cv_prog_gcc_traditional = yes; then
4729 CC="$CC -traditional"
4733 BASECC=`basename $CC`
4735 if test "x$BASECC" = xgcc; then
4736 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4740 # Extract the first word of "$CXX", so it can be a program name with args.
4741 set dummy $CXX; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_path_CXX+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4749 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4772 if test -n "$CXX"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4774 $as_echo "$CXX" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4781 if test ! -e $CXX; then
4782 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4785 # Find a good install program. We prefer a C program (faster),
4786 # so one script is as good as another. But avoid the broken or
4787 # incompatible versions:
4788 # SysV /etc/install, /usr/sbin/install
4789 # SunOS /usr/etc/install
4790 # IRIX /sbin/install
4792 # AmigaOS /C/install, which installs bootblocks on floppy discs
4793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4796 # OS/2's system install, which has a completely different semantic
4797 # ./install, which can be erroneously created by make from ./install.sh.
4798 # Reject install programs that cannot install multiple files.
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4800 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4801 if test -z "$INSTALL"; then
4802 if test "${ac_cv_path_install+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 # Account for people who put trailing slashes in PATH elements.
4811 case $as_dir/ in #((
4812 ./ | .// | /[cC]/* | \
4813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4817 # OSF1 and SCO ODT 3.0 have their own names for install.
4818 # Don't use installbsd from OSF since it installs stuff as root
4820 for ac_prog in ginstall scoinst install; do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4823 if test $ac_prog = install &&
4824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4825 # AIX install. It has an incompatible calling convention.
4827 elif test $ac_prog = install &&
4828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4829 # program-specific install script used by HP pwplus--don't use.
4832 rm -rf conftest.one conftest.two conftest.dir
4833 echo one > conftest.one
4834 echo two > conftest.two
4836 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4837 test -s conftest.one && test -s conftest.two &&
4838 test -s conftest.dir/conftest.one &&
4839 test -s conftest.dir/conftest.two
4841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4854 rm -rf conftest.one conftest.two conftest.dir
4857 if test "${ac_cv_path_install+set}" = set; then
4858 INSTALL=$ac_cv_path_install
4860 # As a last resort, use the slow shell script. Don't cache a
4861 # value for INSTALL within a source directory, because that will
4862 # break other packages using the cache if that directory is
4863 # removed, or if the value is a relative name.
4864 INSTALL=$ac_install_sh
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4868 $as_echo "$INSTALL" >&6; }
4870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4871 # It thinks the first close brace ends the variable substitution.
4872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4878 # Extract the first word of "mv", so it can be a program name with args.
4879 set dummy mv; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_MV+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4887 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4910 if test -n "$MV"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4912 $as_echo "$MV" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 # Extract the first word of "rm", so it can be a program name with args.
4920 set dummy rm; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_path_REMOVE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4928 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4950 REMOVE=$ac_cv_path_REMOVE
4951 if test -n "$REMOVE"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4953 $as_echo "$REMOVE" >&6; }
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 # Extract the first word of "cp", so it can be a program name with args.
4961 set dummy cp; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_path_CP+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4969 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4992 if test -n "$CP"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4994 $as_echo "$CP" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 # Extract the first word of "sed", so it can be a program name with args.
5002 set dummy sed; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_path_SED+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5033 if test -n "$SED"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5035 $as_echo "$SED" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 # Extract the first word of "echo", so it can be a program name with args.
5043 set dummy echo; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_path_ECHO+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5051 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5073 ECHO=$ac_cv_path_ECHO
5074 if test -n "$ECHO"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5076 $as_echo "$ECHO" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 # Extract the first word of "cmp", so it can be a program name with args.
5084 set dummy cmp; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_path_CMP+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5092 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5115 if test -n "$CMP"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5117 $as_echo "$CMP" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 # Extract the first word of "tbl", so it can be a program name with args.
5125 set dummy tbl; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_path_TBL+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5133 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5156 if test -n "$TBL"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5158 $as_echo "$TBL" >&6; }
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5165 # Extract the first word of "ar", so it can be a program name with args.
5166 set dummy ar; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_path_AR+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5174 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5197 if test -n "$AR"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5199 $as_echo "$AR" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 # Extract the first word of "openssl", so it can be a program name with args.
5207 set dummy openssl; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5215 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5237 OPENSSL=$ac_cv_path_OPENSSL
5238 if test -n "$OPENSSL"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5240 $as_echo "$OPENSSL" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 # Extract the first word of "mtx", so it can be a program name with args.
5248 set dummy mtx; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_path_MTX+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5256 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5279 if test -n "$MTX"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5281 $as_echo "$MTX" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 # Extract the first word of "dd", so it can be a program name with args.
5289 set dummy dd; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_path_DD+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5297 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5320 if test -n "$DD"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5322 $as_echo "$DD" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 # Extract the first word of "mkisofs", so it can be a program name with args.
5330 set dummy mkisofs; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5338 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5360 MKISOFS=$ac_cv_path_MKISOFS
5361 if test -n "$MKISOFS"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5363 $as_echo "$MKISOFS" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 # Extract the first word of "python", so it can be a program name with args.
5371 set dummy python; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_path_PYTHON+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5379 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5401 PYTHON=$ac_cv_path_PYTHON
5402 if test -n "$PYTHON"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5404 $as_echo "$PYTHON" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 # Extract the first word of "growisofs", so it can be a program name with args.
5412 set dummy growisofs; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5420 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5442 GROWISOFS=$ac_cv_path_GROWISOFS
5443 if test -n "$GROWISOFS"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5445 $as_echo "$GROWISOFS" >&6; }
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5452 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5453 set dummy dvd+rw-mediainfo; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 case $DVDRWMEDIAINFO in
5461 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5483 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5484 if test -n "$DVDRWMEDIAINFO"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5486 $as_echo "$DVDRWMEDIAINFO" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5493 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5494 set dummy dvd+rw-format; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5500 case $DVDRWFORMAT in
5502 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5524 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5525 if test -n "$DVDRWFORMAT"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5527 $as_echo "$DVDRWFORMAT" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 # Extract the first word of "pkg-config", so it can be a program name with args.
5535 set dummy pkg-config; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5543 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5565 PKGCONFIG=$ac_cv_path_PKGCONFIG
5566 if test -n "$PKGCONFIG"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5568 $as_echo "$PKGCONFIG" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5575 # Extract the first word of "qmake", so it can be a program name with args.
5576 set dummy qmake; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_path_QMAKE+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5584 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5606 QMAKE=$ac_cv_path_QMAKE
5607 if test -n "$QMAKE"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5609 $as_echo "$QMAKE" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5616 # Extract the first word of "gmake", so it can be a program name with args.
5617 set dummy gmake; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_GMAKE+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5625 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5647 GMAKE=$ac_cv_path_GMAKE
5648 if test -n "$GMAKE"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5650 $as_echo "$GMAKE" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5658 if test "x$WXCONFIG" = x; then
5661 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5662 set dummy ${WXCONFIG}; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5670 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5692 WXCONFIG=$ac_cv_path_WXCONFIG
5693 if test -n "$WXCONFIG"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5695 $as_echo "$WXCONFIG" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5703 # Extract the first word of "cdrecord", so it can be a program name with args.
5704 set dummy cdrecord; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5712 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5734 CDRECORD=$ac_cv_path_CDRECORD
5735 if test -n "$CDRECORD"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5737 $as_echo "$CDRECORD" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5744 # Extract the first word of "pidof", so it can be a program name with args.
5745 set dummy pidof; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if test "${ac_cv_path_PIDOF+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5753 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5775 PIDOF=$ac_cv_path_PIDOF
5776 if test -n "$PIDOF"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5778 $as_echo "$PIDOF" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5785 for ac_prog in gawk mawk nawk awk
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_prog_AWK+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5794 if test -n "$AWK"; then
5795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_AWK="$ac_prog"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 if test -n "$AWK"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5817 $as_echo "$AWK" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5824 test -n "$AWK" && break
5827 # Some AWK programs fail, so test it and warn the user
5828 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5829 { if ((prog == $2) || (("(" prog ")") == $2) ||
5830 (("" prog "") == $2) ||
5831 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5833 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5834 The regex engine of $AWK is too broken to be used you
5835 might want to install GNU AWK.
5836 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5839 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5840 set dummy $THE_AWK; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_path_AWK+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5848 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5871 if test -n "$AWK"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5873 $as_echo "$AWK" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5882 test -n "$ARFLAG" || ARFLAGS="cr"
5894 # Check whether --enable-libtool was given.
5895 if test "${enable_libtool+set}" = set; then :
5896 enableval=$enable_libtool;
5897 if test x$enableval = xno; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5913 macro_revision='1.3293'
5927 ltmain="$ac_aux_dir/ltmain.sh"
5929 # Make sure we can run config.sub.
5930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5931 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5934 $as_echo_n "checking build system type... " >&6; }
5935 if test "${ac_cv_build+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5938 ac_build_alias=$build_alias
5939 test "x$ac_build_alias" = x &&
5940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5941 test "x$ac_build_alias" = x &&
5942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5948 $as_echo "$ac_cv_build" >&6; }
5949 case $ac_cv_build in
5951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5954 ac_save_IFS=$IFS; IFS='-'
5960 # Remember, the first character of IFS is used to create $*,
5961 # except with old shells:
5964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5968 $as_echo_n "checking host system type... " >&6; }
5969 if test "${ac_cv_host+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5972 if test "x$host_alias" = x; then
5973 ac_cv_host=$ac_cv_build
5975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5981 $as_echo "$ac_cv_host" >&6; }
5984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5987 ac_save_IFS=$IFS; IFS='-'
5993 # Remember, the first character of IFS is used to create $*,
5994 # except with old shells:
5997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6000 # Backslashify metacharacters that are still active within
6001 # double-quoted strings.
6002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6004 # Same as above, but do not quote variable references.
6005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6007 # Sed substitution to delay expansion of an escaped shell variable in a
6008 # double_quote_subst'ed string.
6009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6011 # Sed substitution to delay expansion of an escaped single quote.
6012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6014 # Sed substitution to avoid accidental globbing in evaled expressions
6015 no_glob_subst='s/\*/\\\*/g'
6017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6022 $as_echo_n "checking how to print strings... " >&6; }
6023 # Test print first, because it will be a builtin if present.
6024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6030 # Use this function as a fallback that always works.
6031 func_fallback_echo ()
6033 eval 'cat <<_LTECHO_EOF
6037 ECHO='func_fallback_echo'
6040 # func_echo_all arg...
6041 # Invoke $ECHO with all args, space-separated.
6048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6049 $as_echo "printf" >&6; } ;;
6050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6051 $as_echo "print -r" >&6; } ;;
6052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6053 $as_echo "cat" >&6; } ;;
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6071 if test "${ac_cv_path_SED+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6075 for ac_i in 1 2 3 4 5 6 7; do
6076 ac_script="$ac_script$as_nl$ac_script"
6078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6079 { ac_script=; unset ac_script;}
6080 if test -z "$SED"; then
6081 ac_path_SED_found=false
6082 # Loop through the user's path and test for each of PROGNAME-LIST
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_prog in sed gsed; do
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6092 # Check for GNU ac_path_SED and select it if it is found.
6093 # Check for GNU $ac_path_SED
6094 case `"$ac_path_SED" --version 2>&1` in
6096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6099 $as_echo_n 0123456789 >"conftest.in"
6102 cat "conftest.in" "conftest.in" >"conftest.tmp"
6103 mv "conftest.tmp" "conftest.in"
6104 cp "conftest.in" "conftest.nl"
6105 $as_echo '' >> "conftest.nl"
6106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108 as_fn_arith $ac_count + 1 && ac_count=$as_val
6109 if test $ac_count -gt ${ac_path_SED_max-0}; then
6110 # Best one so far, save it but keep looking for a better one
6111 ac_cv_path_SED="$ac_path_SED"
6112 ac_path_SED_max=$ac_count
6114 # 10*(2^10) chars as input seems more than enough
6115 test $ac_count -gt 10 && break
6117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6120 $ac_path_SED_found && break 3
6125 if test -z "$ac_cv_path_SED"; then
6126 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6134 $as_echo "$ac_cv_path_SED" >&6; }
6135 SED="$ac_cv_path_SED"
6138 test -z "$SED" && SED=sed
6139 Xsed="$SED -e 1s/^X//"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6152 $as_echo_n "checking for fgrep... " >&6; }
6153 if test "${ac_cv_path_FGREP+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6156 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6157 then ac_cv_path_FGREP="$GREP -F"
6159 if test -z "$FGREP"; then
6160 ac_path_FGREP_found=false
6161 # Loop through the user's path and test for each of PROGNAME-LIST
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6166 test -z "$as_dir" && as_dir=.
6167 for ac_prog in fgrep; do
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6170 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6171 # Check for GNU ac_path_FGREP and select it if it is found.
6172 # Check for GNU $ac_path_FGREP
6173 case `"$ac_path_FGREP" --version 2>&1` in
6175 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6178 $as_echo_n 0123456789 >"conftest.in"
6181 cat "conftest.in" "conftest.in" >"conftest.tmp"
6182 mv "conftest.tmp" "conftest.in"
6183 cp "conftest.in" "conftest.nl"
6184 $as_echo 'FGREP' >> "conftest.nl"
6185 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6187 as_fn_arith $ac_count + 1 && ac_count=$as_val
6188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6189 # Best one so far, save it but keep looking for a better one
6190 ac_cv_path_FGREP="$ac_path_FGREP"
6191 ac_path_FGREP_max=$ac_count
6193 # 10*(2^10) chars as input seems more than enough
6194 test $ac_count -gt 10 && break
6196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6199 $ac_path_FGREP_found && break 3
6204 if test -z "$ac_cv_path_FGREP"; then
6205 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6208 ac_cv_path_FGREP=$FGREP
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6214 $as_echo "$ac_cv_path_FGREP" >&6; }
6215 FGREP="$ac_cv_path_FGREP"
6218 test -z "$GREP" && GREP=grep
6238 # Check whether --with-gnu-ld was given.
6239 if test "${with_gnu_ld+set}" = set; then :
6240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6246 if test "$GCC" = yes; then
6247 # Check if gcc -print-prog-name=ld gives a path.
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6249 $as_echo_n "checking for ld used by $CC... " >&6; }
6252 # gcc leaves a trailing carriage return which upsets mingw
6253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6258 # Accept absolute paths.
6260 re_direlt='/[^/][^/]*/\.\./'
6261 # Canonicalize the pathname of ld
6262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6266 test -z "$LD" && LD="$ac_prog"
6269 # If it fails, then pretend we aren't using GCC.
6273 # If it is relative, then search for the first ld in PATH.
6277 elif test "$with_gnu_ld" = yes; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6279 $as_echo_n "checking for GNU ld... " >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6282 $as_echo_n "checking for non-GNU ld... " >&6; }
6284 if test "${lt_cv_path_LD+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -z "$LD"; then
6288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289 for ac_dir in $PATH; do
6291 test -z "$ac_dir" && ac_dir=.
6292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6293 lt_cv_path_LD="$ac_dir/$ac_prog"
6294 # Check to see if the program is GNU ld. I'd rather use --version,
6295 # but apparently some variants of GNU ld only accept -v.
6296 # Break only if it was the GNU/non-GNU ld that we prefer.
6297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6298 *GNU* | *'with BFD'*)
6299 test "$with_gnu_ld" != no && break
6302 test "$with_gnu_ld" != yes && break
6309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6314 if test -n "$LD"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6316 $as_echo "$LD" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6328 case `$LD -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330 lt_cv_prog_gnu_ld=yes
6333 lt_cv_prog_gnu_ld=no
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6339 with_gnu_ld=$lt_cv_prog_gnu_ld
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6351 if test "${lt_cv_path_NM+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$NM"; then
6355 # Let the user override the test.
6358 lt_nm_to_check="${ac_tool_prefix}nm"
6359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6360 lt_nm_to_check="$lt_nm_to_check nm"
6362 for lt_tmp_nm in $lt_nm_to_check; do
6363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6366 test -z "$ac_dir" && ac_dir=.
6367 tmp_nm="$ac_dir/$lt_tmp_nm"
6368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6369 # Check to see if the nm accepts a BSD-compat flag.
6370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6371 # nm: unknown option "B" ignored
6372 # Tru64's nm complains that /dev/null is an invalid object file
6373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6374 */dev/null* | *'Invalid file or object type'*)
6375 lt_cv_path_NM="$tmp_nm -B"
6379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6381 lt_cv_path_NM="$tmp_nm -p"
6385 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6386 continue # so that we can try to find one that supports BSD flags
6395 : ${lt_cv_path_NM=no}
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6399 $as_echo "$lt_cv_path_NM" >&6; }
6400 if test "$lt_cv_path_NM" != "no"; then
6403 # Didn't find any BSD compatible name lister, look for dumpbin.
6404 if test -n "$DUMPBIN"; then :
6405 # Let the user override the test.
6407 if test -n "$ac_tool_prefix"; then
6408 for ac_prog in dumpbin "link -dump"
6410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$DUMPBIN"; then
6418 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 DUMPBIN=$ac_cv_prog_DUMPBIN
6438 if test -n "$DUMPBIN"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6440 $as_echo "$DUMPBIN" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6447 test -n "$DUMPBIN" && break
6450 if test -z "$DUMPBIN"; then
6451 ac_ct_DUMPBIN=$DUMPBIN
6452 for ac_prog in dumpbin "link -dump"
6454 # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_DUMPBIN"; then
6462 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6482 if test -n "$ac_ct_DUMPBIN"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6484 $as_echo "$ac_ct_DUMPBIN" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6491 test -n "$ac_ct_DUMPBIN" && break
6494 if test "x$ac_ct_DUMPBIN" = x; then
6497 case $cross_compiling:$ac_tool_warned in
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6503 DUMPBIN=$ac_ct_DUMPBIN
6507 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6509 DUMPBIN="$DUMPBIN -symbols"
6517 if test "$DUMPBIN" != ":"; then
6521 test -z "$NM" && NM=nm
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6529 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6530 if test "${lt_cv_nm_interface+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 lt_cv_nm_interface="BSD nm"
6534 echo "int some_variable = 0;" > conftest.$ac_ext
6535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6536 (eval "$ac_compile" 2>conftest.err)
6537 cat conftest.err >&5
6538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6540 cat conftest.err >&5
6541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6542 cat conftest.out >&5
6543 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6544 lt_cv_nm_interface="MS dumpbin"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6549 $as_echo "$lt_cv_nm_interface" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6552 $as_echo_n "checking whether ln -s works... " >&6; }
6554 if test "$LN_S" = "ln -s"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6559 $as_echo "no, using $LN_S" >&6; }
6562 # find the maximum length of command line arguments
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6564 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6573 # On DJGPP, this test can blow up pretty badly due to problems in libc
6574 # (any single argument exceeding 2000 bytes causes a buffer overrun
6575 # during glob expansion). Even if it were fixed, the result of this
6576 # check would be larger than it should be.
6577 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6581 # Under GNU Hurd, this test is not required because there is
6582 # no limit to the length of command line arguments.
6583 # Libtool will interpret -1 as no limit whatsoever
6584 lt_cv_sys_max_cmd_len=-1;
6587 cygwin* | mingw* | cegcc*)
6588 # On Win9x/ME, this test blows up -- it succeeds, but takes
6589 # about 5 minutes as the teststring grows exponentially.
6590 # Worse, since 9x/ME are not pre-emptively multitasking,
6591 # you end up with a "frozen" computer, even though with patience
6592 # the test eventually succeeds (with a max line length of 256k).
6593 # Instead, let's just punt: use the minimum linelength reported by
6594 # all of the supported platforms: 8192 (on NT/2K/XP).
6595 lt_cv_sys_max_cmd_len=8192;
6599 # On MiNT this can take a long time and run out of memory.
6600 lt_cv_sys_max_cmd_len=8192;
6604 # On AmigaOS with pdksh, this test takes hours, literally.
6605 # So we just punt and use a minimum line length of 8192.
6606 lt_cv_sys_max_cmd_len=8192;
6609 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6610 # This has been around since 386BSD, at least. Likely further.
6611 if test -x /sbin/sysctl; then
6612 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6613 elif test -x /usr/sbin/sysctl; then
6614 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6616 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6618 # And add a safety zone
6619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6624 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6625 lt_cv_sys_max_cmd_len=196608
6629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6631 # nice to cause kernel panics so lets avoid the loop below.
6632 # First set a reasonable default.
6633 lt_cv_sys_max_cmd_len=16384
6635 if test -x /sbin/sysconfig; then
6636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6642 lt_cv_sys_max_cmd_len=102400
6644 sysv5* | sco5v6* | sysv4.2uw2*)
6645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6646 if test -n "$kargmax"; then
6647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6649 lt_cv_sys_max_cmd_len=32768
6653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6654 if test -n "$lt_cv_sys_max_cmd_len"; then
6655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6658 # Make teststring a little bigger before we do anything with it.
6659 # a 1K string should be a reasonable start.
6660 for i in 1 2 3 4 5 6 7 8 ; do
6661 teststring=$teststring$teststring
6663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6664 # If test is not a shell built-in, we'll probably end up computing a
6665 # maximum length that is only half of the actual maximum length, but
6667 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6669 test $i != 17 # 1/2 MB should be enough
6672 teststring=$teststring$teststring
6674 # Only check the string length outside the loop.
6675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6677 # Add a significant safety factor because C++ compilers can tack on
6678 # massive amounts of additional arguments before passing them to the
6679 # linker. It appears as though 1/2 is a usable value.
6680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6687 if test -n $lt_cv_sys_max_cmd_len ; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6692 $as_echo "none" >&6; }
6694 max_cmd_len=$lt_cv_sys_max_cmd_len
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6707 # Try some XSI features
6710 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6712 && eval 'test $(( 1 + 1 )) -eq 2 \
6713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6716 $as_echo "$xsi_shell" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6724 && lt_shell_append=yes
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6726 $as_echo "$lt_shell_append" >&6; }
6729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6739 # test EBCDIC or ASCII
6740 case `echo X|tr X '\101'` in
6741 A) # ASCII based system
6742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6743 lt_SP2NL='tr \040 \012'
6744 lt_NL2SP='tr \015\012 \040\040'
6746 *) # EBCDIC based system
6747 lt_SP2NL='tr \100 \n'
6748 lt_NL2SP='tr \r\n \100\100'
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6761 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6762 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6768 *-*-mingw* ) # actually msys
6769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6772 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6774 * ) # otherwise, assume *nix
6775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6781 *-*-mingw* ) # actually msys
6782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6785 lt_cv_to_host_file_cmd=func_convert_file_noop
6787 * ) # otherwise, assume *nix
6788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6792 * ) # unhandled hosts (and "normal" native builds)
6793 lt_cv_to_host_file_cmd=func_convert_file_noop
6799 to_host_file_cmd=$lt_cv_to_host_file_cmd
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6801 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6808 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6809 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6812 #assume ordinary cross tools, or native build.
6813 lt_cv_to_tool_file_cmd=func_convert_file_noop
6817 *-*-mingw* ) # actually msys
6818 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6828 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6836 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6839 lt_cv_ld_reload_flag='-r'
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6843 reload_flag=$lt_cv_ld_reload_flag
6844 case $reload_flag in
6846 *) reload_flag=" $reload_flag" ;;
6848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6850 cygwin* | mingw* | pw32* | cegcc*)
6851 if test "$GCC" != yes; then
6856 if test "$GCC" = yes; then
6857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$OBJDUMP"; then
6881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 OBJDUMP=$ac_cv_prog_OBJDUMP
6901 if test -n "$OBJDUMP"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6903 $as_echo "$OBJDUMP" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_OBJDUMP"; then
6912 ac_ct_OBJDUMP=$OBJDUMP
6913 # Extract the first word of "objdump", so it can be a program name with args.
6914 set dummy objdump; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_OBJDUMP"; then
6921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6941 if test -n "$ac_ct_OBJDUMP"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6943 $as_echo "$ac_ct_OBJDUMP" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_OBJDUMP" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6958 OBJDUMP=$ac_ct_OBJDUMP
6961 OBJDUMP="$ac_cv_prog_OBJDUMP"
6964 test -z "$OBJDUMP" && OBJDUMP=objdump
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6976 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6979 lt_cv_file_magic_cmd='$MAGIC_CMD'
6980 lt_cv_file_magic_test_file=
6981 lt_cv_deplibs_check_method='unknown'
6982 # Need to set the preceding variable on all platforms that support
6983 # interlibrary dependencies.
6984 # 'none' -- dependencies not supported.
6985 # `unknown' -- same as none, but documents that we really don't know.
6986 # 'pass_all' -- all dependencies passed with no checks.
6987 # 'test_compile' -- check by making test program.
6988 # 'file_magic [[regex]]' -- check by looking for files in library path
6989 # which responds to the $file_magic_cmd with a given extended regex.
6990 # If you have `file' or equivalent on your system and you're not sure
6991 # whether `pass_all' will *always* work, you probably want this one.
6995 lt_cv_deplibs_check_method=pass_all
6999 lt_cv_deplibs_check_method=pass_all
7003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7004 lt_cv_file_magic_cmd='/usr/bin/file -L'
7005 lt_cv_file_magic_test_file=/shlib/libc.so
7009 # func_win32_libid is a shell function defined in ltmain.sh
7010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7011 lt_cv_file_magic_cmd='func_win32_libid'
7015 # Base MSYS/MinGW do not provide the 'file' command needed by
7016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7017 # unless we find 'file', for example because we are cross-compiling.
7018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7021 lt_cv_file_magic_cmd='func_win32_libid'
7023 # Keep this pattern in sync with the one in func_win32_libid.
7024 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7025 lt_cv_file_magic_cmd='$OBJDUMP -f'
7030 # use the weaker test based on 'objdump'. See mingw*.
7031 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7032 lt_cv_file_magic_cmd='$OBJDUMP -f'
7035 darwin* | rhapsody*)
7036 lt_cv_deplibs_check_method=pass_all
7039 freebsd* | dragonfly*)
7040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7043 # Not sure whether the presence of OpenBSD here was a mistake.
7044 # Let's accept both of them until this is cleared up.
7045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7046 lt_cv_file_magic_cmd=/usr/bin/file
7047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051 lt_cv_deplibs_check_method=pass_all
7056 lt_cv_deplibs_check_method=pass_all
7060 lt_cv_deplibs_check_method=pass_all
7063 hpux10.20* | hpux11*)
7064 lt_cv_file_magic_cmd=/usr/bin/file
7067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7071 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]'
7072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7086 irix5* | irix6* | nonstopux*)
7088 *-32|*"-32 ") libmagic=32-bit;;
7089 *-n32|*"-n32 ") libmagic=N32;;
7090 *-64|*"-64 ") libmagic=64-bit;;
7091 *) libmagic=never-match;;
7093 lt_cv_deplibs_check_method=pass_all
7096 # This must be Linux ELF.
7097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7098 lt_cv_deplibs_check_method=pass_all
7102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7111 lt_cv_file_magic_cmd=/usr/bin/file
7112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7116 lt_cv_deplibs_check_method=pass_all
7120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7127 osf3* | osf4* | osf5*)
7128 lt_cv_deplibs_check_method=pass_all
7132 lt_cv_deplibs_check_method=pass_all
7136 lt_cv_deplibs_check_method=pass_all
7139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7140 lt_cv_deplibs_check_method=pass_all
7144 case $host_vendor in
7146 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]'
7147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7150 lt_cv_deplibs_check_method=pass_all
7153 lt_cv_file_magic_cmd='/bin/file'
7154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7157 lt_cv_file_magic_cmd='/bin/file'
7158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7159 lt_cv_file_magic_test_file=/lib/libc.so
7162 lt_cv_deplibs_check_method=pass_all
7165 lt_cv_deplibs_check_method=pass_all
7171 lt_cv_deplibs_check_method=pass_all
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7181 if test "$build" = "$host"; then
7184 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7187 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7193 file_magic_cmd=$lt_cv_file_magic_cmd
7194 deplibs_check_method=$lt_cv_deplibs_check_method
7195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7226 if test -n "$DLLTOOL"; then
7227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 DLLTOOL=$ac_cv_prog_DLLTOOL
7247 if test -n "$DLLTOOL"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7249 $as_echo "$DLLTOOL" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7257 if test -z "$ac_cv_prog_DLLTOOL"; then
7258 ac_ct_DLLTOOL=$DLLTOOL
7259 # Extract the first word of "dlltool", so it can be a program name with args.
7260 set dummy dlltool; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7266 if test -n "$ac_ct_DLLTOOL"; then
7267 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7287 if test -n "$ac_ct_DLLTOOL"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7289 $as_echo "$ac_ct_DLLTOOL" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7295 if test "x$ac_ct_DLLTOOL" = x; then
7298 case $cross_compiling:$ac_tool_warned in
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7304 DLLTOOL=$ac_ct_DLLTOOL
7307 DLLTOOL="$ac_cv_prog_DLLTOOL"
7310 test -z "$DLLTOOL" && DLLTOOL=dlltool
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7322 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7323 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7326 lt_cv_sharedlib_from_linklib_cmd='unknown'
7329 cygwin* | mingw* | pw32* | cegcc*)
7330 # two different shell functions defined in ltmain.sh
7331 # decide which to use based on capabilities of $DLLTOOL
7332 case `$DLLTOOL --help 2>&1` in
7333 *--identify-strict*)
7334 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7342 # fallback: assume linklib IS sharedlib
7343 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7349 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7359 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_AR+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 if test -n "$AR"; then
7370 ac_cv_prog_AR="$AR" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 if test -n "$AR"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7392 $as_echo "$AR" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7399 test -n "$AR" && break
7402 if test -z "$AR"; then
7406 # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7413 if test -n "$ac_ct_AR"; then
7414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_prog_ac_ct_AR="$ac_prog"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7434 if test -n "$ac_ct_AR"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7436 $as_echo "$ac_ct_AR" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7443 test -n "$ac_ct_AR" && break
7446 if test "x$ac_ct_AR" = x; then
7449 case $cross_compiling:$ac_tool_warned in
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7473 $as_echo_n "checking for archiver @FILE support... " >&6; }
7474 if test "${lt_cv_ar_at_file+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7489 if ac_fn_c_try_compile "$LINENO"; then :
7490 echo conftest.$ac_objext > conftest.lst
7491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7493 (eval $lt_ar_try) 2>&5
7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }
7497 if test "$ac_status" -eq 0; then
7498 # Ensure the archiver fails upon bogus file names.
7499 rm -f conftest.$ac_objext libconftest.a
7500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7501 (eval $lt_ar_try) 2>&5
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }
7505 if test "$ac_status" -ne 0; then
7509 rm -f conftest.* libconftest.a
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7516 $as_echo "$lt_cv_ar_at_file" >&6; }
7518 if test "x$lt_cv_ar_at_file" = xno; then
7521 archiver_list_spec=$lt_cv_ar_at_file
7530 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}strip; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_STRIP+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7538 if test -n "$STRIP"; then
7539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 STRIP=$ac_cv_prog_STRIP
7559 if test -n "$STRIP"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7561 $as_echo "$STRIP" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7569 if test -z "$ac_cv_prog_STRIP"; then
7571 # Extract the first word of "strip", so it can be a program name with args.
7572 set dummy strip; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7578 if test -n "$ac_ct_STRIP"; then
7579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_ac_ct_STRIP="strip"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7599 if test -n "$ac_ct_STRIP"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7601 $as_echo "$ac_ct_STRIP" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7607 if test "x$ac_ct_STRIP" = x; then
7610 case $cross_compiling:$ac_tool_warned in
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7619 STRIP="$ac_cv_prog_STRIP"
7622 test -z "$STRIP" && STRIP=:
7629 if test -n "$ac_tool_prefix"; then
7630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -n "$RANLIB"; then
7638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 RANLIB=$ac_cv_prog_RANLIB
7658 if test -n "$RANLIB"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7660 $as_echo "$RANLIB" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7668 if test -z "$ac_cv_prog_RANLIB"; then
7669 ac_ct_RANLIB=$RANLIB
7670 # Extract the first word of "ranlib", so it can be a program name with args.
7671 set dummy ranlib; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$ac_ct_RANLIB"; then
7678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_ac_ct_RANLIB="ranlib"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7698 if test -n "$ac_ct_RANLIB"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7700 $as_echo "$ac_ct_RANLIB" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7706 if test "x$ac_ct_RANLIB" = x; then
7709 case $cross_compiling:$ac_tool_warned in
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7715 RANLIB=$ac_ct_RANLIB
7718 RANLIB="$ac_cv_prog_RANLIB"
7721 test -z "$RANLIB" && RANLIB=:
7728 # Determine commands to create old-style static archives.
7729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7730 old_postinstall_cmds='chmod 644 $oldlib'
7731 old_postuninstall_cmds=
7733 if test -n "$RANLIB"; then
7736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7747 lock_old_archive_extraction=yes ;;
7749 lock_old_archive_extraction=no ;;
7790 # If no C compiler was specified, use CC.
7793 # If no C compiler flags were specified, use CFLAGS.
7794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7796 # Allow CC to be a program name with arguments.
7800 # Check for command to grab the raw symbol name followed by C symbol from nm.
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7803 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7807 # These are sane defaults that work on at least a few old systems.
7808 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7810 # Character class describing NM global symbol codes.
7811 symcode='[BCDEGRST]'
7813 # Regexp to match symbols that can be accessed directly from C.
7814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7816 # Define system-specific variables.
7821 cygwin* | mingw* | pw32* | cegcc*)
7822 symcode='[ABCDGISTW]'
7825 if test "$host_cpu" = ia64; then
7826 symcode='[ABCDEGRST]'
7830 symcode='[BCDEGRST]'
7833 symcode='[BCDEGQRST]'
7844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7852 # If we're using GNU nm, then use its standard symbol codes.
7853 case `$NM -V 2>&1` in
7854 *GNU* | *'with BFD'*)
7855 symcode='[ABCDGIRSTW]' ;;
7858 # Transform an extracted symbol line into a proper C declaration.
7859 # Some systems (esp. on ia64) link data and code symbols differently,
7860 # so use this general approach.
7861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7863 # Transform an extracted symbol line into symbol name and symbol address
7864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7865 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'"
7867 # Handle CRLF in mingw tool chain
7871 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7875 # Try without a prefix underscore, then with it.
7876 for ac_symprfx in "" "_"; do
7878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7879 symxfrm="\\1 $ac_symprfx\\2 \\2"
7881 # Write the raw and C identifiers.
7882 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7883 # Fake it for dumpbin and say T for any non-static function
7884 # and D for any global variable.
7885 # Also find C++ and __fastcall symbols from MSVC++,
7886 # which start with @ or ?.
7887 lt_cv_sys_global_symbol_pipe="$AWK '"\
7888 " {last_section=section; section=\$ 3};"\
7889 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7890 " \$ 0!~/External *\|/{next};"\
7891 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7892 " {if(hide[section]) next};"\
7893 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7894 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7895 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7896 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7897 " ' prfx=^$ac_symprfx"
7899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7901 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7903 # Check to see that the pipe works correctly.
7907 cat > conftest.$ac_ext <<_LT_EOF
7912 void nm_test_func(void);
7913 void nm_test_func(void){}
7917 int main(){nm_test_var='a';nm_test_func();return(0);}
7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7921 (eval $ac_compile) 2>&5
7923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924 test $ac_status = 0; }; then
7925 # Now try to grab the symbols.
7927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7928 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7931 test $ac_status = 0; } && test -s "$nlist"; then
7932 # Try sorting and uniquifying the output.
7933 if sort "$nlist" | uniq > "$nlist"T; then
7934 mv -f "$nlist"T "$nlist"
7939 # Make sure that we snagged all the symbols we need.
7940 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7941 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7942 cat <<_LT_EOF > conftest.$ac_ext
7943 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7944 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7945 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7946 relocations are performed -- see ld's documentation on pseudo-relocs. */
7947 # define LT_DLSYM_CONST
7948 #elif defined(__osf__)
7949 /* This system does not cope well with relocations in const data. */
7950 # define LT_DLSYM_CONST
7952 # define LT_DLSYM_CONST const
7960 # Now generate the symbol file.
7961 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7963 cat <<_LT_EOF >> conftest.$ac_ext
7965 /* The mapping between symbol names and symbols. */
7966 LT_DLSYM_CONST struct {
7970 lt__PROGRAM__LTX_preloaded_symbols[] =
7972 { "@PROGRAM@", (void *) 0 },
7974 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7975 cat <<\_LT_EOF >> conftest.$ac_ext
7979 /* This works around a problem in FreeBSD linker */
7980 #ifdef FREEBSD_WORKAROUND
7981 static const void *lt_preloaded_setup() {
7982 return lt__PROGRAM__LTX_preloaded_symbols;
7990 # Now try linking the two files.
7991 mv conftest.$ac_objext conftstm.$ac_objext
7992 lt_globsym_save_LIBS=$LIBS
7993 lt_globsym_save_CFLAGS=$CFLAGS
7994 LIBS="conftstm.$ac_objext"
7995 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7997 (eval $ac_link) 2>&5
7999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8003 LIBS=$lt_globsym_save_LIBS
8004 CFLAGS=$lt_globsym_save_CFLAGS
8006 echo "cannot find nm_test_func in $nlist" >&5
8009 echo "cannot find nm_test_var in $nlist" >&5
8012 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8015 echo "$progname: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 rm -rf conftest* conftst*
8020 # Do not use the global_symbol_pipe unless it works.
8021 if test "$pipe_works" = yes; then
8024 lt_cv_sys_global_symbol_pipe=
8030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8031 lt_cv_sys_global_symbol_to_cdecl=
8033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8035 $as_echo "failed" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8038 $as_echo "ok" >&6; }
8041 # Response file support.
8042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8043 nm_file_list_spec='@'
8044 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8045 nm_file_list_spec='@'
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8075 $as_echo_n "checking for sysroot... " >&6; }
8077 # Check whether --with-sysroot was given.
8078 if test "${with_sysroot+set}" = set; then :
8079 withval=$with_sysroot;
8086 case ${with_sysroot} in #(
8088 if test "$GCC" = yes; then
8089 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8093 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8099 $as_echo "${with_sysroot}" >&6; }
8100 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8105 $as_echo "${lt_sysroot:-no}" >&6; }
8111 # Check whether --enable-libtool-lock was given.
8112 if test "${enable_libtool_lock+set}" = set; then :
8113 enableval=$enable_libtool_lock;
8116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8118 # Some flags need to be propagated to the compiler or linker for good
8122 # Find out which ABI we are using.
8123 echo 'int i;' > conftest.$ac_ext
8124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8125 (eval $ac_compile) 2>&5
8127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8128 test $ac_status = 0; }; then
8129 case `/usr/bin/file conftest.$ac_objext` in
8141 # Find out which ABI we are using.
8142 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8144 (eval $ac_compile) 2>&5
8146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147 test $ac_status = 0; }; then
8148 if test "$lt_cv_prog_gnu_ld" = yes; then
8149 case `/usr/bin/file conftest.$ac_objext` in
8151 LD="${LD-ld} -melf32bsmip"
8154 LD="${LD-ld} -melf32bmipn32"
8157 LD="${LD-ld} -melf64bmip"
8161 case `/usr/bin/file conftest.$ac_objext` in
8177 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8178 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8179 # Find out which ABI we are using.
8180 echo 'int i;' > conftest.$ac_ext
8181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8182 (eval $ac_compile) 2>&5
8184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185 test $ac_status = 0; }; then
8186 case `/usr/bin/file conftest.o` in
8189 x86_64-*kfreebsd*-gnu)
8190 LD="${LD-ld} -m elf_i386_fbsd"
8193 LD="${LD-ld} -m elf_i386"
8195 ppc64-*linux*|powerpc64-*linux*)
8196 LD="${LD-ld} -m elf32ppclinux"
8199 LD="${LD-ld} -m elf_s390"
8202 LD="${LD-ld} -m elf32_sparc"
8208 x86_64-*kfreebsd*-gnu)
8209 LD="${LD-ld} -m elf_x86_64_fbsd"
8212 LD="${LD-ld} -m elf_x86_64"
8214 ppc*-*linux*|powerpc*-*linux*)
8215 LD="${LD-ld} -m elf64ppc"
8217 s390*-*linux*|s390*-*tpf*)
8218 LD="${LD-ld} -m elf64_s390"
8221 LD="${LD-ld} -m elf64_sparc"
8231 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8232 SAVE_CFLAGS="$CFLAGS"
8233 CFLAGS="$CFLAGS -belf"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8235 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8236 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8240 ac_cpp='$CPP $CPPFLAGS'
8241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 lt_cv_cc_needs_belf=yes
8259 lt_cv_cc_needs_belf=no
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8271 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8272 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8273 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8274 CFLAGS="$SAVE_CFLAGS"
8278 # Find out which ABI we are using.
8279 echo 'int i;' > conftest.$ac_ext
8280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8281 (eval $ac_compile) 2>&5
8283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8284 test $ac_status = 0; }; then
8285 case `/usr/bin/file conftest.o` in
8287 case $lt_cv_prog_gnu_ld in
8288 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8290 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8302 need_locks="$enable_libtool_lock"
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}mt; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8312 if test -n "$MANIFEST_TOOL"; then
8313 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8333 if test -n "$MANIFEST_TOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8335 $as_echo "$MANIFEST_TOOL" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8343 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8344 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8345 # Extract the first word of "mt", so it can be a program name with args.
8346 set dummy mt; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -n "$ac_ct_MANIFEST_TOOL"; then
8353 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8373 if test -n "$ac_ct_MANIFEST_TOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8375 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8381 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8384 case $cross_compiling:$ac_tool_warned in
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8390 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8393 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8396 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8398 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8399 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8402 lt_cv_path_mainfest_tool=no
8403 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8404 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8405 cat conftest.err >&5
8406 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8407 lt_cv_path_mainfest_tool=yes
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8412 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8413 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8423 rhapsody* | darwin*)
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
8432 if test -n "$DSYMUTIL"; then
8433 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8453 if test -n "$DSYMUTIL"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8455 $as_echo "$DSYMUTIL" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8463 if test -z "$ac_cv_prog_DSYMUTIL"; then
8464 ac_ct_DSYMUTIL=$DSYMUTIL
8465 # Extract the first word of "dsymutil", so it can be a program name with args.
8466 set dummy dsymutil; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$ac_ct_DSYMUTIL"; then
8473 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8493 if test -n "$ac_ct_DSYMUTIL"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8501 if test "x$ac_ct_DSYMUTIL" = x; then
8504 case $cross_compiling:$ac_tool_warned in
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8510 DSYMUTIL=$ac_ct_DSYMUTIL
8513 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8516 if test -n "$ac_tool_prefix"; then
8517 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8524 if test -n "$NMEDIT"; then
8525 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 NMEDIT=$ac_cv_prog_NMEDIT
8545 if test -n "$NMEDIT"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8547 $as_echo "$NMEDIT" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8555 if test -z "$ac_cv_prog_NMEDIT"; then
8556 ac_ct_NMEDIT=$NMEDIT
8557 # Extract the first word of "nmedit", so it can be a program name with args.
8558 set dummy nmedit; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8564 if test -n "$ac_ct_NMEDIT"; then
8565 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8585 if test -n "$ac_ct_NMEDIT"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8587 $as_echo "$ac_ct_NMEDIT" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8593 if test "x$ac_ct_NMEDIT" = x; then
8596 case $cross_compiling:$ac_tool_warned in
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8602 NMEDIT=$ac_ct_NMEDIT
8605 NMEDIT="$ac_cv_prog_NMEDIT"
8608 if test -n "$ac_tool_prefix"; then
8609 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if test "${ac_cv_prog_LIPO+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 if test -n "$LIPO"; then
8617 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 LIPO=$ac_cv_prog_LIPO
8637 if test -n "$LIPO"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8639 $as_echo "$LIPO" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8647 if test -z "$ac_cv_prog_LIPO"; then
8649 # Extract the first word of "lipo", so it can be a program name with args.
8650 set dummy lipo; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$ac_ct_LIPO"; then
8657 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_ac_ct_LIPO="lipo"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8677 if test -n "$ac_ct_LIPO"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8679 $as_echo "$ac_ct_LIPO" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8685 if test "x$ac_ct_LIPO" = x; then
8688 case $cross_compiling:$ac_tool_warned in
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8697 LIPO="$ac_cv_prog_LIPO"
8700 if test -n "$ac_tool_prefix"; then
8701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8702 set dummy ${ac_tool_prefix}otool; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8708 if test -n "$OTOOL"; then
8709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 OTOOL=$ac_cv_prog_OTOOL
8729 if test -n "$OTOOL"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8731 $as_echo "$OTOOL" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8739 if test -z "$ac_cv_prog_OTOOL"; then
8741 # Extract the first word of "otool", so it can be a program name with args.
8742 set dummy otool; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 if test -n "$ac_ct_OTOOL"; then
8749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_prog_ac_ct_OTOOL="otool"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8769 if test -n "$ac_ct_OTOOL"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8771 $as_echo "$ac_ct_OTOOL" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8777 if test "x$ac_ct_OTOOL" = x; then
8780 case $cross_compiling:$ac_tool_warned in
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8784 ac_tool_warned=yes ;;
8789 OTOOL="$ac_cv_prog_OTOOL"
8792 if test -n "$ac_tool_prefix"; then
8793 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 if test -n "$OTOOL64"; then
8801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 OTOOL64=$ac_cv_prog_OTOOL64
8821 if test -n "$OTOOL64"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8823 $as_echo "$OTOOL64" >&6; }
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8831 if test -z "$ac_cv_prog_OTOOL64"; then
8832 ac_ct_OTOOL64=$OTOOL64
8833 # Extract the first word of "otool64", so it can be a program name with args.
8834 set dummy otool64; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
8840 if test -n "$ac_ct_OTOOL64"; then
8841 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_prog_ac_ct_OTOOL64="otool64"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8861 if test -n "$ac_ct_OTOOL64"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8863 $as_echo "$ac_ct_OTOOL64" >&6; }
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8869 if test "x$ac_ct_OTOOL64" = x; then
8872 case $cross_compiling:$ac_tool_warned in
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8876 ac_tool_warned=yes ;;
8878 OTOOL64=$ac_ct_OTOOL64
8881 OTOOL64="$ac_cv_prog_OTOOL64"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8911 $as_echo_n "checking for -single_module linker flag... " >&6; }
8912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8915 lt_cv_apple_cc_single_mod=no
8916 if test -z "${LT_MULTI_MODULE}"; then
8917 # By default we will add the -single_module flag. You can override
8918 # by either setting the environment variable LT_MULTI_MODULE
8919 # non-empty at configure time, or by adding -multi_module to the
8921 rm -rf libconftest.dylib*
8922 echo "int foo(void){return 1;}" > conftest.c
8923 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8924 -dynamiclib -Wl,-single_module conftest.c" >&5
8925 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8926 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8928 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8929 lt_cv_apple_cc_single_mod=yes
8931 cat conftest.err >&5
8933 rm -rf libconftest.dylib*
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8944 lt_cv_ld_exported_symbols_list=no
8945 save_LDFLAGS=$LDFLAGS
8946 echo "_main" > conftest.sym
8947 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 lt_cv_ld_exported_symbols_list=yes
8962 lt_cv_ld_exported_symbols_list=no
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 LDFLAGS="$save_LDFLAGS"
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8972 $as_echo_n "checking for -force_load linker flag... " >&6; }
8973 if test "${lt_cv_ld_force_load+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 lt_cv_ld_force_load=no
8977 cat > conftest.c << _LT_EOF
8978 int forced_loaded() { return 2;}
8980 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8981 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8982 echo "$AR cru libconftest.a conftest.o" >&5
8983 $AR cru libconftest.a conftest.o 2>&5
8984 echo "$RANLIB libconftest.a" >&5
8985 $RANLIB libconftest.a 2>&5
8986 cat > conftest.c << _LT_EOF
8987 int main() { return 0;}
8989 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8990 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8992 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8993 lt_cv_ld_force_load=yes
8995 cat conftest.err >&5
8997 rm -f conftest.err libconftest.a conftest conftest.c
8998 rm -rf conftest.dSYM
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9002 $as_echo "$lt_cv_ld_force_load" >&6; }
9004 rhapsody* | darwin1.[012])
9005 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9008 darwin*) # darwin 5.x on
9009 # if running on 10.5 or later, the deployment target defaults
9010 # to the OS version, if on x86, and 10.4, the deployment
9011 # target defaults to 10.4. Don't you love it?
9012 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9013 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9022 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9023 _lt_dar_single_mod='$single_module'
9025 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9026 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9028 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9030 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9031 _lt_dsymutil='~$DSYMUTIL $lib || :'
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9039 $as_echo_n "checking for ANSI C header files... " >&6; }
9040 if test "${ac_cv_header_stdc+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 ac_cv_header_stdc=yes
9061 ac_cv_header_stdc=no
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 if test $ac_cv_header_stdc = yes; then
9066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9073 $EGREP "memchr" >/dev/null 2>&1; then :
9076 ac_cv_header_stdc=no
9082 if test $ac_cv_header_stdc = yes; then
9083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9090 $EGREP "free" >/dev/null 2>&1; then :
9093 ac_cv_header_stdc=no
9099 if test $ac_cv_header_stdc = yes; then
9100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9101 if test "$cross_compiling" = yes; then :
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9108 #if ((' ' & 0x0FF) == 0x020)
9109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9112 # define ISLOWER(c) \
9113 (('a' <= (c) && (c) <= 'i') \
9114 || ('j' <= (c) && (c) <= 'r') \
9115 || ('s' <= (c) && (c) <= 'z'))
9116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9124 for (i = 0; i < 256; i++)
9125 if (XOR (islower (i), ISLOWER (i))
9126 || toupper (i) != TOUPPER (i))
9131 if ac_fn_c_try_run "$LINENO"; then :
9134 ac_cv_header_stdc=no
9136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9137 conftest.$ac_objext conftest.beam conftest.$ac_ext
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9143 $as_echo "$ac_cv_header_stdc" >&6; }
9144 if test $ac_cv_header_stdc = yes; then
9146 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9152 inttypes.h stdint.h unistd.h
9154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9158 cat >>confdefs.h <<_ACEOF
9159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167 for ac_header in dlfcn.h
9169 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9171 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9172 cat >>confdefs.h <<_ACEOF
9173 #define HAVE_DLFCN_H 1
9183 func_stripname_cnf ()
9186 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9187 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9189 } # func_stripname_cnf
9196 # Check whether --enable-shared was given.
9197 if test "${enable_shared+set}" = set; then :
9198 enableval=$enable_shared; p=${PACKAGE-default}
9200 yes) enable_shared=yes ;;
9201 no) enable_shared=no ;;
9204 # Look at the argument we got. We use all the common list separators.
9205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9206 for pkg in $enableval; do
9208 if test "X$pkg" = "X$p"; then
9225 # Check whether --enable-static was given.
9226 if test "${enable_static+set}" = set; then :
9227 enableval=$enable_static; p=${PACKAGE-default}
9229 yes) enable_static=yes ;;
9230 no) enable_static=no ;;
9233 # Look at the argument we got. We use all the common list separators.
9234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9235 for pkg in $enableval; do
9237 if test "X$pkg" = "X$p"; then
9266 # Check whether --with-pic was given.
9267 if test "${with_pic+set}" = set; then :
9268 withval=$with_pic; pic_mode="$withval"
9274 test -z "$pic_mode" && pic_mode=default
9282 # Check whether --enable-fast-install was given.
9283 if test "${enable_fast_install+set}" = set; then :
9284 enableval=$enable_fast_install; p=${PACKAGE-default}
9286 yes) enable_fast_install=yes ;;
9287 no) enable_fast_install=no ;;
9289 enable_fast_install=no
9290 # Look at the argument we got. We use all the common list separators.
9291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9292 for pkg in $enableval; do
9294 if test "X$pkg" = "X$p"; then
9295 enable_fast_install=yes
9302 enable_fast_install=yes
9315 # This can be used to rebuild libtool when needed
9316 LIBTOOL_DEPS="$ltmain"
9318 # Always use our own libtool.
9319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9346 test -z "$LN_S" && LN_S="ln -s"
9361 if test -n "${ZSH_VERSION+set}" ; then
9362 setopt NO_GLOB_SUBST
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9366 $as_echo_n "checking for objdir... " >&6; }
9367 if test "${lt_cv_objdir+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 rm -f .libs 2>/dev/null
9371 mkdir .libs 2>/dev/null
9372 if test -d .libs; then
9375 # MS-DOS does not allow filenames that begin with a dot.
9378 rmdir .libs 2>/dev/null
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9381 $as_echo "$lt_cv_objdir" >&6; }
9382 objdir=$lt_cv_objdir
9388 cat >>confdefs.h <<_ACEOF
9389 #define LT_OBJDIR "$lt_cv_objdir/"
9397 # AIX sometimes has problems with the GCC collect2 program. For some
9398 # reason, if we set the COLLECT_NAMES environment variable, the problems
9399 # vanish in a puff of smoke.
9400 if test "X${COLLECT_NAMES+set}" != Xset; then
9402 export COLLECT_NAMES
9409 can_build_shared=yes
9411 # All known linkers require a `.a' archive for static linking (except MSVC,
9412 # which needs '.lib').
9415 with_gnu_ld="$lt_cv_prog_gnu_ld"
9418 old_CFLAGS="$CFLAGS"
9420 # Set sane defaults for various variables
9421 test -z "$CC" && CC=cc
9422 test -z "$LTCC" && LTCC=$CC
9423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9424 test -z "$LD" && LD=ld
9425 test -z "$ac_objext" && ac_objext=o
9427 for cc_temp in $compiler""; do
9429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9438 # Only perform the check for file, if the check method requires it
9439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9440 case $deplibs_check_method in
9442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9453 lt_save_MAGIC_CMD="$MAGIC_CMD"
9454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9456 for ac_dir in $ac_dummy; do
9458 test -z "$ac_dir" && ac_dir=.
9459 if test -f $ac_dir/${ac_tool_prefix}file; then
9460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9461 if test -n "$file_magic_test_file"; then
9462 case $deplibs_check_method in
9464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9467 $EGREP "$file_magic_regex" > /dev/null; then
9472 *** Warning: the command libtool uses to detect shared libraries,
9473 *** $file_magic_cmd, produces output that libtool cannot recognize.
9474 *** The result is that libtool may fail to recognize shared libraries
9475 *** as such. This will affect the creation of libtool libraries that
9476 *** depend on shared libraries, but programs linked with such libtool
9477 *** libraries will work regardless of this problem. Nevertheless, you
9478 *** may want to report the problem to your system manager and/or to
9479 *** bug-libtool@gnu.org
9489 MAGIC_CMD="$lt_save_MAGIC_CMD"
9494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9495 if test -n "$MAGIC_CMD"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9497 $as_echo "$MAGIC_CMD" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9507 if test -z "$lt_cv_path_MAGIC_CMD"; then
9508 if test -n "$ac_tool_prefix"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9510 $as_echo_n "checking for file... " >&6; }
9511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9519 lt_save_MAGIC_CMD="$MAGIC_CMD"
9520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9522 for ac_dir in $ac_dummy; do
9524 test -z "$ac_dir" && ac_dir=.
9525 if test -f $ac_dir/file; then
9526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9527 if test -n "$file_magic_test_file"; then
9528 case $deplibs_check_method in
9530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9533 $EGREP "$file_magic_regex" > /dev/null; then
9538 *** Warning: the command libtool uses to detect shared libraries,
9539 *** $file_magic_cmd, produces output that libtool cannot recognize.
9540 *** The result is that libtool may fail to recognize shared libraries
9541 *** as such. This will affect the creation of libtool libraries that
9542 *** depend on shared libraries, but programs linked with such libtool
9543 *** libraries will work regardless of this problem. Nevertheless, you
9544 *** may want to report the problem to your system manager and/or to
9545 *** bug-libtool@gnu.org
9555 MAGIC_CMD="$lt_save_MAGIC_CMD"
9560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9561 if test -n "$MAGIC_CMD"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9563 $as_echo "$MAGIC_CMD" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9579 # Use C for the default configuration in the libtool script
9583 ac_cpp='$CPP $CPPFLAGS'
9584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 # Source file extension for C test sources.
9592 # Object file extension for compiled C test sources.
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;"
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(){return(0);}'
9608 # If no C compiler was specified, use CC.
9611 # If no C compiler flags were specified, use CFLAGS.
9612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9614 # Allow CC to be a program name with arguments.
9617 # Save the default compiler, since it gets overwritten when the other
9618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9619 compiler_DEFAULT=$CC
9621 # save warnings/boilerplate of simple test code
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_compiler_boilerplate=`cat conftest.err`
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9631 _lt_linker_boilerplate=`cat conftest.err`
9636 ## There is no encapsulation within the following macros, do not change
9637 ## the running order or otherwise move them around unless you know exactly
9638 ## what you are doing...
9639 if test -n "$compiler"; then
9641 lt_prog_compiler_no_builtin_flag=
9643 if test "$GCC" = yes; then
9644 case $cc_basename in
9646 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9648 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9652 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9656 lt_cv_prog_compiler_rtti_exceptions=no
9657 ac_outfile=conftest.$ac_objext
9658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9659 lt_compiler_flag="-fno-rtti -fno-exceptions"
9660 # Insert the option either (1) after the last *FLAGS variable, or
9661 # (2) before a word containing "conftest.", or (3) at the end.
9662 # Note that $ac_compile itself does not contain backslashes and begins
9663 # with a dollar sign (not a hyphen), so the echo should work correctly.
9664 # The option is referenced via a variable to avoid confusing sed.
9665 lt_compile=`echo "$ac_compile" | $SED \
9666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9668 -e 's:$: $lt_compiler_flag:'`
9669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9670 (eval "$lt_compile" 2>conftest.err)
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 if (exit $ac_status) && test -s "$ac_outfile"; then
9675 # The compiler can only warn and ignore the option if not recognized
9676 # So say no if there are warnings other than the usual output.
9677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9680 lt_cv_prog_compiler_rtti_exceptions=yes
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9687 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9702 lt_prog_compiler_wl=
9703 lt_prog_compiler_pic=
9704 lt_prog_compiler_static=
9707 if test "$GCC" = yes; then
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_static='-static'
9713 # All AIX code is PIC.
9714 if test "$host_cpu" = ia64; then
9715 # AIX 5 now supports IA64 processor
9716 lt_prog_compiler_static='-Bstatic'
9723 # see comment about AmigaOS4 .so support
9724 lt_prog_compiler_pic='-fPIC'
9727 # FIXME: we need at least 68020 code to build shared libraries, but
9728 # adding the `-m68020' flag to GCC prevents building anything better,
9730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736 # PIC is the default for these OSes.
9739 mingw* | cygwin* | pw32* | os2* | cegcc*)
9740 # This hack is so that the source file can tell whether it is being
9741 # built for inclusion in a dll (and should export symbols for example).
9742 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743 # (--disable-auto-import) libraries
9744 lt_prog_compiler_pic='-DDLL_EXPORT'
9747 darwin* | rhapsody*)
9748 # PIC is the default on this platform
9749 # Common symbols not allowed in MH_DYLIB files
9750 lt_prog_compiler_pic='-fno-common'
9754 # PIC is the default for Haiku.
9755 # The "-static" flag exists, but is broken.
9756 lt_prog_compiler_static=
9760 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9761 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9762 # sets the default TLS model and affects inlining.
9768 lt_prog_compiler_pic='-fPIC'
9774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9775 # Instead, we relocate shared libraries at runtime.
9779 # Just because we use GCC doesn't mean we suddenly get shared libraries
9780 # on systems that don't support them.
9781 lt_prog_compiler_can_build_shared=no
9786 # QNX uses GNU C++, but need to define -shared option too, otherwise
9788 lt_prog_compiler_pic='-fPIC -shared'
9792 if test -d /usr/nec; then
9793 lt_prog_compiler_pic=-Kconform_pic
9798 lt_prog_compiler_pic='-fPIC'
9802 case $cc_basename in
9803 nvcc*) # Cuda Compiler Driver 2.2
9804 lt_prog_compiler_wl='-Xlinker '
9805 lt_prog_compiler_pic='-Xcompiler -fPIC'
9809 # PORTME Check for flag to pass linker flags through the system compiler.
9812 lt_prog_compiler_wl='-Wl,'
9813 if test "$host_cpu" = ia64; then
9814 # AIX 5 now supports IA64 processor
9815 lt_prog_compiler_static='-Bstatic'
9817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9821 mingw* | cygwin* | pw32* | os2* | cegcc*)
9822 # This hack is so that the source file can tell whether it is being
9823 # built for inclusion in a dll (and should export symbols for example).
9824 lt_prog_compiler_pic='-DDLL_EXPORT'
9827 hpux9* | hpux10* | hpux11*)
9828 lt_prog_compiler_wl='-Wl,'
9829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9836 lt_prog_compiler_pic='+Z'
9839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9840 lt_prog_compiler_static='${wl}-a ${wl}archive'
9843 irix5* | irix6* | nonstopux*)
9844 lt_prog_compiler_wl='-Wl,'
9845 # PIC (with -KPIC) is the default.
9846 lt_prog_compiler_static='-non_shared'
9849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9850 case $cc_basename in
9851 # old Intel for x86_64 which still supported -KPIC.
9853 lt_prog_compiler_wl='-Wl,'
9854 lt_prog_compiler_pic='-KPIC'
9855 lt_prog_compiler_static='-static'
9857 # icc used to be incompatible with GCC.
9858 # ICC 10 doesn't accept -KPIC any more.
9860 lt_prog_compiler_wl='-Wl,'
9861 lt_prog_compiler_pic='-fPIC'
9862 lt_prog_compiler_static='-static'
9864 # Lahey Fortran 8.1.
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='--shared'
9868 lt_prog_compiler_static='--static'
9871 # NAG Fortran compiler
9872 lt_prog_compiler_wl='-Wl,-Wl,,'
9873 lt_prog_compiler_pic='-PIC'
9874 lt_prog_compiler_static='-Bstatic'
9876 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9877 # Portland Group compilers (*not* the Pentium gcc compiler,
9878 # which looks to be a dead project)
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-fpic'
9881 lt_prog_compiler_static='-Bstatic'
9884 lt_prog_compiler_wl='-Wl,'
9885 # All Alpha code is PIC.
9886 lt_prog_compiler_static='-non_shared'
9888 xl* | bgxl* | bgf* | mpixl*)
9889 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9890 lt_prog_compiler_wl='-Wl,'
9891 lt_prog_compiler_pic='-qpic'
9892 lt_prog_compiler_static='-qstaticlink'
9895 case `$CC -V 2>&1 | sed 5q` in
9896 *Sun\ F* | *Sun*Fortran*)
9897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-Bstatic'
9900 lt_prog_compiler_wl=''
9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
9906 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-KPIC'
9915 lt_prog_compiler_static='-Bstatic'
9919 # QNX uses GNU C++, but need to define -shared option too, otherwise
9921 lt_prog_compiler_pic='-fPIC -shared'
9924 osf3* | osf4* | osf5*)
9925 lt_prog_compiler_wl='-Wl,'
9926 # All OSF/1 code is PIC.
9927 lt_prog_compiler_static='-non_shared'
9931 lt_prog_compiler_static='-non_shared'
9935 lt_prog_compiler_pic='-KPIC'
9936 lt_prog_compiler_static='-Bstatic'
9937 case $cc_basename in
9938 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9939 lt_prog_compiler_wl='-Qoption ld ';;
9941 lt_prog_compiler_wl='-Wl,';;
9946 lt_prog_compiler_wl='-Qoption ld '
9947 lt_prog_compiler_pic='-PIC'
9948 lt_prog_compiler_static='-Bstatic'
9951 sysv4 | sysv4.2uw2* | sysv4.3*)
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9958 if test -d /usr/nec ;then
9959 lt_prog_compiler_pic='-Kconform_pic'
9960 lt_prog_compiler_static='-Bstatic'
9964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_pic='-KPIC'
9967 lt_prog_compiler_static='-Bstatic'
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_can_build_shared=no
9976 lt_prog_compiler_pic='-pic'
9977 lt_prog_compiler_static='-Bstatic'
9981 lt_prog_compiler_can_build_shared=no
9987 # For platforms which do not support PIC, -DPIC is meaningless:
9989 lt_prog_compiler_pic=
9992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9997 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9998 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10001 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10004 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10005 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10008 # Check to make sure the PIC flag actually works.
10010 if test -n "$lt_prog_compiler_pic"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10013 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
10016 lt_cv_prog_compiler_pic_works=no
10017 ac_outfile=conftest.$ac_objext
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10020 # Insert the option either (1) after the last *FLAGS variable, or
10021 # (2) before a word containing "conftest.", or (3) at the end.
10022 # Note that $ac_compile itself does not contain backslashes and begins
10023 # with a dollar sign (not a hyphen), so the echo should work correctly.
10024 # The option is referenced via a variable to avoid confusing sed.
10025 lt_compile=`echo "$ac_compile" | $SED \
10026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028 -e 's:$: $lt_compiler_flag:'`
10029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10030 (eval "$lt_compile" 2>conftest.err)
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 if (exit $ac_status) && test -s "$ac_outfile"; then
10035 # The compiler can only warn and ignore the option if not recognized
10036 # So say no if there are warnings other than the usual output.
10037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_pic_works=yes
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10047 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10049 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10050 case $lt_prog_compiler_pic in
10052 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10055 lt_prog_compiler_pic=
10056 lt_prog_compiler_can_build_shared=no
10072 # Check to make sure the static flag actually works.
10074 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10076 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10077 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10080 lt_cv_prog_compiler_static_works=no
10081 save_LDFLAGS="$LDFLAGS"
10082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10085 # The linker can only warn and ignore the option if not recognized
10086 # So say no if there are warnings
10087 if test -s conftest.err; then
10088 # Append any errors to the config.log.
10089 cat conftest.err 1>&5
10090 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10092 if diff conftest.exp conftest.er2 >/dev/null; then
10093 lt_cv_prog_compiler_static_works=yes
10096 lt_cv_prog_compiler_static_works=yes
10100 LDFLAGS="$save_LDFLAGS"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10104 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10106 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10109 lt_prog_compiler_static=
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10120 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10123 lt_cv_prog_compiler_c_o=no
10124 $RM -r conftest 2>/dev/null
10128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10130 lt_compiler_flag="-o out/conftest2.$ac_objext"
10131 # Insert the option either (1) after the last *FLAGS variable, or
10132 # (2) before a word containing "conftest.", or (3) at the end.
10133 # Note that $ac_compile itself does not contain backslashes and begins
10134 # with a dollar sign (not a hyphen), so the echo should work correctly.
10135 lt_compile=`echo "$ac_compile" | $SED \
10136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10138 -e 's:$: $lt_compiler_flag:'`
10139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10140 (eval "$lt_compile" 2>out/conftest.err)
10142 cat out/conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10146 # The compiler can only warn and ignore the option if not recognized
10147 # So say no if there are warnings
10148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10151 lt_cv_prog_compiler_c_o=yes
10156 # SGI C++ compiler will create directory out/ii_files/ for
10157 # template instantiation
10158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10159 $RM out/* && rmdir out
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10166 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10175 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 lt_cv_prog_compiler_c_o=no
10179 $RM -r conftest 2>/dev/null
10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10185 lt_compiler_flag="-o out/conftest2.$ac_objext"
10186 # Insert the option either (1) after the last *FLAGS variable, or
10187 # (2) before a word containing "conftest.", or (3) at the end.
10188 # Note that $ac_compile itself does not contain backslashes and begins
10189 # with a dollar sign (not a hyphen), so the echo should work correctly.
10190 lt_compile=`echo "$ac_compile" | $SED \
10191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10193 -e 's:$: $lt_compiler_flag:'`
10194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10195 (eval "$lt_compile" 2>out/conftest.err)
10197 cat out/conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10201 # The compiler can only warn and ignore the option if not recognized
10202 # So say no if there are warnings
10203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10206 lt_cv_prog_compiler_c_o=yes
10211 # SGI C++ compiler will create directory out/ii_files/ for
10212 # template instantiation
10213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10214 $RM out/* && rmdir out
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10221 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10226 hard_links="nottested"
10227 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10228 # do not overwrite the value of need_locks provided by the user
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10230 $as_echo_n "checking if we can lock with hard links... " >&6; }
10233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10235 ln conftest.a conftest.b 2>&5 || hard_links=no
10236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10238 $as_echo "$hard_links" >&6; }
10239 if test "$hard_links" = no; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10241 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10254 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10257 allow_undefined_flag=
10258 always_export_symbols=no
10260 archive_expsym_cmds=
10261 compiler_needs_object=no
10262 enable_shared_with_static_runtimes=no
10263 export_dynamic_flag_spec=
10264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10265 hardcode_automatic=no
10267 hardcode_direct_absolute=no
10268 hardcode_libdir_flag_spec=
10269 hardcode_libdir_flag_spec_ld=
10270 hardcode_libdir_separator=
10271 hardcode_minus_L=no
10272 hardcode_shlibpath_var=unsupported
10274 link_all_deplibs=unknown
10276 module_expsym_cmds=
10277 old_archive_from_new_cmds=
10278 old_archive_from_expsyms_cmds=
10279 thread_safe_flag_spec=
10280 whole_archive_flag_spec=
10281 # include_expsyms should be a list of space-separated symbols to be *always*
10282 # included in the symbol list
10284 # exclude_expsyms can be an extended regexp of symbols to exclude
10285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10287 # as well as any symbol that contains `d'.
10288 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10290 # platforms (ab)use it in PIC code, but their linkers get confused if
10291 # the symbol is explicitly referenced. Since portable code cannot
10292 # rely on this symbol name, it's probably fine to never include it in
10293 # preloaded symbol tables.
10294 # Exclude shared library initialization/finalization symbols.
10295 extract_expsyms_cmds=
10298 cygwin* | mingw* | pw32* | cegcc*)
10299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10300 # When not using gcc, we currently assume that we are using
10301 # Microsoft Visual C++.
10302 if test "$GCC" != yes; then
10307 # we just hope/assume this is gcc and not c89 (= MSVC++)
10317 # On some targets, GNU ld is compatible enough with the native linker
10318 # that we're better off using the native interface for both.
10319 lt_use_gnu_ld_interface=no
10320 if test "$with_gnu_ld" = yes; then
10323 # The AIX port of GNU ld has always aspired to compatibility
10324 # with the native linker. However, as the warning in the GNU ld
10325 # block says, versions before 2.19.5* couldn't really create working
10326 # shared libraries, regardless of the interface used.
10327 case `$LD -v 2>&1` in
10328 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10329 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10330 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10332 lt_use_gnu_ld_interface=yes
10337 lt_use_gnu_ld_interface=yes
10342 if test "$lt_use_gnu_ld_interface" = yes; then
10343 # If archive_cmds runs LD, not CC, wlarc should be empty
10346 # Set some defaults for GNU ld with shared library support. These
10347 # are reset later if shared libraries are not supported. Putting them
10348 # here allows them to be overridden if necessary.
10349 runpath_var=LD_RUN_PATH
10350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10351 export_dynamic_flag_spec='${wl}--export-dynamic'
10352 # ancient GNU ld didn't support --whole-archive et. al.
10353 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10354 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10356 whole_archive_flag_spec=
10358 supports_anon_versioning=no
10359 case `$LD -v 2>&1` in
10360 *GNU\ gold*) supports_anon_versioning=yes ;;
10361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10364 *\ 2.11.*) ;; # other 2.11 versions
10365 *) supports_anon_versioning=yes ;;
10368 # See if GNU ld supports shared libraries.
10371 # On AIX/PPC, the GNU linker is very broken
10372 if test "$host_cpu" != ia64; then
10376 *** Warning: the GNU linker, at least up to release 2.19, is reported
10377 *** to be unable to reliably create shared libraries on AIX.
10378 *** Therefore, libtool is disabling shared libraries support. If you
10379 *** really care for shared libraries, you may want to install binutils
10380 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10381 *** You will then need to restart the configuration process.
10390 # see comment about AmigaOS4 .so support
10391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392 archive_expsym_cmds=''
10395 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)'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_minus_L=yes
10403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10404 allow_undefined_flag=unsupported
10405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10406 # support --undefined. This deserves some investigation. FIXME
10407 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 cygwin* | mingw* | pw32* | cegcc*)
10414 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10415 # as there is no search path for DLLs.
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 export_dynamic_flag_spec='${wl}--export-all-symbols'
10418 allow_undefined_flag=unsupported
10419 always_export_symbols=no
10420 enable_shared_with_static_runtimes=yes
10421 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'
10422 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10424 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10426 # If the export-symbols file already is a .def file (1st line
10427 # is EXPORTS), use it as is; otherwise, prepend...
10428 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10429 cp $export_symbols $output_objdir/$soname.def;
10431 echo EXPORTS > $output_objdir/$soname.def;
10432 cat $export_symbols >> $output_objdir/$soname.def;
10434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10442 link_all_deplibs=yes
10447 hardcode_shlibpath_var=no
10448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10449 export_dynamic_flag_spec='${wl}-E'
10450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10451 # Instead, shared libraries are loaded at an image base (0x10000000 by
10452 # default) and relocated if they conflict, which is a slow very memory
10453 # consuming and fragmenting process. To avoid this, we pick a random,
10454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10457 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'
10460 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10462 if test "$host_os" = linux-dietlibc; then
10463 case $cc_basename in
10464 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10467 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10468 && test "$tmp_diet" = no
10470 tmp_addflag=' $pic_flag'
10471 tmp_sharedflag='-shared'
10472 case $cc_basename,$host_cpu in
10473 pgcc*) # Portland Group C compiler
10474 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'
10475 tmp_addflag=' $pic_flag'
10477 pgf77* | pgf90* | pgf95* | pgfortran*)
10478 # Portland Group f77 and f90 compilers
10479 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'
10480 tmp_addflag=' $pic_flag -Mnomain' ;;
10481 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10482 tmp_addflag=' -i_dynamic' ;;
10483 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10484 tmp_addflag=' -i_dynamic -nofor_main' ;;
10485 ifc* | ifort*) # Intel Fortran compiler
10486 tmp_addflag=' -nofor_main' ;;
10487 lf95*) # Lahey Fortran 8.1
10488 whole_archive_flag_spec=
10489 tmp_sharedflag='--shared' ;;
10490 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10491 tmp_sharedflag='-qmkshrobj'
10493 nvcc*) # Cuda Compiler Driver 2.2
10494 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10495 compiler_needs_object=yes
10498 case `$CC -V 2>&1 | sed 5q` in
10499 *Sun\ C*) # Sun C 5.9
10500 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'
10501 compiler_needs_object=yes
10502 tmp_sharedflag='-G' ;;
10503 *Sun\ F*) # Sun Fortran 8.3
10504 tmp_sharedflag='-G' ;;
10506 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10508 if test "x$supports_anon_versioning" = xyes; then
10509 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10511 echo "local: *; };" >> $output_objdir/$libname.ver~
10512 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10515 case $cc_basename in
10516 xlf* | bgf* | bgxlf* | mpixlf*)
10517 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10518 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10519 hardcode_libdir_flag_spec=
10520 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10521 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10522 if test "x$supports_anon_versioning" = xyes; then
10523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525 echo "local: *; };" >> $output_objdir/$libname.ver~
10526 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10537 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10546 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10551 *** create shared libraries on Solaris systems. Therefore, libtool
10552 *** is disabling shared libraries support. We urge you to upgrade GNU
10553 *** binutils to release 2.9.1 or newer. Another option is to modify
10554 *** your PATH or compiler configuration so that the native linker is
10555 *** used, and then restart.
10558 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10567 case `$LD -v 2>&1` in
10568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10573 *** reliably create shared libraries on SCO systems. Therefore, libtool
10574 *** is disabling shared libraries support. We urge you to upgrade GNU
10575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10576 *** your PATH or compiler configuration so that the native linker is
10577 *** used, and then restart.
10582 # For security reasons, it is highly recommended that you always
10583 # use absolute paths for naming shared libraries, and exclude the
10584 # DT_RUNPATH tag from executables and libraries. But doing so
10585 # requires that you compile everything twice, which is a pain.
10586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes
10601 hardcode_shlibpath_var=no
10605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10614 if test "$ld_shlibs" = no; then
10616 hardcode_libdir_flag_spec=
10617 export_dynamic_flag_spec=
10618 whole_archive_flag_spec=
10621 # PORTME fill in a description of your system's linker (not GNU ld)
10624 allow_undefined_flag=unsupported
10625 always_export_symbols=yes
10626 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'
10627 # Note: this linker hardcodes the directories in LIBPATH if there
10628 # are no directories specified by -L.
10629 hardcode_minus_L=yes
10630 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10631 # Neither direct hardcoding nor static linking is supported with a
10633 hardcode_direct=unsupported
10638 if test "$host_cpu" = ia64; then
10639 # On IA64, the linker does run time linking by default, so we don't
10640 # have to do anything special.
10641 aix_use_runtimelinking=no
10642 exp_sym_flag='-Bexport'
10645 # If we're using GNU nm, then we don't want the "-C" option.
10646 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10647 # Also, AIX nm treats weak defined symbols like other global
10648 # defined symbols, whereas GNU nm marks them as "W".
10649 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10650 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'
10652 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'
10654 aix_use_runtimelinking=no
10656 # Test if we are trying to use run time linking or normal
10657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10658 # need to do runtime linking.
10659 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10660 for ld_flag in $LDFLAGS; do
10661 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10662 aix_use_runtimelinking=yes
10669 exp_sym_flag='-bexport'
10670 no_entry_flag='-bnoentry'
10673 # When large executables or shared objects are built, AIX ld can
10674 # have problems creating the table of contents. If linking a library
10675 # or program results in "error TOC overflow" add -mminimal-toc to
10676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10680 hardcode_direct=yes
10681 hardcode_direct_absolute=yes
10682 hardcode_libdir_separator=':'
10683 link_all_deplibs=yes
10684 file_list_spec='${wl}-f,'
10686 if test "$GCC" = yes; then
10687 case $host_os in aix4.[012]|aix4.[012].*)
10688 # We only want to do this on AIX 4.2 and lower, the check
10689 # below for broken collect2 doesn't work under 4.3+
10690 collect2name=`${CC} -print-prog-name=collect2`
10691 if test -f "$collect2name" &&
10692 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10694 # We have reworked collect2
10697 # We have old collect2
10698 hardcode_direct=unsupported
10699 # It fails to find uninstalled libraries when the uninstalled
10700 # path is not listed in the libpath. Setting hardcode_minus_L
10701 # to unsupported forces relinking
10702 hardcode_minus_L=yes
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_libdir_separator=
10708 shared_flag='-shared'
10709 if test "$aix_use_runtimelinking" = yes; then
10710 shared_flag="$shared_flag "'${wl}-G'
10714 if test "$host_cpu" = ia64; then
10715 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10716 # chokes on -Wl,-G. The following line is correct:
10719 if test "$aix_use_runtimelinking" = yes; then
10720 shared_flag='${wl}-G'
10722 shared_flag='${wl}-bM:SRE'
10727 export_dynamic_flag_spec='${wl}-bexpall'
10728 # It seems that -bexpall does not export symbols beginning with
10729 # underscore (_), so it is better to generate a list of symbols to export.
10730 always_export_symbols=yes
10731 if test "$aix_use_runtimelinking" = yes; then
10732 # Warning - without using the other runtime loading flags (-brtl),
10733 # -berok will link without error, but may produce a broken library.
10734 allow_undefined_flag='-berok'
10735 # Determine the default libpath from the value encoded in an
10736 # empty executable.
10737 if test "${lt_cv_aix_libpath+set}" = set; then
10738 aix_libpath=$lt_cv_aix_libpath
10740 if test "${lt_cv_aix_libpath_+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10754 if ac_fn_c_try_link "$LINENO"; then :
10756 lt_aix_libpath_sed='
10757 /Import File Strings/,/^$/ {
10759 s/^0 *\([^ ]*\) *$/\1/
10763 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10764 # Check for a 64-bit object if we didn't find anything.
10765 if test -z "$lt_cv_aix_libpath_"; then
10766 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 if test -z "$lt_cv_aix_libpath_"; then
10772 lt_cv_aix_libpath_="/usr/lib:/lib"
10777 aix_libpath=$lt_cv_aix_libpath_
10780 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10781 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"
10783 if test "$host_cpu" = ia64; then
10784 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10785 allow_undefined_flag="-z nodefs"
10786 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"
10788 # Determine the default libpath from the value encoded in an
10789 # empty executable.
10790 if test "${lt_cv_aix_libpath+set}" = set; then
10791 aix_libpath=$lt_cv_aix_libpath
10793 if test "${lt_cv_aix_libpath_+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10807 if ac_fn_c_try_link "$LINENO"; then :
10809 lt_aix_libpath_sed='
10810 /Import File Strings/,/^$/ {
10812 s/^0 *\([^ ]*\) *$/\1/
10816 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817 # Check for a 64-bit object if we didn't find anything.
10818 if test -z "$lt_cv_aix_libpath_"; then
10819 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 if test -z "$lt_cv_aix_libpath_"; then
10825 lt_cv_aix_libpath_="/usr/lib:/lib"
10830 aix_libpath=$lt_cv_aix_libpath_
10833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10834 # Warning - without using the other run time loading flags,
10835 # -berok will link without error, but may produce a broken library.
10836 no_undefined_flag=' ${wl}-bernotok'
10837 allow_undefined_flag=' ${wl}-berok'
10838 if test "$with_gnu_ld" = yes; then
10839 # We only use this code for GNU lds that support --whole-archive.
10840 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10842 # Exported symbols can be pulled into shared objects from archives
10843 whole_archive_flag_spec='$convenience'
10845 archive_cmds_need_lc=yes
10846 # This is similar to how AIX traditionally builds its shared libraries.
10847 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'
10855 # see comment about AmigaOS4 .so support
10856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10857 archive_expsym_cmds=''
10860 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)'
10861 hardcode_libdir_flag_spec='-L$libdir'
10862 hardcode_minus_L=yes
10868 export_dynamic_flag_spec=-rdynamic
10871 cygwin* | mingw* | pw32* | cegcc*)
10872 # When not using gcc, we currently assume that we are using
10873 # Microsoft Visual C++.
10874 # hardcode_libdir_flag_spec is actually meaningless, as there is
10875 # no search path for DLLs.
10876 case $cc_basename in
10879 hardcode_libdir_flag_spec=' '
10880 allow_undefined_flag=unsupported
10881 always_export_symbols=yes
10883 # Tell ltmain to make .lib files, not .a files.
10885 # Tell ltmain to make .dll files, not .so files.
10887 # FIXME: Setting linknames here is a bad hack.
10888 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10890 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10892 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10894 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10896 # The linker will not automatically build a static lib if we build a DLL.
10897 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10898 enable_shared_with_static_runtimes=yes
10899 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10901 old_postinstall_cmds='chmod 644 $oldlib'
10902 postlink_cmds='lt_outputfile="@OUTPUT@"~
10903 lt_tool_outputfile="@TOOL_OUTPUT@"~
10904 case $lt_outputfile in
10907 lt_outputfile="$lt_outputfile.exe"
10908 lt_tool_outputfile="$lt_tool_outputfile.exe"
10911 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10912 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10913 $RM "$lt_outputfile.manifest";
10917 # Assume MSVC wrapper
10918 hardcode_libdir_flag_spec=' '
10919 allow_undefined_flag=unsupported
10920 # Tell ltmain to make .lib files, not .a files.
10922 # Tell ltmain to make .dll files, not .so files.
10924 # FIXME: Setting linknames here is a bad hack.
10925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10926 # The linker will automatically build a .lib file if we build a DLL.
10927 old_archive_from_new_cmds='true'
10928 # FIXME: Should let the user specify the lib program.
10929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10930 enable_shared_with_static_runtimes=yes
10935 darwin* | rhapsody*)
10938 archive_cmds_need_lc=no
10940 hardcode_automatic=yes
10941 hardcode_shlibpath_var=unsupported
10942 if test "$lt_cv_ld_force_load" = "yes"; then
10943 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\"`'
10945 whole_archive_flag_spec=''
10947 link_all_deplibs=yes
10948 allow_undefined_flag="$_lt_dar_allow_undefined"
10949 case $cc_basename in
10950 ifort*) _lt_dar_can_shared=yes ;;
10951 *) _lt_dar_can_shared=$GCC ;;
10953 if test "$_lt_dar_can_shared" = "yes"; then
10954 output_verbose_link_cmd=func_echo_all
10955 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10956 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10957 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}"
10958 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}"
10967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968 hardcode_libdir_flag_spec='-L$libdir'
10969 hardcode_shlibpath_var=no
10976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10977 # support. Future versions do this automatically, but an explicit c++rt0.o
10978 # does not break anything, and helps significantly (at the cost of a little
10981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10982 hardcode_libdir_flag_spec='-R$libdir'
10983 hardcode_direct=yes
10984 hardcode_shlibpath_var=no
10987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=yes
10991 hardcode_minus_L=yes
10992 hardcode_shlibpath_var=no
10995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10996 freebsd* | dragonfly*)
10997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10998 hardcode_libdir_flag_spec='-R$libdir'
10999 hardcode_direct=yes
11000 hardcode_shlibpath_var=no
11004 if test "$GCC" = yes; then
11005 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'
11007 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'
11009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11010 hardcode_libdir_separator=:
11011 hardcode_direct=yes
11013 # hardcode_minus_L: Not really in the search PATH,
11014 # but as the default location of the library.
11015 hardcode_minus_L=yes
11016 export_dynamic_flag_spec='${wl}-E'
11020 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11021 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11025 if test "$with_gnu_ld" = no; then
11026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11027 hardcode_libdir_flag_spec_ld='+b $libdir'
11028 hardcode_libdir_separator=:
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 export_dynamic_flag_spec='${wl}-E'
11032 # hardcode_minus_L: Not really in the search PATH,
11033 # but as the default location of the library.
11034 hardcode_minus_L=yes
11039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11042 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11048 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11061 # Older versions of the 11.00 compiler do not understand -b yet
11062 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11064 $as_echo_n "checking if $CC understands -b... " >&6; }
11065 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11068 lt_cv_prog_compiler__b=no
11069 save_LDFLAGS="$LDFLAGS"
11070 LDFLAGS="$LDFLAGS -b"
11071 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11073 # The linker can only warn and ignore the option if not recognized
11074 # So say no if there are warnings
11075 if test -s conftest.err; then
11076 # Append any errors to the config.log.
11077 cat conftest.err 1>&5
11078 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080 if diff conftest.exp conftest.er2 >/dev/null; then
11081 lt_cv_prog_compiler__b=yes
11084 lt_cv_prog_compiler__b=yes
11088 LDFLAGS="$save_LDFLAGS"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11092 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11094 if test x"$lt_cv_prog_compiler__b" = xyes; then
11095 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11103 if test "$with_gnu_ld" = no; then
11104 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11105 hardcode_libdir_separator=:
11110 hardcode_shlibpath_var=no
11113 hardcode_direct=yes
11114 hardcode_direct_absolute=yes
11115 export_dynamic_flag_spec='${wl}-E'
11117 # hardcode_minus_L: Not really in the search PATH,
11118 # but as the default location of the library.
11119 hardcode_minus_L=yes
11125 irix5* | irix6* | nonstopux*)
11126 if test "$GCC" = yes; then
11127 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'
11128 # Try to use the -exported_symbol ld option, if it does not
11129 # work, assume that -exports_file does not work either and
11130 # implicitly export all symbols.
11131 # This should be the same for all languages, so no per-tag cache variable.
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11133 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11134 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
11137 save_LDFLAGS="$LDFLAGS"
11138 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 int foo (void) { return 0; }
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 lt_cv_irix_exported_symbol=yes
11146 lt_cv_irix_exported_symbol=no
11148 rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 LDFLAGS="$save_LDFLAGS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11153 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11154 if test "$lt_cv_irix_exported_symbol" = yes; then
11155 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'
11158 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'
11159 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'
11161 archive_cmds_need_lc='no'
11162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11163 hardcode_libdir_separator=:
11165 link_all_deplibs=yes
11169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11174 hardcode_libdir_flag_spec='-R$libdir'
11175 hardcode_direct=yes
11176 hardcode_shlibpath_var=no
11180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11181 hardcode_direct=yes
11182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11183 hardcode_libdir_separator=:
11184 hardcode_shlibpath_var=no
11191 if test -f /usr/libexec/ld.so; then
11192 hardcode_direct=yes
11193 hardcode_shlibpath_var=no
11194 hardcode_direct_absolute=yes
11195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11199 export_dynamic_flag_spec='${wl}-E'
11202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11204 hardcode_libdir_flag_spec='-R$libdir'
11207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11218 hardcode_libdir_flag_spec='-L$libdir'
11219 hardcode_minus_L=yes
11220 allow_undefined_flag=unsupported
11221 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'
11222 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11226 if test "$GCC" = yes; then
11227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11228 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'
11230 allow_undefined_flag=' -expect_unresolved \*'
11231 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'
11233 archive_cmds_need_lc='no'
11234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11235 hardcode_libdir_separator=:
11238 osf4* | osf5*) # as osf3* with the addition of -msym flag
11239 if test "$GCC" = yes; then
11240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11241 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'
11242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11244 allow_undefined_flag=' -expect_unresolved \*'
11245 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'
11246 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~
11247 $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'
11249 # Both c and cxx compiler support -rpath directly
11250 hardcode_libdir_flag_spec='-rpath $libdir'
11252 archive_cmds_need_lc='no'
11253 hardcode_libdir_separator=:
11257 no_undefined_flag=' -z defs'
11258 if test "$GCC" = yes; then
11260 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$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 -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'
11264 case `$CC -V 2>&1` in
11267 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11273 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11275 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11279 hardcode_libdir_flag_spec='-R$libdir'
11280 hardcode_shlibpath_var=no
11282 solaris2.[0-5] | solaris2.[0-5].*) ;;
11284 # The compiler driver will combine and reorder linker options,
11285 # but understands `-z linker_flag'. GCC discards it without `$wl',
11286 # but is careful enough not to reorder.
11287 # Supported since Solaris 2.6 (maybe 2.5.1?)
11288 if test "$GCC" = yes; then
11289 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11295 link_all_deplibs=yes
11299 if test "x$host_vendor" = xsequent; then
11300 # Use $CC to link under sequent, because it throws in some extra .o
11301 # files that make .init and .fini sections work.
11302 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11306 hardcode_libdir_flag_spec='-L$libdir'
11307 hardcode_direct=yes
11308 hardcode_minus_L=yes
11309 hardcode_shlibpath_var=no
11313 case $host_vendor in
11315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11316 hardcode_direct=yes # is this really true???
11319 ## LD is ld it makes a PLAMLIB
11320 ## CC just makes a GrossModule.
11321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11322 reload_cmds='$CC -r -o $output$reload_objs'
11326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11327 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11330 runpath_var='LD_RUN_PATH'
11331 hardcode_shlibpath_var=no
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_shlibpath_var=no
11337 export_dynamic_flag_spec='-Bexport'
11341 if test -d /usr/nec; then
11342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343 hardcode_shlibpath_var=no
11344 runpath_var=LD_RUN_PATH
11345 hardcode_runpath_var=yes
11350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11351 no_undefined_flag='${wl}-z,text'
11352 archive_cmds_need_lc=no
11353 hardcode_shlibpath_var=no
11354 runpath_var='LD_RUN_PATH'
11356 if test "$GCC" = yes; then
11357 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11360 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11361 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 sysv5* | sco3.2v5* | sco5v6*)
11366 # Note: We can NOT use -z defs as we might desire, because we do not
11367 # link with -lc, and that would cause any symbols used from libc to
11368 # always be unresolved, which means just about no library would
11369 # ever link correctly. If we're not using GNU ld we use -z text
11370 # though, which does catch some bad symbols but isn't as heavy-handed
11372 no_undefined_flag='${wl}-z,text'
11373 allow_undefined_flag='${wl}-z,nodefs'
11374 archive_cmds_need_lc=no
11375 hardcode_shlibpath_var=no
11376 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11377 hardcode_libdir_separator=':'
11378 link_all_deplibs=yes
11379 export_dynamic_flag_spec='${wl}-Bexport'
11380 runpath_var='LD_RUN_PATH'
11382 if test "$GCC" = yes; then
11383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11393 hardcode_libdir_flag_spec='-L$libdir'
11394 hardcode_shlibpath_var=no
11402 if test x$host_vendor = xsni; then
11404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11405 export_dynamic_flag_spec='${wl}-Blargedynsym'
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11412 $as_echo "$ld_shlibs" >&6; }
11413 test "$ld_shlibs" = no && can_build_shared=no
11415 with_gnu_ld=$with_gnu_ld
11432 # Do we need to explicitly link libc?
11434 case "x$archive_cmds_need_lc" in
11436 # Assume -lc should be added
11437 archive_cmds_need_lc=yes
11439 if test "$enable_shared" = yes && test "$GCC" = yes; then
11440 case $archive_cmds in
11442 # FIXME: we may have to deal with multi-command sequences.
11445 # Test whether the compiler implicitly links with -lc since on some
11446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11447 # to ld, don't add -lc before -lgcc.
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11450 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11457 (eval $ac_compile) 2>&5
11459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460 test $ac_status = 0; } 2>conftest.err; then
11463 libobjs=conftest.$ac_objext
11465 wl=$lt_prog_compiler_wl
11466 pic_flag=$lt_prog_compiler_pic
11472 lt_save_allow_undefined_flag=$allow_undefined_flag
11473 allow_undefined_flag=
11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; }
11480 lt_cv_archive_cmds_need_lc=no
11482 lt_cv_archive_cmds_need_lc=yes
11484 allow_undefined_flag=$lt_save_allow_undefined_flag
11486 cat conftest.err 1>&5
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11492 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11493 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11659 if test "$GCC" = yes; then
11661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11662 *) lt_awk_arg="/^libraries:/" ;;
11665 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11666 *) lt_sed_strip_eq="s,=/,/,g" ;;
11668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11669 case $lt_search_path_spec in
11671 # if the path contains ";" then we assume it to be the separator
11672 # otherwise default to the standard path separator (i.e. ":") - it is
11673 # assumed that no part of a normal pathname contains ";" but that should
11674 # okay in the real world where ";" in dirpaths is itself problematic.
11675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11681 # Ok, now we have the path, separated by spaces, we can step through it
11682 # and add multilib dir if necessary.
11683 lt_tmp_lt_search_path_spec=
11684 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11685 for lt_sys_path in $lt_search_path_spec; do
11686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11689 test -d "$lt_sys_path" && \
11690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11694 BEGIN {RS=" "; FS="/|\n";} {
11697 for (lt_i = NF; lt_i > 0; lt_i--) {
11698 if ($lt_i != "" && $lt_i != ".") {
11699 if ($lt_i == "..") {
11702 if (lt_count == 0) {
11703 lt_foo="/" $lt_i lt_foo;
11710 if (lt_foo != "") { lt_freq[lt_foo]++; }
11711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11713 # AWK program above erroneously prepends '/' to C:/dos/paths
11716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11723 library_names_spec=
11724 libname_spec='lib$name'
11728 postuninstall_cmds=
11732 shlibpath_overrides_runpath=unknown
11734 dynamic_linker="$host_os ld.so"
11735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11736 need_lib_prefix=unknown
11737 hardcode_into_libs=no
11739 # when you set need_version to no, make sure it does not cause -set_version
11740 # flags to be left without arguments
11741 need_version=unknown
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11747 shlibpath_var=LIBPATH
11749 # AIX 3 has no versioning support, so we append a major version to the name.
11750 soname_spec='${libname}${release}${shared_ext}$major'
11757 hardcode_into_libs=yes
11758 if test "$host_cpu" = ia64; then
11759 # AIX 5 supports IA64
11760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11761 shlibpath_var=LD_LIBRARY_PATH
11763 # With GCC up to 2.95.x, collect2 would create an import file
11764 # for dependence libraries. The import file would start with
11765 # the line `#! .'. This would cause the generated library to
11766 # depend on `.', always an invalid library. This was fixed in
11767 # development snapshots of GCC prior to 3.0.
11769 aix4 | aix4.[01] | aix4.[01].*)
11770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11775 can_build_shared=no
11779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11780 # soname into executable. Probably we can add versioning support to
11781 # collect2, so additional links can be useful in future.
11782 if test "$aix_use_runtimelinking" = yes; then
11783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11784 # instead of lib<name>.a to let people know that these are not
11785 # typical AIX shared libraries.
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 # We preserve .a as extension for shared libraries through AIX4.2
11789 # and later when we are not doing run time linking.
11790 library_names_spec='${libname}${release}.a $libname.a'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11793 shlibpath_var=LIBPATH
11800 # Since July 2007 AmigaOS4 officially supports .so libraries.
11801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 library_names_spec='$libname.ixlibrary $libname.a'
11806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11807 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'
11813 library_names_spec='${libname}${shared_ext}'
11814 dynamic_linker="$host_os ld.so"
11815 shlibpath_var=LIBRARY_PATH
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11827 # the default ld.so.conf also contains /usr/contrib/lib and
11828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11829 # libtool to hard-code these into programs
11832 cygwin* | mingw* | pw32* | cegcc*)
11833 version_type=windows
11838 case $GCC,$cc_basename in
11841 library_names_spec='$libname.dll.a'
11842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11843 postinstall_cmds='base_file=`basename \${file}`~
11844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11845 dldir=$destdir/`dirname \$dlpath`~
11846 test -d \$dldir || mkdir -p \$dldir~
11847 $install_prog $dir/$dlname \$dldir/$dlname~
11848 chmod a+x \$dldir/$dlname~
11849 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11850 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11853 dlpath=$dir/\$dldll~
11855 shlibpath_overrides_runpath=yes
11859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11865 # MinGW DLLs use traditional 'lib' prefix
11866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11869 # pw32 DLLs use 'pw' prefix rather than 'lib'
11870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11873 dynamic_linker='Win32 ld.exe'
11878 libname_spec='$name'
11879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11880 library_names_spec='${libname}.dll.lib'
11884 sys_lib_search_path_spec=
11887 for lt_path in $LIB
11890 # Let DOS variable expansion print the short 8.3 style file name.
11891 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11892 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11895 # Convert to MSYS style.
11896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11899 # Convert to unix form, then to dos form, then back to unix form
11900 # but this time dos style (no spaces!) so that the unix form looks
11901 # like /cygdrive/c/PROGRA~1:/cygdr...
11902 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11903 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11904 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11907 sys_lib_search_path_spec="$LIB"
11908 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11909 # It is most probably a Windows format PATH.
11910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11914 # FIXME: find the short name or the path components, as spaces are
11915 # common. (e.g. "Program Files" -> "PROGRA~1")
11919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11920 postinstall_cmds='base_file=`basename \${file}`~
11921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11922 dldir=$destdir/`dirname \$dlpath`~
11923 test -d \$dldir || mkdir -p \$dldir~
11924 $install_prog $dir/$dlname \$dldir/$dlname'
11925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11926 dlpath=$dir/\$dldll~
11928 shlibpath_overrides_runpath=yes
11929 dynamic_linker='Win32 link.exe'
11933 # Assume MSVC wrapper
11934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11935 dynamic_linker='Win32 ld.exe'
11938 # FIXME: first we should search . and the directory the executable is in
11942 darwin* | rhapsody*)
11943 dynamic_linker="$host_os dyld"
11944 version_type=darwin
11947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11948 soname_spec='${libname}${release}${major}$shared_ext'
11949 shlibpath_overrides_runpath=yes
11950 shlibpath_var=DYLD_LIBRARY_PATH
11951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 shlibpath_var=LD_LIBRARY_PATH
11970 freebsd* | dragonfly*)
11971 # DragonFly does not have aout. When/if they implement a new
11972 # versioning mechanism, adjust this.
11973 if test -x /usr/bin/objformat; then
11974 objformat=`/usr/bin/objformat`
11977 freebsd[123]*) objformat=aout ;;
11978 *) objformat=elf ;;
11981 version_type=freebsd-$objformat
11982 case $version_type in
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11993 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11998 freebsd3.[01]* | freebsdelf3.[01]*)
11999 shlibpath_overrides_runpath=yes
12000 hardcode_into_libs=yes
12002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12004 shlibpath_overrides_runpath=no
12005 hardcode_into_libs=yes
12007 *) # from 4.6 on, and DragonFly
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12019 soname_spec='${libname}${release}${shared_ext}$major'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 hardcode_into_libs=yes
12028 dynamic_linker="$host_os runtime_loader"
12029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12030 soname_spec='${libname}${release}${shared_ext}$major'
12031 shlibpath_var=LIBRARY_PATH
12032 shlibpath_overrides_runpath=yes
12033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12034 hardcode_into_libs=yes
12037 hpux9* | hpux10* | hpux11*)
12038 # Give a soname corresponding to the major version so that dld.sl refuses to
12039 # link against other versions.
12046 hardcode_into_libs=yes
12047 dynamic_linker="$host_os dld.so"
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 if test "X$HPUX_IA64_MODE" = X32; then
12053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12061 hardcode_into_libs=yes
12062 dynamic_linker="$host_os dld.sl"
12063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12072 dynamic_linker="$host_os dld.sl"
12073 shlibpath_var=SHLIB_PATH
12074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 soname_spec='${libname}${release}${shared_ext}$major'
12079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12080 postinstall_cmds='chmod 555 $lib'
12081 # or fails outright, so override atomically:
12082 install_override_mode=555
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=no
12094 hardcode_into_libs=yes
12097 irix5* | irix6* | nonstopux*)
12099 nonstopux*) version_type=nonstopux ;;
12101 if test "$lt_cv_prog_gnu_ld" = yes; then
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12112 irix5* | nonstopux*)
12113 libsuff= shlibsuff=
12116 case $LD in # libtool.m4 will add one of these switches to LD
12117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12118 libsuff= shlibsuff= libmagic=32-bit;;
12119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12120 libsuff=32 shlibsuff=N32 libmagic=N32;;
12121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12123 *) libsuff= shlibsuff= libmagic=never-match;;
12127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12128 shlibpath_overrides_runpath=no
12129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12131 hardcode_into_libs=yes
12134 # No shared lib support for Linux oldld, aout, or coff.
12135 linux*oldld* | linux*aout* | linux*coff*)
12139 # This must be Linux ELF.
12140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=no
12150 # Some binutils ld are patched to set DT_RUNPATH
12151 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12154 lt_cv_shlibpath_overrides_runpath=no
12155 save_LDFLAGS=$LDFLAGS
12156 save_libdir=$libdir
12157 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12158 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12172 lt_cv_shlibpath_overrides_runpath=yes
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LDFLAGS=$save_LDFLAGS
12178 libdir=$save_libdir
12182 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12184 # This implies no fast_install, which is unacceptable.
12185 # Some rework will be needed to allow for fast_install
12186 # before this can be enabled.
12187 hardcode_into_libs=yes
12189 # Append ld.so.conf contents to the search path
12190 if test -f /etc/ld.so.conf; then
12191 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' ' '`
12192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12195 # We used to test for /lib/ld.so.1 and disable shared libraries on
12196 # powerpc, because MkLinux only supported shared libraries with the
12197 # GNU dynamic linker. Since this was broken with cross compilers,
12198 # most powerpc-linux boxes support dynamic linking these days and
12199 # people can always --disable-shared, the test was removed, and we
12200 # assume the GNU/Linux dynamic linker is in use.
12201 dynamic_linker='GNU/Linux ld.so'
12208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211 dynamic_linker='NetBSD (a.out) ld.so'
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 dynamic_linker='NetBSD ld.elf_so'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=yes
12219 hardcode_into_libs=yes
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=yes
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=no
12237 hardcode_into_libs=yes
12238 dynamic_linker='ldqnx.so'
12243 sys_lib_dlsearch_path_spec="/usr/lib"
12245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12248 *) need_version=no ;;
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12255 openbsd2.[89] | openbsd2.[89].*)
12256 shlibpath_overrides_runpath=no
12259 shlibpath_overrides_runpath=yes
12263 shlibpath_overrides_runpath=yes
12268 libname_spec='$name'
12271 library_names_spec='$libname${shared_ext} $libname.a'
12272 dynamic_linker='OS/2 ld.exe'
12273 shlibpath_var=LIBPATH
12276 osf3* | osf4* | osf5*)
12280 soname_spec='${libname}${release}${shared_ext}$major'
12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296 soname_spec='${libname}${release}${shared_ext}$major'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 shlibpath_overrides_runpath=yes
12299 hardcode_into_libs=yes
12300 # ldd complains unless libraries are executable
12301 postinstall_cmds='chmod +x $lib'
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310 if test "$with_gnu_ld" = yes; then
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 case $host_vendor in
12323 shlibpath_overrides_runpath=no
12325 runpath_var=LD_RUN_PATH
12333 shlibpath_overrides_runpath=no
12334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12340 if test -d /usr/nec ;then
12342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12343 soname_spec='$libname${shared_ext}.$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12349 version_type=freebsd-elf
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12353 soname_spec='${libname}${release}${shared_ext}$major'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 shlibpath_overrides_runpath=yes
12356 hardcode_into_libs=yes
12357 if test "$with_gnu_ld" = yes; then
12358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12367 sys_lib_dlsearch_path_spec='/usr/lib'
12371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 shlibpath_overrides_runpath=no
12378 hardcode_into_libs=yes
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12393 $as_echo "$dynamic_linker" >&6; }
12394 test "$dynamic_linker" = no && can_build_shared=no
12396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12397 if test "$GCC" = yes; then
12398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12405 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12502 if test -n "$hardcode_libdir_flag_spec" ||
12503 test -n "$runpath_var" ||
12504 test "X$hardcode_automatic" = "Xyes" ; then
12506 # We can hardcode non-existent directories.
12507 if test "$hardcode_direct" != no &&
12508 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12509 # have to relink, otherwise we might link with an installed library
12510 # when we should be linking with a yet-to-be-installed one
12511 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12512 test "$hardcode_minus_L" != no; then
12513 # Linking always hardcodes the temporary library directory.
12514 hardcode_action=relink
12516 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12517 hardcode_action=immediate
12520 # We cannot hardcode anything, or else we can only hardcode existing
12522 hardcode_action=unsupported
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12525 $as_echo "$hardcode_action" >&6; }
12527 if test "$hardcode_action" = relink ||
12528 test "$inherit_rpath" = yes; then
12529 # Fast installation is not supported
12530 enable_fast_install=no
12531 elif test "$shlibpath_overrides_runpath" = yes ||
12532 test "$enable_shared" = no; then
12533 # Fast installation is not necessary
12534 enable_fast_install=needless
12542 if test "x$enable_dlopen" != xyes; then
12543 enable_dlopen=unknown
12544 enable_dlopen_self=unknown
12545 enable_dlopen_self_static=unknown
12552 lt_cv_dlopen="load_add_on"
12554 lt_cv_dlopen_self=yes
12557 mingw* | pw32* | cegcc*)
12558 lt_cv_dlopen="LoadLibrary"
12563 lt_cv_dlopen="dlopen"
12568 # if libdl is installed we need to link against it
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12574 ac_check_lib_save_LIBS=$LIBS
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 /* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_lib_dl_dlopen=yes
12597 ac_cv_lib_dl_dlopen=no
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12605 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12609 lt_cv_dlopen="dyld"
12611 lt_cv_dlopen_self=yes
12618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12619 if test "x$ac_cv_func_shl_load" = x""yes; then :
12620 lt_cv_dlopen="shl_load"
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12623 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12624 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12627 ac_check_lib_save_LIBS=$LIBS
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12642 return shl_load ();
12647 if ac_fn_c_try_link "$LINENO"; then :
12648 ac_cv_lib_dld_shl_load=yes
12650 ac_cv_lib_dld_shl_load=no
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12658 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12659 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12661 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12662 if test "x$ac_cv_func_dlopen" = x""yes; then :
12663 lt_cv_dlopen="dlopen"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12670 ac_check_lib_save_LIBS=$LIBS
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12690 if ac_fn_c_try_link "$LINENO"; then :
12691 ac_cv_lib_dl_dlopen=yes
12693 ac_cv_lib_dl_dlopen=no
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12701 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12706 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12709 ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-lsvld $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 ac_cv_lib_svld_dlopen=yes
12732 ac_cv_lib_svld_dlopen=no
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12740 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12748 ac_check_lib_save_LIBS=$LIBS
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12753 /* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12763 return dld_link ();
12768 if ac_fn_c_try_link "$LINENO"; then :
12769 ac_cv_lib_dld_dld_link=yes
12771 ac_cv_lib_dld_dld_link=no
12773 rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12779 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12801 if test "x$lt_cv_dlopen" != xno; then
12807 case $lt_cv_dlopen in
12809 save_CPPFLAGS="$CPPFLAGS"
12810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12812 save_LDFLAGS="$LDFLAGS"
12813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12816 LIBS="$lt_cv_dlopen_libs $LIBS"
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12820 if test "${lt_cv_dlopen_self+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12823 if test "$cross_compiling" = yes; then :
12824 lt_cv_dlopen_self=cross
12826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827 lt_status=$lt_dlunknown
12828 cat > conftest.$ac_ext <<_LT_EOF
12829 #line $LINENO "configure"
12830 #include "confdefs.h"
12839 # define LT_DLGLOBAL RTLD_GLOBAL
12842 # define LT_DLGLOBAL DL_GLOBAL
12844 # define LT_DLGLOBAL 0
12848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849 find out it does not work in some platform. */
12850 #ifndef LT_DLLAZY_OR_NOW
12852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12855 # define LT_DLLAZY_OR_NOW DL_LAZY
12858 # define LT_DLLAZY_OR_NOW RTLD_NOW
12861 # define LT_DLLAZY_OR_NOW DL_NOW
12863 # define LT_DLLAZY_OR_NOW 0
12870 /* When -fvisbility=hidden is used, assume the code has been annotated
12871 correspondingly for the symbols needed. */
12872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12873 int fnord () __attribute__((visibility("default")));
12876 int fnord () { return 42; }
12879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12880 int status = $lt_dlunknown;
12884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12888 else puts (dlerror ());
12890 /* dlclose (self); */
12898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12899 (eval $ac_link) 2>&5
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12903 (./conftest; exit; ) >&5 2>/dev/null
12905 case x$lt_status in
12906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12911 # compilation failed
12912 lt_cv_dlopen_self=no
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12920 $as_echo "$lt_cv_dlopen_self" >&6; }
12922 if test "x$lt_cv_dlopen_self" = xyes; then
12923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12926 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12929 if test "$cross_compiling" = yes; then :
12930 lt_cv_dlopen_self_static=cross
12932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12933 lt_status=$lt_dlunknown
12934 cat > conftest.$ac_ext <<_LT_EOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12945 # define LT_DLGLOBAL RTLD_GLOBAL
12948 # define LT_DLGLOBAL DL_GLOBAL
12950 # define LT_DLGLOBAL 0
12954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12955 find out it does not work in some platform. */
12956 #ifndef LT_DLLAZY_OR_NOW
12958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12961 # define LT_DLLAZY_OR_NOW DL_LAZY
12964 # define LT_DLLAZY_OR_NOW RTLD_NOW
12967 # define LT_DLLAZY_OR_NOW DL_NOW
12969 # define LT_DLLAZY_OR_NOW 0
12976 /* When -fvisbility=hidden is used, assume the code has been annotated
12977 correspondingly for the symbols needed. */
12978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12979 int fnord () __attribute__((visibility("default")));
12982 int fnord () { return 42; }
12985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12986 int status = $lt_dlunknown;
12990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12994 else puts (dlerror ());
12996 /* dlclose (self); */
13004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13005 (eval $ac_link) 2>&5
13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13009 (./conftest; exit; ) >&5 2>/dev/null
13011 case x$lt_status in
13012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13017 # compilation failed
13018 lt_cv_dlopen_self_static=no
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13029 CPPFLAGS="$save_CPPFLAGS"
13030 LDFLAGS="$save_LDFLAGS"
13035 case $lt_cv_dlopen_self in
13036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13037 *) enable_dlopen_self=unknown ;;
13040 case $lt_cv_dlopen_self_static in
13041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13042 *) enable_dlopen_self_static=unknown ;;
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13068 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13070 $as_echo "yes" >&6; }
13072 # FIXME - insert some real tests, host_os isn't really good enough
13075 if test -n "$STRIP" ; then
13076 striplib="$STRIP -x"
13077 old_striplib="$STRIP -S"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13103 # Report which library types will actually be built
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13107 $as_echo "$can_build_shared" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13110 $as_echo_n "checking whether to build shared libraries... " >&6; }
13111 test "$can_build_shared" = "no" && enable_shared=no
13113 # On AIX, shared libraries and static libraries use the same namespace, and
13114 # are all built from PIC.
13117 test "$enable_shared" = yes && enable_static=no
13118 if test -n "$RANLIB"; then
13119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13120 postinstall_cmds='$RANLIB $lib'
13125 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13126 test "$enable_shared" = yes && enable_static=no
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13131 $as_echo "$enable_shared" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13134 $as_echo_n "checking whether to build static libraries... " >&6; }
13135 # Make sure either enable_shared or enable_static is yes.
13136 test "$enable_shared" = yes || enable_static=yes
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13138 $as_echo "$enable_static" >&6; }
13145 ac_cpp='$CPP $CPPFLAGS'
13146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13152 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13153 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13154 (test "X$CXX" != "Xg++"))) ; then
13156 ac_cpp='$CXXCPP $CPPFLAGS'
13157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13161 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13162 if test -z "$CXXCPP"; then
13163 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13166 # Double quotes because CXXCPP needs to be expanded
13167 for CXXCPP in "$CXX -E" "/lib/cpp"
13169 ac_preproc_ok=false
13170 for ac_cxx_preproc_warn_flag in '' yes
13172 # Use a header file that comes with gcc, so configuring glibc
13173 # with a fresh cross-compiler works.
13174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175 # <limits.h> exists even on freestanding compilers.
13176 # On the NeXT, cc -E runs the code through the compiler's parser,
13177 # not just through cpp. "Syntax error" is here to catch this case.
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 # include <limits.h>
13183 # include <assert.h>
13187 if ac_fn_cxx_try_cpp "$LINENO"; then :
13190 # Broken: fails on valid input.
13193 rm -f conftest.err conftest.i conftest.$ac_ext
13195 # OK, works on sane cases. Now check whether nonexistent headers
13196 # can be detected and how.
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 #include <ac_nonexistent.h>
13201 if ac_fn_cxx_try_cpp "$LINENO"; then :
13202 # Broken: success on invalid input.
13205 # Passes both tests.
13209 rm -f conftest.err conftest.i conftest.$ac_ext
13212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13213 rm -f conftest.i conftest.err conftest.$ac_ext
13214 if $ac_preproc_ok; then :
13219 ac_cv_prog_CXXCPP=$CXXCPP
13222 CXXCPP=$ac_cv_prog_CXXCPP
13224 ac_cv_prog_CXXCPP=$CXXCPP
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13227 $as_echo "$CXXCPP" >&6; }
13228 ac_preproc_ok=false
13229 for ac_cxx_preproc_warn_flag in '' yes
13231 # Use a header file that comes with gcc, so configuring glibc
13232 # with a fresh cross-compiler works.
13233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234 # <limits.h> exists even on freestanding compilers.
13235 # On the NeXT, cc -E runs the code through the compiler's parser,
13236 # not just through cpp. "Syntax error" is here to catch this case.
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13240 # include <limits.h>
13242 # include <assert.h>
13246 if ac_fn_cxx_try_cpp "$LINENO"; then :
13249 # Broken: fails on valid input.
13252 rm -f conftest.err conftest.i conftest.$ac_ext
13254 # OK, works on sane cases. Now check whether nonexistent headers
13255 # can be detected and how.
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 #include <ac_nonexistent.h>
13260 if ac_fn_cxx_try_cpp "$LINENO"; then :
13261 # Broken: success on invalid input.
13264 # Passes both tests.
13268 rm -f conftest.err conftest.i conftest.$ac_ext
13271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13272 rm -f conftest.i conftest.err conftest.$ac_ext
13273 if $ac_preproc_ok; then :
13276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13278 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13279 See \`config.log' for more details" "$LINENO" 5 ; }
13283 ac_cpp='$CPP $CPPFLAGS'
13284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13289 _lt_caught_CXX_error=yes
13293 ac_cpp='$CXXCPP $CPPFLAGS'
13294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13298 archive_cmds_need_lc_CXX=no
13299 allow_undefined_flag_CXX=
13300 always_export_symbols_CXX=no
13301 archive_expsym_cmds_CXX=
13302 compiler_needs_object_CXX=no
13303 export_dynamic_flag_spec_CXX=
13304 hardcode_direct_CXX=no
13305 hardcode_direct_absolute_CXX=no
13306 hardcode_libdir_flag_spec_CXX=
13307 hardcode_libdir_flag_spec_ld_CXX=
13308 hardcode_libdir_separator_CXX=
13309 hardcode_minus_L_CXX=no
13310 hardcode_shlibpath_var_CXX=unsupported
13311 hardcode_automatic_CXX=no
13312 inherit_rpath_CXX=no
13314 module_expsym_cmds_CXX=
13315 link_all_deplibs_CXX=unknown
13316 old_archive_cmds_CXX=$old_archive_cmds
13317 reload_flag_CXX=$reload_flag
13318 reload_cmds_CXX=$reload_cmds
13319 no_undefined_flag_CXX=
13320 whole_archive_flag_spec_CXX=
13321 enable_shared_with_static_runtimes_CXX=no
13323 # Source file extension for C++ test sources.
13326 # Object file extension for compiled C++ test sources.
13330 # No sense in running all these tests if we already determined that
13331 # the CXX compiler isn't working. Some variables (like enable_shared)
13332 # are currently assumed to apply to all compilers on this platform,
13333 # and will be corrupted by setting them based on a non-working compiler.
13334 if test "$_lt_caught_CXX_error" != yes; then
13335 # Code to be used in simple compile tests
13336 lt_simple_compile_test_code="int some_variable = 0;"
13338 # Code to be used in simple link tests
13339 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13341 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13348 # If no C compiler was specified, use CC.
13351 # If no C compiler flags were specified, use CFLAGS.
13352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13354 # Allow CC to be a program name with arguments.
13358 # save warnings/boilerplate of simple test code
13359 ac_outfile=conftest.$ac_objext
13360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13362 _lt_compiler_boilerplate=`cat conftest.err`
13365 ac_outfile=conftest.$ac_objext
13366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13368 _lt_linker_boilerplate=`cat conftest.err`
13372 # Allow CC to be a program name with arguments.
13374 lt_save_CFLAGS=$CFLAGS
13378 lt_save_with_gnu_ld=$with_gnu_ld
13379 lt_save_path_LD=$lt_cv_path_LD
13380 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13381 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13383 $as_unset lt_cv_prog_gnu_ld
13385 if test -n "${lt_cv_path_LDCXX+set}"; then
13386 lt_cv_path_LD=$lt_cv_path_LDCXX
13388 $as_unset lt_cv_path_LD
13390 test -z "${LDCXX+set}" || LD=$LDCXX
13395 for cc_temp in $compiler""; do
13397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13403 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13406 if test -n "$compiler"; then
13407 # We don't want -fno-exception when compiling C++ code, so set the
13408 # no_builtin_flag separately
13409 if test "$GXX" = yes; then
13410 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13412 lt_prog_compiler_no_builtin_flag_CXX=
13415 if test "$GXX" = yes; then
13416 # Set up default GNU C++ configuration
13420 # Check whether --with-gnu-ld was given.
13421 if test "${with_gnu_ld+set}" = set; then :
13422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13428 if test "$GCC" = yes; then
13429 # Check if gcc -print-prog-name=ld gives a path.
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13431 $as_echo_n "checking for ld used by $CC... " >&6; }
13434 # gcc leaves a trailing carriage return which upsets mingw
13435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13440 # Accept absolute paths.
13442 re_direlt='/[^/][^/]*/\.\./'
13443 # Canonicalize the pathname of ld
13444 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13445 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13446 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13448 test -z "$LD" && LD="$ac_prog"
13451 # If it fails, then pretend we aren't using GCC.
13455 # If it is relative, then search for the first ld in PATH.
13456 with_gnu_ld=unknown
13459 elif test "$with_gnu_ld" = yes; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13461 $as_echo_n "checking for GNU ld... " >&6; }
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13464 $as_echo_n "checking for non-GNU ld... " >&6; }
13466 if test "${lt_cv_path_LD+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13469 if test -z "$LD"; then
13470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13471 for ac_dir in $PATH; do
13473 test -z "$ac_dir" && ac_dir=.
13474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13475 lt_cv_path_LD="$ac_dir/$ac_prog"
13476 # Check to see if the program is GNU ld. I'd rather use --version,
13477 # but apparently some variants of GNU ld only accept -v.
13478 # Break only if it was the GNU/non-GNU ld that we prefer.
13479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13480 *GNU* | *'with BFD'*)
13481 test "$with_gnu_ld" != no && break
13484 test "$with_gnu_ld" != yes && break
13491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13495 LD="$lt_cv_path_LD"
13496 if test -n "$LD"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13498 $as_echo "$LD" >&6; }
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13503 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13509 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13510 case `$LD -v 2>&1 </dev/null` in
13511 *GNU* | *'with BFD'*)
13512 lt_cv_prog_gnu_ld=yes
13515 lt_cv_prog_gnu_ld=no
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13521 with_gnu_ld=$lt_cv_prog_gnu_ld
13529 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13530 # archiving commands below assume that GNU ld is being used.
13531 if test "$with_gnu_ld" = yes; then
13532 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 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'
13535 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13538 # If archive_cmds runs LD, not CC, wlarc should be empty
13539 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13540 # investigate it a little bit more. (MM)
13543 # ancient GNU ld didn't support --whole-archive et. al.
13544 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13545 $GREP 'no-whole-archive' > /dev/null; then
13546 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548 whole_archive_flag_spec_CXX=
13554 # A generic and very simple default shared library creation
13555 # command for GNU C++ for the case where it uses the native
13556 # linker, instead of GNU ld. If possible, this setting should
13557 # overridden to take advantage of the native linker features on
13558 # the platform it is being used on.
13559 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13573 # PORTME: fill in a description of your system's C++ link characteristics
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13579 # FIXME: insert proper C++ library support
13583 if test "$host_cpu" = ia64; then
13584 # On IA64, the linker does run time linking by default, so we don't
13585 # have to do anything special.
13586 aix_use_runtimelinking=no
13587 exp_sym_flag='-Bexport'
13590 aix_use_runtimelinking=no
13592 # Test if we are trying to use run time linking or normal
13593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13594 # need to do runtime linking.
13595 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13596 for ld_flag in $LDFLAGS; do
13599 aix_use_runtimelinking=yes
13607 exp_sym_flag='-bexport'
13608 no_entry_flag='-bnoentry'
13611 # When large executables or shared objects are built, AIX ld can
13612 # have problems creating the table of contents. If linking a library
13613 # or program results in "error TOC overflow" add -mminimal-toc to
13614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13617 archive_cmds_CXX=''
13618 hardcode_direct_CXX=yes
13619 hardcode_direct_absolute_CXX=yes
13620 hardcode_libdir_separator_CXX=':'
13621 link_all_deplibs_CXX=yes
13622 file_list_spec_CXX='${wl}-f,'
13624 if test "$GXX" = yes; then
13625 case $host_os in aix4.[012]|aix4.[012].*)
13626 # We only want to do this on AIX 4.2 and lower, the check
13627 # below for broken collect2 doesn't work under 4.3+
13628 collect2name=`${CC} -print-prog-name=collect2`
13629 if test -f "$collect2name" &&
13630 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13632 # We have reworked collect2
13635 # We have old collect2
13636 hardcode_direct_CXX=unsupported
13637 # It fails to find uninstalled libraries when the uninstalled
13638 # path is not listed in the libpath. Setting hardcode_minus_L
13639 # to unsupported forces relinking
13640 hardcode_minus_L_CXX=yes
13641 hardcode_libdir_flag_spec_CXX='-L$libdir'
13642 hardcode_libdir_separator_CXX=
13645 shared_flag='-shared'
13646 if test "$aix_use_runtimelinking" = yes; then
13647 shared_flag="$shared_flag "'${wl}-G'
13651 if test "$host_cpu" = ia64; then
13652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13653 # chokes on -Wl,-G. The following line is correct:
13656 if test "$aix_use_runtimelinking" = yes; then
13657 shared_flag='${wl}-G'
13659 shared_flag='${wl}-bM:SRE'
13664 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13665 # It seems that -bexpall does not export symbols beginning with
13666 # underscore (_), so it is better to generate a list of symbols to
13668 always_export_symbols_CXX=yes
13669 if test "$aix_use_runtimelinking" = yes; then
13670 # Warning - without using the other runtime loading flags (-brtl),
13671 # -berok will link without error, but may produce a broken library.
13672 allow_undefined_flag_CXX='-berok'
13673 # Determine the default libpath from the value encoded in an empty
13675 if test "${lt_cv_aix_libpath+set}" = set; then
13676 aix_libpath=$lt_cv_aix_libpath
13678 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13692 if ac_fn_cxx_try_link "$LINENO"; then :
13694 lt_aix_libpath_sed='
13695 /Import File Strings/,/^$/ {
13697 s/^0 *\([^ ]*\) *$/\1/
13701 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13702 # Check for a 64-bit object if we didn't find anything.
13703 if test -z "$lt_cv_aix_libpath__CXX"; then
13704 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 if test -z "$lt_cv_aix_libpath__CXX"; then
13710 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13715 aix_libpath=$lt_cv_aix_libpath__CXX
13718 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13720 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"
13722 if test "$host_cpu" = ia64; then
13723 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13724 allow_undefined_flag_CXX="-z nodefs"
13725 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"
13727 # Determine the default libpath from the value encoded in an
13728 # empty executable.
13729 if test "${lt_cv_aix_libpath+set}" = set; then
13730 aix_libpath=$lt_cv_aix_libpath
13732 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13746 if ac_fn_cxx_try_link "$LINENO"; then :
13748 lt_aix_libpath_sed='
13749 /Import File Strings/,/^$/ {
13751 s/^0 *\([^ ]*\) *$/\1/
13755 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13756 # Check for a 64-bit object if we didn't find anything.
13757 if test -z "$lt_cv_aix_libpath__CXX"; then
13758 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 if test -z "$lt_cv_aix_libpath__CXX"; then
13764 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13769 aix_libpath=$lt_cv_aix_libpath__CXX
13772 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13773 # Warning - without using the other run time loading flags,
13774 # -berok will link without error, but may produce a broken library.
13775 no_undefined_flag_CXX=' ${wl}-bernotok'
13776 allow_undefined_flag_CXX=' ${wl}-berok'
13777 if test "$with_gnu_ld" = yes; then
13778 # We only use this code for GNU lds that support --whole-archive.
13779 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13781 # Exported symbols can be pulled into shared objects from archives
13782 whole_archive_flag_spec_CXX='$convenience'
13784 archive_cmds_need_lc_CXX=yes
13785 # This is similar to how AIX traditionally builds its shared
13787 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'
13793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13794 allow_undefined_flag_CXX=unsupported
13795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13796 # support --undefined. This deserves some investigation. FIXME
13797 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804 case $cc_basename in
13806 # FIXME: insert proper C++ library support
13812 cygwin* | mingw* | pw32* | cegcc*)
13813 case $GXX,$cc_basename in
13816 # hardcode_libdir_flag_spec is actually meaningless, as there is
13817 # no search path for DLLs.
13818 hardcode_libdir_flag_spec_CXX=' '
13819 allow_undefined_flag_CXX=unsupported
13820 always_export_symbols_CXX=yes
13821 file_list_spec_CXX='@'
13822 # Tell ltmain to make .lib files, not .a files.
13824 # Tell ltmain to make .dll files, not .so files.
13826 # FIXME: Setting linknames here is a bad hack.
13827 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13828 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13829 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13831 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13833 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13835 # The linker will not automatically build a static lib if we build a DLL.
13836 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13837 enable_shared_with_static_runtimes_CXX=yes
13839 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13840 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13841 lt_tool_outputfile="@TOOL_OUTPUT@"~
13842 case $lt_outputfile in
13845 lt_outputfile="$lt_outputfile.exe"
13846 lt_tool_outputfile="$lt_tool_outputfile.exe"
13849 func_to_tool_file "$lt_outputfile"~
13850 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13851 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13852 $RM "$lt_outputfile.manifest";
13857 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13858 # as there is no search path for DLLs.
13859 hardcode_libdir_flag_spec_CXX='-L$libdir'
13860 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13861 allow_undefined_flag_CXX=unsupported
13862 always_export_symbols_CXX=no
13863 enable_shared_with_static_runtimes_CXX=yes
13865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13866 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'
13867 # If the export-symbols file already is a .def file (1st line
13868 # is EXPORTS), use it as is; otherwise, prepend...
13869 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13870 cp $export_symbols $output_objdir/$soname.def;
13872 echo EXPORTS > $output_objdir/$soname.def;
13873 cat $export_symbols >> $output_objdir/$soname.def;
13875 $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'
13882 darwin* | rhapsody*)
13885 archive_cmds_need_lc_CXX=no
13886 hardcode_direct_CXX=no
13887 hardcode_automatic_CXX=yes
13888 hardcode_shlibpath_var_CXX=unsupported
13889 if test "$lt_cv_ld_force_load" = "yes"; then
13890 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\"`'
13892 whole_archive_flag_spec_CXX=''
13894 link_all_deplibs_CXX=yes
13895 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13896 case $cc_basename in
13897 ifort*) _lt_dar_can_shared=yes ;;
13898 *) _lt_dar_can_shared=$GCC ;;
13900 if test "$_lt_dar_can_shared" = "yes"; then
13901 output_verbose_link_cmd=func_echo_all
13902 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}"
13903 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13904 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}"
13905 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}"
13906 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13907 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}"
13908 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}"
13918 case $cc_basename in
13920 # FIXME: insert proper C++ library support
13924 # Green Hills C++ Compiler
13925 # FIXME: insert proper C++ library support
13929 # FIXME: insert proper C++ library support
13936 # C++ shared libraries reported to be fairly broken before
13942 archive_cmds_need_lc_CXX=no
13945 freebsd* | dragonfly*)
13946 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13955 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956 link_all_deplibs_CXX=yes
13960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13961 hardcode_libdir_separator_CXX=:
13962 export_dynamic_flag_spec_CXX='${wl}-E'
13963 hardcode_direct_CXX=yes
13964 hardcode_minus_L_CXX=yes # Not in the search PATH,
13965 # but as the default
13966 # location of the library.
13968 case $cc_basename in
13970 # FIXME: insert proper C++ library support
13974 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'
13975 # Commands to make compiler produce verbose output that lists
13976 # what "hidden" libraries, object files and flags are used when
13977 # linking a shared library.
13979 # There doesn't appear to be a way to prevent this compiler from
13980 # explicitly linking system object files so we need to strip them
13981 # from the output so that they don't get included in the library
13983 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"'
13986 if test "$GXX" = yes; then
13987 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'
13989 # FIXME: insert proper C++ library support
13997 if test $with_gnu_ld = no; then
13998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13999 hardcode_libdir_separator_CXX=:
14005 export_dynamic_flag_spec_CXX='${wl}-E'
14011 hardcode_direct_CXX=no
14012 hardcode_shlibpath_var_CXX=no
14015 hardcode_direct_CXX=yes
14016 hardcode_direct_absolute_CXX=yes
14017 hardcode_minus_L_CXX=yes # Not in the search PATH,
14018 # but as the default
14019 # location of the library.
14023 case $cc_basename in
14025 # FIXME: insert proper C++ library support
14031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14037 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 # Commands to make compiler produce verbose output that lists
14041 # what "hidden" libraries, object files and flags are used when
14042 # linking a shared library.
14044 # There doesn't appear to be a way to prevent this compiler from
14045 # explicitly linking system object files so we need to strip them
14046 # from the output so that they don't get included in the library
14048 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"'
14051 if test "$GXX" = yes; then
14052 if test $with_gnu_ld = no; then
14055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061 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'
14066 # FIXME: insert proper C++ library support
14074 hardcode_direct_CXX=no
14075 hardcode_shlibpath_var_CXX=no
14076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14077 export_dynamic_flag_spec_CXX='${wl}-E'
14078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14079 # Instead, shared libraries are loaded at an image base (0x10000000 by
14080 # default) and relocated if they conflict, which is a slow very memory
14081 # consuming and fragmenting process. To avoid this, we pick a random,
14082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14084 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'
14085 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'
14088 case $cc_basename in
14091 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'
14093 # Archives containing C++ object files must be created using
14094 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14095 # necessary to make sure instantiated templates are included
14097 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14100 if test "$GXX" = yes; then
14101 if test "$with_gnu_ld" = no; then
14102 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'
14104 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'
14107 link_all_deplibs_CXX=yes
14110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14111 hardcode_libdir_separator_CXX=:
14112 inherit_rpath_CXX=yes
14115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14116 case $cc_basename in
14118 # Kuck and Associates, Inc. (KAI) C++ Compiler
14120 # KCC will only create a shared library if the output file
14121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14122 # to its proper name (with version) after linking.
14123 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'
14124 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'
14125 # Commands to make compiler produce verbose output that lists
14126 # what "hidden" libraries, object files and flags are used when
14127 # linking a shared library.
14129 # There doesn't appear to be a way to prevent this compiler from
14130 # explicitly linking system object files so we need to strip them
14131 # from the output so that they don't get included in the library
14133 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"'
14135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14138 # Archives containing C++ object files must be created using
14139 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14140 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14145 # version 8.0 and above of icpc choke on multiply defined symbols
14146 # if we add $predep_objects and $postdep_objects, however 7.1 and
14147 # earlier do not add the objects themselves.
14148 case `$CC -V 2>&1` in
14150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151 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'
14153 *) # Version 8.0 or newer
14156 ia64*) tmp_idyn=' -i_dynamic';;
14158 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159 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'
14162 archive_cmds_need_lc_CXX=no
14163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14165 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14168 # Portland Group C++ compiler
14170 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14171 prelink_cmds_CXX='tpldir=Template.dir~
14173 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14174 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14175 old_archive_cmds_CXX='tpldir=Template.dir~
14177 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14178 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14180 archive_cmds_CXX='tpldir=Template.dir~
14182 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14183 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14184 archive_expsym_cmds_CXX='tpldir=Template.dir~
14186 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14187 $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'
14189 *) # Version 6 and above use weak symbols
14190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191 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'
14195 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14197 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'
14201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202 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'
14204 runpath_var=LD_RUN_PATH
14205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14206 hardcode_libdir_separator_CXX=:
14208 # Commands to make compiler produce verbose output that lists
14209 # what "hidden" libraries, object files and flags are used when
14210 # linking a shared library.
14212 # There doesn't appear to be a way to prevent this compiler from
14213 # explicitly linking system object files so we need to strip them
14214 # from the output so that they don't get included in the library
14216 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'
14218 xl* | mpixl* | bgxl*)
14219 # IBM XL 8.0 on PPC, with GNU ld
14220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14221 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14222 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 if test "x$supports_anon_versioning" = xyes; then
14224 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14226 echo "local: *; };" >> $output_objdir/$libname.ver~
14227 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14231 case `$CC -V 2>&1 | sed 5q` in
14234 no_undefined_flag_CXX=' -zdefs'
14235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14236 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'
14237 hardcode_libdir_flag_spec_CXX='-R$libdir'
14238 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'
14239 compiler_needs_object_CXX=yes
14241 # Not sure whether something based on
14242 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14244 output_verbose_link_cmd='func_echo_all'
14246 # Archives containing C++ object files must be created using
14247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14248 # necessary to make sure instantiated templates are included
14250 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14258 # FIXME: insert proper C++ library support
14263 # FIXME: insert proper C++ library support
14268 case $cc_basename in
14270 # FIXME: insert proper C++ library support
14274 # FIXME: insert proper C++ library support
14281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14282 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14284 hardcode_libdir_flag_spec_CXX='-R$libdir'
14285 hardcode_direct_CXX=yes
14286 hardcode_shlibpath_var_CXX=no
14288 # Workaround some broken pre-1.5 toolchains
14289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14297 # C++ shared libraries are fairly broken
14302 if test -f /usr/libexec/ld.so; then
14303 hardcode_direct_CXX=yes
14304 hardcode_shlibpath_var_CXX=no
14305 hardcode_direct_absolute_CXX=yes
14306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14309 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14310 export_dynamic_flag_spec_CXX='${wl}-E'
14311 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14313 output_verbose_link_cmd=func_echo_all
14319 osf3* | osf4* | osf5*)
14320 case $cc_basename in
14322 # Kuck and Associates, Inc. (KAI) C++ Compiler
14324 # KCC will only create a shared library if the output file
14325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14326 # to its proper name (with version) after linking.
14327 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'
14329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14330 hardcode_libdir_separator_CXX=:
14332 # Archives containing C++ object files must be created using
14333 # the KAI C++ compiler.
14335 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14336 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14340 # Rational C++ 2.4.1
14341 # FIXME: insert proper C++ library support
14347 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14348 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'
14349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14352 allow_undefined_flag_CXX=' -expect_unresolved \*'
14353 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'
14354 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14355 echo "-hidden">> $lib.exp~
14356 $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~
14358 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14362 hardcode_libdir_separator_CXX=:
14364 # Commands to make compiler produce verbose output that lists
14365 # what "hidden" libraries, object files and flags are used when
14366 # linking a shared library.
14368 # There doesn't appear to be a way to prevent this compiler from
14369 # explicitly linking system object files so we need to strip them
14370 # from the output so that they don't get included in the library
14372 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"'
14375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14379 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'
14382 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'
14386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14387 hardcode_libdir_separator_CXX=:
14389 # Commands to make compiler produce verbose output that lists
14390 # what "hidden" libraries, object files and flags are used when
14391 # linking a shared library.
14392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14395 # FIXME: insert proper C++ library support
14403 # FIXME: insert proper C++ library support
14408 case $cc_basename in
14411 # FIXME: insert proper C++ library support
14416 # FIXME: insert proper C++ library support
14420 # FIXME: insert proper C++ library support
14427 case $cc_basename in
14429 # Sun C++ 4.2, 5.x and Centerline C++
14430 archive_cmds_need_lc_CXX=yes
14431 no_undefined_flag_CXX=' -zdefs'
14432 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14433 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14434 $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'
14436 hardcode_libdir_flag_spec_CXX='-R$libdir'
14437 hardcode_shlibpath_var_CXX=no
14439 solaris2.[0-5] | solaris2.[0-5].*) ;;
14441 # The compiler driver will combine and reorder linker options,
14442 # but understands `-z linker_flag'.
14443 # Supported since Solaris 2.6 (maybe 2.5.1?)
14444 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14447 link_all_deplibs_CXX=yes
14449 output_verbose_link_cmd='func_echo_all'
14451 # Archives containing C++ object files must be created using
14452 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14453 # necessary to make sure instantiated templates are included
14455 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14458 # Green Hills C++ Compiler
14459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14461 # The C++ compiler must be used to create the archive.
14462 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14465 # GNU C++ compiler with Solaris linker
14466 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14467 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14468 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14469 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14471 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14473 # Commands to make compiler produce verbose output that lists
14474 # what "hidden" libraries, object files and flags are used when
14475 # linking a shared library.
14476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14478 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14480 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14484 # Commands to make compiler produce verbose output that lists
14485 # what "hidden" libraries, object files and flags are used when
14486 # linking a shared library.
14487 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14490 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14492 solaris2.[0-5] | solaris2.[0-5].*) ;;
14494 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14503 no_undefined_flag_CXX='${wl}-z,text'
14504 archive_cmds_need_lc_CXX=no
14505 hardcode_shlibpath_var_CXX=no
14506 runpath_var='LD_RUN_PATH'
14508 case $cc_basename in
14510 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14520 sysv5* | sco3.2v5* | sco5v6*)
14521 # Note: We can NOT use -z defs as we might desire, because we do not
14522 # link with -lc, and that would cause any symbols used from libc to
14523 # always be unresolved, which means just about no library would
14524 # ever link correctly. If we're not using GNU ld we use -z text
14525 # though, which does catch some bad symbols but isn't as heavy-handed
14527 no_undefined_flag_CXX='${wl}-z,text'
14528 allow_undefined_flag_CXX='${wl}-z,nodefs'
14529 archive_cmds_need_lc_CXX=no
14530 hardcode_shlibpath_var_CXX=no
14531 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14532 hardcode_libdir_separator_CXX=':'
14533 link_all_deplibs_CXX=yes
14534 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14535 runpath_var='LD_RUN_PATH'
14537 case $cc_basename in
14539 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14542 '"$old_archive_cmds_CXX"
14543 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14544 '"$reload_cmds_CXX"
14547 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 case $cc_basename in
14556 # NonStop-UX NCC 3.20
14557 # FIXME: insert proper C++ library support
14561 # FIXME: insert proper C++ library support
14568 # FIXME: insert proper C++ library support
14573 # FIXME: insert proper C++ library support
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14579 $as_echo "$ld_shlibs_CXX" >&6; }
14580 test "$ld_shlibs_CXX" = no && can_build_shared=no
14586 ## There is no encapsulation within the following macros, do not change
14587 ## the running order or otherwise move them around unless you know exactly
14588 ## what you are doing...
14589 # Dependencies to place before and after the object being linked:
14590 predep_objects_CXX=
14591 postdep_objects_CXX=
14594 compiler_lib_search_path_CXX=
14596 cat > conftest.$ac_ext <<_LT_EOF
14600 Foo (void) { a = 0; }
14607 _lt_libdeps_save_CFLAGS=$CFLAGS
14608 case "$CC $CFLAGS " in #(
14609 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14610 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14614 (eval $ac_compile) 2>&5
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; then
14618 # Parse the compiler output and extract the necessary
14619 # objects, libraries and library flags.
14621 # Sentinel used to keep track of whether or not we are before
14622 # the conftest object file.
14623 pre_test_object_deps_done=no
14625 for p in `eval "$output_verbose_link_cmd"`; do
14626 case ${prev}${p} in
14629 # Some compilers place space between "-{L,R}" and the path.
14630 # Remove the space.
14631 if test $p = "-L" ||
14632 test $p = "-R"; then
14637 # Expand the sysroot to ease extracting the directories later.
14638 if test -z "$prev"; then
14640 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14641 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14642 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14646 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14648 if test "$pre_test_object_deps_done" = no; then
14651 # Internal compiler library paths should come after those
14652 # provided the user. The postdeps already come after the
14653 # user supplied libs so there is no need to process them.
14654 if test -z "$compiler_lib_search_path_CXX"; then
14655 compiler_lib_search_path_CXX="${prev}${p}"
14657 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14660 # The "-l" case would never come before the object being
14661 # linked, so don't bother handling this case.
14664 if test -z "$postdeps_CXX"; then
14665 postdeps_CXX="${prev}${p}"
14667 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14673 *.lto.$objext) ;; # Ignore GCC LTO objects
14675 # This assumes that the test object file only shows up
14676 # once in the compiler output.
14677 if test "$p" = "conftest.$objext"; then
14678 pre_test_object_deps_done=yes
14682 if test "$pre_test_object_deps_done" = no; then
14683 if test -z "$predep_objects_CXX"; then
14684 predep_objects_CXX="$p"
14686 predep_objects_CXX="$predep_objects_CXX $p"
14689 if test -z "$postdep_objects_CXX"; then
14690 postdep_objects_CXX="$p"
14692 postdep_objects_CXX="$postdep_objects_CXX $p"
14697 *) ;; # Ignore the rest.
14705 echo "libtool.m4: error: problem compiling CXX test program"
14708 $RM -f confest.$objext
14709 CFLAGS=$_lt_libdeps_save_CFLAGS
14711 # PORTME: override above test on systems where it is broken
14714 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14715 # hack all around it, let's just trust "g++" to DTRT.
14716 predep_objects_CXX=
14717 postdep_objects_CXX=
14722 case `$CC -V 2>&1 | sed 5q` in
14726 # The more standards-conforming stlport4 library is
14727 # incompatible with the Cstd library. Avoid specifying
14728 # it if it's in CXXFLAGS. Ignore libCrun as
14729 # -library=stlport4 depends on it.
14730 case " $CXX $CXXFLAGS " in
14731 *" -library=stlport4 "*)
14732 solaris_use_stlport4=yes
14736 if test "$solaris_use_stlport4" != yes; then
14737 postdeps_CXX='-library=Cstd -library=Crun'
14744 case $cc_basename in
14746 # The more standards-conforming stlport4 library is
14747 # incompatible with the Cstd library. Avoid specifying
14748 # it if it's in CXXFLAGS. Ignore libCrun as
14749 # -library=stlport4 depends on it.
14750 case " $CXX $CXXFLAGS " in
14751 *" -library=stlport4 "*)
14752 solaris_use_stlport4=yes
14756 # Adding this requires a known-good setup of shared libraries for
14757 # Sun compiler versions before 5.6, else PIC objects from an old
14758 # archive will be linked into the output, leading to subtle bugs.
14759 if test "$solaris_use_stlport4" != yes; then
14760 postdeps_CXX='-library=Cstd -library=Crun'
14768 case " $postdeps_CXX " in
14769 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14771 compiler_lib_search_dirs_CXX=
14772 if test -n "${compiler_lib_search_path_CXX}"; then
14773 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14806 lt_prog_compiler_wl_CXX=
14807 lt_prog_compiler_pic_CXX=
14808 lt_prog_compiler_static_CXX=
14811 # C++ specific cases for pic, static, wl, etc.
14812 if test "$GXX" = yes; then
14813 lt_prog_compiler_wl_CXX='-Wl,'
14814 lt_prog_compiler_static_CXX='-static'
14818 # All AIX code is PIC.
14819 if test "$host_cpu" = ia64; then
14820 # AIX 5 now supports IA64 processor
14821 lt_prog_compiler_static_CXX='-Bstatic'
14828 # see comment about AmigaOS4 .so support
14829 lt_prog_compiler_pic_CXX='-fPIC'
14832 # FIXME: we need at least 68020 code to build shared libraries, but
14833 # adding the `-m68020' flag to GCC prevents building anything better,
14835 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14841 # PIC is the default for these OSes.
14843 mingw* | cygwin* | os2* | pw32* | cegcc*)
14844 # This hack is so that the source file can tell whether it is being
14845 # built for inclusion in a dll (and should export symbols for example).
14846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14847 # (--disable-auto-import) libraries
14848 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14850 darwin* | rhapsody*)
14851 # PIC is the default on this platform
14852 # Common symbols not allowed in MH_DYLIB files
14853 lt_prog_compiler_pic_CXX='-fno-common'
14856 # DJGPP does not support shared libraries at all
14857 lt_prog_compiler_pic_CXX=
14860 # PIC is the default for Haiku.
14861 # The "-static" flag exists, but is broken.
14862 lt_prog_compiler_static_CXX=
14865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14866 # Instead, we relocate shared libraries at runtime.
14869 if test -d /usr/nec; then
14870 lt_prog_compiler_pic_CXX=-Kconform_pic
14874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14876 # sets the default TLS model and affects inlining.
14881 lt_prog_compiler_pic_CXX='-fPIC'
14886 # QNX uses GNU C++, but need to define -shared option too, otherwise
14887 # it will coredump.
14888 lt_prog_compiler_pic_CXX='-fPIC -shared'
14891 lt_prog_compiler_pic_CXX='-fPIC'
14897 # All AIX code is PIC.
14898 if test "$host_cpu" = ia64; then
14899 # AIX 5 now supports IA64 processor
14900 lt_prog_compiler_static_CXX='-Bstatic'
14902 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14906 case $cc_basename in
14908 # Green Hills C++ Compiler
14909 # _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"
14913 mingw* | cygwin* | os2* | pw32* | cegcc*)
14914 # This hack is so that the source file can tell whether it is being
14915 # built for inclusion in a dll (and should export symbols for example).
14916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14919 case $cc_basename in
14921 lt_prog_compiler_pic_CXX='-KPIC'
14924 # Green Hills C++ Compiler
14925 lt_prog_compiler_pic_CXX='-pic'
14931 freebsd* | dragonfly*)
14932 # FreeBSD uses GNU C++
14934 hpux9* | hpux10* | hpux11*)
14935 case $cc_basename in
14937 lt_prog_compiler_wl_CXX='-Wl,'
14938 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14939 if test "$host_cpu" != ia64; then
14940 lt_prog_compiler_pic_CXX='+Z'
14944 lt_prog_compiler_wl_CXX='-Wl,'
14945 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14951 lt_prog_compiler_pic_CXX='+Z'
14960 # This is c89, which is MS Visual C++ (no shared libs)
14961 # Anyone wants to do a port?
14963 irix5* | irix6* | nonstopux*)
14964 case $cc_basename in
14966 lt_prog_compiler_wl_CXX='-Wl,'
14967 lt_prog_compiler_static_CXX='-non_shared'
14968 # CC pic flag -KPIC is the default.
14974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14975 case $cc_basename in
14978 lt_prog_compiler_wl_CXX='--backend -Wl,'
14979 lt_prog_compiler_pic_CXX='-fPIC'
14982 # old Intel C++ for x86_64 which still supported -KPIC.
14983 lt_prog_compiler_wl_CXX='-Wl,'
14984 lt_prog_compiler_pic_CXX='-KPIC'
14985 lt_prog_compiler_static_CXX='-static'
14988 # Intel C++, used to be incompatible with GCC.
14989 # ICC 10 doesn't accept -KPIC any more.
14990 lt_prog_compiler_wl_CXX='-Wl,'
14991 lt_prog_compiler_pic_CXX='-fPIC'
14992 lt_prog_compiler_static_CXX='-static'
14995 # Portland Group C++ compiler
14996 lt_prog_compiler_wl_CXX='-Wl,'
14997 lt_prog_compiler_pic_CXX='-fpic'
14998 lt_prog_compiler_static_CXX='-Bstatic'
15002 # Make sure the PIC flag is empty. It appears that all Alpha
15003 # Linux and Compaq Tru64 Unix objects are PIC.
15004 lt_prog_compiler_pic_CXX=
15005 lt_prog_compiler_static_CXX='-non_shared'
15007 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15008 # IBM XL 8.0, 9.0 on PPC and BlueGene
15009 lt_prog_compiler_wl_CXX='-Wl,'
15010 lt_prog_compiler_pic_CXX='-qpic'
15011 lt_prog_compiler_static_CXX='-qstaticlink'
15014 case `$CC -V 2>&1 | sed 5q` in
15017 lt_prog_compiler_pic_CXX='-KPIC'
15018 lt_prog_compiler_static_CXX='-Bstatic'
15019 lt_prog_compiler_wl_CXX='-Qoption ld '
15030 case $cc_basename in
15032 lt_prog_compiler_pic_CXX='-W c,exportall'
15041 # QNX uses GNU C++, but need to define -shared option too, otherwise
15042 # it will coredump.
15043 lt_prog_compiler_pic_CXX='-fPIC -shared'
15045 osf3* | osf4* | osf5*)
15046 case $cc_basename in
15048 lt_prog_compiler_wl_CXX='--backend -Wl,'
15051 # Rational C++ 2.4.1
15052 lt_prog_compiler_pic_CXX='-pic'
15055 # Digital/Compaq C++
15056 lt_prog_compiler_wl_CXX='-Wl,'
15057 # Make sure the PIC flag is empty. It appears that all Alpha
15058 # Linux and Compaq Tru64 Unix objects are PIC.
15059 lt_prog_compiler_pic_CXX=
15060 lt_prog_compiler_static_CXX='-non_shared'
15069 case $cc_basename in
15071 # Sun C++ 4.2, 5.x and Centerline C++
15072 lt_prog_compiler_pic_CXX='-KPIC'
15073 lt_prog_compiler_static_CXX='-Bstatic'
15074 lt_prog_compiler_wl_CXX='-Qoption ld '
15077 # Green Hills C++ Compiler
15078 lt_prog_compiler_pic_CXX='-PIC'
15085 case $cc_basename in
15088 lt_prog_compiler_pic_CXX='-pic'
15089 lt_prog_compiler_static_CXX='-Bstatic'
15093 lt_prog_compiler_pic_CXX='-pic'
15099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15100 case $cc_basename in
15102 lt_prog_compiler_wl_CXX='-Wl,'
15103 lt_prog_compiler_pic_CXX='-KPIC'
15104 lt_prog_compiler_static_CXX='-Bstatic'
15109 case $cc_basename in
15111 # NonStop-UX NCC 3.20
15112 lt_prog_compiler_pic_CXX='-KPIC'
15121 lt_prog_compiler_can_build_shared_CXX=no
15127 # For platforms which do not support PIC, -DPIC is meaningless:
15129 lt_prog_compiler_pic_CXX=
15132 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15137 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
15139 $as_echo_n "(cached) " >&6
15141 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15144 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15145 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15148 # Check to make sure the PIC flag actually works.
15150 if test -n "$lt_prog_compiler_pic_CXX"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15153 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15154 $as_echo_n "(cached) " >&6
15156 lt_cv_prog_compiler_pic_works_CXX=no
15157 ac_outfile=conftest.$ac_objext
15158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15159 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15160 # Insert the option either (1) after the last *FLAGS variable, or
15161 # (2) before a word containing "conftest.", or (3) at the end.
15162 # Note that $ac_compile itself does not contain backslashes and begins
15163 # with a dollar sign (not a hyphen), so the echo should work correctly.
15164 # The option is referenced via a variable to avoid confusing sed.
15165 lt_compile=`echo "$ac_compile" | $SED \
15166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168 -e 's:$: $lt_compiler_flag:'`
15169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15170 (eval "$lt_compile" 2>conftest.err)
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 if (exit $ac_status) && test -s "$ac_outfile"; then
15175 # The compiler can only warn and ignore the option if not recognized
15176 # So say no if there are warnings other than the usual output.
15177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15180 lt_cv_prog_compiler_pic_works_CXX=yes
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15187 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15189 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15190 case $lt_prog_compiler_pic_CXX in
15192 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15195 lt_prog_compiler_pic_CXX=
15196 lt_prog_compiler_can_build_shared_CXX=no
15206 # Check to make sure the static flag actually works.
15208 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15211 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15214 lt_cv_prog_compiler_static_works_CXX=no
15215 save_LDFLAGS="$LDFLAGS"
15216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15219 # The linker can only warn and ignore the option if not recognized
15220 # So say no if there are warnings
15221 if test -s conftest.err; then
15222 # Append any errors to the config.log.
15223 cat conftest.err 1>&5
15224 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226 if diff conftest.exp conftest.er2 >/dev/null; then
15227 lt_cv_prog_compiler_static_works_CXX=yes
15230 lt_cv_prog_compiler_static_works_CXX=yes
15234 LDFLAGS="$save_LDFLAGS"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15238 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15240 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15243 lt_prog_compiler_static_CXX=
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15251 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15254 lt_cv_prog_compiler_c_o_CXX=no
15255 $RM -r conftest 2>/dev/null
15259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261 lt_compiler_flag="-o out/conftest2.$ac_objext"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 lt_compile=`echo "$ac_compile" | $SED \
15267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269 -e 's:$: $lt_compiler_flag:'`
15270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271 (eval "$lt_compile" 2>out/conftest.err)
15273 cat out/conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_c_o_CXX=yes
15287 # SGI C++ compiler will create directory out/ii_files/ for
15288 # template instantiation
15289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15290 $RM out/* && rmdir out
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15297 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15302 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15303 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15304 $as_echo_n "(cached) " >&6
15306 lt_cv_prog_compiler_c_o_CXX=no
15307 $RM -r conftest 2>/dev/null
15311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15313 lt_compiler_flag="-o out/conftest2.$ac_objext"
15314 # Insert the option either (1) after the last *FLAGS variable, or
15315 # (2) before a word containing "conftest.", or (3) at the end.
15316 # Note that $ac_compile itself does not contain backslashes and begins
15317 # with a dollar sign (not a hyphen), so the echo should work correctly.
15318 lt_compile=`echo "$ac_compile" | $SED \
15319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321 -e 's:$: $lt_compiler_flag:'`
15322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15323 (eval "$lt_compile" 2>out/conftest.err)
15325 cat out/conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15329 # The compiler can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
15331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15334 lt_cv_prog_compiler_c_o_CXX=yes
15339 # SGI C++ compiler will create directory out/ii_files/ for
15340 # template instantiation
15341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15342 $RM out/* && rmdir out
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15349 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15354 hard_links="nottested"
15355 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15356 # do not overwrite the value of need_locks provided by the user
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15358 $as_echo_n "checking if we can lock with hard links... " >&6; }
15361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15363 ln conftest.a conftest.b 2>&5 || hard_links=no
15364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15366 $as_echo "$hard_links" >&6; }
15367 if test "$hard_links" = no; then
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15369 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15381 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15382 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15385 # If we're using GNU nm, then we don't want the "-C" option.
15386 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15387 # Also, AIX nm treats weak defined symbols like other global defined
15388 # symbols, whereas GNU nm marks them as "W".
15389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15390 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'
15392 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'
15396 export_symbols_cmds_CXX="$ltdll_cmds"
15398 cygwin* | mingw* | cegcc*)
15399 case $cc_basename in
15402 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'
15403 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15413 $as_echo "$ld_shlibs_CXX" >&6; }
15414 test "$ld_shlibs_CXX" = no && can_build_shared=no
15416 with_gnu_ld_CXX=$with_gnu_ld
15424 # Do we need to explicitly link libc?
15426 case "x$archive_cmds_need_lc_CXX" in
15428 # Assume -lc should be added
15429 archive_cmds_need_lc_CXX=yes
15431 if test "$enable_shared" = yes && test "$GCC" = yes; then
15432 case $archive_cmds_CXX in
15434 # FIXME: we may have to deal with multi-command sequences.
15437 # Test whether the compiler implicitly links with -lc since on some
15438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15439 # to ld, don't add -lc before -lgcc.
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15442 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15443 $as_echo_n "(cached) " >&6
15446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15449 (eval $ac_compile) 2>&5
15451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15452 test $ac_status = 0; } 2>conftest.err; then
15455 libobjs=conftest.$ac_objext
15457 wl=$lt_prog_compiler_wl_CXX
15458 pic_flag=$lt_prog_compiler_pic_CXX
15464 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15465 allow_undefined_flag_CXX=
15466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15467 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; }
15472 lt_cv_archive_cmds_need_lc_CXX=no
15474 lt_cv_archive_cmds_need_lc_CXX=yes
15476 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15478 cat conftest.err 1>&5
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15484 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15485 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15558 library_names_spec=
15559 libname_spec='lib$name'
15563 postuninstall_cmds=
15567 shlibpath_overrides_runpath=unknown
15569 dynamic_linker="$host_os ld.so"
15570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15571 need_lib_prefix=unknown
15572 hardcode_into_libs=no
15574 # when you set need_version to no, make sure it does not cause -set_version
15575 # flags to be left without arguments
15576 need_version=unknown
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15582 shlibpath_var=LIBPATH
15584 # AIX 3 has no versioning support, so we append a major version to the name.
15585 soname_spec='${libname}${release}${shared_ext}$major'
15592 hardcode_into_libs=yes
15593 if test "$host_cpu" = ia64; then
15594 # AIX 5 supports IA64
15595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15596 shlibpath_var=LD_LIBRARY_PATH
15598 # With GCC up to 2.95.x, collect2 would create an import file
15599 # for dependence libraries. The import file would start with
15600 # the line `#! .'. This would cause the generated library to
15601 # depend on `.', always an invalid library. This was fixed in
15602 # development snapshots of GCC prior to 3.0.
15604 aix4 | aix4.[01] | aix4.[01].*)
15605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15607 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15610 can_build_shared=no
15614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15615 # soname into executable. Probably we can add versioning support to
15616 # collect2, so additional links can be useful in future.
15617 if test "$aix_use_runtimelinking" = yes; then
15618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15619 # instead of lib<name>.a to let people know that these are not
15620 # typical AIX shared libraries.
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 # We preserve .a as extension for shared libraries through AIX4.2
15624 # and later when we are not doing run time linking.
15625 library_names_spec='${libname}${release}.a $libname.a'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LIBPATH
15635 # Since July 2007 AmigaOS4 officially supports .so libraries.
15636 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 library_names_spec='$libname.ixlibrary $libname.a'
15641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15642 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'
15648 library_names_spec='${libname}${shared_ext}'
15649 dynamic_linker="$host_os ld.so"
15650 shlibpath_var=LIBRARY_PATH
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15662 # the default ld.so.conf also contains /usr/contrib/lib and
15663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15664 # libtool to hard-code these into programs
15667 cygwin* | mingw* | pw32* | cegcc*)
15668 version_type=windows
15673 case $GCC,$cc_basename in
15676 library_names_spec='$libname.dll.a'
15677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15678 postinstall_cmds='base_file=`basename \${file}`~
15679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15680 dldir=$destdir/`dirname \$dlpath`~
15681 test -d \$dldir || mkdir -p \$dldir~
15682 $install_prog $dir/$dlname \$dldir/$dlname~
15683 chmod a+x \$dldir/$dlname~
15684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15688 dlpath=$dir/\$dldll~
15690 shlibpath_overrides_runpath=yes
15694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15699 # MinGW DLLs use traditional 'lib' prefix
15700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703 # pw32 DLLs use 'pw' prefix rather than 'lib'
15704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707 dynamic_linker='Win32 ld.exe'
15712 libname_spec='$name'
15713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 library_names_spec='${libname}.dll.lib'
15718 sys_lib_search_path_spec=
15721 for lt_path in $LIB
15724 # Let DOS variable expansion print the short 8.3 style file name.
15725 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15726 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15729 # Convert to MSYS style.
15730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15733 # Convert to unix form, then to dos form, then back to unix form
15734 # but this time dos style (no spaces!) so that the unix form looks
15735 # like /cygdrive/c/PROGRA~1:/cygdr...
15736 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15737 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15738 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15741 sys_lib_search_path_spec="$LIB"
15742 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15743 # It is most probably a Windows format PATH.
15744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15748 # FIXME: find the short name or the path components, as spaces are
15749 # common. (e.g. "Program Files" -> "PROGRA~1")
15753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15754 postinstall_cmds='base_file=`basename \${file}`~
15755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15756 dldir=$destdir/`dirname \$dlpath`~
15757 test -d \$dldir || mkdir -p \$dldir~
15758 $install_prog $dir/$dlname \$dldir/$dlname'
15759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15760 dlpath=$dir/\$dldll~
15762 shlibpath_overrides_runpath=yes
15763 dynamic_linker='Win32 link.exe'
15767 # Assume MSVC wrapper
15768 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15769 dynamic_linker='Win32 ld.exe'
15772 # FIXME: first we should search . and the directory the executable is in
15776 darwin* | rhapsody*)
15777 dynamic_linker="$host_os dyld"
15778 version_type=darwin
15781 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15782 soname_spec='${libname}${release}${major}$shared_ext'
15783 shlibpath_overrides_runpath=yes
15784 shlibpath_var=DYLD_LIBRARY_PATH
15785 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15803 freebsd* | dragonfly*)
15804 # DragonFly does not have aout. When/if they implement a new
15805 # versioning mechanism, adjust this.
15806 if test -x /usr/bin/objformat; then
15807 objformat=`/usr/bin/objformat`
15810 freebsd[123]*) objformat=aout ;;
15811 *) objformat=elf ;;
15814 version_type=freebsd-$objformat
15815 case $version_type in
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15826 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15831 freebsd3.[01]* | freebsdelf3.[01]*)
15832 shlibpath_overrides_runpath=yes
15833 hardcode_into_libs=yes
15835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15840 *) # from 4.6 on, and DragonFly
15841 shlibpath_overrides_runpath=yes
15842 hardcode_into_libs=yes
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 hardcode_into_libs=yes
15861 dynamic_linker="$host_os runtime_loader"
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 shlibpath_var=LIBRARY_PATH
15865 shlibpath_overrides_runpath=yes
15866 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15867 hardcode_into_libs=yes
15870 hpux9* | hpux10* | hpux11*)
15871 # Give a soname corresponding to the major version so that dld.sl refuses to
15872 # link against other versions.
15879 hardcode_into_libs=yes
15880 dynamic_linker="$host_os dld.so"
15881 shlibpath_var=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 if test "X$HPUX_IA64_MODE" = X32; then
15886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15894 hardcode_into_libs=yes
15895 dynamic_linker="$host_os dld.sl"
15896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 soname_spec='${libname}${release}${shared_ext}$major'
15900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905 dynamic_linker="$host_os dld.sl"
15906 shlibpath_var=SHLIB_PATH
15907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15912 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15913 postinstall_cmds='chmod 555 $lib'
15914 # or fails outright, so override atomically:
15915 install_override_mode=555
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=no
15927 hardcode_into_libs=yes
15930 irix5* | irix6* | nonstopux*)
15932 nonstopux*) version_type=nonstopux ;;
15934 if test "$lt_cv_prog_gnu_ld" = yes; then
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15945 irix5* | nonstopux*)
15946 libsuff= shlibsuff=
15949 case $LD in # libtool.m4 will add one of these switches to LD
15950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15951 libsuff= shlibsuff= libmagic=32-bit;;
15952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15953 libsuff=32 shlibsuff=N32 libmagic=N32;;
15954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15956 *) libsuff= shlibsuff= libmagic=never-match;;
15960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15961 shlibpath_overrides_runpath=no
15962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15964 hardcode_into_libs=yes
15967 # No shared lib support for Linux oldld, aout, or coff.
15968 linux*oldld* | linux*aout* | linux*coff*)
15972 # This must be Linux ELF.
15973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=no
15983 # Some binutils ld are patched to set DT_RUNPATH
15984 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15985 $as_echo_n "(cached) " >&6
15987 lt_cv_shlibpath_overrides_runpath=no
15988 save_LDFLAGS=$LDFLAGS
15989 save_libdir=$libdir
15990 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15991 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
16003 if ac_fn_cxx_try_link "$LINENO"; then :
16004 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16005 lt_cv_shlibpath_overrides_runpath=yes
16008 rm -f core conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16010 LDFLAGS=$save_LDFLAGS
16011 libdir=$save_libdir
16015 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16017 # This implies no fast_install, which is unacceptable.
16018 # Some rework will be needed to allow for fast_install
16019 # before this can be enabled.
16020 hardcode_into_libs=yes
16022 # Append ld.so.conf contents to the search path
16023 if test -f /etc/ld.so.conf; then
16024 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' ' '`
16025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16028 # We used to test for /lib/ld.so.1 and disable shared libraries on
16029 # powerpc, because MkLinux only supported shared libraries with the
16030 # GNU dynamic linker. Since this was broken with cross compilers,
16031 # most powerpc-linux boxes support dynamic linking these days and
16032 # people can always --disable-shared, the test was removed, and we
16033 # assume the GNU/Linux dynamic linker is in use.
16034 dynamic_linker='GNU/Linux ld.so'
16041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16044 dynamic_linker='NetBSD (a.out) ld.so'
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 dynamic_linker='NetBSD ld.elf_so'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=yes
16052 hardcode_into_libs=yes
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=no
16070 hardcode_into_libs=yes
16071 dynamic_linker='ldqnx.so'
16076 sys_lib_dlsearch_path_spec="/usr/lib"
16078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16081 *) need_version=no ;;
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16088 openbsd2.[89] | openbsd2.[89].*)
16089 shlibpath_overrides_runpath=no
16092 shlibpath_overrides_runpath=yes
16096 shlibpath_overrides_runpath=yes
16101 libname_spec='$name'
16104 library_names_spec='$libname${shared_ext} $libname.a'
16105 dynamic_linker='OS/2 ld.exe'
16106 shlibpath_var=LIBPATH
16109 osf3* | osf4* | osf5*)
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=yes
16132 hardcode_into_libs=yes
16133 # ldd complains unless libraries are executable
16134 postinstall_cmds='chmod +x $lib'
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16141 shlibpath_var=LD_LIBRARY_PATH
16142 shlibpath_overrides_runpath=yes
16143 if test "$with_gnu_ld" = yes; then
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 case $host_vendor in
16156 shlibpath_overrides_runpath=no
16158 runpath_var=LD_RUN_PATH
16166 shlibpath_overrides_runpath=no
16167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16173 if test -d /usr/nec ;then
16175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16176 soname_spec='$libname${shared_ext}.$major'
16177 shlibpath_var=LD_LIBRARY_PATH
16181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16182 version_type=freebsd-elf
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes
16189 hardcode_into_libs=yes
16190 if test "$with_gnu_ld" = yes; then
16191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16200 sys_lib_dlsearch_path_spec='/usr/lib'
16204 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=no
16211 hardcode_into_libs=yes
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16226 $as_echo "$dynamic_linker" >&6; }
16227 test "$dynamic_linker" = no && can_build_shared=no
16229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16230 if test "$GCC" = yes; then
16231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16234 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16235 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16238 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16279 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16280 hardcode_action_CXX=
16281 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16282 test -n "$runpath_var_CXX" ||
16283 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16285 # We can hardcode non-existent directories.
16286 if test "$hardcode_direct_CXX" != no &&
16287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16288 # have to relink, otherwise we might link with an installed library
16289 # when we should be linking with a yet-to-be-installed one
16290 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16291 test "$hardcode_minus_L_CXX" != no; then
16292 # Linking always hardcodes the temporary library directory.
16293 hardcode_action_CXX=relink
16295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16296 hardcode_action_CXX=immediate
16299 # We cannot hardcode anything, or else we can only hardcode existing
16301 hardcode_action_CXX=unsupported
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16304 $as_echo "$hardcode_action_CXX" >&6; }
16306 if test "$hardcode_action_CXX" = relink ||
16307 test "$inherit_rpath_CXX" = yes; then
16308 # Fast installation is not supported
16309 enable_fast_install=no
16310 elif test "$shlibpath_overrides_runpath" = yes ||
16311 test "$enable_shared" = no; then
16312 # Fast installation is not necessary
16313 enable_fast_install=needless
16322 fi # test -n "$compiler"
16325 CFLAGS=$lt_save_CFLAGS
16329 with_gnu_ld=$lt_save_with_gnu_ld
16330 lt_cv_path_LDCXX=$lt_cv_path_LD
16331 lt_cv_path_LD=$lt_save_path_LD
16332 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16333 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16334 fi # test "$_lt_caught_CXX_error" != yes
16337 ac_cpp='$CPP $CPPFLAGS'
16338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16354 ac_config_commands="$ac_config_commands libtool"
16359 # Only expand once:
16364 if test x$use_libtool != xno; then
16365 DEFAULT_OBJECT_TYPE=".lo"
16366 DEFAULT_ARCHIVE_TYPE=".la"
16367 DEFAULT_SHARED_OBJECT_TYPE=".la"
16368 LIBTOOL="\$(LIBTOOL)"
16369 LIBTOOL_INSTALL_TARGET="libtool-install"
16370 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16371 LIBTOOL_CLEAN_TARGET="libtool-clean"
16372 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16373 FD_PLUGIN_DIR="src/plugins/fd"
16376 DEFAULT_OBJECT_TYPE=".o"
16377 DEFAULT_ARCHIVE_TYPE=".a"
16378 DEFAULT_SHARED_OBJECT_TYPE=".so"
16379 LIBTOOL="# \$(LIBTOOL)"
16380 LIBTOOL_INSTALL_TARGET=""
16381 LIBTOOL_UNINSTALL_TARGET=""
16382 LIBTOOL_CLEAN_TARGET=""
16383 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16398 # Check whether --enable-includes was given.
16399 if test "${enable_includes+set}" = set; then :
16400 enableval=$enable_includes;
16401 if test x$enableval = xyes; then
16402 install_includes=yes
16410 if test x$use_libtool != xno -a x$install_includes = xyes; then
16411 INCLUDE_INSTALL_TARGET="install-includes"
16412 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16414 INCLUDE_INSTALL_TARGET=""
16415 INCLUDE_UNINSTALL_TARGET=""
16423 *cygwin* ) CYGWIN=yes;;
16427 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16433 HAVE_SUN_OS_FALSE='#'
16435 HAVE_SUN_OS_TRUE='#'
16438 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16445 HAVE_SUN_OS_FALSE='#'
16447 HAVE_SUN_OS_TRUE='#'
16452 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16458 HAVE_OSF1_OS_FALSE='#'
16460 HAVE_OSF1_OS_TRUE='#'
16461 HAVE_OSF1_OS_FALSE=
16463 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16470 HAVE_OSF1_OS_FALSE='#'
16472 HAVE_OSF1_OS_TRUE='#'
16473 HAVE_OSF1_OS_FALSE=
16477 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16483 HAVE_AIX_OS_FALSE='#'
16485 HAVE_AIX_OS_TRUE='#'
16488 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16495 HAVE_AIX_OS_FALSE='#'
16497 HAVE_AIX_OS_TRUE='#'
16502 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16508 HAVE_HPUX_OS_FALSE='#'
16510 HAVE_HPUX_OS_TRUE='#'
16511 HAVE_HPUX_OS_FALSE=
16513 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16520 HAVE_HPUX_OS_FALSE='#'
16522 HAVE_HPUX_OS_TRUE='#'
16523 HAVE_HPUX_OS_FALSE=
16527 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16532 HAVE_LINUX_OS_TRUE=
16533 HAVE_LINUX_OS_FALSE='#'
16535 HAVE_LINUX_OS_TRUE='#'
16536 HAVE_LINUX_OS_FALSE=
16538 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16544 HAVE_LINUX_OS_TRUE=
16545 HAVE_LINUX_OS_FALSE='#'
16547 HAVE_LINUX_OS_TRUE='#'
16548 HAVE_LINUX_OS_FALSE=
16552 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16557 HAVE_FREEBSD_OS_TRUE=
16558 HAVE_FREEBSD_OS_FALSE='#'
16560 HAVE_FREEBSD_OS_TRUE='#'
16561 HAVE_FREEBSD_OS_FALSE=
16563 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16569 HAVE_FREEBSD_OS_TRUE=
16570 HAVE_FREEBSD_OS_FALSE='#'
16572 HAVE_FREEBSD_OS_TRUE='#'
16573 HAVE_FREEBSD_OS_FALSE=
16577 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16582 HAVE_NETBSD_OS_TRUE=
16583 HAVE_NETBSD_OS_FALSE='#'
16585 HAVE_NETBSD_OS_TRUE='#'
16586 HAVE_NETBSD_OS_FALSE=
16588 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16594 HAVE_NETBSD_OS_TRUE=
16595 HAVE_NETBSD_OS_FALSE='#'
16597 HAVE_NETBSD_OS_TRUE='#'
16598 HAVE_NETBSD_OS_FALSE=
16602 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16607 HAVE_OPENBSD_OS_TRUE=
16608 HAVE_OPENBSD_OS_FALSE='#'
16610 HAVE_OPENBSD_OS_TRUE='#'
16611 HAVE_OPENBSD_OS_FALSE=
16613 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16619 HAVE_OPENBSD_OS_TRUE=
16620 HAVE_OPENBSD_OS_FALSE='#'
16622 HAVE_OPENBSD_OS_TRUE='#'
16623 HAVE_OPENBSD_OS_FALSE=
16627 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16633 HAVE_BSDI_OS_FALSE='#'
16635 HAVE_BSDI_OS_TRUE='#'
16636 HAVE_BSDI_OS_FALSE=
16638 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16645 HAVE_BSDI_OS_FALSE='#'
16647 HAVE_BSDI_OS_TRUE='#'
16648 HAVE_BSDI_OS_FALSE=
16652 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16658 HAVE_SGI_OS_FALSE='#'
16660 HAVE_SGI_OS_TRUE='#'
16663 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16670 HAVE_SGI_OS_FALSE='#'
16672 HAVE_SGI_OS_TRUE='#'
16677 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16683 HAVE_IRIX_OS_FALSE='#'
16685 HAVE_IRIX_OS_TRUE='#'
16686 HAVE_IRIX_OS_FALSE=
16688 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16695 HAVE_IRIX_OS_FALSE='#'
16697 HAVE_IRIX_OS_TRUE='#'
16698 HAVE_IRIX_OS_FALSE=
16702 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16707 HAVE_DARWIN_OS_TRUE=
16708 HAVE_DARWIN_OS_FALSE='#'
16710 HAVE_DARWIN_OS_TRUE='#'
16711 HAVE_DARWIN_OS_FALSE=
16713 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16719 HAVE_DARWIN_OS_TRUE=
16720 HAVE_DARWIN_OS_FALSE='#'
16722 HAVE_DARWIN_OS_TRUE='#'
16723 HAVE_DARWIN_OS_FALSE=
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16729 $as_echo_n "checking for Operating System Distribution... " >&6; }
16730 if test "x$DISTNAME" != "x"
16732 echo "distname set to $DISTNAME"
16733 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16736 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16739 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16742 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16745 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16748 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16751 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16754 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16757 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16760 elif test -f /etc/SuSE-release
16763 elif test -d /etc/SuSEconfig
16766 elif test -f /etc/mandrake-release
16769 elif test -f /etc/whitebox-release
16772 elif test -f /etc/redhat-release
16775 elif test -f /etc/gentoo-release
16778 elif test -f /etc/debian_version
16781 elif test -f /etc/slackware-version
16784 elif test x$host_vendor = xapple
16787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16790 elif test -f /etc/engarde-version
16793 elif test -f /etc/arch-release
16796 elif test "$CYGWIN" = yes
16799 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16805 $as_echo "done" >&6; }
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16812 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
16813 $as_echo_n "(cached) " >&6
16815 cat >conftest.make <<\_ACEOF
16818 @echo '@@@%%%=$(MAKE)=@@@%%%'
16820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16822 *@@@%%%=?*=@@@%%%*)
16823 eval ac_cv_prog_make_${ac_make}_set=yes;;
16825 eval ac_cv_prog_make_${ac_make}_set=no;;
16827 rm -f conftest.make
16829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835 $as_echo "no" >&6; }
16836 SET_MAKE="MAKE=${MAKE-make}"
16842 if test -n "$ac_aux_dir"; then
16843 case "$ac_aux_dir" in
16844 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16845 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16848 if test -z "$MKINSTALLDIRS"; then
16849 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16855 $as_echo_n "checking whether NLS is requested... " >&6; }
16856 # Check whether --enable-nls was given.
16857 if test "${enable_nls+set}" = set; then :
16858 enableval=$enable_nls; USE_NLS=$enableval
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16864 $as_echo "$USE_NLS" >&6; }
16871 # Prepare PATH_SEPARATOR.
16872 # The user is always right.
16873 if test "${PATH_SEPARATOR+set}" != set; then
16874 echo "#! /bin/sh" >conf$$.sh
16875 echo "exit 0" >>conf$$.sh
16877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16885 # Find out how to test for executable files. Don't use a zero-byte file,
16886 # as systems may use methods other than mode bits to determine executability.
16887 cat >conf$$.file <<_ASEOF
16891 chmod +x conf$$.file
16892 if test -x conf$$.file >/dev/null 2>&1; then
16893 ac_executable_p="test -x"
16895 ac_executable_p="test -f"
16899 # Extract the first word of "msgfmt", so it can be a program name with args.
16900 set dummy msgfmt; ac_word=$2
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16902 $as_echo_n "checking for $ac_word... " >&6; }
16903 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16904 $as_echo_n "(cached) " >&6
16908 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16911 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16912 for ac_dir in $PATH; do
16914 test -z "$ac_dir" && ac_dir=.
16915 for ac_exec_ext in '' $ac_executable_extensions; do
16916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16917 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16918 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16919 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16920 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16927 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16931 MSGFMT="$ac_cv_path_MSGFMT"
16932 if test "$MSGFMT" != ":"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16934 $as_echo "$MSGFMT" >&6; }
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16940 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16941 set dummy gmsgfmt; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16945 $as_echo_n "(cached) " >&6
16949 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16956 test -z "$as_dir" && as_dir=.
16957 for ac_exec_ext in '' $ac_executable_extensions; do
16958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16959 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16967 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16971 GMSGFMT=$ac_cv_path_GMSGFMT
16972 if test -n "$GMSGFMT"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16974 $as_echo "$GMSGFMT" >&6; }
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16977 $as_echo "no" >&6; }
16983 # Prepare PATH_SEPARATOR.
16984 # The user is always right.
16985 if test "${PATH_SEPARATOR+set}" != set; then
16986 echo "#! /bin/sh" >conf$$.sh
16987 echo "exit 0" >>conf$$.sh
16989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16997 # Find out how to test for executable files. Don't use a zero-byte file,
16998 # as systems may use methods other than mode bits to determine executability.
16999 cat >conf$$.file <<_ASEOF
17003 chmod +x conf$$.file
17004 if test -x conf$$.file >/dev/null 2>&1; then
17005 ac_executable_p="test -x"
17007 ac_executable_p="test -f"
17011 # Extract the first word of "xgettext", so it can be a program name with args.
17012 set dummy xgettext; ac_word=$2
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17014 $as_echo_n "checking for $ac_word... " >&6; }
17015 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17016 $as_echo_n "(cached) " >&6
17018 case "$XGETTEXT" in
17020 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17024 for ac_dir in $PATH; do
17026 test -z "$ac_dir" && ac_dir=.
17027 for ac_exec_ext in '' $ac_executable_extensions; do
17028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17029 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17030 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17031 (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
17032 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17043 XGETTEXT="$ac_cv_path_XGETTEXT"
17044 if test "$XGETTEXT" != ":"; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17046 $as_echo "$XGETTEXT" >&6; }
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17055 # Prepare PATH_SEPARATOR.
17056 # The user is always right.
17057 if test "${PATH_SEPARATOR+set}" != set; then
17058 echo "#! /bin/sh" >conf$$.sh
17059 echo "exit 0" >>conf$$.sh
17061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17069 # Find out how to test for executable files. Don't use a zero-byte file,
17070 # as systems may use methods other than mode bits to determine executability.
17071 cat >conf$$.file <<_ASEOF
17075 chmod +x conf$$.file
17076 if test -x conf$$.file >/dev/null 2>&1; then
17077 ac_executable_p="test -x"
17079 ac_executable_p="test -f"
17083 # Extract the first word of "msgmerge", so it can be a program name with args.
17084 set dummy msgmerge; ac_word=$2
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17086 $as_echo_n "checking for $ac_word... " >&6; }
17087 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17088 $as_echo_n "(cached) " >&6
17090 case "$MSGMERGE" in
17092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17095 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17096 for ac_dir in $PATH; do
17098 test -z "$ac_dir" && ac_dir=.
17099 for ac_exec_ext in '' $ac_executable_extensions; do
17100 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17101 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17114 MSGMERGE="$ac_cv_path_MSGMERGE"
17115 if test "$MSGMERGE" != ":"; then
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17117 $as_echo "$MSGMERGE" >&6; }
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17124 if test "$GMSGFMT" != ":"; then
17125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17131 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17136 if test "$XGETTEXT" != ":"; then
17137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17138 (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
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17142 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17148 ac_config_commands="$ac_config_commands default-1"
17152 if test "X$prefix" = "XNONE"; then
17153 acl_final_prefix="$ac_default_prefix"
17155 acl_final_prefix="$prefix"
17157 if test "X$exec_prefix" = "XNONE"; then
17158 acl_final_exec_prefix='${prefix}'
17160 acl_final_exec_prefix="$exec_prefix"
17162 acl_save_prefix="$prefix"
17163 prefix="$acl_final_prefix"
17164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17165 prefix="$acl_save_prefix"
17168 # Check whether --with-gnu-ld was given.
17169 if test "${with_gnu_ld+set}" = set; then :
17170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17175 # Prepare PATH_SEPARATOR.
17176 # The user is always right.
17177 if test "${PATH_SEPARATOR+set}" != set; then
17178 echo "#! /bin/sh" >conf$$.sh
17179 echo "exit 0" >>conf$$.sh
17181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17189 if test "$GCC" = yes; then
17190 # Check if gcc -print-prog-name=ld gives a path.
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17192 $as_echo_n "checking for ld used by GCC... " >&6; }
17195 # gcc leaves a trailing carriage return which upsets mingw
17196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17201 # Accept absolute paths.
17202 [\\/]* | [A-Za-z]:[\\/]*)
17203 re_direlt='/[^/][^/]*/\.\./'
17204 # Canonicalize the path of ld
17205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17209 test -z "$LD" && LD="$ac_prog"
17212 # If it fails, then pretend we aren't using GCC.
17216 # If it is relative, then search for the first ld in PATH.
17217 with_gnu_ld=unknown
17220 elif test "$with_gnu_ld" = yes; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17222 $as_echo_n "checking for GNU ld... " >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17225 $as_echo_n "checking for non-GNU ld... " >&6; }
17227 if test "${acl_cv_path_LD+set}" = set; then :
17228 $as_echo_n "(cached) " >&6
17230 if test -z "$LD"; then
17231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17232 for ac_dir in $PATH; do
17233 test -z "$ac_dir" && ac_dir=.
17234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17235 acl_cv_path_LD="$ac_dir/$ac_prog"
17236 # Check to see if the program is GNU ld. I'd rather use --version,
17237 # but apparently some GNU ld's only accept -v.
17238 # Break only if it was the GNU/non-GNU ld that we prefer.
17239 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17240 *GNU* | *'with BFD'*)
17241 test "$with_gnu_ld" != no && break ;;
17243 test "$with_gnu_ld" != yes && break ;;
17249 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17253 LD="$acl_cv_path_LD"
17254 if test -n "$LD"; then
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17256 $as_echo "$LD" >&6; }
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17261 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17264 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17265 $as_echo_n "(cached) " >&6
17267 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17268 case `$LD -v 2>&1 </dev/null` in
17269 *GNU* | *'with BFD'*)
17270 acl_cv_prog_gnu_ld=yes ;;
17272 acl_cv_prog_gnu_ld=no ;;
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17276 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17277 with_gnu_ld=$acl_cv_prog_gnu_ld
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17283 $as_echo_n "checking for shared library run path origin... " >&6; }
17284 if test "${acl_cv_rpath+set}" = set; then :
17285 $as_echo_n "(cached) " >&6
17288 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17291 rm -f ./conftest.sh
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17296 $as_echo "$acl_cv_rpath" >&6; }
17298 libext="$acl_cv_libext"
17299 shlibext="$acl_cv_shlibext"
17300 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17301 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17302 hardcode_direct="$acl_cv_hardcode_direct"
17303 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17304 # Check whether --enable-rpath was given.
17305 if test "${enable_rpath+set}" = set; then :
17306 enableval=$enable_rpath; :
17320 acl_save_prefix="$prefix"
17321 prefix="$acl_final_prefix"
17322 acl_save_exec_prefix="$exec_prefix"
17323 exec_prefix="$acl_final_exec_prefix"
17325 eval additional_includedir=\"$includedir\"
17326 eval additional_libdir=\"$libdir\"
17328 exec_prefix="$acl_save_exec_prefix"
17329 prefix="$acl_save_prefix"
17332 # Check whether --with-libiconv-prefix was given.
17333 if test "${with_libiconv_prefix+set}" = set; then :
17334 withval=$with_libiconv_prefix;
17335 if test "X$withval" = "Xno"; then
17338 if test "X$withval" = "X"; then
17340 acl_save_prefix="$prefix"
17341 prefix="$acl_final_prefix"
17342 acl_save_exec_prefix="$exec_prefix"
17343 exec_prefix="$acl_final_exec_prefix"
17345 eval additional_includedir=\"$includedir\"
17346 eval additional_libdir=\"$libdir\"
17348 exec_prefix="$acl_save_exec_prefix"
17349 prefix="$acl_save_prefix"
17352 additional_includedir="$withval/include"
17353 additional_libdir="$withval/lib"
17364 names_already_handled=
17365 names_next_round='iconv '
17366 while test -n "$names_next_round"; do
17367 names_this_round="$names_next_round"
17369 for name in $names_this_round; do
17371 for n in $names_already_handled; do
17372 if test "$n" = "$name"; then
17373 already_handled=yes
17377 if test -z "$already_handled"; then
17378 names_already_handled="$names_already_handled $name"
17379 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17380 eval value=\"\$HAVE_LIB$uppername\"
17381 if test -n "$value"; then
17382 if test "$value" = yes; then
17383 eval value=\"\$LIB$uppername\"
17384 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17385 eval value=\"\$LTLIB$uppername\"
17386 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17395 if test $use_additional = yes; then
17396 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17397 found_dir="$additional_libdir"
17398 found_so="$additional_libdir/lib$name.$shlibext"
17399 if test -f "$additional_libdir/lib$name.la"; then
17400 found_la="$additional_libdir/lib$name.la"
17403 if test -f "$additional_libdir/lib$name.$libext"; then
17404 found_dir="$additional_libdir"
17405 found_a="$additional_libdir/lib$name.$libext"
17406 if test -f "$additional_libdir/lib$name.la"; then
17407 found_la="$additional_libdir/lib$name.la"
17412 if test "X$found_dir" = "X"; then
17413 for x in $LDFLAGS $LTLIBICONV; do
17415 acl_save_prefix="$prefix"
17416 prefix="$acl_final_prefix"
17417 acl_save_exec_prefix="$exec_prefix"
17418 exec_prefix="$acl_final_exec_prefix"
17420 exec_prefix="$acl_save_exec_prefix"
17421 prefix="$acl_save_prefix"
17425 dir=`echo "X$x" | sed -e 's/^X-L//'`
17426 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17428 found_so="$dir/lib$name.$shlibext"
17429 if test -f "$dir/lib$name.la"; then
17430 found_la="$dir/lib$name.la"
17433 if test -f "$dir/lib$name.$libext"; then
17435 found_a="$dir/lib$name.$libext"
17436 if test -f "$dir/lib$name.la"; then
17437 found_la="$dir/lib$name.la"
17443 if test "X$found_dir" != "X"; then
17448 if test "X$found_dir" != "X"; then
17449 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17450 if test "X$found_so" != "X"; then
17451 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17455 for x in $ltrpathdirs; do
17456 if test "X$x" = "X$found_dir"; then
17461 if test -z "$haveit"; then
17462 ltrpathdirs="$ltrpathdirs $found_dir"
17464 if test "$hardcode_direct" = yes; then
17465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17467 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17468 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17470 for x in $rpathdirs; do
17471 if test "X$x" = "X$found_dir"; then
17476 if test -z "$haveit"; then
17477 rpathdirs="$rpathdirs $found_dir"
17481 for x in $LDFLAGS $LIBICONV; do
17483 acl_save_prefix="$prefix"
17484 prefix="$acl_final_prefix"
17485 acl_save_exec_prefix="$exec_prefix"
17486 exec_prefix="$acl_final_exec_prefix"
17488 exec_prefix="$acl_save_exec_prefix"
17489 prefix="$acl_save_prefix"
17491 if test "X$x" = "X-L$found_dir"; then
17496 if test -z "$haveit"; then
17497 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17499 if test "$hardcode_minus_L" != no; then
17500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17502 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17508 if test "X$found_a" != "X"; then
17509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17514 additional_includedir=
17515 case "$found_dir" in
17517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17518 additional_includedir="$basedir/include"
17521 if test "X$additional_includedir" != "X"; then
17522 if test "X$additional_includedir" != "X/usr/include"; then
17524 if test "X$additional_includedir" = "X/usr/local/include"; then
17525 if test -n "$GCC"; then
17527 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17531 if test -z "$haveit"; then
17532 for x in $CPPFLAGS $INCICONV; do
17534 acl_save_prefix="$prefix"
17535 prefix="$acl_final_prefix"
17536 acl_save_exec_prefix="$exec_prefix"
17537 exec_prefix="$acl_final_exec_prefix"
17539 exec_prefix="$acl_save_exec_prefix"
17540 prefix="$acl_save_prefix"
17542 if test "X$x" = "X-I$additional_includedir"; then
17547 if test -z "$haveit"; then
17548 if test -d "$additional_includedir"; then
17549 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17555 if test -n "$found_la"; then
17556 save_libdir="$libdir"
17557 case "$found_la" in
17558 */* | *\\*) . "$found_la" ;;
17559 *) . "./$found_la" ;;
17561 libdir="$save_libdir"
17562 for dep in $dependency_libs; do
17565 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17566 if test "X$additional_libdir" != "X/usr/lib"; then
17568 if test "X$additional_libdir" = "X/usr/local/lib"; then
17569 if test -n "$GCC"; then
17571 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17575 if test -z "$haveit"; then
17577 for x in $LDFLAGS $LIBICONV; do
17579 acl_save_prefix="$prefix"
17580 prefix="$acl_final_prefix"
17581 acl_save_exec_prefix="$exec_prefix"
17582 exec_prefix="$acl_final_exec_prefix"
17584 exec_prefix="$acl_save_exec_prefix"
17585 prefix="$acl_save_prefix"
17587 if test "X$x" = "X-L$additional_libdir"; then
17592 if test -z "$haveit"; then
17593 if test -d "$additional_libdir"; then
17594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17598 for x in $LDFLAGS $LTLIBICONV; do
17600 acl_save_prefix="$prefix"
17601 prefix="$acl_final_prefix"
17602 acl_save_exec_prefix="$exec_prefix"
17603 exec_prefix="$acl_final_exec_prefix"
17605 exec_prefix="$acl_save_exec_prefix"
17606 prefix="$acl_save_prefix"
17608 if test "X$x" = "X-L$additional_libdir"; then
17613 if test -z "$haveit"; then
17614 if test -d "$additional_libdir"; then
17615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17622 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17623 if test "$enable_rpath" != no; then
17625 for x in $rpathdirs; do
17626 if test "X$x" = "X$dir"; then
17631 if test -z "$haveit"; then
17632 rpathdirs="$rpathdirs $dir"
17635 for x in $ltrpathdirs; do
17636 if test "X$x" = "X$dir"; then
17641 if test -z "$haveit"; then
17642 ltrpathdirs="$ltrpathdirs $dir"
17647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17653 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17660 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17667 if test "X$rpathdirs" != "X"; then
17668 if test -n "$hardcode_libdir_separator"; then
17670 for found_dir in $rpathdirs; do
17671 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17673 acl_save_libdir="$libdir"
17675 eval flag=\"$hardcode_libdir_flag_spec\"
17676 libdir="$acl_save_libdir"
17677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17679 for found_dir in $rpathdirs; do
17680 acl_save_libdir="$libdir"
17681 libdir="$found_dir"
17682 eval flag=\"$hardcode_libdir_flag_spec\"
17683 libdir="$acl_save_libdir"
17684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17688 if test "X$ltrpathdirs" != "X"; then
17689 for found_dir in $ltrpathdirs; do
17690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17712 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17713 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17716 gt_save_CPPFLAGS="$CPPFLAGS"
17717 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17718 gt_save_LIBS="$LIBS"
17719 LIBS="$LIBS -framework CoreFoundation"
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 #include <CFPreferences.h>
17726 CFPreferencesCopyAppValue(NULL, NULL)
17731 if ac_fn_c_try_link "$LINENO"; then :
17732 gt_cv_func_CFPreferencesCopyAppValue=yes
17734 gt_cv_func_CFPreferencesCopyAppValue=no
17736 rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17738 CPPFLAGS="$gt_save_CPPFLAGS"
17739 LIBS="$gt_save_LIBS"
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17742 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17743 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17745 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17749 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17750 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17751 $as_echo_n "(cached) " >&6
17753 gt_save_CPPFLAGS="$CPPFLAGS"
17754 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17755 gt_save_LIBS="$LIBS"
17756 LIBS="$LIBS -framework CoreFoundation"
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17759 #include <CFLocale.h>
17763 CFLocaleCopyCurrent();
17768 if ac_fn_c_try_link "$LINENO"; then :
17769 gt_cv_func_CFLocaleCopyCurrent=yes
17771 gt_cv_func_CFLocaleCopyCurrent=no
17773 rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17775 CPPFLAGS="$gt_save_CPPFLAGS"
17776 LIBS="$gt_save_LIBS"
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17779 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17780 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17782 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17786 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17787 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17794 $as_echo_n "checking whether NLS is requested... " >&6; }
17795 # Check whether --enable-nls was given.
17796 if test "${enable_nls+set}" = set; then :
17797 enableval=$enable_nls; USE_NLS=$enableval
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17803 $as_echo "$USE_NLS" >&6; }
17812 if test "$USE_NLS" = "yes"; then
17813 gt_use_preinstalled_gnugettext=no
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17821 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17822 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827 #include <libintl.h>
17828 extern int _nl_msg_cat_cntr;
17829 extern int *_nl_domain_bindings;
17833 bindtextdomain ("", "");
17834 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17839 if ac_fn_c_try_link "$LINENO"; then :
17840 gt_cv_func_gnugettext1_libc=yes
17842 gt_cv_func_gnugettext1_libc=no
17844 rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17848 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17850 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17856 am_save_CPPFLAGS="$CPPFLAGS"
17858 for element in $INCICONV; do
17860 for x in $CPPFLAGS; do
17862 acl_save_prefix="$prefix"
17863 prefix="$acl_final_prefix"
17864 acl_save_exec_prefix="$exec_prefix"
17865 exec_prefix="$acl_final_exec_prefix"
17867 exec_prefix="$acl_save_exec_prefix"
17868 prefix="$acl_save_prefix"
17870 if test "X$x" = "X$element"; then
17875 if test -z "$haveit"; then
17876 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17882 $as_echo_n "checking for iconv... " >&6; }
17883 if test "${am_cv_func_iconv+set}" = set; then :
17884 $as_echo_n "(cached) " >&6
17887 am_cv_func_iconv="no, consider installing GNU libiconv"
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891 #include <stdlib.h>
17896 iconv_t cd = iconv_open("","");
17897 iconv(cd,NULL,NULL,NULL,NULL);
17903 if ac_fn_c_try_link "$LINENO"; then :
17904 am_cv_func_iconv=yes
17906 rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 if test "$am_cv_func_iconv" != yes; then
17909 am_save_LIBS="$LIBS"
17910 LIBS="$LIBS $LIBICONV"
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17913 #include <stdlib.h>
17918 iconv_t cd = iconv_open("","");
17919 iconv(cd,NULL,NULL,NULL,NULL);
17925 if ac_fn_c_try_link "$LINENO"; then :
17926 am_cv_lib_iconv=yes
17927 am_cv_func_iconv=yes
17929 rm -f core conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS="$am_save_LIBS"
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17936 $as_echo "$am_cv_func_iconv" >&6; }
17937 if test "$am_cv_func_iconv" = yes; then
17939 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17942 if test "$am_cv_lib_iconv" = yes; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17944 $as_echo_n "checking how to link with libiconv... " >&6; }
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17946 $as_echo "$LIBICONV" >&6; }
17948 CPPFLAGS="$am_save_CPPFLAGS"
17960 acl_save_prefix="$prefix"
17961 prefix="$acl_final_prefix"
17962 acl_save_exec_prefix="$exec_prefix"
17963 exec_prefix="$acl_final_exec_prefix"
17965 eval additional_includedir=\"$includedir\"
17966 eval additional_libdir=\"$libdir\"
17968 exec_prefix="$acl_save_exec_prefix"
17969 prefix="$acl_save_prefix"
17972 # Check whether --with-libintl-prefix was given.
17973 if test "${with_libintl_prefix+set}" = set; then :
17974 withval=$with_libintl_prefix;
17975 if test "X$withval" = "Xno"; then
17978 if test "X$withval" = "X"; then
17980 acl_save_prefix="$prefix"
17981 prefix="$acl_final_prefix"
17982 acl_save_exec_prefix="$exec_prefix"
17983 exec_prefix="$acl_final_exec_prefix"
17985 eval additional_includedir=\"$includedir\"
17986 eval additional_libdir=\"$libdir\"
17988 exec_prefix="$acl_save_exec_prefix"
17989 prefix="$acl_save_prefix"
17992 additional_includedir="$withval/include"
17993 additional_libdir="$withval/lib"
18004 names_already_handled=
18005 names_next_round='intl '
18006 while test -n "$names_next_round"; do
18007 names_this_round="$names_next_round"
18009 for name in $names_this_round; do
18011 for n in $names_already_handled; do
18012 if test "$n" = "$name"; then
18013 already_handled=yes
18017 if test -z "$already_handled"; then
18018 names_already_handled="$names_already_handled $name"
18019 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18020 eval value=\"\$HAVE_LIB$uppername\"
18021 if test -n "$value"; then
18022 if test "$value" = yes; then
18023 eval value=\"\$LIB$uppername\"
18024 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18025 eval value=\"\$LTLIB$uppername\"
18026 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18035 if test $use_additional = yes; then
18036 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18037 found_dir="$additional_libdir"
18038 found_so="$additional_libdir/lib$name.$shlibext"
18039 if test -f "$additional_libdir/lib$name.la"; then
18040 found_la="$additional_libdir/lib$name.la"
18043 if test -f "$additional_libdir/lib$name.$libext"; then
18044 found_dir="$additional_libdir"
18045 found_a="$additional_libdir/lib$name.$libext"
18046 if test -f "$additional_libdir/lib$name.la"; then
18047 found_la="$additional_libdir/lib$name.la"
18052 if test "X$found_dir" = "X"; then
18053 for x in $LDFLAGS $LTLIBINTL; do
18055 acl_save_prefix="$prefix"
18056 prefix="$acl_final_prefix"
18057 acl_save_exec_prefix="$exec_prefix"
18058 exec_prefix="$acl_final_exec_prefix"
18060 exec_prefix="$acl_save_exec_prefix"
18061 prefix="$acl_save_prefix"
18065 dir=`echo "X$x" | sed -e 's/^X-L//'`
18066 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18068 found_so="$dir/lib$name.$shlibext"
18069 if test -f "$dir/lib$name.la"; then
18070 found_la="$dir/lib$name.la"
18073 if test -f "$dir/lib$name.$libext"; then
18075 found_a="$dir/lib$name.$libext"
18076 if test -f "$dir/lib$name.la"; then
18077 found_la="$dir/lib$name.la"
18083 if test "X$found_dir" != "X"; then
18088 if test "X$found_dir" != "X"; then
18089 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18090 if test "X$found_so" != "X"; then
18091 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18095 for x in $ltrpathdirs; do
18096 if test "X$x" = "X$found_dir"; then
18101 if test -z "$haveit"; then
18102 ltrpathdirs="$ltrpathdirs $found_dir"
18104 if test "$hardcode_direct" = yes; then
18105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18107 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18110 for x in $rpathdirs; do
18111 if test "X$x" = "X$found_dir"; then
18116 if test -z "$haveit"; then
18117 rpathdirs="$rpathdirs $found_dir"
18121 for x in $LDFLAGS $LIBINTL; do
18123 acl_save_prefix="$prefix"
18124 prefix="$acl_final_prefix"
18125 acl_save_exec_prefix="$exec_prefix"
18126 exec_prefix="$acl_final_exec_prefix"
18128 exec_prefix="$acl_save_exec_prefix"
18129 prefix="$acl_save_prefix"
18131 if test "X$x" = "X-L$found_dir"; then
18136 if test -z "$haveit"; then
18137 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18139 if test "$hardcode_minus_L" != no; then
18140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18142 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18148 if test "X$found_a" != "X"; then
18149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18154 additional_includedir=
18155 case "$found_dir" in
18157 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18158 additional_includedir="$basedir/include"
18161 if test "X$additional_includedir" != "X"; then
18162 if test "X$additional_includedir" != "X/usr/include"; then
18164 if test "X$additional_includedir" = "X/usr/local/include"; then
18165 if test -n "$GCC"; then
18167 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18171 if test -z "$haveit"; then
18172 for x in $CPPFLAGS $INCINTL; do
18174 acl_save_prefix="$prefix"
18175 prefix="$acl_final_prefix"
18176 acl_save_exec_prefix="$exec_prefix"
18177 exec_prefix="$acl_final_exec_prefix"
18179 exec_prefix="$acl_save_exec_prefix"
18180 prefix="$acl_save_prefix"
18182 if test "X$x" = "X-I$additional_includedir"; then
18187 if test -z "$haveit"; then
18188 if test -d "$additional_includedir"; then
18189 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18195 if test -n "$found_la"; then
18196 save_libdir="$libdir"
18197 case "$found_la" in
18198 */* | *\\*) . "$found_la" ;;
18199 *) . "./$found_la" ;;
18201 libdir="$save_libdir"
18202 for dep in $dependency_libs; do
18205 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18206 if test "X$additional_libdir" != "X/usr/lib"; then
18208 if test "X$additional_libdir" = "X/usr/local/lib"; then
18209 if test -n "$GCC"; then
18211 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18215 if test -z "$haveit"; then
18217 for x in $LDFLAGS $LIBINTL; do
18219 acl_save_prefix="$prefix"
18220 prefix="$acl_final_prefix"
18221 acl_save_exec_prefix="$exec_prefix"
18222 exec_prefix="$acl_final_exec_prefix"
18224 exec_prefix="$acl_save_exec_prefix"
18225 prefix="$acl_save_prefix"
18227 if test "X$x" = "X-L$additional_libdir"; then
18232 if test -z "$haveit"; then
18233 if test -d "$additional_libdir"; then
18234 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18238 for x in $LDFLAGS $LTLIBINTL; do
18240 acl_save_prefix="$prefix"
18241 prefix="$acl_final_prefix"
18242 acl_save_exec_prefix="$exec_prefix"
18243 exec_prefix="$acl_final_exec_prefix"
18245 exec_prefix="$acl_save_exec_prefix"
18246 prefix="$acl_save_prefix"
18248 if test "X$x" = "X-L$additional_libdir"; then
18253 if test -z "$haveit"; then
18254 if test -d "$additional_libdir"; then
18255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18262 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18263 if test "$enable_rpath" != no; then
18265 for x in $rpathdirs; do
18266 if test "X$x" = "X$dir"; then
18271 if test -z "$haveit"; then
18272 rpathdirs="$rpathdirs $dir"
18275 for x in $ltrpathdirs; do
18276 if test "X$x" = "X$dir"; then
18281 if test -z "$haveit"; then
18282 ltrpathdirs="$ltrpathdirs $dir"
18287 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18293 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18300 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18307 if test "X$rpathdirs" != "X"; then
18308 if test -n "$hardcode_libdir_separator"; then
18310 for found_dir in $rpathdirs; do
18311 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18313 acl_save_libdir="$libdir"
18315 eval flag=\"$hardcode_libdir_flag_spec\"
18316 libdir="$acl_save_libdir"
18317 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18319 for found_dir in $rpathdirs; do
18320 acl_save_libdir="$libdir"
18321 libdir="$found_dir"
18322 eval flag=\"$hardcode_libdir_flag_spec\"
18323 libdir="$acl_save_libdir"
18324 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18328 if test "X$ltrpathdirs" != "X"; then
18329 for found_dir in $ltrpathdirs; do
18330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18335 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18336 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18339 gt_save_CPPFLAGS="$CPPFLAGS"
18340 CPPFLAGS="$CPPFLAGS $INCINTL"
18341 gt_save_LIBS="$LIBS"
18342 LIBS="$LIBS $LIBINTL"
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <libintl.h>
18346 extern int _nl_msg_cat_cntr;
18351 const char *_nl_expand_alias (const char *);
18355 bindtextdomain ("", "");
18356 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 gt_cv_func_gnugettext1_libintl=yes
18364 gt_cv_func_gnugettext1_libintl=no
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18369 LIBS="$LIBS $LIBICONV"
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18372 #include <libintl.h>
18373 extern int _nl_msg_cat_cntr;
18378 const char *_nl_expand_alias (const char *);
18382 bindtextdomain ("", "");
18383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18388 if ac_fn_c_try_link "$LINENO"; then :
18389 LIBINTL="$LIBINTL $LIBICONV"
18390 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18391 gt_cv_func_gnugettext1_libintl=yes
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18397 CPPFLAGS="$gt_save_CPPFLAGS"
18398 LIBS="$gt_save_LIBS"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18401 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18404 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18405 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18406 && test "$PACKAGE" != gettext-runtime \
18407 && test "$PACKAGE" != gettext-tools; }; then
18408 gt_use_preinstalled_gnugettext=yes
18417 if test -n "$INTL_MACOSX_LIBS"; then
18418 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18419 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18420 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18421 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18425 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18426 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18428 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18436 $as_echo_n "checking whether to use NLS... " >&6; }
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18438 $as_echo "$USE_NLS" >&6; }
18439 if test "$USE_NLS" = "yes"; then
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18441 $as_echo_n "checking where the gettext function comes from... " >&6; }
18442 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18443 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18444 gt_source="external libintl"
18449 gt_source="included intl directory"
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18452 $as_echo "$gt_source" >&6; }
18455 if test "$USE_NLS" = "yes"; then
18457 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18458 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18460 $as_echo_n "checking how to link with libintl... " >&6; }
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18462 $as_echo "$LIBINTL" >&6; }
18464 for element in $INCINTL; do
18466 for x in $CPPFLAGS; do
18468 acl_save_prefix="$prefix"
18469 prefix="$acl_final_prefix"
18470 acl_save_exec_prefix="$exec_prefix"
18471 exec_prefix="$acl_final_exec_prefix"
18473 exec_prefix="$acl_save_exec_prefix"
18474 prefix="$acl_save_prefix"
18476 if test "X$x" = "X$element"; then
18481 if test -z "$haveit"; then
18482 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18489 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18492 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18501 INTLLIBS="$LIBINTL"
18509 os_name=`uname -s 2>/dev/null`
18510 if test x${prefix} = xNONE ; then
18511 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18512 sysconfdir=/etc/bacula
18515 if test `eval echo ${libdir}` = NONE/lib ; then
18518 os_processor=`uname -p 2>/dev/null`
18519 case ${os_processor} in
18534 if test `eval echo ${includedir}` = NONE/include ; then
18535 includedir=/usr/include
18538 if test `eval echo ${datarootdir}` = NONE/share ; then
18539 datarootdir=/usr/share
18544 if test x${exec_prefix} = xNONE ; then
18545 exec_prefix=${prefix}
18548 sysconfdir=`eval echo ${sysconfdir}`
18549 datarootdir=`eval echo ${datarootdir}`
18550 docdir=`eval echo ${docdir}`
18551 htmldir=`eval echo ${htmldir}`
18552 libdir=`eval echo ${libdir}`
18553 includedir=`eval echo ${includedir}`
18554 localedir=`eval echo ${datarootdir}/locale`
18555 cat >>confdefs.h <<_ACEOF
18556 #define SYSCONFDIR "$sysconfdir"
18559 cat >>confdefs.h <<_ACEOF
18560 #define LOCALEDIR "$localedir"
18564 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18565 sbindir=${exec_prefix}/sbin
18567 sbindir=`eval echo ${sbindir}`
18569 if test x$mandir = x'${prefix}/man' ; then
18570 mandir=/usr/share/man
18573 if test x$htmldir = x${docdir} ; then
18574 htmldir=`eval echo ${docdir}/html`
18577 if test x$docdir = x'/usr/share/doc/' ; then
18578 docdir=`eval echo ${docdir}bacula`
18582 for ac_prog in msgfmt
18584 # Extract the first word of "$ac_prog", so it can be a program name with args.
18585 set dummy $ac_prog; ac_word=$2
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18587 $as_echo_n "checking for $ac_word... " >&6; }
18588 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18589 $as_echo_n "(cached) " >&6
18593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18600 test -z "$as_dir" && as_dir=.
18601 for ac_exec_ext in '' $ac_executable_extensions; do
18602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18603 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18614 MSGFMT=$ac_cv_path_MSGFMT
18615 if test -n "$MSGFMT"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18617 $as_echo "$MSGFMT" >&6; }
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620 $as_echo "no" >&6; }
18624 test -n "$MSGFMT" && break
18626 test -n "$MSGFMT" || MSGFMT="no"
18628 if test "$MSGFMT" = "no"
18630 echo 'msgfmt program not found, disabling NLS !'
18632 USE_INCLUDED_LIBINTL=no
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18636 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18637 if test "${ac_cv_gnu_library_2+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18643 #include <features.h>
18644 #ifdef __GNU_LIBRARY__
18645 #if (__GLIBC__ >= 2)
18651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18652 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18653 ac_cv_gnu_library_2=yes
18655 ac_cv_gnu_library_2=no
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18663 $as_echo "$ac_cv_gnu_library_2" >&6; }
18665 GLIBC2="$ac_cv_gnu_library_2"
18668 if test -n "$ac_tool_prefix"; then
18669 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18670 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18672 $as_echo_n "checking for $ac_word... " >&6; }
18673 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18674 $as_echo_n "(cached) " >&6
18676 if test -n "$RANLIB"; then
18677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH
18683 test -z "$as_dir" && as_dir=.
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18696 RANLIB=$ac_cv_prog_RANLIB
18697 if test -n "$RANLIB"; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18699 $as_echo "$RANLIB" >&6; }
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18707 if test -z "$ac_cv_prog_RANLIB"; then
18708 ac_ct_RANLIB=$RANLIB
18709 # Extract the first word of "ranlib", so it can be a program name with args.
18710 set dummy ranlib; ac_word=$2
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18712 $as_echo_n "checking for $ac_word... " >&6; }
18713 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18714 $as_echo_n "(cached) " >&6
18716 if test -n "$ac_ct_RANLIB"; then
18717 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18720 for as_dir in $PATH
18723 test -z "$as_dir" && as_dir=.
18724 for ac_exec_ext in '' $ac_executable_extensions; do
18725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18726 ac_cv_prog_ac_ct_RANLIB="ranlib"
18727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18737 if test -n "$ac_ct_RANLIB"; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18739 $as_echo "$ac_ct_RANLIB" >&6; }
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18745 if test "x$ac_ct_RANLIB" = x; then
18748 case $cross_compiling:$ac_tool_warned in
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18752 ac_tool_warned=yes ;;
18754 RANLIB=$ac_ct_RANLIB
18757 RANLIB="$ac_cv_prog_RANLIB"
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18762 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18763 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18764 $as_echo_n "(cached) " >&6
18766 ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lcposix $LIBS"
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18781 return strerror ();
18786 if ac_fn_c_try_link "$LINENO"; then :
18787 ac_cv_lib_cposix_strerror=yes
18789 ac_cv_lib_cposix_strerror=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18796 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18797 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18798 LIBS="$LIBS -lcposix"
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18804 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18805 if test "${ac_cv_c_const+set}" = set; then :
18806 $as_echo_n "(cached) " >&6
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18814 /* FIXME: Include the comments suggested by Paul. */
18815 #ifndef __cplusplus
18816 /* Ultrix mips cc rejects this. */
18817 typedef int charset[2];
18819 /* SunOS 4.1.1 cc rejects this. */
18820 char const *const *pcpcc;
18822 /* NEC SVR4.0.2 mips cc rejects this. */
18823 struct point {int x, y;};
18824 static struct point const zero = {0,0};
18825 /* AIX XL C 1.02.0.0 rejects this.
18826 It does not let you subtract one const X* pointer from another in
18827 an arm of an if-expression whose if-part is not a constant
18829 const char *g = "string";
18830 pcpcc = &g + (g ? g-g : 0);
18831 /* HPUX 7.0 cc rejects these. */
18833 ppc = (char**) pcpcc;
18834 pcpcc = (char const *const *) ppc;
18835 { /* SCO 3.2v4 cc rejects this. */
18837 char const *s = 0 ? (char *) 0 : (char const *) 0;
18842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18843 int x[] = {25, 17};
18844 const int *foo = &x[0];
18847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18848 typedef const int *iptr;
18852 { /* AIX XL C 1.02.0.0 rejects this saying
18853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18854 struct s { int j; const int *ap[3]; };
18855 struct s *b; b->j = 5;
18857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18858 const int foo = 10;
18859 if (!foo) return 0;
18861 return !cs[0] && !zero.x;
18868 if ac_fn_c_try_compile "$LINENO"; then :
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18876 $as_echo "$ac_cv_c_const" >&6; }
18877 if test $ac_cv_c_const = no; then
18879 $as_echo "#define const /**/" >>confdefs.h
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18885 $as_echo_n "checking for signed... " >&6; }
18886 if test "${bh_cv_c_signed+set}" = set; then :
18887 $as_echo_n "(cached) " >&6
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18900 if ac_fn_c_try_compile "$LINENO"; then :
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18908 $as_echo "$bh_cv_c_signed" >&6; }
18909 if test $bh_cv_c_signed = no; then
18911 $as_echo "#define signed /**/" >>confdefs.h
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18916 $as_echo_n "checking for inline... " >&6; }
18917 if test "${ac_cv_c_inline+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18921 for ac_kw in inline __inline__ __inline; do
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924 #ifndef __cplusplus
18926 static $ac_kw foo_t static_foo () {return 0; }
18927 $ac_kw foo_t foo () {return 0; }
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932 ac_cv_c_inline=$ac_kw
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 test "$ac_cv_c_inline" != no && break
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18940 $as_echo "$ac_cv_c_inline" >&6; }
18942 case $ac_cv_c_inline in
18945 case $ac_cv_c_inline in
18947 *) ac_val=$ac_cv_c_inline;;
18949 cat >>confdefs.h <<_ACEOF
18950 #ifndef __cplusplus
18951 #define inline $ac_val
18957 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18958 if test "x$ac_cv_type_off_t" = x""yes; then :
18962 cat >>confdefs.h <<_ACEOF
18963 #define off_t long int
18968 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18969 if test "x$ac_cv_type_size_t" = x""yes; then :
18973 cat >>confdefs.h <<_ACEOF
18974 #define size_t unsigned int
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18981 $as_echo_n "checking for long long... " >&6; }
18982 if test "${ac_cv_type_long_long+set}" = set; then :
18983 $as_echo_n "(cached) " >&6
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987 long long ll = 1LL; int i = 63;
18991 long long llmax = (long long) -1;
18992 return ll << i | ll >> i | llmax / ll | llmax % ll;
18997 if ac_fn_c_try_link "$LINENO"; then :
18998 ac_cv_type_long_long=yes
19000 ac_cv_type_long_long=no
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19006 $as_echo "$ac_cv_type_long_long" >&6; }
19007 if test $ac_cv_type_long_long = yes; then
19009 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19015 $as_echo_n "checking for long double... " >&6; }
19016 if test "${gt_cv_c_long_double+set}" = set; then :
19017 $as_echo_n "(cached) " >&6
19019 if test "$GCC" = yes; then
19020 gt_cv_c_long_double=yes
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19025 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19026 long double foo = 0.0;
19027 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19028 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039 gt_cv_c_long_double=yes
19041 gt_cv_c_long_double=no
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19047 $as_echo "$gt_cv_c_long_double" >&6; }
19048 if test $gt_cv_c_long_double = yes; then
19050 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19056 $as_echo_n "checking for wchar_t... " >&6; }
19057 if test "${gt_cv_c_wchar_t+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062 #include <stddef.h>
19063 wchar_t foo = (wchar_t)'\0';
19072 if ac_fn_c_try_compile "$LINENO"; then :
19073 gt_cv_c_wchar_t=yes
19077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19080 $as_echo "$gt_cv_c_wchar_t" >&6; }
19081 if test $gt_cv_c_wchar_t = yes; then
19083 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19089 $as_echo_n "checking for wint_t... " >&6; }
19090 if test "${gt_cv_c_wint_t+set}" = set; then :
19091 $as_echo_n "(cached) " >&6
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19096 wint_t foo = (wchar_t)'\0';
19105 if ac_fn_c_try_compile "$LINENO"; then :
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19113 $as_echo "$gt_cv_c_wint_t" >&6; }
19114 if test $gt_cv_c_wint_t = yes; then
19116 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19122 $as_echo_n "checking for inttypes.h... " >&6; }
19123 if test "${gl_cv_header_inttypes_h+set}" = set; then :
19124 $as_echo_n "(cached) " >&6
19126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19128 #include <sys/types.h>
19129 #include <inttypes.h>
19133 uintmax_t i = (uintmax_t) -1;
19138 if ac_fn_c_try_compile "$LINENO"; then :
19139 gl_cv_header_inttypes_h=yes
19141 gl_cv_header_inttypes_h=no
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19146 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19147 if test $gl_cv_header_inttypes_h = yes; then
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19157 $as_echo_n "checking for stdint.h... " >&6; }
19158 if test "${gl_cv_header_stdint_h+set}" = set; then :
19159 $as_echo_n "(cached) " >&6
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163 #include <sys/types.h>
19164 #include <stdint.h>
19168 uintmax_t i = (uintmax_t) -1;
19173 if ac_fn_c_try_compile "$LINENO"; then :
19174 gl_cv_header_stdint_h=yes
19176 gl_cv_header_stdint_h=no
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19181 $as_echo "$gl_cv_header_stdint_h" >&6; }
19182 if test $gl_cv_header_stdint_h = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_STDINT_H_WITH_UINTMAX 1
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19194 $as_echo_n "checking for intmax_t... " >&6; }
19195 if test "${gt_cv_c_intmax_t+set}" = set; then :
19196 $as_echo_n "(cached) " >&6
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19201 #include <stddef.h>
19202 #include <stdlib.h>
19203 #if HAVE_STDINT_H_WITH_UINTMAX
19204 #include <stdint.h>
19206 #if HAVE_INTTYPES_H_WITH_UINTMAX
19207 #include <inttypes.h>
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219 gt_cv_c_intmax_t=yes
19221 gt_cv_c_intmax_t=no
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19226 $as_echo "$gt_cv_c_intmax_t" >&6; }
19227 if test $gt_cv_c_intmax_t = yes; then
19229 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19236 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19237 if test "${gt_cv_func_printf_posix+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19241 if test "$cross_compiling" = yes; then :
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19246 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19252 $EGREP "notposix" >/dev/null 2>&1; then :
19253 gt_cv_func_printf_posix="guessing no"
19255 gt_cv_func_printf_posix="guessing yes"
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19265 #include <string.h>
19266 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19267 dollar expansion (possibly an autoconf bug). */
19268 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19269 static char buf[100];
19272 sprintf (buf, format, 33, 55);
19273 return (strcmp (buf, "55 33") != 0);
19276 if ac_fn_c_try_run "$LINENO"; then :
19277 gt_cv_func_printf_posix=yes
19279 gt_cv_func_printf_posix=no
19281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19282 conftest.$ac_objext conftest.beam conftest.$ac_ext
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19288 $as_echo "$gt_cv_func_printf_posix" >&6; }
19289 case $gt_cv_func_printf_posix in
19292 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19298 # for constant arguments. Useless!
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19300 $as_echo_n "checking for working alloca.h... " >&6; }
19301 if test "${ac_cv_working_alloca_h+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306 #include <alloca.h>
19310 char *p = (char *) alloca (2 * sizeof (int));
19316 if ac_fn_c_try_link "$LINENO"; then :
19317 ac_cv_working_alloca_h=yes
19319 ac_cv_working_alloca_h=no
19321 rm -f core conftest.err conftest.$ac_objext \
19322 conftest$ac_exeext conftest.$ac_ext
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19325 $as_echo "$ac_cv_working_alloca_h" >&6; }
19326 if test $ac_cv_working_alloca_h = yes; then
19328 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19333 $as_echo_n "checking for alloca... " >&6; }
19334 if test "${ac_cv_func_alloca_works+set}" = set; then :
19335 $as_echo_n "(cached) " >&6
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h. */
19340 # define alloca __builtin_alloca
19343 # include <malloc.h>
19344 # define alloca _alloca
19346 # ifdef HAVE_ALLOCA_H
19347 # include <alloca.h>
19352 # ifndef alloca /* predefined by HP cc +Olibcalls */
19363 char *p = (char *) alloca (1);
19369 if ac_fn_c_try_link "$LINENO"; then :
19370 ac_cv_func_alloca_works=yes
19372 ac_cv_func_alloca_works=no
19374 rm -f core conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19378 $as_echo "$ac_cv_func_alloca_works" >&6; }
19380 if test $ac_cv_func_alloca_works = yes; then
19382 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19386 # that cause trouble. Some versions do not even contain alloca or
19387 # contain a buggy version. If you still want to use their alloca,
19388 # use ar to extract alloca.o from them instead of compiling alloca.c.
19390 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19392 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19396 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19397 if test "${ac_cv_os_cray+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19402 #if defined CRAY && ! defined CRAY2
19409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19410 $EGREP "webecray" >/dev/null 2>&1; then :
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19419 $as_echo "$ac_cv_os_cray" >&6; }
19420 if test $ac_cv_os_cray = yes; then
19421 for ac_func in _getb67 GETB67 getb67; do
19422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19426 cat >>confdefs.h <<_ACEOF
19427 #define CRAY_STACKSEG_END $ac_func
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19437 $as_echo_n "checking stack direction for C alloca... " >&6; }
19438 if test "${ac_cv_c_stack_direction+set}" = set; then :
19439 $as_echo_n "(cached) " >&6
19441 if test "$cross_compiling" = yes; then :
19442 ac_cv_c_stack_direction=0
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 $ac_includes_default
19448 find_stack_direction ()
19450 static char *addr = 0;
19455 return find_stack_direction ();
19458 return (&dummy > addr) ? 1 : -1;
19464 return find_stack_direction () < 0;
19467 if ac_fn_c_try_run "$LINENO"; then :
19468 ac_cv_c_stack_direction=1
19470 ac_cv_c_stack_direction=-1
19472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473 conftest.$ac_objext conftest.beam conftest.$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19478 $as_echo "$ac_cv_c_stack_direction" >&6; }
19479 cat >>confdefs.h <<_ACEOF
19480 #define STACK_DIRECTION $ac_cv_c_stack_direction
19489 for ac_header in $ac_header_list
19491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19492 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19495 cat >>confdefs.h <<_ACEOF
19496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19510 for ac_func in getpagesize
19512 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19513 if test "x$ac_cv_func_getpagesize" = x""yes; then :
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_GETPAGESIZE 1
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19522 $as_echo_n "checking for working mmap... " >&6; }
19523 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
19524 $as_echo_n "(cached) " >&6
19526 if test "$cross_compiling" = yes; then :
19527 ac_cv_func_mmap_fixed_mapped=no
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531 $ac_includes_default
19532 /* malloc might have been renamed as rpl_malloc. */
19535 /* Thanks to Mike Haertel and Jim Avera for this test.
19536 Here is a matrix of mmap possibilities:
19537 mmap private not fixed
19538 mmap private fixed at somewhere currently unmapped
19539 mmap private fixed at somewhere already mapped
19540 mmap shared not fixed
19541 mmap shared fixed at somewhere currently unmapped
19542 mmap shared fixed at somewhere already mapped
19543 For private mappings, we should verify that changes cannot be read()
19544 back from the file, nor mmap's back from the file at a different
19545 address. (There have been systems where private was not correctly
19546 implemented like the infamous i386 svr4.0, and systems where the
19547 VM page cache was not coherent with the file system buffer cache
19548 like early versions of FreeBSD and possibly contemporary NetBSD.)
19549 For shared mappings, we should conversely verify that changes get
19550 propagated back to all the places they're supposed to be.
19552 Grep wants private fixed already mapped.
19553 The main things grep needs to know about mmap are:
19554 * does it exist and is it safe to write into the mmap'd area
19555 * how to use it (BSD variants) */
19558 #include <sys/mman.h>
19560 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19564 /* This mess was copied from the GNU getpagesize.h. */
19565 #ifndef HAVE_GETPAGESIZE
19566 # ifdef _SC_PAGESIZE
19567 # define getpagesize() sysconf(_SC_PAGESIZE)
19568 # else /* no _SC_PAGESIZE */
19569 # ifdef HAVE_SYS_PARAM_H
19570 # include <sys/param.h>
19571 # ifdef EXEC_PAGESIZE
19572 # define getpagesize() EXEC_PAGESIZE
19573 # else /* no EXEC_PAGESIZE */
19575 # define getpagesize() NBPG * CLSIZE
19578 # endif /* no CLSIZE */
19579 # else /* no NBPG */
19581 # define getpagesize() NBPC
19582 # else /* no NBPC */
19584 # define getpagesize() PAGESIZE
19585 # endif /* PAGESIZE */
19586 # endif /* no NBPC */
19587 # endif /* no NBPG */
19588 # endif /* no EXEC_PAGESIZE */
19589 # else /* no HAVE_SYS_PARAM_H */
19590 # define getpagesize() 8192 /* punt totally */
19591 # endif /* no HAVE_SYS_PARAM_H */
19592 # endif /* no _SC_PAGESIZE */
19594 #endif /* no HAVE_GETPAGESIZE */
19599 char *data, *data2, *data3;
19600 const char *cdata2;
19604 pagesize = getpagesize ();
19606 /* First, make a file with some known garbage in it. */
19607 data = (char *) malloc (pagesize);
19610 for (i = 0; i < pagesize; ++i)
19611 *(data + i) = rand ();
19613 fd = creat ("conftest.mmap", 0600);
19616 if (write (fd, data, pagesize) != pagesize)
19620 /* Next, check that the tail of a page is zero-filled. File must have
19621 non-zero length, otherwise we risk SIGBUS for entire page. */
19622 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19626 if (write (fd2, cdata2, 1) != 1)
19628 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19629 if (data2 == MAP_FAILED)
19631 for (i = 0; i < pagesize; ++i)
19635 if (munmap (data2, pagesize))
19638 /* Next, try to mmap the file at a fixed address which already has
19639 something else allocated at it. If we can, also make sure that
19640 we see the same garbage. */
19641 fd = open ("conftest.mmap", O_RDWR);
19644 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19645 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19647 for (i = 0; i < pagesize; ++i)
19648 if (*(data + i) != *(data2 + i))
19651 /* Finally, make sure that changes to the mapped area do not
19652 percolate back to the file as seen by read(). (This is a bug on
19653 some variants of i386 svr4.0.) */
19654 for (i = 0; i < pagesize; ++i)
19655 *(data2 + i) = *(data2 + i) + 1;
19656 data3 = (char *) malloc (pagesize);
19659 if (read (fd, data3, pagesize) != pagesize)
19661 for (i = 0; i < pagesize; ++i)
19662 if (*(data + i) != *(data3 + i))
19668 if ac_fn_c_try_run "$LINENO"; then :
19669 ac_cv_func_mmap_fixed_mapped=yes
19671 ac_cv_func_mmap_fixed_mapped=no
19673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19674 conftest.$ac_objext conftest.beam conftest.$ac_ext
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19682 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19685 rm -f conftest.mmap conftest.txt
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19689 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19690 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
19691 $as_echo_n "(cached) " >&6
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 #include <features.h>
19697 #ifdef __GNU_LIBRARY__
19698 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19705 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19706 ac_cv_gnu_library_2_1=yes
19708 ac_cv_gnu_library_2_1=no
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19716 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19718 GLIBC21="$ac_cv_gnu_library_2_1"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19724 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19725 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
19726 $as_echo_n "(cached) " >&6
19729 if test "$cross_compiling" = yes; then :
19731 # Guess based on the CPU.
19732 case "$host_cpu" in
19733 alpha* | i3456786 | m68k | s390*)
19734 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19736 gt_cv_int_divbyzero_sigfpe="guessing no";;
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h. */
19743 #include <stdlib.h>
19744 #include <signal.h>
19748 sigfpe_handler (int sig)
19750 sigfpe_handler (sig) int sig;
19753 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19754 exit (sig != SIGFPE);
19764 signal (SIGFPE, sigfpe_handler);
19765 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19766 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19767 signal (SIGTRAP, sigfpe_handler);
19769 /* Linux/SPARC yields signal SIGILL. */
19770 #if defined (__sparc__) && defined (__linux__)
19771 signal (SIGILL, sigfpe_handler);
19780 if ac_fn_c_try_run "$LINENO"; then :
19781 gt_cv_int_divbyzero_sigfpe=yes
19783 gt_cv_int_divbyzero_sigfpe=no
19785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19786 conftest.$ac_objext conftest.beam conftest.$ac_ext
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19792 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19793 case "$gt_cv_int_divbyzero_sigfpe" in
19798 cat >>confdefs.h <<_ACEOF
19799 #define INTDIV0_RAISES_SIGFPE $value
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19805 $as_echo_n "checking for unsigned long long... " >&6; }
19806 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19807 $as_echo_n "(cached) " >&6
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811 unsigned long long ull = 1ULL; int i = 63;
19815 unsigned long long ullmax = (unsigned long long) -1;
19816 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19821 if ac_fn_c_try_link "$LINENO"; then :
19822 ac_cv_type_unsigned_long_long=yes
19824 ac_cv_type_unsigned_long_long=no
19826 rm -f core conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19830 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19831 if test $ac_cv_type_unsigned_long_long = yes; then
19833 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19840 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19842 test $ac_cv_type_unsigned_long_long = yes \
19843 && ac_type='unsigned long long' \
19844 || ac_type='unsigned long'
19846 cat >>confdefs.h <<_ACEOF
19847 #define uintmax_t $ac_type
19852 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19858 $as_echo_n "checking for inttypes.h... " >&6; }
19859 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19864 /* end confdefs.h. */
19865 #include <sys/types.h>
19866 #include <inttypes.h>
19875 if ac_fn_c_try_compile "$LINENO"; then :
19876 gt_cv_header_inttypes_h=yes
19878 gt_cv_header_inttypes_h=no
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19884 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19885 if test $gt_cv_header_inttypes_h = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define HAVE_INTTYPES_H 1
19895 if test $gt_cv_header_inttypes_h = yes; then
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19897 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19898 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19899 $as_echo_n "(cached) " >&6
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904 #include <inttypes.h>
19917 if ac_fn_c_try_compile "$LINENO"; then :
19918 gt_cv_inttypes_pri_broken=no
19920 gt_cv_inttypes_pri_broken=yes
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19926 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19928 if test "$gt_cv_inttypes_pri_broken" = yes; then
19930 cat >>confdefs.h <<_ACEOF
19931 #define PRI_MACROS_BROKEN 1
19937 for ac_header in stdint.h
19939 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STDINT_H 1
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19950 $as_echo_n "checking for SIZE_MAX... " >&6; }
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19955 #include <limits.h>
19957 #include <stdint.h>
19964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965 $EGREP "Found it" >/dev/null 2>&1; then :
19970 if test -z "$result"; then
19971 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19978 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19985 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19992 if test "$fits_in_uint" = 1; then
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19995 #include <stddef.h>
19997 extern unsigned long foo;
20007 if ac_fn_c_try_compile "$LINENO"; then :
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 if test -z "$result"; then
20013 if test "$fits_in_uint" = 1; then
20014 result="$res_hi$res_lo"U
20016 result="$res_hi$res_lo"UL
20019 result='~(size_t)0'
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20023 $as_echo "$result" >&6; }
20024 if test "$result" != yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 #define SIZE_MAX $result
20035 for ac_header in stdint.h
20037 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20038 if test "x$ac_cv_header_stdint_h" = x""yes; then :
20039 cat >>confdefs.h <<_ACEOF
20040 #define HAVE_STDINT_H 1
20054 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20055 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20059 $as_echo "#define ptrdiff_t long" >>confdefs.h
20064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20065 stdlib.h string.h unistd.h sys/param.h
20067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20070 cat >>confdefs.h <<_ACEOF
20071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20079 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20080 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20086 cat >>confdefs.h <<_ACEOF
20087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20096 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20097 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
20098 $as_echo_n "(cached) " >&6
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20108 char *p = (char *) _snprintf;
20115 if ac_fn_c_try_compile "$LINENO"; then :
20116 ac_cv_have_decl__snprintf=yes
20118 ac_cv_have_decl__snprintf=no
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20123 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20124 if test $ac_cv_have_decl__snprintf = yes; then
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_DECL__SNPRINTF $gt_value
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20137 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20138 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20149 char *p = (char *) _snwprintf;
20156 if ac_fn_c_try_compile "$LINENO"; then :
20157 ac_cv_have_decl__snwprintf=yes
20159 ac_cv_have_decl__snwprintf=no
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20164 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20165 if test $ac_cv_have_decl__snwprintf = yes; then
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_DECL__SNWPRINTF $gt_value
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20179 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20180 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
20181 $as_echo_n "(cached) " >&6
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20190 #ifndef feof_unlocked
20191 char *p = (char *) feof_unlocked;
20198 if ac_fn_c_try_compile "$LINENO"; then :
20199 ac_cv_have_decl_feof_unlocked=yes
20201 ac_cv_have_decl_feof_unlocked=no
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20206 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20207 if test $ac_cv_have_decl_feof_unlocked = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20220 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20221 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
20222 $as_echo_n "(cached) " >&6
20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h. */
20231 #ifndef fgets_unlocked
20232 char *p = (char *) fgets_unlocked;
20239 if ac_fn_c_try_compile "$LINENO"; then :
20240 ac_cv_have_decl_fgets_unlocked=yes
20242 ac_cv_have_decl_fgets_unlocked=no
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20247 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20248 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20261 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20262 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
20263 $as_echo_n "(cached) " >&6
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20272 #ifndef getc_unlocked
20273 char *p = (char *) getc_unlocked;
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281 ac_cv_have_decl_getc_unlocked=yes
20283 ac_cv_have_decl_getc_unlocked=no
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20288 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20289 if test $ac_cv_have_decl_getc_unlocked = yes; then
20295 cat >>confdefs.h <<_ACEOF
20296 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20301 case $gt_cv_func_printf_posix in
20302 *yes) HAVE_POSIX_PRINTF=1 ;;
20303 *) HAVE_POSIX_PRINTF=0 ;;
20306 if test "$ac_cv_func_asprintf" = yes; then
20312 if test "$ac_cv_func_snprintf" = yes; then
20318 if test "$ac_cv_func_wprintf" = yes; then
20330 am_save_CPPFLAGS="$CPPFLAGS"
20332 for element in $INCICONV; do
20334 for x in $CPPFLAGS; do
20336 acl_save_prefix="$prefix"
20337 prefix="$acl_final_prefix"
20338 acl_save_exec_prefix="$exec_prefix"
20339 exec_prefix="$acl_final_exec_prefix"
20341 exec_prefix="$acl_save_exec_prefix"
20342 prefix="$acl_save_prefix"
20344 if test "X$x" = "X$element"; then
20349 if test -z "$haveit"; then
20350 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20356 $as_echo_n "checking for iconv... " >&6; }
20357 if test "${am_cv_func_iconv+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
20361 am_cv_func_iconv="no, consider installing GNU libiconv"
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20365 #include <stdlib.h>
20370 iconv_t cd = iconv_open("","");
20371 iconv(cd,NULL,NULL,NULL,NULL);
20377 if ac_fn_c_try_link "$LINENO"; then :
20378 am_cv_func_iconv=yes
20380 rm -f core conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
20382 if test "$am_cv_func_iconv" != yes; then
20383 am_save_LIBS="$LIBS"
20384 LIBS="$LIBS $LIBICONV"
20385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20387 #include <stdlib.h>
20392 iconv_t cd = iconv_open("","");
20393 iconv(cd,NULL,NULL,NULL,NULL);
20399 if ac_fn_c_try_link "$LINENO"; then :
20400 am_cv_lib_iconv=yes
20401 am_cv_func_iconv=yes
20403 rm -f core conftest.err conftest.$ac_objext \
20404 conftest$ac_exeext conftest.$ac_ext
20405 LIBS="$am_save_LIBS"
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20410 $as_echo "$am_cv_func_iconv" >&6; }
20411 if test "$am_cv_func_iconv" = yes; then
20413 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20416 if test "$am_cv_lib_iconv" = yes; then
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20418 $as_echo_n "checking how to link with libiconv... " >&6; }
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20420 $as_echo "$LIBICONV" >&6; }
20422 CPPFLAGS="$am_save_CPPFLAGS"
20429 if test "$am_cv_func_iconv" = yes; then
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20431 $as_echo_n "checking for iconv declaration... " >&6; }
20432 if test "${am_cv_proto_iconv+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20439 #include <stdlib.h>
20445 #if defined(__STDC__) || defined(__cplusplus)
20446 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20459 if ac_fn_c_try_compile "$LINENO"; then :
20460 am_cv_proto_iconv_arg1=""
20462 am_cv_proto_iconv_arg1="const"
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 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);"
20468 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20470 }$am_cv_proto_iconv" >&5
20472 }$am_cv_proto_iconv" >&6; }
20474 cat >>confdefs.h <<_ACEOF
20475 #define ICONV_CONST $am_cv_proto_iconv_arg1
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20482 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20483 if test "${am_cv_langinfo_codeset+set}" = set; then :
20484 $as_echo_n "(cached) " >&6
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20488 #include <langinfo.h>
20492 char* cs = nl_langinfo(CODESET);
20497 if ac_fn_c_try_link "$LINENO"; then :
20498 am_cv_langinfo_codeset=yes
20500 am_cv_langinfo_codeset=no
20502 rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20507 $as_echo "$am_cv_langinfo_codeset" >&6; }
20508 if test $am_cv_langinfo_codeset = yes; then
20510 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20514 if test $ac_cv_header_locale_h = yes; then
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20517 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20518 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
20519 $as_echo_n "(cached) " >&6
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #include <locale.h>
20532 if ac_fn_c_try_link "$LINENO"; then :
20533 gt_cv_val_LC_MESSAGES=yes
20535 gt_cv_val_LC_MESSAGES=no
20537 rm -f core conftest.err conftest.$ac_objext \
20538 conftest$ac_exeext conftest.$ac_ext
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20541 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20542 if test $gt_cv_val_LC_MESSAGES = yes; then
20544 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20550 if test -n "$INTL_MACOSX_LIBS"; then
20551 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20554 for ac_prog in bison
20556 # Extract the first word of "$ac_prog", so it can be a program name with args.
20557 set dummy $ac_prog; ac_word=$2
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20559 $as_echo_n "checking for $ac_word... " >&6; }
20560 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
20561 $as_echo_n "(cached) " >&6
20563 if test -n "$INTLBISON"; then
20564 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567 for as_dir in $PATH
20570 test -z "$as_dir" && as_dir=.
20571 for ac_exec_ext in '' $ac_executable_extensions; do
20572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20573 ac_cv_prog_INTLBISON="$ac_prog"
20574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20583 INTLBISON=$ac_cv_prog_INTLBISON
20584 if test -n "$INTLBISON"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20586 $as_echo "$INTLBISON" >&6; }
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589 $as_echo "no" >&6; }
20593 test -n "$INTLBISON" && break
20596 if test -z "$INTLBISON"; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20600 $as_echo_n "checking version of bison... " >&6; }
20601 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20602 case $ac_prog_version in
20603 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20604 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20605 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20606 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20609 $as_echo "$ac_prog_version" >&6; }
20611 if test $ac_verc_fail = yes; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20631 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20632 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
20633 $as_echo_n "(cached) " >&6
20635 gt_save_CPPFLAGS="$CPPFLAGS"
20636 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20637 gt_save_LIBS="$LIBS"
20638 LIBS="$LIBS -framework CoreFoundation"
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20641 #include <CFPreferences.h>
20645 CFPreferencesCopyAppValue(NULL, NULL)
20650 if ac_fn_c_try_link "$LINENO"; then :
20651 gt_cv_func_CFPreferencesCopyAppValue=yes
20653 gt_cv_func_CFPreferencesCopyAppValue=no
20655 rm -f core conftest.err conftest.$ac_objext \
20656 conftest$ac_exeext conftest.$ac_ext
20657 CPPFLAGS="$gt_save_CPPFLAGS"
20658 LIBS="$gt_save_LIBS"
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20661 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20662 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20664 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20668 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20669 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
20670 $as_echo_n "(cached) " >&6
20672 gt_save_CPPFLAGS="$CPPFLAGS"
20673 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20674 gt_save_LIBS="$LIBS"
20675 LIBS="$LIBS -framework CoreFoundation"
20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20678 #include <CFLocale.h>
20682 CFLocaleCopyCurrent();
20687 if ac_fn_c_try_link "$LINENO"; then :
20688 gt_cv_func_CFLocaleCopyCurrent=yes
20690 gt_cv_func_CFLocaleCopyCurrent=no
20692 rm -f core conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 CPPFLAGS="$gt_save_CPPFLAGS"
20695 LIBS="$gt_save_LIBS"
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20698 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20699 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20701 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20705 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20706 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20713 $as_echo_n "checking whether NLS is requested... " >&6; }
20714 # Check whether --enable-nls was given.
20715 if test "${enable_nls+set}" = set; then :
20716 enableval=$enable_nls; USE_NLS=$enableval
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20722 $as_echo "$USE_NLS" >&6; }
20727 BUILD_INCLUDED_LIBINTL=no
20728 USE_INCLUDED_LIBINTL=no
20734 if test "$USE_NLS" = "yes"; then
20735 gt_use_preinstalled_gnugettext=no
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20738 $as_echo_n "checking whether included gettext is requested... " >&6; }
20740 # Check whether --with-included-gettext was given.
20741 if test "${with_included_gettext+set}" = set; then :
20742 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20744 nls_cv_force_use_gnu_gettext=no
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20748 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20750 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20751 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20759 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20760 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20765 #include <libintl.h>
20766 extern int _nl_msg_cat_cntr;
20767 extern int *_nl_domain_bindings;
20771 bindtextdomain ("", "");
20772 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20777 if ac_fn_c_try_link "$LINENO"; then :
20778 gt_cv_func_gnugettext1_libc=yes
20780 gt_cv_func_gnugettext1_libc=no
20782 rm -f core conftest.err conftest.$ac_objext \
20783 conftest$ac_exeext conftest.$ac_ext
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20786 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20788 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20794 acl_save_prefix="$prefix"
20795 prefix="$acl_final_prefix"
20796 acl_save_exec_prefix="$exec_prefix"
20797 exec_prefix="$acl_final_exec_prefix"
20799 eval additional_includedir=\"$includedir\"
20800 eval additional_libdir=\"$libdir\"
20802 exec_prefix="$acl_save_exec_prefix"
20803 prefix="$acl_save_prefix"
20806 # Check whether --with-libintl-prefix was given.
20807 if test "${with_libintl_prefix+set}" = set; then :
20808 withval=$with_libintl_prefix;
20809 if test "X$withval" = "Xno"; then
20812 if test "X$withval" = "X"; then
20814 acl_save_prefix="$prefix"
20815 prefix="$acl_final_prefix"
20816 acl_save_exec_prefix="$exec_prefix"
20817 exec_prefix="$acl_final_exec_prefix"
20819 eval additional_includedir=\"$includedir\"
20820 eval additional_libdir=\"$libdir\"
20822 exec_prefix="$acl_save_exec_prefix"
20823 prefix="$acl_save_prefix"
20826 additional_includedir="$withval/include"
20827 additional_libdir="$withval/lib"
20838 names_already_handled=
20839 names_next_round='intl '
20840 while test -n "$names_next_round"; do
20841 names_this_round="$names_next_round"
20843 for name in $names_this_round; do
20845 for n in $names_already_handled; do
20846 if test "$n" = "$name"; then
20847 already_handled=yes
20851 if test -z "$already_handled"; then
20852 names_already_handled="$names_already_handled $name"
20853 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20854 eval value=\"\$HAVE_LIB$uppername\"
20855 if test -n "$value"; then
20856 if test "$value" = yes; then
20857 eval value=\"\$LIB$uppername\"
20858 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20859 eval value=\"\$LTLIB$uppername\"
20860 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20869 if test $use_additional = yes; then
20870 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20871 found_dir="$additional_libdir"
20872 found_so="$additional_libdir/lib$name.$shlibext"
20873 if test -f "$additional_libdir/lib$name.la"; then
20874 found_la="$additional_libdir/lib$name.la"
20877 if test -f "$additional_libdir/lib$name.$libext"; then
20878 found_dir="$additional_libdir"
20879 found_a="$additional_libdir/lib$name.$libext"
20880 if test -f "$additional_libdir/lib$name.la"; then
20881 found_la="$additional_libdir/lib$name.la"
20886 if test "X$found_dir" = "X"; then
20887 for x in $LDFLAGS $LTLIBINTL; do
20889 acl_save_prefix="$prefix"
20890 prefix="$acl_final_prefix"
20891 acl_save_exec_prefix="$exec_prefix"
20892 exec_prefix="$acl_final_exec_prefix"
20894 exec_prefix="$acl_save_exec_prefix"
20895 prefix="$acl_save_prefix"
20899 dir=`echo "X$x" | sed -e 's/^X-L//'`
20900 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20902 found_so="$dir/lib$name.$shlibext"
20903 if test -f "$dir/lib$name.la"; then
20904 found_la="$dir/lib$name.la"
20907 if test -f "$dir/lib$name.$libext"; then
20909 found_a="$dir/lib$name.$libext"
20910 if test -f "$dir/lib$name.la"; then
20911 found_la="$dir/lib$name.la"
20917 if test "X$found_dir" != "X"; then
20922 if test "X$found_dir" != "X"; then
20923 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20924 if test "X$found_so" != "X"; then
20925 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20926 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20929 for x in $ltrpathdirs; do
20930 if test "X$x" = "X$found_dir"; then
20935 if test -z "$haveit"; then
20936 ltrpathdirs="$ltrpathdirs $found_dir"
20938 if test "$hardcode_direct" = yes; then
20939 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20944 for x in $rpathdirs; do
20945 if test "X$x" = "X$found_dir"; then
20950 if test -z "$haveit"; then
20951 rpathdirs="$rpathdirs $found_dir"
20955 for x in $LDFLAGS $LIBINTL; do
20957 acl_save_prefix="$prefix"
20958 prefix="$acl_final_prefix"
20959 acl_save_exec_prefix="$exec_prefix"
20960 exec_prefix="$acl_final_exec_prefix"
20962 exec_prefix="$acl_save_exec_prefix"
20963 prefix="$acl_save_prefix"
20965 if test "X$x" = "X-L$found_dir"; then
20970 if test -z "$haveit"; then
20971 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20973 if test "$hardcode_minus_L" != no; then
20974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20976 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20982 if test "X$found_a" != "X"; then
20983 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20985 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20988 additional_includedir=
20989 case "$found_dir" in
20991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20992 additional_includedir="$basedir/include"
20995 if test "X$additional_includedir" != "X"; then
20996 if test "X$additional_includedir" != "X/usr/include"; then
20998 if test "X$additional_includedir" = "X/usr/local/include"; then
20999 if test -n "$GCC"; then
21001 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21005 if test -z "$haveit"; then
21006 for x in $CPPFLAGS $INCINTL; do
21008 acl_save_prefix="$prefix"
21009 prefix="$acl_final_prefix"
21010 acl_save_exec_prefix="$exec_prefix"
21011 exec_prefix="$acl_final_exec_prefix"
21013 exec_prefix="$acl_save_exec_prefix"
21014 prefix="$acl_save_prefix"
21016 if test "X$x" = "X-I$additional_includedir"; then
21021 if test -z "$haveit"; then
21022 if test -d "$additional_includedir"; then
21023 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21029 if test -n "$found_la"; then
21030 save_libdir="$libdir"
21031 case "$found_la" in
21032 */* | *\\*) . "$found_la" ;;
21033 *) . "./$found_la" ;;
21035 libdir="$save_libdir"
21036 for dep in $dependency_libs; do
21039 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21040 if test "X$additional_libdir" != "X/usr/lib"; then
21042 if test "X$additional_libdir" = "X/usr/local/lib"; then
21043 if test -n "$GCC"; then
21045 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21049 if test -z "$haveit"; then
21051 for x in $LDFLAGS $LIBINTL; do
21053 acl_save_prefix="$prefix"
21054 prefix="$acl_final_prefix"
21055 acl_save_exec_prefix="$exec_prefix"
21056 exec_prefix="$acl_final_exec_prefix"
21058 exec_prefix="$acl_save_exec_prefix"
21059 prefix="$acl_save_prefix"
21061 if test "X$x" = "X-L$additional_libdir"; then
21066 if test -z "$haveit"; then
21067 if test -d "$additional_libdir"; then
21068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21072 for x in $LDFLAGS $LTLIBINTL; do
21074 acl_save_prefix="$prefix"
21075 prefix="$acl_final_prefix"
21076 acl_save_exec_prefix="$exec_prefix"
21077 exec_prefix="$acl_final_exec_prefix"
21079 exec_prefix="$acl_save_exec_prefix"
21080 prefix="$acl_save_prefix"
21082 if test "X$x" = "X-L$additional_libdir"; then
21087 if test -z "$haveit"; then
21088 if test -d "$additional_libdir"; then
21089 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21096 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21097 if test "$enable_rpath" != no; then
21099 for x in $rpathdirs; do
21100 if test "X$x" = "X$dir"; then
21105 if test -z "$haveit"; then
21106 rpathdirs="$rpathdirs $dir"
21109 for x in $ltrpathdirs; do
21110 if test "X$x" = "X$dir"; then
21115 if test -z "$haveit"; then
21116 ltrpathdirs="$ltrpathdirs $dir"
21121 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21127 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21128 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21134 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21141 if test "X$rpathdirs" != "X"; then
21142 if test -n "$hardcode_libdir_separator"; then
21144 for found_dir in $rpathdirs; do
21145 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21147 acl_save_libdir="$libdir"
21149 eval flag=\"$hardcode_libdir_flag_spec\"
21150 libdir="$acl_save_libdir"
21151 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21153 for found_dir in $rpathdirs; do
21154 acl_save_libdir="$libdir"
21155 libdir="$found_dir"
21156 eval flag=\"$hardcode_libdir_flag_spec\"
21157 libdir="$acl_save_libdir"
21158 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21162 if test "X$ltrpathdirs" != "X"; then
21163 for found_dir in $ltrpathdirs; do
21164 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21169 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21170 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
21171 $as_echo_n "(cached) " >&6
21173 gt_save_CPPFLAGS="$CPPFLAGS"
21174 CPPFLAGS="$CPPFLAGS $INCINTL"
21175 gt_save_LIBS="$LIBS"
21176 LIBS="$LIBS $LIBINTL"
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21179 #include <libintl.h>
21180 extern int _nl_msg_cat_cntr;
21185 const char *_nl_expand_alias (const char *);
21189 bindtextdomain ("", "");
21190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21195 if ac_fn_c_try_link "$LINENO"; then :
21196 gt_cv_func_gnugettext1_libintl=yes
21198 gt_cv_func_gnugettext1_libintl=no
21200 rm -f core conftest.err conftest.$ac_objext \
21201 conftest$ac_exeext conftest.$ac_ext
21202 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21203 LIBS="$LIBS $LIBICONV"
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #include <libintl.h>
21207 extern int _nl_msg_cat_cntr;
21212 const char *_nl_expand_alias (const char *);
21216 bindtextdomain ("", "");
21217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21222 if ac_fn_c_try_link "$LINENO"; then :
21223 LIBINTL="$LIBINTL $LIBICONV"
21224 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21225 gt_cv_func_gnugettext1_libintl=yes
21228 rm -f core conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21231 CPPFLAGS="$gt_save_CPPFLAGS"
21232 LIBS="$gt_save_LIBS"
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21235 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21238 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21239 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21240 && test "$PACKAGE" != gettext-runtime \
21241 && test "$PACKAGE" != gettext-tools; }; then
21242 gt_use_preinstalled_gnugettext=yes
21250 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21251 nls_cv_use_gnu_gettext=yes
21255 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21256 BUILD_INCLUDED_LIBINTL=yes
21257 USE_INCLUDED_LIBINTL=yes
21258 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21259 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21260 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21264 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21265 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21270 if test -n "$INTL_MACOSX_LIBS"; then
21271 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21272 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21273 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21274 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21278 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21279 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21281 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21289 $as_echo_n "checking whether to use NLS... " >&6; }
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21291 $as_echo "$USE_NLS" >&6; }
21292 if test "$USE_NLS" = "yes"; then
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21294 $as_echo_n "checking where the gettext function comes from... " >&6; }
21295 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21296 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21297 gt_source="external libintl"
21302 gt_source="included intl directory"
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21305 $as_echo "$gt_source" >&6; }
21308 if test "$USE_NLS" = "yes"; then
21310 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21311 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21313 $as_echo_n "checking how to link with libintl... " >&6; }
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21315 $as_echo "$LIBINTL" >&6; }
21317 for element in $INCINTL; do
21319 for x in $CPPFLAGS; do
21321 acl_save_prefix="$prefix"
21322 prefix="$acl_final_prefix"
21323 acl_save_exec_prefix="$exec_prefix"
21324 exec_prefix="$acl_final_exec_prefix"
21326 exec_prefix="$acl_save_exec_prefix"
21327 prefix="$acl_save_prefix"
21329 if test "X$x" = "X$element"; then
21334 if test -z "$haveit"; then
21335 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21342 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21345 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21353 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21354 BUILD_INCLUDED_LIBINTL=yes
21361 nls_cv_header_intl=
21362 nls_cv_header_libgt=
21374 if test "$USE_INCLUDED_LIBINTL" = yes; then
21375 INTLOBJS="\$(GETTOBJS)"
21379 INTL_LIBTOOL_SUFFIX_PREFIX=
21383 INTLLIBS="$LIBINTL"
21392 support_smartalloc=yes
21393 support_readline=yes
21397 support_wx_console=no
21398 support_tray_monitor=no
21403 support_static_tools=no
21404 support_static_fd=no
21405 support_static_sd=no
21406 support_static_dir=no
21407 support_static_cons=no
21409 build_client_only=no
21416 # Check whether --enable-gnome was given.
21417 if test "${enable_gnome+set}" = set; then :
21418 enableval=$enable_gnome;
21419 if test x$enableval = xyes; then
21428 if test x$support_gnome = xyes; then
21429 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21430 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21432 # AC_SUBST(GNOME_DIR)
21434 # Check whether --enable-bat was given.
21435 if test "${enable_bat+set}" = set; then :
21436 enableval=$enable_bat;
21437 if test x$enableval = xyes; then
21439 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21449 if test x$support_bat = xyes; then
21450 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21452 if test $pkg = 0; then
21453 BAT_DIR=src/qt-console
21455 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21473 # Check whether --enable-bwx-console was given.
21474 if test "${enable_bwx_console+set}" = set; then :
21475 enableval=$enable_bwx_console;
21476 if test x$enableval = xyes; then
21477 support_wx_console=yes
21485 if test x$support_wx_console = xyes; then
21486 abc=`$WXCONFIG $WXFLAGS --cppflags`
21488 if test $pkg = 0; then
21489 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21490 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21491 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21495 WX_DIR="src/wx-console"
21498 echo "wx-config program not found. bwx-console disabled."
21500 support_wx_console=no
21505 # Check whether --enable-tray-monitor was given.
21506 if test "${enable_tray_monitor+set}" = set; then :
21507 enableval=$enable_tray_monitor;
21508 if test x$enableval = xyes; then
21509 support_tray_monitor=yes
21517 if test x$support_tray_monitor = xyes; then
21518 abc=`$PKGCONFIG --exists gtk+-2.0`
21520 if test $pkg = 0; then
21521 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21522 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21525 TRAY_MONITOR_DIR=src/tray-monitor
21526 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21528 if test $pkg = 0; then
21530 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21537 # Check whether --enable-smartalloc was given.
21538 if test "${enable_smartalloc+set}" = set; then :
21539 enableval=$enable_smartalloc;
21540 if test x$enableval = xno; then
21541 support_smartalloc=no
21548 if test x$support_smartalloc = xyes; then
21550 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21554 # Check whether --enable-lockmgr was given.
21555 if test "${enable_lockmgr+set}" = set; then :
21556 enableval=$enable_lockmgr;
21557 if test x$enableval = xyes; then
21558 support_lockmgr=yes
21565 if test x$support_lockmgr = xyes; then
21567 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21572 # Check whether --enable-static-tools was given.
21573 if test "${enable_static_tools+set}" = set; then :
21574 enableval=$enable_static_tools;
21575 if test x$enableval = xyes; then
21576 if test x$use_libtool = xyes; then
21577 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21578 please rerun configure with --disable-libtool" "$LINENO" 5
21580 support_static_tools=yes
21588 if test x$support_static_tools = xyes; then
21589 TTOOL_LDFLAGS="-static"
21593 # Check whether --enable-static-fd was given.
21594 if test "${enable_static_fd+set}" = set; then :
21595 enableval=$enable_static_fd;
21596 if test x$enableval = xyes; then
21597 if test x$use_libtool = xyes; then
21598 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21599 please rerun configure with --disable-libtool" "$LINENO" 5
21601 support_static_fd=yes
21609 if test x$support_static_fd = xyes; then
21610 STATIC_FD="static-bacula-fd"
21614 # Check whether --enable-static-sd was given.
21615 if test "${enable_static_sd+set}" = set; then :
21616 enableval=$enable_static_sd;
21617 if test x$enableval = xyes; then
21618 if test x$use_libtool = xyes; then
21619 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21620 please rerun configure with --disable-libtool" "$LINENO" 5
21622 support_static_sd=yes
21630 if test x$support_static_sd = xyes; then
21631 STATIC_SD="static-bacula-sd"
21635 # Check whether --enable-static-dir was given.
21636 if test "${enable_static_dir+set}" = set; then :
21637 enableval=$enable_static_dir;
21638 if test x$enableval = xyes; then
21639 if test x$use_libtool = xyes; then
21640 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21641 please rerun configure with --disable-libtool" "$LINENO" 5
21643 support_static_dir=yes
21651 if test x$support_static_dir = xyes; then
21652 STATIC_DIR="static-bacula-dir"
21656 # Check whether --enable-static-cons was given.
21657 if test "${enable_static_cons+set}" = set; then :
21658 enableval=$enable_static_cons;
21659 if test x$enableval = xyes; then
21660 if test x$use_libtool = xyes; then
21661 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21662 please rerun configure with --disable-libtool" "$LINENO" 5
21664 support_static_cons=yes
21674 if test x$support_static_cons = xyes; then
21675 STATIC_CONS="static-bconsole"
21676 STATIC_GNOME_CONS="static-bgnome-console"
21677 STATIC_WX_CONS="static-bwx-console"
21683 # Check whether --enable-client-only was given.
21684 if test "${enable_client_only+set}" = set; then :
21685 enableval=$enable_client_only;
21686 if test x$enableval = xyes; then
21687 build_client_only=yes
21695 if test x$build_client_only = xno; then
21702 # Check whether --enable-build-dird was given.
21703 if test "${enable_build_dird+set}" = set; then :
21704 enableval=$enable_build_dird;
21705 if test x$enableval = xno; then
21712 if test x$build_dird = xyes; then
21713 DIRD_DIR="src/dird"
21714 DIR_TOOLS="DIRTOOLS"
21717 DIR_TOOLS="NODIRTOOLS"
21722 # Check whether --enable-build-stored was given.
21723 if test "${enable_build_stored+set}" = set; then :
21724 enableval=$enable_build_stored;
21725 if test x$enableval = xno; then
21732 if test x$build_stored = xyes; then
21733 STORED_DIR="src/stored"
21739 # Check whether --enable-conio was given.
21740 if test "${enable_conio+set}" = set; then :
21741 enableval=$enable_conio;
21742 if test x$enableval = xno; then
21752 # Check whether --enable-ipv6 was given.
21753 if test "${enable_ipv6+set}" = set; then :
21754 enableval=$enable_ipv6;
21755 if test x$enableval = xno; then
21763 if test x$support_ipv6 = xyes; then
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h. */
21766 #include <sys/types.h>
21767 #include <sys/socket.h>
21768 #include <netinet/in.h>
21772 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21777 if ac_fn_c_try_link "$LINENO"; then :
21782 rm -f core conftest.err conftest.$ac_objext \
21783 conftest$ac_exeext conftest.$ac_ext
21786 if test x$support_ipv6 = xyes; then
21788 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21793 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21794 if test "x$ac_cv_header_curses_h" = x""yes; then :
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21797 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21798 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21799 $as_echo_n "(cached) " >&6
21801 ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-ltinfo $LIBS"
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21806 /* Override any GCC internal prototype to avoid an error.
21807 Use char because int might match the return type of a GCC
21808 builtin and then its argument prototype would still apply. */
21821 if ac_fn_c_try_link "$LINENO"; then :
21822 ac_cv_lib_tinfo_tgetent=yes
21824 ac_cv_lib_tinfo_tgetent=no
21826 rm -f core conftest.err conftest.$ac_objext \
21827 conftest$ac_exeext conftest.$ac_ext
21828 LIBS=$ac_check_lib_save_LIBS
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21831 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21832 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21837 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21838 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21841 ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lncurses $LIBS"
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h. */
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21861 if ac_fn_c_try_link "$LINENO"; then :
21862 ac_cv_lib_ncurses_tgetent=yes
21864 ac_cv_lib_ncurses_tgetent=no
21866 rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21871 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21872 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21873 TERM_LIB="-lncurses"
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21877 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21878 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21881 ac_check_lib_save_LIBS=$LIBS
21882 LIBS="-ltermcap $LIBS"
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21886 /* Override any GCC internal prototype to avoid an error.
21887 Use char because int might match the return type of a GCC
21888 builtin and then its argument prototype would still apply. */
21901 if ac_fn_c_try_link "$LINENO"; then :
21902 ac_cv_lib_termcap_tgetent=yes
21904 ac_cv_lib_termcap_tgetent=no
21906 rm -f core conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908 LIBS=$ac_check_lib_save_LIBS
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21911 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21912 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21913 TERM_LIB="-ltermcap"
21924 for ac_header in curses.h
21926 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21927 if test "x$ac_cv_header_curses_h" = x""yes; then :
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_CURSES_H 1
21936 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21937 if test "x$ac_cv_header_term_h" = x""yes; then :
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21939 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21940 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21941 $as_echo_n "(cached) " >&6
21943 ac_check_lib_save_LIBS=$LIBS
21944 LIBS="-lcurses $LIBS"
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h. */
21948 /* Override any GCC internal prototype to avoid an error.
21949 Use char because int might match the return type of a GCC
21950 builtin and then its argument prototype would still apply. */
21963 if ac_fn_c_try_link "$LINENO"; then :
21964 ac_cv_lib_curses_tgetent=yes
21966 ac_cv_lib_curses_tgetent=no
21968 rm -f core conftest.err conftest.$ac_objext \
21969 conftest$ac_exeext conftest.$ac_ext
21970 LIBS=$ac_check_lib_save_LIBS
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21973 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21974 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21975 TERM_LIB="-lcurses"
21989 if test x$support_conio = xyes; then
21990 if test x$TERM_LIB != x; then
21991 CONS_LIBS=$TERM_LIB
21995 support_readline=no
21997 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22000 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
22005 # Check whether --enable-readline was given.
22006 if test "${enable_readline+set}" = set; then :
22007 enableval=$enable_readline;
22008 if test x$enableval = xno; then
22009 support_readline=no
22015 if test x$TERM_LIB = x ; then
22016 support_readline=no
22021 if test x$support_readline = xyes; then
22023 # Check whether --with-readline was given.
22024 if test "${with_readline+set}" = set; then :
22025 withval=$with_readline;
22026 case "$with_readline" in
22031 if test -f ${with_readline}/readline.h; then
22032 CONS_INC="-I${with_readline}"
22033 CONS_LDFLAGS="-L$with_readline"
22034 elif test -f ${with_readline}/include/readline/readline.h; then
22035 CONS_INC="-I${with_readline}/include/readline"
22036 CONS_LDFLAGS="-L${with_readline}/lib"
22037 with_readline="${with_readline}/include/readline"
22039 with_readline="/usr/include/readline"
22042 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22043 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22047 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22049 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22055 echo "readline.h not found. readline turned off ..."
22067 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22068 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22071 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22074 CONS_INC="-I/usr/include/readline"
22075 CONS_LIBS="-lreadline $TERM_LIB"
22079 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22080 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22084 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22087 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22088 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22089 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22090 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22095 echo "readline.h not found. readline turned off ..."
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22123 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22124 if test "${ac_cv_header_stat_broken+set}" = set; then :
22125 $as_echo_n "(cached) " >&6
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22129 #include <sys/types.h>
22130 #include <sys/stat.h>
22132 #if defined S_ISBLK && defined S_IFDIR
22133 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22136 #if defined S_ISBLK && defined S_IFCHR
22137 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22140 #if defined S_ISLNK && defined S_IFREG
22141 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22144 #if defined S_ISSOCK && defined S_IFREG
22145 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22149 if ac_fn_c_try_compile "$LINENO"; then :
22150 ac_cv_header_stat_broken=no
22152 ac_cv_header_stat_broken=yes
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22157 $as_echo "$ac_cv_header_stat_broken" >&6; }
22158 if test $ac_cv_header_stat_broken = yes; then
22160 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22164 ac_header_dirent=no
22165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22166 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22168 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22169 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
22170 $as_echo_n "(cached) " >&6
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22174 #include <sys/types.h>
22186 if ac_fn_c_try_compile "$LINENO"; then :
22187 eval "$as_ac_Header=yes"
22189 eval "$as_ac_Header=no"
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 eval ac_res=\$$as_ac_Header
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22195 $as_echo "$ac_res" >&6; }
22196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22197 cat >>confdefs.h <<_ACEOF
22198 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22201 ac_header_dirent=$ac_hdr; break
22205 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22206 if test $ac_header_dirent = dirent.h; then
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22208 $as_echo_n "checking for library containing opendir... " >&6; }
22209 if test "${ac_cv_search_opendir+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22212 ac_func_search_save_LIBS=$LIBS
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22216 /* Override any GCC internal prototype to avoid an error.
22217 Use char because int might match the return type of a GCC
22218 builtin and then its argument prototype would still apply. */
22231 for ac_lib in '' dir; do
22232 if test -z "$ac_lib"; then
22233 ac_res="none required"
22236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22238 if ac_fn_c_try_link "$LINENO"; then :
22239 ac_cv_search_opendir=$ac_res
22241 rm -f core conftest.err conftest.$ac_objext \
22243 if test "${ac_cv_search_opendir+set}" = set; then :
22247 if test "${ac_cv_search_opendir+set}" = set; then :
22250 ac_cv_search_opendir=no
22252 rm conftest.$ac_ext
22253 LIBS=$ac_func_search_save_LIBS
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22256 $as_echo "$ac_cv_search_opendir" >&6; }
22257 ac_res=$ac_cv_search_opendir
22258 if test "$ac_res" != no; then :
22259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22265 $as_echo_n "checking for library containing opendir... " >&6; }
22266 if test "${ac_cv_search_opendir+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22269 ac_func_search_save_LIBS=$LIBS
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22273 /* Override any GCC internal prototype to avoid an error.
22274 Use char because int might match the return type of a GCC
22275 builtin and then its argument prototype would still apply. */
22288 for ac_lib in '' x; do
22289 if test -z "$ac_lib"; then
22290 ac_res="none required"
22293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22295 if ac_fn_c_try_link "$LINENO"; then :
22296 ac_cv_search_opendir=$ac_res
22298 rm -f core conftest.err conftest.$ac_objext \
22300 if test "${ac_cv_search_opendir+set}" = set; then :
22304 if test "${ac_cv_search_opendir+set}" = set; then :
22307 ac_cv_search_opendir=no
22309 rm conftest.$ac_ext
22310 LIBS=$ac_func_search_save_LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22313 $as_echo "$ac_cv_search_opendir" >&6; }
22314 ac_res=$ac_cv_search_opendir
22315 if test "$ac_res" != no; then :
22316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22322 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22327 cat >>confdefs.h <<_ACEOF
22328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 for ac_func in nanosleep nl_langinfo
22336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22339 cat >>confdefs.h <<_ACEOF
22340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22346 for ac_header in varargs.h
22348 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22349 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22350 cat >>confdefs.h <<_ACEOF
22351 #define HAVE_VARARGS_H 1
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22361 $as_echo_n "checking for Python support... " >&6; }
22363 # Check whether --with-python was given.
22364 if test "${with_python+set}" = set; then :
22365 withval=$with_python;
22368 if test "$withval" != "no"; then
22369 if test "$withval" = "yes"; then
22370 if test -e /usr/bin/python-config ; then
22371 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22372 PYTHON_LIBS=`/usr/bin/python-config --libs`
22374 for python_root in /usr /usr/local /usr/sfw; do
22375 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22376 if test -f $python_root/include/${ver}/Python.h; then
22377 PYTHON_INCDIR=-I$python_root/include/${ver}
22378 if test -d $python_root/lib64/${ver}/config; then
22379 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22381 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22388 if test x$PYTHON_INCDIR = x; then
22389 if test -f $prefix/include/Python.h; then
22390 PYTHON_INCDIR=-I$prefix/include
22391 if test -d $prefix/lib64/config; then
22392 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22394 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22404 if test -e $withval/bin/python-config ; then
22405 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22406 PYTHON_LIBS=`$withval/bin/python-config --libs`
22407 elif test -f $withval/Python.h; then
22408 PYTHON_INCDIR=-I$withval
22409 PYTHON_LIBS="-L$withval/config -lpython"
22410 elif test -f $withval/include/Python.h; then
22411 PYTHON_INCDIR=-I$withval/include
22412 if test -d $withval/lib64/config; then
22413 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22415 PYTHON_LIBS="-L$withval/lib/config -lpython"
22417 elif test -f $withval/include/python/Python.h; then
22418 PYTHON_INCDIR=-I$withval/include/python
22419 if test -d $withval/lib64/python/config; then
22420 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22422 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22431 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434 $as_echo "yes" >&6; }
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22437 $as_echo "$as_me: checking for more Python libs" >&6;}
22438 saved_LIBS="$LIBS"; LIBS=
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22440 $as_echo_n "checking for library containing shm_open... " >&6; }
22441 if test "${ac_cv_search_shm_open+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22444 ac_func_search_save_LIBS=$LIBS
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h. */
22448 /* Override any GCC internal prototype to avoid an error.
22449 Use char because int might match the return type of a GCC
22450 builtin and then its argument prototype would still apply. */
22458 return shm_open ();
22463 for ac_lib in '' rt; do
22464 if test -z "$ac_lib"; then
22465 ac_res="none required"
22468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22470 if ac_fn_c_try_link "$LINENO"; then :
22471 ac_cv_search_shm_open=$ac_res
22473 rm -f core conftest.err conftest.$ac_objext \
22475 if test "${ac_cv_search_shm_open+set}" = set; then :
22479 if test "${ac_cv_search_shm_open+set}" = set; then :
22482 ac_cv_search_shm_open=no
22484 rm conftest.$ac_ext
22485 LIBS=$ac_func_search_save_LIBS
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22488 $as_echo "$ac_cv_search_shm_open" >&6; }
22489 ac_res=$ac_cv_search_shm_open
22490 if test "$ac_res" != no; then :
22491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22496 $as_echo_n "checking for openpty in -lutil... " >&6; }
22497 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22498 $as_echo_n "(cached) " >&6
22500 ac_check_lib_save_LIBS=$LIBS
22501 LIBS="-lutil $LIBS"
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22505 /* Override any GCC internal prototype to avoid an error.
22506 Use char because int might match the return type of a GCC
22507 builtin and then its argument prototype would still apply. */
22520 if ac_fn_c_try_link "$LINENO"; then :
22521 ac_cv_lib_util_openpty=yes
22523 ac_cv_lib_util_openpty=no
22525 rm -f core conftest.err conftest.$ac_objext \
22526 conftest$ac_exeext conftest.$ac_ext
22527 LIBS=$ac_check_lib_save_LIBS
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22530 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22531 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22532 cat >>confdefs.h <<_ACEOF
22533 #define HAVE_LIBUTIL 1
22536 LIBS="-lutil $LIBS"
22540 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22544 $as_echo "no" >&6; }
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22550 $as_echo "no" >&6; }
22558 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22559 if test "x$ac_cv_func_socket" = x""yes; then :
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22561 $as_echo "using libc's socket" >&6; }
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22564 $as_echo_n "checking for socket in -lxnet... " >&6; }
22565 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22568 ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lxnet $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h. */
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22588 if ac_fn_c_try_link "$LINENO"; then :
22589 ac_cv_lib_xnet_socket=yes
22591 ac_cv_lib_xnet_socket=no
22593 rm -f core conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22595 LIBS=$ac_check_lib_save_LIBS
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22598 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22599 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22600 cat >>confdefs.h <<_ACEOF
22601 #define HAVE_LIBXNET 1
22604 LIBS="-lxnet $LIBS"
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22609 $as_echo_n "checking for socket in -lsocket... " >&6; }
22610 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22613 ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lsocket $LIBS"
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h. */
22618 /* Override any GCC internal prototype to avoid an error.
22619 Use char because int might match the return type of a GCC
22620 builtin and then its argument prototype would still apply. */
22633 if ac_fn_c_try_link "$LINENO"; then :
22634 ac_cv_lib_socket_socket=yes
22636 ac_cv_lib_socket_socket=no
22638 rm -f core conftest.err conftest.$ac_objext \
22639 conftest$ac_exeext conftest.$ac_ext
22640 LIBS=$ac_check_lib_save_LIBS
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22643 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22644 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_LIBSOCKET 1
22649 LIBS="-lsocket $LIBS"
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22654 $as_echo_n "checking for socket in -linet... " >&6; }
22655 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22658 ac_check_lib_save_LIBS=$LIBS
22659 LIBS="-linet $LIBS"
22660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661 /* end confdefs.h. */
22663 /* Override any GCC internal prototype to avoid an error.
22664 Use char because int might match the return type of a GCC
22665 builtin and then its argument prototype would still apply. */
22678 if ac_fn_c_try_link "$LINENO"; then :
22679 ac_cv_lib_inet_socket=yes
22681 ac_cv_lib_inet_socket=no
22683 rm -f core conftest.err conftest.$ac_objext \
22684 conftest$ac_exeext conftest.$ac_ext
22685 LIBS=$ac_check_lib_save_LIBS
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22688 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22689 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_LIBINET 1
22694 LIBS="-linet $LIBS"
22704 # Check whether --with-tcp-wrappers was given.
22705 if test "${with_tcp_wrappers+set}" = set; then :
22706 withval=$with_tcp_wrappers;
22707 if test "x$withval" != "xno" ; then
22709 LIBS="$saved_LIBS -lwrap"
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22711 $as_echo_n "checking for library containing nanosleep... " >&6; }
22712 if test "${ac_cv_search_nanosleep+set}" = set; then :
22713 $as_echo_n "(cached) " >&6
22715 ac_func_search_save_LIBS=$LIBS
22716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717 /* end confdefs.h. */
22719 /* Override any GCC internal prototype to avoid an error.
22720 Use char because int might match the return type of a GCC
22721 builtin and then its argument prototype would still apply. */
22729 return nanosleep ();
22734 for ac_lib in '' rt; do
22735 if test -z "$ac_lib"; then
22736 ac_res="none required"
22739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22741 if ac_fn_c_try_link "$LINENO"; then :
22742 ac_cv_search_nanosleep=$ac_res
22744 rm -f core conftest.err conftest.$ac_objext \
22746 if test "${ac_cv_search_nanosleep+set}" = set; then :
22750 if test "${ac_cv_search_nanosleep+set}" = set; then :
22753 ac_cv_search_nanosleep=no
22755 rm conftest.$ac_ext
22756 LIBS=$ac_func_search_save_LIBS
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22759 $as_echo "$ac_cv_search_nanosleep" >&6; }
22760 ac_res=$ac_cv_search_nanosleep
22761 if test "$ac_res" != no; then :
22762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22767 $as_echo_n "checking for libwrap... " >&6; }
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22771 #include <sys/types.h>
22773 int deny_severity = 0;
22774 int allow_severity = 0;
22775 struct request_info *req;
22787 if ac_fn_c_try_link "$LINENO"; then :
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790 $as_echo "yes" >&6; }
22792 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22800 LIBS="$saved_LIBS -lwrap -lnsl"
22801 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22805 #include <sys/types.h>
22807 int deny_severity = 0;
22808 int allow_severity = 0;
22809 struct request_info *req;
22821 if ac_fn_c_try_link "$LINENO"; then :
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22824 $as_echo "yes" >&6; }
22826 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22834 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22838 rm -f core conftest.err conftest.$ac_objext \
22839 conftest$ac_exeext conftest.$ac_ext
22843 rm -f core conftest.err conftest.$ac_objext \
22844 conftest$ac_exeext conftest.$ac_ext
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22852 $as_echo_n "checking for OpenSSL... " >&6; }
22854 # Check whether --with-openssl was given.
22855 if test "${with_openssl+set}" = set; then :
22856 withval=$with_openssl;
22857 with_openssl_directory=${withval}
22863 if test "x$with_openssl_directory" != "xno"; then
22864 OPENSSL_LIBS="-lssl -lcrypto"
22867 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22869 # Make sure the $with_openssl_directory also makes sense
22871 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22872 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22873 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22877 saved_LIBS="${LIBS}"
22878 saved_CFLAGS="${CFLAGS}"
22879 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22880 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22885 #include <openssl/ssl.h>
22891 CRYPTO_set_id_callback(NULL);
22897 if ac_fn_c_try_link "$LINENO"; then :
22900 support_crypto="yes"
22905 support_crypto="no"
22909 rm -f core conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22915 #include <openssl/evp.h>
22927 if ac_fn_c_try_link "$LINENO"; then :
22929 ac_cv_openssl_sha2="yes"
22933 ac_cv_openssl_sha2="no"
22937 rm -f core conftest.err conftest.$ac_objext \
22938 conftest$ac_exeext conftest.$ac_ext
22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22943 #include <openssl/evp.h>
22955 if ac_fn_c_try_link "$LINENO"; then :
22957 ac_cv_openssl_export="no"
22961 ac_cv_openssl_export="yes"
22965 rm -f core conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22968 if test "$support_tls" = "yes"; then
22970 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22973 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22976 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22980 if test "$ac_cv_openssl_sha2" = "yes"; then
22982 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22986 if test "$ac_cv_openssl_export" = "yes"; then
22988 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22992 if test "$support_crypto" = "yes"; then
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22994 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22995 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22998 ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-lcrypto $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23003 /* Override any GCC internal prototype to avoid an error.
23004 Use char because int might match the return type of a GCC
23005 builtin and then its argument prototype would still apply. */
23009 char EVP_PKEY_encrypt_old ();
23013 return EVP_PKEY_encrypt_old ();
23018 if ac_fn_c_try_link "$LINENO"; then :
23019 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23021 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23023 rm -f core conftest.err conftest.$ac_objext \
23024 conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23028 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23029 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23031 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23037 LIBS="${saved_LIBS}"
23038 CFLAGS="${saved_CFLAGS}"
23041 support_crypto="no"
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23046 $as_echo "$support_tls" >&6; }
23048 if test "$support_tls" = "no"; then
23052 if test "$support_crypto" = "no"; then
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23061 $as_echo_n "checking for library containing dlopen... " >&6; }
23062 if test "${ac_cv_search_dlopen+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23065 ac_func_search_save_LIBS=$LIBS
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h. */
23069 /* Override any GCC internal prototype to avoid an error.
23070 Use char because int might match the return type of a GCC
23071 builtin and then its argument prototype would still apply. */
23084 for ac_lib in '' dl; do
23085 if test -z "$ac_lib"; then
23086 ac_res="none required"
23089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23091 if ac_fn_c_try_link "$LINENO"; then :
23092 ac_cv_search_dlopen=$ac_res
23094 rm -f core conftest.err conftest.$ac_objext \
23096 if test "${ac_cv_search_dlopen+set}" = set; then :
23100 if test "${ac_cv_search_dlopen+set}" = set; then :
23103 ac_cv_search_dlopen=no
23105 rm conftest.$ac_ext
23106 LIBS=$ac_func_search_save_LIBS
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23109 $as_echo "$ac_cv_search_dlopen" >&6; }
23110 ac_res=$ac_cv_search_dlopen
23111 if test "$ac_res" != no; then :
23112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23117 working_dir=`eval echo ${prefix}/var/bacula/working`
23119 # Check whether --with-working-dir was given.
23120 if test "${with_working_dir+set}" = set; then :
23121 withval=$with_working_dir;
23122 if test "x$withval" != "xno" ; then
23123 working_dir=$withval
23134 # Check whether --with-archivedir was given.
23135 if test "${with_archivedir+set}" = set; then :
23136 withval=$with_archivedir;
23137 if test "x$withval" != "xno" ; then
23138 archivedir=$withval
23147 basename=`hostname`
23149 # Check whether --with-basename was given.
23150 if test "${with_basename+set}" = set; then :
23151 withval=$with_basename;
23152 if test "x$withval" != "xno" ; then
23162 hostname=`uname -n | cut -d '.' -f 1`
23163 if test x${hostname} = x ; then
23164 hostname="localhost"
23167 # Check whether --with-hostname was given.
23168 if test "${with_hostname+set}" = set; then :
23169 withval=$with_hostname;
23170 if test "x$withval" != "xno" ; then
23181 scriptdir=`eval echo ${sysconfdir}`
23183 # Check whether --with-scriptdir was given.
23184 if test "${with_scriptdir+set}" = set; then :
23185 withval=$with_scriptdir;
23186 if test "x$withval" != "xno" ; then
23199 # Check whether --with-bsrdir was given.
23200 if test "${with_bsrdir+set}" = set; then :
23201 withval=$with_bsrdir;
23202 if test "x$withval" != "xno" ; then
23214 # Check whether --with-logdir was given.
23215 if test "${with_logdir+set}" = set; then :
23216 withval=$with_logdir;
23217 if test "x$withval" != "xno" ; then
23228 # ------------------------------------------
23229 # Where to place plugindir (plugin files)
23230 # ------------------------------------------
23231 plugindir=`eval echo ${libdir}`
23233 # Check whether --with-plugindir was given.
23234 if test "${with_plugindir+set}" = set; then :
23235 withval=$with_plugindir;
23236 if test "x$withval" != "xno" ; then
23246 dump_email=root@localhost
23248 # Check whether --with-dump-email was given.
23249 if test "${with_dump_email+set}" = set; then :
23250 withval=$with_dump_email;
23251 if test "x$withval" != "xno" ; then
23252 dump_email=$withval
23261 job_email=root@localhost
23263 # Check whether --with-job-email was given.
23264 if test "${with_job_email+set}" = set; then :
23265 withval=$with_job_email;
23266 if test "x$withval" != "xno" ; then
23276 smtp_host=localhost
23278 # Check whether --with-smtp_host was given.
23279 if test "${with_smtp_host+set}" = set; then :
23280 withval=$with_smtp_host;
23281 if test "x$withval" != "xno" ; then
23293 # Check whether --with-pid-dir was given.
23294 if test "${with_pid_dir+set}" = set; then :
23295 withval=$with_pid_dir;
23296 if test "x$withval" != "xno" ; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define _PATH_BACULA_PIDDIR "$piddir"
23310 subsysdir=/var/run/subsys
23311 if test -d /var/run/subsys; then
23312 subsysdir=/var/run/subsys
23313 elif test -d /var/lock/subsys; then
23314 subsysdir=/var/lock/subsys
23316 subsysdir=/var/run/subsys
23319 # Check whether --with-subsys-dir was given.
23320 if test "${with_subsys_dir+set}" = set; then :
23321 withval=$with_subsys_dir;
23322 if test "x$withval" != "xno" ; then
23334 # Check whether --with-baseport was given.
23335 if test "${with_baseport+set}" = set; then :
23336 withval=$with_baseport;
23337 if test "x$withval" != "xno" ; then
23346 dir_port=`expr $baseport`
23347 fd_port=`expr $baseport + 1`
23348 sd_port=`expr $fd_port + 1`
23356 # Check whether --with-dir-password was given.
23357 if test "${with_dir_password+set}" = set; then :
23358 withval=$with_dir_password;
23359 if test "x$withval" != "xno" ; then
23360 dir_password=$withval
23367 if test "x$dir_password" = "x" ; then
23368 if test "x$OPENSSL" = "xnone" ; then
23369 key=`autoconf/randpass 33`
23371 key=`openssl rand -base64 33`
23378 # Check whether --with-fd-password was given.
23379 if test "${with_fd_password+set}" = set; then :
23380 withval=$with_fd_password;
23381 if test "x$withval" != "xno" ; then
23382 fd_password=$withval
23389 if test "x$fd_password" = "x" ; then
23390 if test "x$OPENSSL" = "xnone" ; then
23391 key=`autoconf/randpass 37`
23393 key=`openssl rand -base64 33`
23400 # Check whether --with-sd-password was given.
23401 if test "${with_sd_password+set}" = set; then :
23402 withval=$with_sd_password;
23403 if test "x$withval" != "xno" ; then
23404 sd_password=$withval
23411 if test "x$sd_password" = "x" ; then
23412 if test "x$OPENSSL" = "xnone" ; then
23413 key=`autoconf/randpass 41`
23415 key=`openssl rand -base64 33`
23422 # Check whether --with-mon-dir-password was given.
23423 if test "${with_mon_dir_password+set}" = set; then :
23424 withval=$with_mon_dir_password;
23425 if test "x$withval" != "xno" ; then
23426 mon_dir_password=$withval
23433 if test "x$mon_dir_password" = "x" ; then
23434 if test "x$OPENSSL" = "xnone" ; then
23435 key=`autoconf/randpass 33`
23437 key=`openssl rand -base64 33`
23439 mon_dir_password=$key
23444 # Check whether --with-mon-fd-password was given.
23445 if test "${with_mon_fd_password+set}" = set; then :
23446 withval=$with_mon_fd_password;
23447 if test "x$withval" != "xno" ; then
23448 mon_fd_password=$withval
23455 if test "x$mon_fd_password" = "x" ; then
23456 if test "x$OPENSSL" = "xnone" ; then
23457 key=`autoconf/randpass 37`
23459 key=`openssl rand -base64 33`
23461 mon_fd_password=$key
23466 # Check whether --with-mon-sd-password was given.
23467 if test "${with_mon_sd_password+set}" = set; then :
23468 withval=$with_mon_sd_password;
23469 if test "x$withval" != "xno" ; then
23470 mon_sd_password=$withval
23477 if test "x$mon_sd_password" = "x" ; then
23478 if test "x$OPENSSL" = "xnone" ; then
23479 key=`autoconf/randpass 41`
23481 key=`openssl rand -base64 33`
23483 mon_sd_password=$key
23495 # Check whether --with-db_name was given.
23496 if test "${with_db_name+set}" = set; then :
23497 withval=$with_db_name;
23498 if test "x$withval" != "x" ; then
23509 # Check whether --with-db_user was given.
23510 if test "${with_db_user+set}" = set; then :
23511 withval=$with_db_user;
23512 if test "x$withval" != "x" ; then
23523 # Check whether --with-db_password was given.
23524 if test "${with_db_password+set}" = set; then :
23525 withval=$with_db_password;
23526 if test "x$withval" != "x" ; then
23527 db_password=$withval
23537 # Check whether --with-db_port was given.
23538 if test "${with_db_port+set}" = set; then :
23539 withval=$with_db_port;
23540 if test "x$withval" != "x" ; then
23550 # Handle users and groups for each daemon
23554 # Check whether --with-dir_user was given.
23555 if test "${with_dir_user+set}" = set; then :
23556 withval=$with_dir_user;
23557 if test "x$withval" != "x" ; then
23567 # Check whether --with-dir_group was given.
23568 if test "${with_dir_group+set}" = set; then :
23569 withval=$with_dir_group;
23570 if test "x$withval" != "x" ; then
23580 # Check whether --with-sd_user was given.
23581 if test "${with_sd_user+set}" = set; then :
23582 withval=$with_sd_user;
23583 if test "x$withval" != "x" ; then
23593 # Check whether --with-sd_group was given.
23594 if test "${with_sd_group+set}" = set; then :
23595 withval=$with_sd_group;
23596 if test "x$withval" != "x" ; then
23606 # Check whether --with-fd_user was given.
23607 if test "${with_fd_user+set}" = set; then :
23608 withval=$with_fd_user;
23609 if test "x$withval" != "x" ; then
23619 # Check whether --with-fd_group was given.
23620 if test "${with_fd_group+set}" = set; then :
23621 withval=$with_fd_group;
23622 if test "x$withval" != "x" ; then
23639 # Check whether --with-sbin-perm was given.
23640 if test "${with_sbin_perm+set}" = set; then :
23641 withval=$with_sbin_perm;
23642 if test "x$withval" != "x" ; then
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23654 $as_echo_n "checking for PostgreSQL support... " >&6; }
23656 # Check whether --with-postgresql was given.
23657 if test "${with_postgresql+set}" = set; then :
23658 withval=$with_postgresql;
23659 if test "$withval" != "no"; then
23660 if test "$withval" = "yes"; then
23661 PG_CONFIG=`which pg_config`
23662 if test -n "$PG_CONFIG"; then
23663 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23664 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23665 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23666 elif test -f /usr/local/include/libpq-fe.h; then
23667 POSTGRESQL_INCDIR=/usr/local/include
23668 if test -d /usr/local/lib64; then
23669 POSTGRESQL_LIBDIR=/usr/local/lib64
23671 POSTGRESQL_LIBDIR=/usr/local/lib
23673 POSTGRESQL_BINDIR=/usr/local/bin
23674 elif test -f /usr/include/libpq-fe.h; then
23675 POSTGRESQL_INCDIR=/usr/include
23676 if test -d /usr/lib64; then
23677 POSTGRESQL_LIBDIR=/usr/lib64
23679 POSTGRESQL_LIBDIR=/usr/lib
23681 POSTGRESQL_BINDIR=/usr/bin
23682 elif test -f /usr/include/pgsql/libpq-fe.h; then
23683 POSTGRESQL_INCDIR=/usr/include/pgsql
23684 if test -d /usr/lib64/pgsql; then
23685 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23687 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23689 POSTGRESQL_BINDIR=/usr/bin
23690 elif test -f /usr/include/postgresql/libpq-fe.h; then
23691 POSTGRESQL_INCDIR=/usr/include/postgresql
23692 if test -d /usr/lib64/postgresql; then
23693 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23695 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23697 POSTGRESQL_BINDIR=/usr/bin
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700 $as_echo "no" >&6; }
23701 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23703 elif test -f $withval/include/libpq-fe.h; then
23704 POSTGRESQL_INCDIR=$withval/include
23705 POSTGRESQL_LIBDIR=$withval/lib
23706 POSTGRESQL_BINDIR=$withval/bin
23707 elif test -f $withval/include/postgresql/libpq-fe.h; then
23708 POSTGRESQL_INCDIR=$withval/include/postgresql
23709 if test -d $withval/lib64; then
23710 POSTGRESQL_LIBDIR=$withval/lib64
23712 POSTGRESQL_LIBDIR=$withval/lib
23714 POSTGRESQL_BINDIR=$withval/bin
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23717 $as_echo "no" >&6; }
23718 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23721 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23726 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23727 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23728 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23729 if test "x$ac_cv_func_crypt" = x""yes; then :
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23733 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23734 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23735 $as_echo_n "(cached) " >&6
23737 ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lcrypt $LIBS"
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23757 if ac_fn_c_try_link "$LINENO"; then :
23758 ac_cv_lib_crypt_crypt=yes
23760 ac_cv_lib_crypt_crypt=no
23762 rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23767 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23768 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23769 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23774 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23775 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23777 if test -z "${db_backends}"; then
23778 db_backends="PostgreSQL"
23780 db_backends="${db_backends} PostgreSQL"
23782 if test -z "${DB_BACKENDS}"; then
23783 DB_BACKENDS="postgresql"
23785 DB_BACKENDS="${DB_BACKENDS} postgresql"
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23807 $as_echo_n "checking for MySQL support... " >&6; }
23809 # Check whether --with-mysql was given.
23810 if test "${with_mysql+set}" = set; then :
23811 withval=$with_mysql;
23812 if test "$withval" != "no"; then
23813 if test "$withval" = "yes"; then
23814 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23815 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23816 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23817 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23818 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23820 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23822 MYSQL_BINDIR=/usr/local/mysql/bin
23823 elif test -f /usr/include/mysql/mysql.h; then
23824 MYSQL_INCDIR=/usr/include/mysql
23825 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23826 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23827 MYSQL_LIBDIR=/usr/lib64/mysql
23828 elif test -f /usr/lib64/libmysqlclient_r.a \
23829 -o -f /usr/lib64/libmysqlclient_r.so; then
23830 MYSQL_LIBDIR=/usr/lib64
23831 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23832 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23833 MYSQL_LIBDIR=/usr/lib/mysql
23835 MYSQL_LIBDIR=/usr/lib
23837 MYSQL_BINDIR=/usr/bin
23838 elif test -f /usr/include/mysql.h; then
23839 MYSQL_INCDIR=/usr/include
23840 if test -f /usr/lib64/libmysqlclient_r.a \
23841 -o -f /usr/lib64/libmysqlclient_r.so; then
23842 MYSQL_LIBDIR=/usr/lib64
23844 MYSQL_LIBDIR=/usr/lib
23846 MYSQL_BINDIR=/usr/bin
23847 elif test -f /usr/local/include/mysql/mysql.h; then
23848 MYSQL_INCDIR=/usr/local/include/mysql
23849 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23850 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23851 MYSQL_LIBDIR=/usr/local/lib64/mysql
23853 MYSQL_LIBDIR=/usr/local/lib/mysql
23855 MYSQL_BINDIR=/usr/local/bin
23856 elif test -f /usr/local/include/mysql.h; then
23857 MYSQL_INCDIR=/usr/local/include
23858 if test -f /usr/local/lib64/libmysqlclient_r.a \
23859 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23860 MYSQL_LIBDIR=/usr/local/lib64
23862 MYSQL_LIBDIR=/usr/local/lib
23864 MYSQL_BINDIR=/usr/local/bin
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23867 $as_echo "no" >&6; }
23868 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23871 if test -f $withval/include/mysql/mysql.h; then
23872 MYSQL_INCDIR=$withval/include/mysql
23873 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23874 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23875 MYSQL_LIBDIR=$withval/lib64/mysql
23876 elif test -f $withval/lib64/libmysqlclient_r.a \
23877 -o -f $withval/lib64/libmysqlclient_r.so; then
23878 MYSQL_LIBDIR=$withval/lib64
23879 elif test -f $withval/lib/libmysqlclient_r.a \
23880 -o -f $withval/lib/libmysqlclient_r.so; then
23881 MYSQL_LIBDIR=$withval/lib
23883 MYSQL_LIBDIR=$withval/lib/mysql
23885 MYSQL_BINDIR=$withval/bin
23886 elif test -f $withval/include/mysql.h; then
23887 MYSQL_INCDIR=$withval/include
23888 if test -f $withval/lib64/libmysqlclient_r.a \
23889 -o -f $withval/lib64/libmysqlclient_r.so; then
23890 MYSQL_LIBDIR=$withval/lib64
23892 MYSQL_LIBDIR=$withval/lib
23894 MYSQL_BINDIR=$withval/bin
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23898 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23901 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23902 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23903 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23904 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23906 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23908 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23910 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23913 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23916 $as_echo "yes" >&6; }
23918 if test -z "${db_backends}" ; then
23919 db_backends="MySQL"
23921 db_backends="${db_backends} MySQL"
23923 if test -z "${DB_BACKENDS}" ; then
23924 DB_BACKENDS="mysql"
23926 DB_BACKENDS="${DB_BACKENDS} mysql"
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23938 # Check whether --with-embedded-mysql was given.
23939 if test "${with_embedded_mysql+set}" = set; then :
23940 withval=$with_embedded_mysql;
23941 if test "$withval" != "no"; then
23942 if test "$withval" = "yes"; then
23943 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23944 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23945 if test -d /usr/local/mysql/lib64/mysql; then
23946 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23948 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23950 MYSQL_BINDIR=/usr/local/mysql/bin
23951 elif test -f /usr/include/mysql/mysql.h; then
23952 MYSQL_INCDIR=/usr/include/mysql
23953 if test -d /usr/lib64/mysql; then
23954 MYSQL_LIBDIR=/usr/lib64/mysql
23956 MYSQL_LIBDIR=/usr/lib/mysql
23958 MYSQL_BINDIR=/usr/bin
23959 elif test -f /usr/include/mysql.h; then
23960 MYSQL_INCDIR=/usr/include
23961 if test -d /usr/lib64; then
23962 MYSQL_LIBDIR=/usr/lib64
23964 MYSQL_LIBDIR=/usr/lib
23966 MYSQL_BINDIR=/usr/bin
23967 elif test -f /usr/local/include/mysql/mysql.h; then
23968 MYSQL_INCDIR=/usr/local/include/mysql
23969 if test -d /usr/local/lib64/mysql; then
23970 MYSQL_LIBDIR=/usr/local/lib64/mysql
23972 MYSQL_LIBDIR=/usr/local/lib/mysql
23974 MYSQL_BINDIR=/usr/local/bin
23975 elif test -f /usr/local/include/mysql.h; then
23976 MYSQL_INCDIR=/usr/local/include
23977 if test -d /usr/local/lib64; then
23978 MYSQL_LIBDIR=/usr/local/lib64
23980 MYSQL_LIBDIR=/usr/local/lib
23982 MYSQL_BINDIR=/usr/local/bin
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23985 $as_echo "no" >&6; }
23986 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23989 if test -f $withval/include/mysql/mysql.h; then
23990 MYSQL_INCDIR=$withval/include/mysql
23991 if test -d $withval/lib64/mysql; then
23992 MYSQL_LIBDIR=$withval/lib64/mysql
23994 MYSQL_LIBDIR=$withval/lib/mysql
23996 MYSQL_BINDIR=$withval/bin
23997 elif test -f $withval/include/mysql.h; then
23998 MYSQL_INCDIR=$withval/include
23999 if test -d $withval/lib64; then
24000 MYSQL_LIBDIR=$withval/lib64
24002 MYSQL_LIBDIR=$withval/lib
24004 MYSQL_BINDIR=$withval/bin
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24011 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24012 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24013 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24014 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24017 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24020 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24023 $as_echo "yes" >&6; }
24025 if test -z "${db_backends}"; then
24026 db_backends="MySQL"
24028 db_backends="${db_backends} MySQL"
24030 if test -z "${DB_BACKENDS}"; then
24031 DB_BACKENDS="mysql"
24033 DB_BACKENDS="${DB_BACKENDS} mysql"
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24037 $as_echo "no" >&6; }
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24052 $as_echo_n "checking for SQLite3 support... " >&6; }
24054 # Check whether --with-sqlite3 was given.
24055 if test "${with_sqlite3+set}" = set; then :
24056 withval=$with_sqlite3;
24057 if test "$withval" != "no"; then
24058 if test "$withval" = "yes"; then
24059 if test -f /usr/local/include/sqlite3.h; then
24060 SQLITE_INCDIR=/usr/local/include
24061 if test -d /usr/local/lib64; then
24062 SQLITE_LIBDIR=/usr/local/lib64
24064 SQLITE_LIBDIR=/usr/local/lib
24066 SQLITE_BINDIR=/usr/local/bin
24067 elif test -f /usr/include/sqlite3.h; then
24068 SQLITE_INCDIR=/usr/include
24069 if test -d /usr/lib64; then
24070 SQLITE_LIBDIR=/usr/lib64
24072 SQLITE_LIBDIR=/usr/lib
24074 SQLITE_BINDIR=/usr/bin
24075 elif test -f $prefix/include/sqlite3.h; then
24076 SQLITE_INCDIR=$prefix/include
24077 if test -d $prefix/lib64; then
24078 SQLITE_LIBDIR=$prefix/lib64
24080 SQLITE_LIBDIR=$prefix/lib
24082 SQLITE_BINDIR=$prefix/bin
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24085 $as_echo "no" >&6; }
24086 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24089 if test -f $withval/sqlite3.h; then
24090 SQLITE_INCDIR=$withval
24091 SQLITE_LIBDIR=$withval
24092 SQLITE_BINDIR=$withval
24093 elif test -f $withval/include/sqlite3.h; then
24094 SQLITE_INCDIR=$withval/include
24095 if test -d $withval/lib64; then
24096 SQLITE_LIBDIR=$withval/lib64
24098 SQLITE_LIBDIR=$withval/lib
24100 SQLITE_BINDIR=$withval/bin
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24104 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24107 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24108 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24109 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24110 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24113 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24116 $as_echo "yes" >&6; }
24118 if test -z "${db_backends}"; then
24119 db_backends="SQLite3"
24121 db_backends="${db_backends} SQLite3"
24123 if test -z "${DB_BACKENDS}"; then
24124 DB_BACKENDS="sqlite3"
24126 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24136 $as_echo "no" >&6; }
24146 #BA_CHECK_INGRES_DB
24150 #BA_CHECK_DBI_DRIVER
24152 if test "x${db_backends}" = "x" ; then
24155 echo "You have not specified either --enable-client-only or one of the"
24156 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24157 echo "This is not permitted. Please reconfigure."
24159 echo "Aborting the configuration ..."
24165 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24167 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24168 if test x$use_libtool = xno; then
24169 SHARED_CATALOG_TARGETS=""
24171 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24175 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24177 if test x$use_libtool = xno; then
24180 echo "You have specified two or more of the"
24181 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24182 echo "This is not permitted when not using libtool Please reconfigure."
24184 echo "Aborting the configuration ..."
24190 SHARED_CATALOG_TARGETS=""
24191 for db_type in ${DB_BACKENDS}
24193 if test -z "${SHARED_CATALOG_TARGETS}"; then
24194 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24196 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24202 if test x$use_libtool = xyes; then
24211 support_batch_insert=yes
24212 # Check whether --enable-batch-insert was given.
24213 if test "${enable_batch_insert+set}" = set; then :
24214 enableval=$enable_batch_insert;
24215 if test x$enableval = xno; then
24216 support_batch_insert=no
24223 if test x$support_batch_insert = xyes; then
24225 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24229 if test ! -z "$MYSQL_LIB"; then
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24231 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24232 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24235 ac_check_lib_save_LIBS=$LIBS
24236 LIBS="-lmysql_r $LIBS"
24237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24238 /* end confdefs.h. */
24240 /* Override any GCC internal prototype to avoid an error.
24241 Use char because int might match the return type of a GCC
24242 builtin and then its argument prototype would still apply. */
24246 char mysql_thread_safe ();
24250 return mysql_thread_safe ();
24255 if ac_fn_c_try_link "$LINENO"; then :
24256 ac_cv_lib_mysql_r_mysql_thread_safe=yes
24258 ac_cv_lib_mysql_r_mysql_thread_safe=no
24260 rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24265 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24266 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
24268 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24274 if test ! -z "SQLITE_LIB"; then
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24276 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24277 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24278 $as_echo_n "(cached) " >&6
24280 ac_check_lib_save_LIBS=$LIBS
24281 LIBS="-lsqlite3 $LIBS"
24282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24283 /* end confdefs.h. */
24285 /* Override any GCC internal prototype to avoid an error.
24286 Use char because int might match the return type of a GCC
24287 builtin and then its argument prototype would still apply. */
24291 char sqlite3_threadsafe ();
24295 return sqlite3_threadsafe ();
24300 if ac_fn_c_try_link "$LINENO"; then :
24301 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24303 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24305 rm -f core conftest.err conftest.$ac_objext \
24306 conftest$ac_exeext conftest.$ac_ext
24307 LIBS=$ac_check_lib_save_LIBS
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24310 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24311 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24313 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24319 if test ! -z "$POSTGRESQL_LIB"; then
24320 saved_LIBS="${LIBS}"
24321 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24324 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24325 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24326 $as_echo_n "(cached) " >&6
24328 ac_check_lib_save_LIBS=$LIBS
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24333 /* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24339 char PQisthreadsafe ();
24343 return PQisthreadsafe ();
24348 if ac_fn_c_try_link "$LINENO"; then :
24349 ac_cv_lib_pq_PQisthreadsafe=yes
24351 ac_cv_lib_pq_PQisthreadsafe=no
24353 rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24358 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24359 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24361 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24366 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24367 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24370 ac_check_lib_save_LIBS=$LIBS
24372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h. */
24375 /* Override any GCC internal prototype to avoid an error.
24376 Use char because int might match the return type of a GCC
24377 builtin and then its argument prototype would still apply. */
24381 char PQputCopyData ();
24385 return PQputCopyData ();
24390 if ac_fn_c_try_link "$LINENO"; then :
24391 ac_cv_lib_pq_PQputCopyData=yes
24393 ac_cv_lib_pq_PQputCopyData=no
24395 rm -f core conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
24397 LIBS=$ac_check_lib_save_LIBS
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24400 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24401 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24403 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24407 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24408 if test $support_batch_insert = yes ; then
24410 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24415 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24417 echo "WARNING: Your PostgreSQL client library is too old to detect "
24418 echo "if it was compiled with --enable-thread-safety, consider to "
24419 echo "upgrade it in order to avoid problems with Batch insert mode"
24423 LIBS="${saved_LIBS}"
24426 if test ! -z "$DBI_LIBS"; then
24427 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24429 if test $DB_PROG = postgresql; then
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24431 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24432 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24433 $as_echo_n "(cached) " >&6
24435 ac_check_lib_save_LIBS=$LIBS
24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438 /* end confdefs.h. */
24440 /* Override any GCC internal prototype to avoid an error.
24441 Use char because int might match the return type of a GCC
24442 builtin and then its argument prototype would still apply. */
24446 char PQisthreadsafe ();
24450 return PQisthreadsafe ();
24455 if ac_fn_c_try_link "$LINENO"; then :
24456 ac_cv_lib_pq_PQisthreadsafe=yes
24458 ac_cv_lib_pq_PQisthreadsafe=no
24460 rm -f core conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24462 LIBS=$ac_check_lib_save_LIBS
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24465 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24466 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24467 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24472 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24473 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24474 $as_echo_n "(cached) " >&6
24476 ac_check_lib_save_LIBS=$LIBS
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24481 /* Override any GCC internal prototype to avoid an error.
24482 Use char because int might match the return type of a GCC
24483 builtin and then its argument prototype would still apply. */
24487 char PQputCopyData ();
24491 return PQputCopyData ();
24496 if ac_fn_c_try_link "$LINENO"; then :
24497 ac_cv_lib_pq_PQputCopyData=yes
24499 ac_cv_lib_pq_PQputCopyData=no
24501 rm -f core conftest.err conftest.$ac_objext \
24502 conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24506 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24507 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24508 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24512 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24514 if test $pkg = 0; then
24515 if test $support_batch_insert = yes ; then
24517 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24528 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24531 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24532 if test -z "$CCOPTS"; then
24533 CCOPTS='-g -O2 -Wall'
24540 largefile_support="no"
24542 # Check whether --enable-largefile was given.
24543 if test "${enable_largefile+set}" = set; then :
24544 enableval=$enable_largefile;
24547 if test "$enable_largefile" != no; then
24548 if test -n "$ac_tool_prefix"; then
24549 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24550 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24552 $as_echo_n "checking for $ac_word... " >&6; }
24553 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24554 $as_echo_n "(cached) " >&6
24556 if test -n "$GETCONF"; then
24557 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24560 for as_dir in $PATH
24563 test -z "$as_dir" && as_dir=.
24564 for ac_exec_ext in '' $ac_executable_extensions; do
24565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24566 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24576 GETCONF=$ac_cv_prog_GETCONF
24577 if test -n "$GETCONF"; then
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24579 $as_echo "$GETCONF" >&6; }
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24582 $as_echo "no" >&6; }
24587 if test -z "$ac_cv_prog_GETCONF"; then
24588 ac_ct_GETCONF=$GETCONF
24589 # Extract the first word of "getconf", so it can be a program name with args.
24590 set dummy getconf; ac_word=$2
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24592 $as_echo_n "checking for $ac_word... " >&6; }
24593 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24596 if test -n "$ac_ct_GETCONF"; then
24597 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24600 for as_dir in $PATH
24603 test -z "$as_dir" && as_dir=.
24604 for ac_exec_ext in '' $ac_executable_extensions; do
24605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24606 ac_cv_prog_ac_ct_GETCONF="getconf"
24607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24616 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24617 if test -n "$ac_ct_GETCONF"; then
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24619 $as_echo "$ac_ct_GETCONF" >&6; }
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24622 $as_echo "no" >&6; }
24625 if test "x$ac_ct_GETCONF" = x; then
24628 case $cross_compiling:$ac_tool_warned in
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24632 ac_tool_warned=yes ;;
24634 GETCONF=$ac_ct_GETCONF
24637 GETCONF="$ac_cv_prog_GETCONF"
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24641 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24642 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24645 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24646 ac_cv_sys_largefile_CFLAGS=no
24648 # IRIX 6.2 and later require cc -n32.
24649 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24650 if test "$GCC" != yes; then
24651 ac_cv_sys_largefile_CFLAGS=-n32
24654 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h. */
24666 if ac_fn_c_try_link "$LINENO"; then :
24669 ac_cv_sys_largefile_CFLAGS=no
24671 rm -f core conftest.err conftest.$ac_objext \
24672 conftest$ac_exeext conftest.$ac_ext
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24678 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24680 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24681 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24682 $as_echo_n "(cached) " >&6
24684 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24685 ac_cv_sys_largefile_LDFLAGS=no
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24690 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24692 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24693 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24696 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24697 ac_cv_sys_largefile_LIBS=no
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24702 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24704 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24707 -D_FILE_OFFSET_BITS=*) ;;
24708 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24709 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24714 case "$CPPFLAGS" in
24715 '') CPPFLAGS="$ac_flag" ;;
24716 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24724 '') CFLAGS="$ac_flag" ;;
24725 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24730 case "$ac_cv_sys_largefile_LDFLAGS" in
24734 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24735 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24738 case "$ac_cv_sys_largefile_LIBS" in
24742 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24743 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24747 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24748 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24751 ac_cv_sys_file_offset_bits=no
24752 ac_cv_sys_file_offset_bits=64
24753 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24755 -D_FILE_OFFSET_BITS)
24756 ac_cv_sys_file_offset_bits=1 ;;
24757 -D_FILE_OFFSET_BITS=*)
24758 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24765 if test "$ac_cv_sys_file_offset_bits" != no; then
24767 cat >>confdefs.h <<_ACEOF
24768 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24773 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24774 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24777 ac_cv_sys_largefile_source=no
24778 ac_cv_sys_largefile_source=1
24779 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24781 -D_LARGEFILE_SOURCE)
24782 ac_cv_sys_largefile_source=1 ;;
24783 -D_LARGEFILE_SOURCE=*)
24784 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24790 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24791 if test "$ac_cv_sys_largefile_source" != no; then
24793 cat >>confdefs.h <<_ACEOF
24794 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24799 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24800 if test "${ac_cv_sys_large_files+set}" = set; then :
24801 $as_echo_n "(cached) " >&6
24803 ac_cv_sys_large_files=no
24804 ac_cv_sys_large_files=1
24805 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24808 ac_cv_sys_large_files=1 ;;
24810 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24816 $as_echo "$ac_cv_sys_large_files" >&6; }
24817 if test "$ac_cv_sys_large_files" != no; then
24819 cat >>confdefs.h <<_ACEOF
24820 #define _LARGE_FILES $ac_cv_sys_large_files
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24828 $as_echo_n "checking for X... " >&6; }
24831 # Check whether --with-x was given.
24832 if test "${with_x+set}" = set; then :
24836 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24837 if test "x$with_x" = xno; then
24838 # The user explicitly disabled X.
24841 case $x_includes,$x_libraries in #(
24842 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
24843 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24846 # One or both of the vars are not set, and there is no cached value.
24847 ac_x_includes=no ac_x_libraries=no
24848 rm -f -r conftest.dir
24849 if mkdir conftest.dir; then
24851 cat >Imakefile <<'_ACEOF'
24853 @echo incroot='${INCROOT}'
24855 @echo usrlibdir='${USRLIBDIR}'
24857 @echo libdir='${LIBDIR}'
24859 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24860 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24861 for ac_var in incroot usrlibdir libdir; do
24862 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24864 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24865 for ac_extension in a so sl dylib la dll; do
24866 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24867 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24868 ac_im_usrlibdir=$ac_im_libdir; break
24871 # Screen out bogus values from the imake configuration. They are
24872 # bogus both because they are the default anyway, and because
24873 # using them would break gcc on systems where it needs fixed includes.
24874 case $ac_im_incroot in
24875 /usr/include) ac_x_includes= ;;
24876 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24878 case $ac_im_usrlibdir in
24879 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24880 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24884 rm -f -r conftest.dir
24887 # Standard set of common directories for X headers.
24888 # Check X11 before X11Rn because it is often a symlink to the current release.
24902 /usr/local/X11/include
24903 /usr/local/X11R7/include
24904 /usr/local/X11R6/include
24905 /usr/local/X11R5/include
24906 /usr/local/X11R4/include
24908 /usr/local/include/X11
24909 /usr/local/include/X11R7
24910 /usr/local/include/X11R6
24911 /usr/local/include/X11R5
24912 /usr/local/include/X11R4
24916 /usr/XFree86/include/X11
24920 /usr/unsupported/include
24921 /usr/athena/include
24922 /usr/local/x11r5/include
24923 /usr/lpp/Xamples/include
24925 /usr/openwin/include
24926 /usr/openwin/share/include'
24928 if test "$ac_x_includes" = no; then
24929 # Guess where to find include files, by looking for Xlib.h.
24930 # First, try using that file with no special directory specified.
24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932 /* end confdefs.h. */
24933 #include <X11/Xlib.h>
24935 if ac_fn_c_try_cpp "$LINENO"; then :
24936 # We can compile using X headers with no special include directory.
24939 for ac_dir in $ac_x_header_dirs; do
24940 if test -r "$ac_dir/X11/Xlib.h"; then
24941 ac_x_includes=$ac_dir
24946 rm -f conftest.err conftest.i conftest.$ac_ext
24947 fi # $ac_x_includes = no
24949 if test "$ac_x_libraries" = no; then
24950 # Check for the libraries.
24951 # See if we find them without any special options.
24952 # Don't add to $LIBS permanently.
24955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h. */
24957 #include <X11/Xlib.h>
24966 if ac_fn_c_try_link "$LINENO"; then :
24968 # We can link X programs with no special library path.
24972 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24974 # Don't even attempt the hair of trying to link an X program!
24975 for ac_extension in a so sl dylib la dll; do
24976 if test -r "$ac_dir/libX11.$ac_extension"; then
24977 ac_x_libraries=$ac_dir
24983 rm -f core conftest.err conftest.$ac_objext \
24984 conftest$ac_exeext conftest.$ac_ext
24985 fi # $ac_x_libraries = no
24987 case $ac_x_includes,$ac_x_libraries in #(
24988 no,* | *,no | *\'*)
24989 # Didn't find X, or a directory has "'" in its name.
24990 ac_cv_have_x="have_x=no";; #(
24992 # Record where we found X for the cache.
24993 ac_cv_have_x="have_x=yes\
24994 ac_x_includes='$ac_x_includes'\
24995 ac_x_libraries='$ac_x_libraries'"
25001 eval "$ac_cv_have_x"
25004 if test "$have_x" != yes; then
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25006 $as_echo "$have_x" >&6; }
25009 # If each of the values was on the command line, it overrides each guess.
25010 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25011 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25012 # Update the cache value to reflect the command line values.
25013 ac_cv_have_x="have_x=yes\
25014 ac_x_includes='$x_includes'\
25015 ac_x_libraries='$x_libraries'"
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25017 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25020 if test "$no_x" = yes; then
25021 # Not all programs may use this symbol, but it does not hurt to define it.
25023 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25025 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25027 if test -n "$x_includes"; then
25028 X_CFLAGS="$X_CFLAGS -I$x_includes"
25031 # It would also be nice to do this for all -L options, not just this one.
25032 if test -n "$x_libraries"; then
25033 X_LIBS="$X_LIBS -L$x_libraries"
25034 # For Solaris; some versions of Sun CC require a space after -R and
25035 # others require no space. Words are not sufficient . . . .
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25037 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25038 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25039 ac_xsave_c_werror_flag=$ac_c_werror_flag
25040 ac_c_werror_flag=yes
25041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25042 /* end confdefs.h. */
25052 if ac_fn_c_try_link "$LINENO"; then :
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25054 $as_echo "no" >&6; }
25055 X_LIBS="$X_LIBS -R$x_libraries"
25057 LIBS="$ac_xsave_LIBS -R $x_libraries"
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25069 if ac_fn_c_try_link "$LINENO"; then :
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25071 $as_echo "yes" >&6; }
25072 X_LIBS="$X_LIBS -R $x_libraries"
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25075 $as_echo "neither works" >&6; }
25077 rm -f core conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25080 rm -f core conftest.err conftest.$ac_objext \
25081 conftest$ac_exeext conftest.$ac_ext
25082 ac_c_werror_flag=$ac_xsave_c_werror_flag
25083 LIBS=$ac_xsave_LIBS
25086 # Check for system-dependent libraries X programs must link with.
25087 # Do this before checking for the system-independent R6 libraries
25088 # (-lICE), since we may need -lsocket or whatever for X linking.
25090 if test "$ISC" = yes; then
25091 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25093 # Martyn Johnson says this is needed for Ultrix, if the X
25094 # libraries were built with DECnet support. And Karl Berry says
25095 # the Alpha needs dnet_stub (dnet does not exist).
25096 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25100 /* Override any GCC internal prototype to avoid an error.
25101 Use char because int might match the return type of a GCC
25102 builtin and then its argument prototype would still apply. */
25106 char XOpenDisplay ();
25110 return XOpenDisplay ();
25115 if ac_fn_c_try_link "$LINENO"; then :
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25119 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25120 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25121 $as_echo_n "(cached) " >&6
25123 ac_check_lib_save_LIBS=$LIBS
25124 LIBS="-ldnet $LIBS"
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h. */
25128 /* Override any GCC internal prototype to avoid an error.
25129 Use char because int might match the return type of a GCC
25130 builtin and then its argument prototype would still apply. */
25138 return dnet_ntoa ();
25143 if ac_fn_c_try_link "$LINENO"; then :
25144 ac_cv_lib_dnet_dnet_ntoa=yes
25146 ac_cv_lib_dnet_dnet_ntoa=no
25148 rm -f core conftest.err conftest.$ac_objext \
25149 conftest$ac_exeext conftest.$ac_ext
25150 LIBS=$ac_check_lib_save_LIBS
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25153 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25154 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25155 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25158 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25160 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25161 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25162 $as_echo_n "(cached) " >&6
25164 ac_check_lib_save_LIBS=$LIBS
25165 LIBS="-ldnet_stub $LIBS"
25166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h. */
25169 /* Override any GCC internal prototype to avoid an error.
25170 Use char because int might match the return type of a GCC
25171 builtin and then its argument prototype would still apply. */
25179 return dnet_ntoa ();
25184 if ac_fn_c_try_link "$LINENO"; then :
25185 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25187 ac_cv_lib_dnet_stub_dnet_ntoa=no
25189 rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
25191 LIBS=$ac_check_lib_save_LIBS
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25194 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25195 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25201 rm -f core conftest.err conftest.$ac_objext \
25202 conftest$ac_exeext conftest.$ac_ext
25203 LIBS="$ac_xsave_LIBS"
25205 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25206 # to get the SysV transport functions.
25207 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25209 # The nsl library prevents programs from opening the X display
25210 # on Irix 5.2, according to T.E. Dickey.
25211 # The functions gethostbyname, getservbyname, and inet_addr are
25212 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25213 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25214 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25218 if test $ac_cv_func_gethostbyname = no; then
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25220 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25221 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25224 ac_check_lib_save_LIBS=$LIBS
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h. */
25229 /* Override any GCC internal prototype to avoid an error.
25230 Use char because int might match the return type of a GCC
25231 builtin and then its argument prototype would still apply. */
25235 char gethostbyname ();
25239 return gethostbyname ();
25244 if ac_fn_c_try_link "$LINENO"; then :
25245 ac_cv_lib_nsl_gethostbyname=yes
25247 ac_cv_lib_nsl_gethostbyname=no
25249 rm -f core conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25251 LIBS=$ac_check_lib_save_LIBS
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25254 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25255 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25259 if test $ac_cv_lib_nsl_gethostbyname = no; then
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25261 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25262 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25265 ac_check_lib_save_LIBS=$LIBS
25267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25268 /* end confdefs.h. */
25270 /* Override any GCC internal prototype to avoid an error.
25271 Use char because int might match the return type of a GCC
25272 builtin and then its argument prototype would still apply. */
25276 char gethostbyname ();
25280 return gethostbyname ();
25285 if ac_fn_c_try_link "$LINENO"; then :
25286 ac_cv_lib_bsd_gethostbyname=yes
25288 ac_cv_lib_bsd_gethostbyname=no
25290 rm -f core conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
25292 LIBS=$ac_check_lib_save_LIBS
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25295 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25296 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25304 # socket/setsockopt and other routines are undefined under SCO ODT
25305 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25306 # on later versions), says Simon Leinen: it contains gethostby*
25307 # variants that don't use the name server (or something). -lsocket
25308 # must be given before -lnsl if both are needed. We assume that
25309 # if connect needs -lnsl, so does gethostbyname.
25310 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25311 if test "x$ac_cv_func_connect" = x""yes; then :
25315 if test $ac_cv_func_connect = no; then
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25317 $as_echo_n "checking for connect in -lsocket... " >&6; }
25318 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25319 $as_echo_n "(cached) " >&6
25321 ac_check_lib_save_LIBS=$LIBS
25322 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25326 /* Override any GCC internal prototype to avoid an error.
25327 Use char because int might match the return type of a GCC
25328 builtin and then its argument prototype would still apply. */
25341 if ac_fn_c_try_link "$LINENO"; then :
25342 ac_cv_lib_socket_connect=yes
25344 ac_cv_lib_socket_connect=no
25346 rm -f core conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25351 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25352 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25353 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25358 # Guillermo Gomez says -lposix is necessary on A/UX.
25359 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25360 if test "x$ac_cv_func_remove" = x""yes; then :
25364 if test $ac_cv_func_remove = no; then
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25366 $as_echo_n "checking for remove in -lposix... " >&6; }
25367 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-lposix $LIBS"
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h. */
25375 /* Override any GCC internal prototype to avoid an error.
25376 Use char because int might match the return type of a GCC
25377 builtin and then its argument prototype would still apply. */
25390 if ac_fn_c_try_link "$LINENO"; then :
25391 ac_cv_lib_posix_remove=yes
25393 ac_cv_lib_posix_remove=no
25395 rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25400 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25401 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25402 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25407 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25408 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25409 if test "x$ac_cv_func_shmat" = x""yes; then :
25413 if test $ac_cv_func_shmat = no; then
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25415 $as_echo_n "checking for shmat in -lipc... " >&6; }
25416 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25417 $as_echo_n "(cached) " >&6
25419 ac_check_lib_save_LIBS=$LIBS
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422 /* end confdefs.h. */
25424 /* Override any GCC internal prototype to avoid an error.
25425 Use char because int might match the return type of a GCC
25426 builtin and then its argument prototype would still apply. */
25439 if ac_fn_c_try_link "$LINENO"; then :
25440 ac_cv_lib_ipc_shmat=yes
25442 ac_cv_lib_ipc_shmat=no
25444 rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25449 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25450 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25457 # Check for libraries that X11R6 Xt/Xaw programs need.
25458 ac_save_LDFLAGS=$LDFLAGS
25459 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25460 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25461 # check for ICE first), but we must link in the order -lSM -lICE or
25462 # we get undefined symbols. So assume we have SM if we have ICE.
25463 # These have to be linked with before -lX11, unlike the other
25464 # libraries we check for below, so use a different variable.
25465 # John Interrante, Karl Berry
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25467 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25471 ac_check_lib_save_LIBS=$LIBS
25472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h. */
25476 /* Override any GCC internal prototype to avoid an error.
25477 Use char because int might match the return type of a GCC
25478 builtin and then its argument prototype would still apply. */
25482 char IceConnectionNumber ();
25486 return IceConnectionNumber ();
25491 if ac_fn_c_try_link "$LINENO"; then :
25492 ac_cv_lib_ICE_IceConnectionNumber=yes
25494 ac_cv_lib_ICE_IceConnectionNumber=no
25496 rm -f core conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25501 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25502 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25503 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25506 LDFLAGS=$ac_save_LDFLAGS
25543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25546 cat >>confdefs.h <<_ACEOF
25547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25555 $as_echo_n "checking for ANSI C header files... " >&6; }
25556 if test "${ac_cv_header_stdc+set}" = set; then :
25557 $as_echo_n "(cached) " >&6
25559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560 /* end confdefs.h. */
25561 #include <stdlib.h>
25562 #include <stdarg.h>
25563 #include <string.h>
25574 if ac_fn_c_try_compile "$LINENO"; then :
25575 ac_cv_header_stdc=yes
25577 ac_cv_header_stdc=no
25579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25581 if test $ac_cv_header_stdc = yes; then
25582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584 /* end confdefs.h. */
25585 #include <string.h>
25588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25589 $EGREP "memchr" >/dev/null 2>&1; then :
25592 ac_cv_header_stdc=no
25598 if test $ac_cv_header_stdc = yes; then
25599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h. */
25602 #include <stdlib.h>
25605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25606 $EGREP "free" >/dev/null 2>&1; then :
25609 ac_cv_header_stdc=no
25615 if test $ac_cv_header_stdc = yes; then
25616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25617 if test "$cross_compiling" = yes; then :
25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h. */
25623 #include <stdlib.h>
25624 #if ((' ' & 0x0FF) == 0x020)
25625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25628 # define ISLOWER(c) \
25629 (('a' <= (c) && (c) <= 'i') \
25630 || ('j' <= (c) && (c) <= 'r') \
25631 || ('s' <= (c) && (c) <= 'z'))
25632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25640 for (i = 0; i < 256; i++)
25641 if (XOR (islower (i), ISLOWER (i))
25642 || toupper (i) != TOUPPER (i))
25647 if ac_fn_c_try_run "$LINENO"; then :
25650 ac_cv_header_stdc=no
25652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25653 conftest.$ac_objext conftest.beam conftest.$ac_ext
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25659 $as_echo "$ac_cv_header_stdc" >&6; }
25660 if test $ac_cv_header_stdc = yes; then
25662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25667 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25668 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25669 $as_echo_n "(cached) " >&6
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h. */
25673 #include <sys/types.h>
25677 return makedev(0, 0);
25682 if ac_fn_c_try_link "$LINENO"; then :
25683 ac_cv_header_sys_types_h_makedev=yes
25685 ac_cv_header_sys_types_h_makedev=no
25687 rm -f core conftest.err conftest.$ac_objext \
25688 conftest$ac_exeext conftest.$ac_ext
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25692 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25694 if test $ac_cv_header_sys_types_h_makedev = no; then
25695 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25696 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25698 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25704 if test $ac_cv_header_sys_mkdev_h = no; then
25705 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25706 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25708 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25716 ac_header_dirent=no
25717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25718 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25720 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25721 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
25722 $as_echo_n "(cached) " >&6
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h. */
25726 #include <sys/types.h>
25738 if ac_fn_c_try_compile "$LINENO"; then :
25739 eval "$as_ac_Header=yes"
25741 eval "$as_ac_Header=no"
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25745 eval ac_res=\$$as_ac_Header
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25747 $as_echo "$ac_res" >&6; }
25748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25749 cat >>confdefs.h <<_ACEOF
25750 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25753 ac_header_dirent=$ac_hdr; break
25757 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25758 if test $ac_header_dirent = dirent.h; then
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25760 $as_echo_n "checking for library containing opendir... " >&6; }
25761 if test "${ac_cv_search_opendir+set}" = set; then :
25762 $as_echo_n "(cached) " >&6
25764 ac_func_search_save_LIBS=$LIBS
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25768 /* Override any GCC internal prototype to avoid an error.
25769 Use char because int might match the return type of a GCC
25770 builtin and then its argument prototype would still apply. */
25783 for ac_lib in '' dir; do
25784 if test -z "$ac_lib"; then
25785 ac_res="none required"
25788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25790 if ac_fn_c_try_link "$LINENO"; then :
25791 ac_cv_search_opendir=$ac_res
25793 rm -f core conftest.err conftest.$ac_objext \
25795 if test "${ac_cv_search_opendir+set}" = set; then :
25799 if test "${ac_cv_search_opendir+set}" = set; then :
25802 ac_cv_search_opendir=no
25804 rm conftest.$ac_ext
25805 LIBS=$ac_func_search_save_LIBS
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25808 $as_echo "$ac_cv_search_opendir" >&6; }
25809 ac_res=$ac_cv_search_opendir
25810 if test "$ac_res" != no; then :
25811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25817 $as_echo_n "checking for library containing opendir... " >&6; }
25818 if test "${ac_cv_search_opendir+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25821 ac_func_search_save_LIBS=$LIBS
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h. */
25825 /* Override any GCC internal prototype to avoid an error.
25826 Use char because int might match the return type of a GCC
25827 builtin and then its argument prototype would still apply. */
25840 for ac_lib in '' x; do
25841 if test -z "$ac_lib"; then
25842 ac_res="none required"
25845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25847 if ac_fn_c_try_link "$LINENO"; then :
25848 ac_cv_search_opendir=$ac_res
25850 rm -f core conftest.err conftest.$ac_objext \
25852 if test "${ac_cv_search_opendir+set}" = set; then :
25856 if test "${ac_cv_search_opendir+set}" = set; then :
25859 ac_cv_search_opendir=no
25861 rm conftest.$ac_ext
25862 LIBS=$ac_func_search_save_LIBS
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25865 $as_echo "$ac_cv_search_opendir" >&6; }
25866 ac_res=$ac_cv_search_opendir
25867 if test "$ac_res" != no; then :
25868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25875 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25876 if test "${ac_cv_header_stat_broken+set}" = set; then :
25877 $as_echo_n "(cached) " >&6
25879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25880 /* end confdefs.h. */
25881 #include <sys/types.h>
25882 #include <sys/stat.h>
25884 #if defined S_ISBLK && defined S_IFDIR
25885 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25888 #if defined S_ISBLK && defined S_IFCHR
25889 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25892 #if defined S_ISLNK && defined S_IFREG
25893 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25896 #if defined S_ISSOCK && defined S_IFREG
25897 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25901 if ac_fn_c_try_compile "$LINENO"; then :
25902 ac_cv_header_stat_broken=no
25904 ac_cv_header_stat_broken=yes
25906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25909 $as_echo "$ac_cv_header_stat_broken" >&6; }
25910 if test $ac_cv_header_stat_broken = yes; then
25912 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25917 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25918 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25919 $as_echo_n "(cached) " >&6
25921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h. */
25923 #include <sys/types.h>
25924 #include <sys/wait.h>
25925 #ifndef WEXITSTATUS
25926 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25929 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25937 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25942 if ac_fn_c_try_compile "$LINENO"; then :
25943 ac_cv_header_sys_wait_h=yes
25945 ac_cv_header_sys_wait_h=no
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25950 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25951 if test $ac_cv_header_sys_wait_h = yes; then
25953 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25958 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25959 if test "${ac_cv_header_time+set}" = set; then :
25960 $as_echo_n "(cached) " >&6
25962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25963 /* end confdefs.h. */
25964 #include <sys/types.h>
25965 #include <sys/time.h>
25971 if ((struct tm *) 0)
25977 if ac_fn_c_try_compile "$LINENO"; then :
25978 ac_cv_header_time=yes
25980 ac_cv_header_time=no
25982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25985 $as_echo "$ac_cv_header_time" >&6; }
25986 if test $ac_cv_header_time = yes; then
25988 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25992 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25993 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25995 cat >>confdefs.h <<_ACEOF
25996 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26000 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26005 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26006 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26008 cat >>confdefs.h <<_ACEOF
26009 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26013 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26016 case " $LIBOBJS " in
26017 *" fileblocks.$ac_objext "* ) ;;
26018 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26026 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26027 if test "${ac_cv_struct_tm+set}" = set; then :
26028 $as_echo_n "(cached) " >&6
26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h. */
26032 #include <sys/types.h>
26039 int *p = &tm.tm_sec;
26045 if ac_fn_c_try_compile "$LINENO"; then :
26046 ac_cv_struct_tm=time.h
26048 ac_cv_struct_tm=sys/time.h
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26053 $as_echo "$ac_cv_struct_tm" >&6; }
26054 if test $ac_cv_struct_tm = sys/time.h; then
26056 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26060 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26061 #include <$ac_cv_struct_tm>
26064 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_STRUCT_TM_TM_ZONE 1
26073 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26075 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26078 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26080 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26086 cat >>confdefs.h <<_ACEOF
26087 #define HAVE_DECL_TZNAME $ac_have_decl
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26091 $as_echo_n "checking for tzname... " >&6; }
26092 if test "${ac_cv_var_tzname+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h. */
26098 #if !HAVE_DECL_TZNAME
26099 extern char *tzname[];
26105 return tzname[0][0];
26110 if ac_fn_c_try_link "$LINENO"; then :
26111 ac_cv_var_tzname=yes
26113 ac_cv_var_tzname=no
26115 rm -f core conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26119 $as_echo "$ac_cv_var_tzname" >&6; }
26120 if test $ac_cv_var_tzname = yes; then
26122 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26129 $as_echo_n "checking for utime.h... " >&6; }
26130 if test "${ba_cv_header_utime_h+set}" = set; then :
26131 $as_echo_n "(cached) " >&6
26134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h. */
26137 #include <sys/types.h>
26150 if ac_fn_c_try_compile "$LINENO"; then :
26152 ba_cv_header_utime_h=yes
26156 ba_cv_header_utime_h=no
26160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26165 $as_echo "$ba_cv_header_utime_h" >&6; }
26166 test $ba_cv_header_utime_h = yes &&
26167 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26171 $as_echo_n "checking for socklen_t... " >&6; }
26172 if test "${ba_cv_header_socklen_t+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h. */
26179 #include <sys/types.h>
26180 #include <sys/socket.h>
26192 if ac_fn_c_try_compile "$LINENO"; then :
26194 ba_cv_header_socklen_t=yes
26198 ba_cv_header_socklen_t=no
26202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26207 $as_echo "$ba_cv_header_socklen_t" >&6; }
26208 test $ba_cv_header_socklen_t = yes &&
26209 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26213 ac_cpp='$CXXCPP $CPPFLAGS'
26214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26219 $as_echo_n "checking for ioctl_req_t... " >&6; }
26220 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h. */
26227 #include <unistd.h>
26228 #include <sys/types.h>
26229 #include <sys/ioctl.h>
26235 int (*d_ioctl)(int fd, unsigned long int request, ...);
26242 if ac_fn_cxx_try_compile "$LINENO"; then :
26244 ba_cv_header_ioctl_req_t=yes
26248 ba_cv_header_ioctl_req_t=no
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26257 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26258 test $ba_cv_header_ioctl_req_t = yes &&
26259 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26263 ac_cpp='$CPP $CPPFLAGS'
26264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26270 ac_cpp='$CXXCPP $CPPFLAGS'
26271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26276 $as_echo_n "checking for typeof... " >&6; }
26277 if test "${ba_cv_have_typeof+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26281 if test "$cross_compiling" = yes; then :
26283 ba_cv_have_typeof=no
26287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26288 /* end confdefs.h. */
26290 main(){char *a = 0; a = (typeof a)a;}
26293 if ac_fn_cxx_try_run "$LINENO"; then :
26295 ba_cv_have_typeof=yes
26299 ba_cv_have_typeof=no
26302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26303 conftest.$ac_objext conftest.beam conftest.$ac_ext
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26310 $as_echo "$ba_cv_have_typeof" >&6; }
26311 test $ba_cv_have_typeof = yes &&
26312 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26315 ac_cpp='$CPP $CPPFLAGS'
26316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26322 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26323 if test "${ac_cv_c_const+set}" = set; then :
26324 $as_echo_n "(cached) " >&6
26326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h. */
26332 /* FIXME: Include the comments suggested by Paul. */
26333 #ifndef __cplusplus
26334 /* Ultrix mips cc rejects this. */
26335 typedef int charset[2];
26337 /* SunOS 4.1.1 cc rejects this. */
26338 char const *const *pcpcc;
26340 /* NEC SVR4.0.2 mips cc rejects this. */
26341 struct point {int x, y;};
26342 static struct point const zero = {0,0};
26343 /* AIX XL C 1.02.0.0 rejects this.
26344 It does not let you subtract one const X* pointer from another in
26345 an arm of an if-expression whose if-part is not a constant
26347 const char *g = "string";
26348 pcpcc = &g + (g ? g-g : 0);
26349 /* HPUX 7.0 cc rejects these. */
26351 ppc = (char**) pcpcc;
26352 pcpcc = (char const *const *) ppc;
26353 { /* SCO 3.2v4 cc rejects this. */
26355 char const *s = 0 ? (char *) 0 : (char const *) 0;
26360 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26361 int x[] = {25, 17};
26362 const int *foo = &x[0];
26365 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26366 typedef const int *iptr;
26370 { /* AIX XL C 1.02.0.0 rejects this saying
26371 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26372 struct s { int j; const int *ap[3]; };
26373 struct s *b; b->j = 5;
26375 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26376 const int foo = 10;
26377 if (!foo) return 0;
26379 return !cs[0] && !zero.x;
26386 if ac_fn_c_try_compile "$LINENO"; then :
26391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26394 $as_echo "$ac_cv_c_const" >&6; }
26395 if test $ac_cv_c_const = no; then
26397 $as_echo "#define const /**/" >>confdefs.h
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26404 if test "${ac_cv_c_bigendian+set}" = set; then :
26405 $as_echo_n "(cached) " >&6
26407 ac_cv_c_bigendian=unknown
26408 # See if we're dealing with a universal compiler.
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26411 #ifndef __APPLE_CC__
26412 not a universal capable compiler
26417 if ac_fn_c_try_compile "$LINENO"; then :
26419 # Check for potential -arch flags. It is not universal unless
26420 # there are at least two -arch flags with different values.
26423 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26424 if test -n "$ac_prev"; then
26426 i?86 | x86_64 | ppc | ppc64)
26427 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26430 ac_cv_c_bigendian=universal
26436 elif test "x$ac_word" = "x-arch"; then
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 if test $ac_cv_c_bigendian = unknown; then
26443 # See if sys/param.h defines the BYTE_ORDER macro.
26444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h. */
26446 #include <sys/types.h>
26447 #include <sys/param.h>
26452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26455 bogus endian macros
26462 if ac_fn_c_try_compile "$LINENO"; then :
26463 # It does; now see whether it defined to BIG_ENDIAN or not.
26464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26465 /* end confdefs.h. */
26466 #include <sys/types.h>
26467 #include <sys/param.h>
26472 #if BYTE_ORDER != BIG_ENDIAN
26480 if ac_fn_c_try_compile "$LINENO"; then :
26481 ac_cv_c_bigendian=yes
26483 ac_cv_c_bigendian=no
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26489 if test $ac_cv_c_bigendian = unknown; then
26490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h. */
26493 #include <limits.h>
26498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26499 bogus endian macros
26506 if ac_fn_c_try_compile "$LINENO"; then :
26507 # It does; now see whether it defined to _BIG_ENDIAN or not.
26508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26509 /* end confdefs.h. */
26510 #include <limits.h>
26515 #ifndef _BIG_ENDIAN
26523 if ac_fn_c_try_compile "$LINENO"; then :
26524 ac_cv_c_bigendian=yes
26526 ac_cv_c_bigendian=no
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532 if test $ac_cv_c_bigendian = unknown; then
26533 # Compile a test program.
26534 if test "$cross_compiling" = yes; then :
26535 # Try to guess by grepping values from an object file.
26536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26537 /* end confdefs.h. */
26538 short int ascii_mm[] =
26539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26540 short int ascii_ii[] =
26541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26542 int use_ascii (int i) {
26543 return ascii_mm[i] + ascii_ii[i];
26545 short int ebcdic_ii[] =
26546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26547 short int ebcdic_mm[] =
26548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26549 int use_ebcdic (int i) {
26550 return ebcdic_mm[i] + ebcdic_ii[i];
26557 return use_ascii (foo) == use_ebcdic (foo);
26562 if ac_fn_c_try_compile "$LINENO"; then :
26563 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26564 ac_cv_c_bigendian=yes
26566 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26567 if test "$ac_cv_c_bigendian" = unknown; then
26568 ac_cv_c_bigendian=no
26570 # finding both strings is unlikely to happen, but who knows?
26571 ac_cv_c_bigendian=unknown
26575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h. */
26579 $ac_includes_default
26584 /* Are we little or big endian? From Harbison&Steele. */
26588 char c[sizeof (long int)];
26591 return u.c[sizeof (long int) - 1] == 1;
26597 if ac_fn_c_try_run "$LINENO"; then :
26598 ac_cv_c_bigendian=no
26600 ac_cv_c_bigendian=yes
26602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26603 conftest.$ac_objext conftest.beam conftest.$ac_ext
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26609 $as_echo "$ac_cv_c_bigendian" >&6; }
26610 case $ac_cv_c_bigendian in #(
26613 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26617 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26621 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26625 as_fn_error $? "unknown endianness
26626 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26631 $as_echo_n "checking how to get filesystem type... " >&6; }
26633 # The order of these tests is important.
26634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h. */
26637 #include <sys/statvfs.h>
26638 #include <sys/fstyp.h>
26641 if ac_fn_c_try_cpp "$LINENO"; then :
26642 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26646 rm -f conftest.err conftest.i conftest.$ac_ext
26647 if test $fstype = no; then
26648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649 /* end confdefs.h. */
26651 #include <sys/statfs.h>
26652 #include <sys/fstyp.h>
26655 if ac_fn_c_try_cpp "$LINENO"; then :
26656 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26660 rm -f conftest.err conftest.i conftest.$ac_ext
26662 if test $fstype = no; then
26663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h. */
26666 #include <sys/statfs.h>
26667 #include <sys/vmount.h>
26670 if ac_fn_c_try_cpp "$LINENO"; then :
26671 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26675 rm -f conftest.err conftest.i conftest.$ac_ext
26677 if test $fstype = no; then
26678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26679 /* end confdefs.h. */
26681 #include <mntent.h>
26684 if ac_fn_c_try_cpp "$LINENO"; then :
26685 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26689 rm -f conftest.err conftest.i conftest.$ac_ext
26691 if test $fstype = no; then
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26694 #include <sys/mount.h>
26697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26698 $EGREP "f_type;" >/dev/null 2>&1; then :
26699 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26705 if test $fstype = no; then
26706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h. */
26709 #include <sys/mount.h>
26710 #include <sys/fs_types.h>
26713 if ac_fn_c_try_cpp "$LINENO"; then :
26714 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26718 rm -f conftest.err conftest.i conftest.$ac_ext
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26721 $as_echo "$fstype" >&6; }
26723 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26724 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26726 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26733 ac_cpp='$CXXCPP $CPPFLAGS'
26734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26738 for ac_func in backtrace
26740 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26741 if test "x$ac_cv_func_backtrace" = x""yes; then :
26742 cat >>confdefs.h <<_ACEOF
26743 #define HAVE_BACKTRACE 1
26750 ac_cpp='$CPP $CPPFLAGS'
26751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26757 $as_echo_n "checking return type of signal handlers... " >&6; }
26758 if test "${ac_cv_type_signal+set}" = set; then :
26759 $as_echo_n "(cached) " >&6
26761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26762 /* end confdefs.h. */
26763 #include <sys/types.h>
26764 #include <signal.h>
26769 return *(signal (0, 0)) (0) == 1;
26774 if ac_fn_c_try_compile "$LINENO"; then :
26775 ac_cv_type_signal=int
26777 ac_cv_type_signal=void
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26782 $as_echo "$ac_cv_type_signal" >&6; }
26784 cat >>confdefs.h <<_ACEOF
26785 #define RETSIGTYPE $ac_cv_type_signal
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26791 $as_echo_n "checking for type of signal functions... " >&6; }
26792 if test "${bash_cv_signal_vintage+set}" = set; then :
26793 $as_echo_n "(cached) " >&6
26796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797 /* end confdefs.h. */
26798 #include <signal.h>
26804 struct sigaction sa;
26805 sigemptyset(&ss); sigsuspend(&ss);
26806 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26807 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26813 if ac_fn_c_try_link "$LINENO"; then :
26814 bash_cv_signal_vintage="posix"
26817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26818 /* end confdefs.h. */
26819 #include <signal.h>
26824 int mask = sigmask(SIGINT);
26825 sigsetmask(mask); sigblock(mask); sigpause(mask);
26831 if ac_fn_c_try_link "$LINENO"; then :
26832 bash_cv_signal_vintage="4.2bsd"
26835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h. */
26838 #include <signal.h>
26839 RETSIGTYPE foo() { }
26844 int mask = sigmask(SIGINT);
26845 sigset(SIGINT, foo); sigrelse(SIGINT);
26846 sighold(SIGINT); sigpause(SIGINT);
26852 if ac_fn_c_try_link "$LINENO"; then :
26853 bash_cv_signal_vintage="svr3"
26855 bash_cv_signal_vintage="v7"
26858 rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
26862 rm -f core conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
26866 rm -f core conftest.err conftest.$ac_objext \
26867 conftest$ac_exeext conftest.$ac_ext
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26872 $as_echo "$bash_cv_signal_vintage" >&6; }
26873 if test "$bash_cv_signal_vintage" = "posix"; then
26874 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26876 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26877 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26879 elif test "$bash_cv_signal_vintage" = "svr3"; then
26880 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26884 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26885 if test "x$ac_cv_type_mode_t" = x""yes; then :
26889 cat >>confdefs.h <<_ACEOF
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26896 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26897 if test "${ac_cv_type_uid_t+set}" = set; then :
26898 $as_echo_n "(cached) " >&6
26900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26902 #include <sys/types.h>
26905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26906 $EGREP "uid_t" >/dev/null 2>&1; then :
26907 ac_cv_type_uid_t=yes
26909 ac_cv_type_uid_t=no
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26915 $as_echo "$ac_cv_type_uid_t" >&6; }
26916 if test $ac_cv_type_uid_t = no; then
26918 $as_echo "#define uid_t int" >>confdefs.h
26921 $as_echo "#define gid_t int" >>confdefs.h
26925 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26926 if test "x$ac_cv_type_size_t" = x""yes; then :
26930 cat >>confdefs.h <<_ACEOF
26931 #define size_t unsigned int
26936 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26937 if test "x$ac_cv_type_pid_t" = x""yes; then :
26941 cat >>confdefs.h <<_ACEOF
26947 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26948 if test "x$ac_cv_type_off_t" = x""yes; then :
26952 cat >>confdefs.h <<_ACEOF
26953 #define off_t long int
26959 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26960 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26962 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26965 for ac_type in 'int' 'long int' 'long long int'; do
26966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26967 /* end confdefs.h. */
26968 $ac_includes_default
26972 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26979 if ac_fn_c_try_compile "$LINENO"; then :
26981 cat >>confdefs.h <<_ACEOF
26982 #define intptr_t $ac_type
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988 test -z "$ac_type" && break
26994 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26995 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26997 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27000 for ac_type in 'unsigned int' 'unsigned long int' \
27001 'unsigned long long int'; do
27002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h. */
27004 $ac_includes_default
27008 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27015 if ac_fn_c_try_compile "$LINENO"; then :
27017 cat >>confdefs.h <<_ACEOF
27018 #define uintptr_t $ac_type
27023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27024 test -z "$ac_type" && break
27029 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27030 if test "x$ac_cv_type_ino_t" = x""yes; then :
27034 cat >>confdefs.h <<_ACEOF
27035 #define ino_t unsigned long
27040 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27041 if test "x$ac_cv_type_dev_t" = x""yes; then :
27045 cat >>confdefs.h <<_ACEOF
27046 #define dev_t unsigned long
27051 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27052 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27056 cat >>confdefs.h <<_ACEOF
27057 #define daddr_t long
27062 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_major_t" = x""yes; then :
27067 cat >>confdefs.h <<_ACEOF
27068 #define major_t int
27073 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_minor_t" = x""yes; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define minor_t int
27084 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27089 cat >>confdefs.h <<_ACEOF
27090 #define ssize_t int
27095 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27096 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27098 cat >>confdefs.h <<_ACEOF
27099 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27103 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27106 case " $LIBOBJS " in
27107 *" fileblocks.$ac_objext "* ) ;;
27108 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27115 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27116 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27118 cat >>confdefs.h <<_ACEOF
27119 #define HAVE_STRUCT_STAT_ST_RDEV 1
27123 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27129 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27130 if test "${ac_cv_struct_tm+set}" = set; then :
27131 $as_echo_n "(cached) " >&6
27133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27134 /* end confdefs.h. */
27135 #include <sys/types.h>
27142 int *p = &tm.tm_sec;
27148 if ac_fn_c_try_compile "$LINENO"; then :
27149 ac_cv_struct_tm=time.h
27151 ac_cv_struct_tm=sys/time.h
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27156 $as_echo "$ac_cv_struct_tm" >&6; }
27157 if test $ac_cv_struct_tm = sys/time.h; then
27159 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27164 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27165 if test "${ac_cv_c_const+set}" = set; then :
27166 $as_echo_n "(cached) " >&6
27168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27169 /* end confdefs.h. */
27174 /* FIXME: Include the comments suggested by Paul. */
27175 #ifndef __cplusplus
27176 /* Ultrix mips cc rejects this. */
27177 typedef int charset[2];
27179 /* SunOS 4.1.1 cc rejects this. */
27180 char const *const *pcpcc;
27182 /* NEC SVR4.0.2 mips cc rejects this. */
27183 struct point {int x, y;};
27184 static struct point const zero = {0,0};
27185 /* AIX XL C 1.02.0.0 rejects this.
27186 It does not let you subtract one const X* pointer from another in
27187 an arm of an if-expression whose if-part is not a constant
27189 const char *g = "string";
27190 pcpcc = &g + (g ? g-g : 0);
27191 /* HPUX 7.0 cc rejects these. */
27193 ppc = (char**) pcpcc;
27194 pcpcc = (char const *const *) ppc;
27195 { /* SCO 3.2v4 cc rejects this. */
27197 char const *s = 0 ? (char *) 0 : (char const *) 0;
27202 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27203 int x[] = {25, 17};
27204 const int *foo = &x[0];
27207 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27208 typedef const int *iptr;
27212 { /* AIX XL C 1.02.0.0 rejects this saying
27213 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27214 struct s { int j; const int *ap[3]; };
27215 struct s *b; b->j = 5;
27217 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27218 const int foo = 10;
27219 if (!foo) return 0;
27221 return !cs[0] && !zero.x;
27228 if ac_fn_c_try_compile "$LINENO"; then :
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27236 $as_echo "$ac_cv_c_const" >&6; }
27237 if test $ac_cv_c_const = no; then
27239 $as_echo "#define const /**/" >>confdefs.h
27244 # The cast to long int works around a bug in the HP C Compiler
27245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27247 # This bug is HP SR number 8606223364.
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27249 $as_echo_n "checking size of char... " >&6; }
27250 if test "${ac_cv_sizeof_char+set}" = set; then :
27251 $as_echo_n "(cached) " >&6
27253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27256 if test "$ac_cv_type_char" = yes; then
27257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27259 as_fn_error 77 "cannot compute sizeof (char)
27260 See \`config.log' for more details" "$LINENO" 5 ; }
27262 ac_cv_sizeof_char=0
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27268 $as_echo "$ac_cv_sizeof_char" >&6; }
27272 cat >>confdefs.h <<_ACEOF
27273 #define SIZEOF_CHAR $ac_cv_sizeof_char
27277 # The cast to long int works around a bug in the HP C Compiler
27278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27280 # This bug is HP SR number 8606223364.
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27282 $as_echo_n "checking size of short int... " >&6; }
27283 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27284 $as_echo_n "(cached) " >&6
27286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27289 if test "$ac_cv_type_short_int" = yes; then
27290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27292 as_fn_error 77 "cannot compute sizeof (short int)
27293 See \`config.log' for more details" "$LINENO" 5 ; }
27295 ac_cv_sizeof_short_int=0
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27301 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27305 cat >>confdefs.h <<_ACEOF
27306 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27310 # The cast to long int works around a bug in the HP C Compiler
27311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27313 # This bug is HP SR number 8606223364.
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27315 $as_echo_n "checking size of int... " >&6; }
27316 if test "${ac_cv_sizeof_int+set}" = set; then :
27317 $as_echo_n "(cached) " >&6
27319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27322 if test "$ac_cv_type_int" = yes; then
27323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27325 as_fn_error 77 "cannot compute sizeof (int)
27326 See \`config.log' for more details" "$LINENO" 5 ; }
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27334 $as_echo "$ac_cv_sizeof_int" >&6; }
27338 cat >>confdefs.h <<_ACEOF
27339 #define SIZEOF_INT $ac_cv_sizeof_int
27343 # The cast to long int works around a bug in the HP C Compiler
27344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27346 # This bug is HP SR number 8606223364.
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27348 $as_echo_n "checking size of long int... " >&6; }
27349 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27350 $as_echo_n "(cached) " >&6
27352 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27355 if test "$ac_cv_type_long_int" = yes; then
27356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 as_fn_error 77 "cannot compute sizeof (long int)
27359 See \`config.log' for more details" "$LINENO" 5 ; }
27361 ac_cv_sizeof_long_int=0
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27367 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27371 cat >>confdefs.h <<_ACEOF
27372 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27376 # The cast to long int works around a bug in the HP C Compiler
27377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27379 # This bug is HP SR number 8606223364.
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27381 $as_echo_n "checking size of long long int... " >&6; }
27382 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27383 $as_echo_n "(cached) " >&6
27385 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27388 if test "$ac_cv_type_long_long_int" = yes; then
27389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27391 as_fn_error 77 "cannot compute sizeof (long long int)
27392 See \`config.log' for more details" "$LINENO" 5 ; }
27394 ac_cv_sizeof_long_long_int=0
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27400 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27404 cat >>confdefs.h <<_ACEOF
27405 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27409 # The cast to long int works around a bug in the HP C Compiler
27410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27412 # This bug is HP SR number 8606223364.
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27414 $as_echo_n "checking size of int *... " >&6; }
27415 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27416 $as_echo_n "(cached) " >&6
27418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27421 if test "$ac_cv_type_int_p" = yes; then
27422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 as_fn_error 77 "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 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27979 cat >>confdefs.h <<_ACEOF
27980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27984 echo 'configure: cannot find needed function.'; exit 1
27990 for ac_func in getpagesize
27992 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27993 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27994 cat >>confdefs.h <<_ACEOF
27995 #define HAVE_GETPAGESIZE 1
27998 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28003 for ac_func in malloc_trim
28005 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28006 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28007 cat >>confdefs.h <<_ACEOF
28008 #define HAVE_MALLOC_TRIM 1
28011 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28017 for ac_func in fchdir
28019 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28020 if test "x$ac_cv_func_fchdir" = x""yes; then :
28021 cat >>confdefs.h <<_ACEOF
28022 #define HAVE_FCHDIR 1
28024 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28029 for ac_func in strtoll
28031 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28032 if test "x$ac_cv_func_strtoll" = x""yes; then :
28033 cat >>confdefs.h <<_ACEOF
28034 #define HAVE_STRTOLL 1
28036 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28041 for ac_func in posix_fadvise
28043 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28044 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28045 cat >>confdefs.h <<_ACEOF
28046 #define HAVE_POSIX_FADVISE 1
28052 for ac_func in fdatasync
28054 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28055 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28056 cat >>confdefs.h <<_ACEOF
28057 #define HAVE_FDATASYNC 1
28064 for ac_func in chflags
28066 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28067 if test "x$ac_cv_func_chflags" = x""yes; then :
28068 cat >>confdefs.h <<_ACEOF
28069 #define HAVE_CHFLAGS 1
28076 for ac_func in snprintf vsnprintf gethostid fseeko
28078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28081 cat >>confdefs.h <<_ACEOF
28082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28090 $as_echo_n "checking for va_copy... " >&6; }
28091 if test "${ba_cv_va_copy+set}" = set; then :
28092 $as_echo_n "(cached) " >&6
28095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28096 /* end confdefs.h. */
28098 #include <stdarg.h>
28099 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28100 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28106 call_use_va_copy(1,2,3)
28112 if ac_fn_c_try_link "$LINENO"; then :
28122 rm -f core conftest.err conftest.$ac_objext \
28123 conftest$ac_exeext conftest.$ac_ext
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28128 $as_echo "$ba_cv_va_copy" >&6; }
28129 test $ba_cv_va_copy = yes &&
28130 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28133 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28138 cat >>confdefs.h <<_ACEOF
28139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28146 # If resolver functions are not in libc check for -lnsl or -lresolv.
28147 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28148 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28150 $as_echo "using libc's resolver" >&6; }
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28153 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28154 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28155 $as_echo_n "(cached) " >&6
28157 ac_check_lib_save_LIBS=$LIBS
28159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28160 /* end confdefs.h. */
28162 /* Override any GCC internal prototype to avoid an error.
28163 Use char because int might match the return type of a GCC
28164 builtin and then its argument prototype would still apply. */
28168 char gethostbyname_r ();
28172 return gethostbyname_r ();
28177 if ac_fn_c_try_link "$LINENO"; then :
28178 ac_cv_lib_nsl_gethostbyname_r=yes
28180 ac_cv_lib_nsl_gethostbyname_r=no
28182 rm -f core conftest.err conftest.$ac_objext \
28183 conftest$ac_exeext conftest.$ac_ext
28184 LIBS=$ac_check_lib_save_LIBS
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28187 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28188 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28189 cat >>confdefs.h <<_ACEOF
28190 #define HAVE_LIBNSL 1
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28198 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28199 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28200 $as_echo_n "(cached) " >&6
28202 ac_check_lib_save_LIBS=$LIBS
28203 LIBS="-lresolv $LIBS"
28204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205 /* end confdefs.h. */
28207 /* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28213 char gethostbyname_r ();
28217 return gethostbyname_r ();
28222 if ac_fn_c_try_link "$LINENO"; then :
28223 ac_cv_lib_resolv_gethostbyname_r=yes
28225 ac_cv_lib_resolv_gethostbyname_r=no
28227 rm -f core conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
28229 LIBS=$ac_check_lib_save_LIBS
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28232 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28233 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28234 cat >>confdefs.h <<_ACEOF
28235 #define HAVE_LIBRESOLV 1
28238 LIBS="-lresolv $LIBS"
28245 for ac_func in inet_pton
28247 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28248 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28249 cat >>confdefs.h <<_ACEOF
28250 #define HAVE_INET_PTON 1
28252 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28257 for ac_func in inet_ntop
28259 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28260 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28261 cat >>confdefs.h <<_ACEOF
28262 #define HAVE_INET_NTOP 1
28264 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28269 for ac_func in gethostbyname2
28271 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28272 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28273 cat >>confdefs.h <<_ACEOF
28274 #define HAVE_GETHOSTBYNAME2 1
28276 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28283 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28284 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28285 $as_echo_n "(cached) " >&6
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28291 #include <sys/socket.h>
28297 struct sockaddr s; s.sa_len;
28303 if ac_fn_c_try_compile "$LINENO"; then :
28305 ac_cv_struct_sockaddr_sa_len=yes
28308 ac_cv_struct_sockaddr_sa_len=no
28312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28317 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28319 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28321 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28325 for ac_func in strftime
28327 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28328 if test "x$ac_cv_func_strftime" = x""yes; then :
28329 cat >>confdefs.h <<_ACEOF
28330 #define HAVE_STRFTIME 1
28334 # strftime is in -lintl on SCO UNIX.
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28336 $as_echo_n "checking for strftime in -lintl... " >&6; }
28337 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28338 $as_echo_n "(cached) " >&6
28340 ac_check_lib_save_LIBS=$LIBS
28341 LIBS="-lintl $LIBS"
28342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343 /* end confdefs.h. */
28345 /* Override any GCC internal prototype to avoid an error.
28346 Use char because int might match the return type of a GCC
28347 builtin and then its argument prototype would still apply. */
28355 return strftime ();
28360 if ac_fn_c_try_link "$LINENO"; then :
28361 ac_cv_lib_intl_strftime=yes
28363 ac_cv_lib_intl_strftime=no
28365 rm -f core conftest.err conftest.$ac_objext \
28366 conftest$ac_exeext conftest.$ac_ext
28367 LIBS=$ac_check_lib_save_LIBS
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28370 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28371 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28372 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28374 LIBS="-lintl $LIBS"
28380 for ac_func in vprintf
28382 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28383 if test "x$ac_cv_func_vprintf" = x""yes; then :
28384 cat >>confdefs.h <<_ACEOF
28385 #define HAVE_VPRINTF 1
28388 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28389 if test "x$ac_cv_func__doprnt" = x""yes; then :
28391 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28399 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28400 # for constant arguments. Useless!
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28402 $as_echo_n "checking for working alloca.h... " >&6; }
28403 if test "${ac_cv_working_alloca_h+set}" = set; then :
28404 $as_echo_n "(cached) " >&6
28406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28407 /* end confdefs.h. */
28408 #include <alloca.h>
28412 char *p = (char *) alloca (2 * sizeof (int));
28418 if ac_fn_c_try_link "$LINENO"; then :
28419 ac_cv_working_alloca_h=yes
28421 ac_cv_working_alloca_h=no
28423 rm -f core conftest.err conftest.$ac_objext \
28424 conftest$ac_exeext conftest.$ac_ext
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28427 $as_echo "$ac_cv_working_alloca_h" >&6; }
28428 if test $ac_cv_working_alloca_h = yes; then
28430 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28435 $as_echo_n "checking for alloca... " >&6; }
28436 if test "${ac_cv_func_alloca_works+set}" = set; then :
28437 $as_echo_n "(cached) " >&6
28439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h. */
28442 # define alloca __builtin_alloca
28445 # include <malloc.h>
28446 # define alloca _alloca
28448 # ifdef HAVE_ALLOCA_H
28449 # include <alloca.h>
28454 # ifndef alloca /* predefined by HP cc +Olibcalls */
28465 char *p = (char *) alloca (1);
28471 if ac_fn_c_try_link "$LINENO"; then :
28472 ac_cv_func_alloca_works=yes
28474 ac_cv_func_alloca_works=no
28476 rm -f core conftest.err conftest.$ac_objext \
28477 conftest$ac_exeext conftest.$ac_ext
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28480 $as_echo "$ac_cv_func_alloca_works" >&6; }
28482 if test $ac_cv_func_alloca_works = yes; then
28484 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28487 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28488 # that cause trouble. Some versions do not even contain alloca or
28489 # contain a buggy version. If you still want to use their alloca,
28490 # use ar to extract alloca.o from them instead of compiling alloca.c.
28492 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28494 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28498 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28499 if test "${ac_cv_os_cray+set}" = set; then :
28500 $as_echo_n "(cached) " >&6
28502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28503 /* end confdefs.h. */
28504 #if defined CRAY && ! defined CRAY2
28511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28512 $EGREP "webecray" >/dev/null 2>&1; then :
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28521 $as_echo "$ac_cv_os_cray" >&6; }
28522 if test $ac_cv_os_cray = yes; then
28523 for ac_func in _getb67 GETB67 getb67; do
28524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28528 cat >>confdefs.h <<_ACEOF
28529 #define CRAY_STACKSEG_END $ac_func
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28539 $as_echo_n "checking stack direction for C alloca... " >&6; }
28540 if test "${ac_cv_c_stack_direction+set}" = set; then :
28541 $as_echo_n "(cached) " >&6
28543 if test "$cross_compiling" = yes; then :
28544 ac_cv_c_stack_direction=0
28546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28547 /* end confdefs.h. */
28548 $ac_includes_default
28550 find_stack_direction ()
28552 static char *addr = 0;
28557 return find_stack_direction ();
28560 return (&dummy > addr) ? 1 : -1;
28566 return find_stack_direction () < 0;
28569 if ac_fn_c_try_run "$LINENO"; then :
28570 ac_cv_c_stack_direction=1
28572 ac_cv_c_stack_direction=-1
28574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28575 conftest.$ac_objext conftest.beam conftest.$ac_ext
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28580 $as_echo "$ac_cv_c_stack_direction" >&6; }
28581 cat >>confdefs.h <<_ACEOF
28582 #define STACK_DIRECTION $ac_cv_c_stack_direction
28588 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28589 # -lseq on Dynix/PTX, -lgen on Unixware.
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28591 $as_echo_n "checking for library containing getmntent... " >&6; }
28592 if test "${ac_cv_search_getmntent+set}" = set; then :
28593 $as_echo_n "(cached) " >&6
28595 ac_func_search_save_LIBS=$LIBS
28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28597 /* end confdefs.h. */
28599 /* Override any GCC internal prototype to avoid an error.
28600 Use char because int might match the return type of a GCC
28601 builtin and then its argument prototype would still apply. */
28609 return getmntent ();
28614 for ac_lib in '' sun seq gen; do
28615 if test -z "$ac_lib"; then
28616 ac_res="none required"
28619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28621 if ac_fn_c_try_link "$LINENO"; then :
28622 ac_cv_search_getmntent=$ac_res
28624 rm -f core conftest.err conftest.$ac_objext \
28626 if test "${ac_cv_search_getmntent+set}" = set; then :
28630 if test "${ac_cv_search_getmntent+set}" = set; then :
28633 ac_cv_search_getmntent=no
28635 rm conftest.$ac_ext
28636 LIBS=$ac_func_search_save_LIBS
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28639 $as_echo "$ac_cv_search_getmntent" >&6; }
28640 ac_res=$ac_cv_search_getmntent
28641 if test "$ac_res" != no; then :
28642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28643 ac_cv_func_getmntent=yes
28645 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28648 ac_cv_func_getmntent=no
28652 for ac_func in getmntinfo
28654 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28655 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28656 cat >>confdefs.h <<_ACEOF
28657 #define HAVE_GETMNTINFO 1
28659 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28665 $as_echo_n "checking whether closedir returns void... " >&6; }
28666 if test "${ac_cv_func_closedir_void+set}" = set; then :
28667 $as_echo_n "(cached) " >&6
28669 if test "$cross_compiling" = yes; then :
28670 ac_cv_func_closedir_void=yes
28672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28673 /* end confdefs.h. */
28674 $ac_includes_default
28675 #include <$ac_header_dirent>
28676 #ifndef __cplusplus
28683 return closedir (opendir (".")) != 0;
28688 if ac_fn_c_try_run "$LINENO"; then :
28689 ac_cv_func_closedir_void=no
28691 ac_cv_func_closedir_void=yes
28693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28694 conftest.$ac_objext conftest.beam conftest.$ac_ext
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28699 $as_echo "$ac_cv_func_closedir_void" >&6; }
28700 if test $ac_cv_func_closedir_void = yes; then
28702 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28707 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28708 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28709 $as_echo_n "(cached) " >&6
28711 if test "$cross_compiling" = yes; then :
28712 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28715 /* end confdefs.h. */
28716 $ac_includes_default
28720 /* If this system has a BSD-style setpgrp which takes arguments,
28721 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28722 exit successfully. */
28723 return setpgrp (1,1) != -1;
28728 if ac_fn_c_try_run "$LINENO"; then :
28729 ac_cv_func_setpgrp_void=no
28731 ac_cv_func_setpgrp_void=yes
28733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28734 conftest.$ac_objext conftest.beam conftest.$ac_ext
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28739 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28740 if test $ac_cv_func_setpgrp_void = yes; then
28742 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28745 # AC_FUNC_FNMATCH dnl use local version
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28748 $as_echo_n "checking for gettext in -lintl... " >&6; }
28749 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28750 $as_echo_n "(cached) " >&6
28752 ac_check_lib_save_LIBS=$LIBS
28753 LIBS="-lintl $LIBS"
28754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28755 /* end confdefs.h. */
28757 /* Override any GCC internal prototype to avoid an error.
28758 Use char because int might match the return type of a GCC
28759 builtin and then its argument prototype would still apply. */
28772 if ac_fn_c_try_link "$LINENO"; then :
28773 ac_cv_lib_intl_gettext=yes
28775 ac_cv_lib_intl_gettext=no
28777 rm -f core conftest.err conftest.$ac_objext \
28778 conftest$ac_exeext conftest.$ac_ext
28779 LIBS=$ac_check_lib_save_LIBS
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28782 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28783 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28784 LIBS="$LIBS -lintl"
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28789 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28790 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28791 $as_echo_n "(cached) " >&6
28793 ac_check_lib_save_LIBS=$LIBS
28795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28796 /* end confdefs.h. */
28798 /* Override any GCC internal prototype to avoid an error.
28799 Use char because int might match the return type of a GCC
28800 builtin and then its argument prototype would still apply. */
28808 return getpwnam ();
28813 if ac_fn_c_try_link "$LINENO"; then :
28814 ac_cv_lib_sun_getpwnam=yes
28816 ac_cv_lib_sun_getpwnam=no
28818 rm -f core conftest.err conftest.$ac_objext \
28819 conftest$ac_exeext conftest.$ac_ext
28820 LIBS=$ac_check_lib_save_LIBS
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28823 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28824 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28825 cat >>confdefs.h <<_ACEOF
28826 #define HAVE_LIBSUN 1
28834 for ac_header in zlib.h
28836 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28837 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28838 cat >>confdefs.h <<_ACEOF
28839 #define HAVE_ZLIB_H 1
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28847 $as_echo_n "checking for deflate in -lz... " >&6; }
28848 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28849 $as_echo_n "(cached) " >&6
28851 ac_check_lib_save_LIBS=$LIBS
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28856 /* Override any GCC internal prototype to avoid an error.
28857 Use char because int might match the return type of a GCC
28858 builtin and then its argument prototype would still apply. */
28871 if ac_fn_c_try_link "$LINENO"; then :
28872 ac_cv_lib_z_deflate=yes
28874 ac_cv_lib_z_deflate=no
28876 rm -f core conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28881 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28882 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28887 if test x$ZLIBS = x-lz; then
28888 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28894 for ac_header in lzo/lzoconf.h
28896 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28897 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28898 cat >>confdefs.h <<_ACEOF
28899 #define HAVE_LZO_LZOCONF_H 1
28906 for ac_header in lzo/lzo1x.h
28908 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28909 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28910 cat >>confdefs.h <<_ACEOF
28911 #define HAVE_LZO_LZO1X_H 1
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28919 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28920 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28921 $as_echo_n "(cached) " >&6
28923 ac_check_lib_save_LIBS=$LIBS
28924 LIBS="-llzo2 $LIBS"
28925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926 /* end confdefs.h. */
28928 /* Override any GCC internal prototype to avoid an error.
28929 Use char because int might match the return type of a GCC
28930 builtin and then its argument prototype would still apply. */
28934 char lzo1x_1_compress ();
28938 return lzo1x_1_compress ();
28943 if ac_fn_c_try_link "$LINENO"; then :
28944 ac_cv_lib_lzo2_lzo1x_1_compress=yes
28946 ac_cv_lib_lzo2_lzo1x_1_compress=no
28948 rm -f core conftest.err conftest.$ac_objext \
28949 conftest$ac_exeext conftest.$ac_ext
28950 LIBS=$ac_check_lib_save_LIBS
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28953 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28954 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
28959 if test x$LZOLIBS = x-llzo2; then
28960 $as_echo "#define HAVE_LZO 1" >>confdefs.h
28967 # Check whether --enable-acl was given.
28968 if test "${enable_acl+set}" = set; then :
28969 enableval=$enable_acl;
28970 if test x$enableval = xyes; then
28972 elif test x$enableval = xno; then
28981 have_extended_acl=no
28982 if test x$support_acl = xyes -o x$support_acl = xauto; then
28983 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28984 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28986 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28992 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28993 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
29001 if test $have_acl = no; then
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29003 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29004 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29005 $as_echo_n "(cached) " >&6
29007 ac_check_lib_save_LIBS=$LIBS
29009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29010 /* end confdefs.h. */
29012 /* Override any GCC internal prototype to avoid an error.
29013 Use char because int might match the return type of a GCC
29014 builtin and then its argument prototype would still apply. */
29018 char acl_get_file ();
29022 return acl_get_file ();
29027 if ac_fn_c_try_link "$LINENO"; then :
29028 ac_cv_lib_acl_acl_get_file=yes
29030 ac_cv_lib_acl_acl_get_file=no
29032 rm -f core conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
29034 LIBS=$ac_check_lib_save_LIBS
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29037 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29038 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29041 FDLIBS="-lacl $FDLIBS"
29048 if test $have_acl = no -a \
29049 x${HAVE_OSF1_OS_TRUE} = x; then
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29051 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29052 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29053 $as_echo_n "(cached) " >&6
29055 ac_check_lib_save_LIBS=$LIBS
29056 LIBS="-lpacl $LIBS"
29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h. */
29060 /* Override any GCC internal prototype to avoid an error.
29061 Use char because int might match the return type of a GCC
29062 builtin and then its argument prototype would still apply. */
29066 char acl_get_file ();
29070 return acl_get_file ();
29075 if ac_fn_c_try_link "$LINENO"; then :
29076 ac_cv_lib_pacl_acl_get_file=yes
29078 ac_cv_lib_pacl_acl_get_file=no
29080 rm -f core conftest.err conftest.$ac_objext \
29081 conftest$ac_exeext conftest.$ac_ext
29082 LIBS=$ac_check_lib_save_LIBS
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29085 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29086 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29089 FDLIBS="-lpacl $FDLIBS"
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29096 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29097 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29098 if test $? = 0; then
29100 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29103 $as_echo "yes" >&6; }
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106 $as_echo "no" >&6; }
29110 if test $have_acl = yes -a \
29111 x${HAVE_DARWIN_OS_TRUE} = x; then
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29113 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29114 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29115 if test $? = 0; then
29117 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29123 $as_echo "no" >&6; }
29127 if test $have_acl = yes -a \
29128 x${HAVE_FREEBSD_OS_TRUE} = x; then
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29130 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29131 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29132 if test $? = 0; then
29134 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29137 $as_echo "yes" >&6; }
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29140 $as_echo "no" >&6; }
29144 if test $have_acl = no -a \
29145 x${HAVE_SUN_OS_TRUE} = x; then
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29147 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29148 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29149 $as_echo_n "(cached) " >&6
29151 ac_check_lib_save_LIBS=$LIBS
29153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h. */
29156 /* Override any GCC internal prototype to avoid an error.
29157 Use char because int might match the return type of a GCC
29158 builtin and then its argument prototype would still apply. */
29166 return acltotext ();
29171 if ac_fn_c_try_link "$LINENO"; then :
29172 ac_cv_lib_sec_acltotext=yes
29174 ac_cv_lib_sec_acltotext=no
29176 rm -f core conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
29178 LIBS=$ac_check_lib_save_LIBS
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29181 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29182 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29185 FDLIBS="-lsec $FDLIBS"
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29188 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29189 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29190 $as_echo_n "(cached) " >&6
29192 ac_check_lib_save_LIBS=$LIBS
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29197 /* Override any GCC internal prototype to avoid an error.
29198 Use char because int might match the return type of a GCC
29199 builtin and then its argument prototype would still apply. */
29203 char acl_totext ();
29207 return acl_totext ();
29212 if ac_fn_c_try_link "$LINENO"; then :
29213 ac_cv_lib_sec_acl_totext=yes
29215 ac_cv_lib_sec_acl_totext=no
29217 rm -f core conftest.err conftest.$ac_objext \
29218 conftest$ac_exeext conftest.$ac_ext
29219 LIBS=$ac_check_lib_save_LIBS
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29222 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29223 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29225 have_extended_acl=yes
29236 if test $have_acl = no -a \
29237 x${HAVE_AIX_OS_TRUE} = x; then
29238 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29239 if test "x$ac_cv_func_acl_get" = x""yes; then :
29243 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29244 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29246 have_extended_acl=yes
29257 if test x$support_acl = xyes -a $have_acl != yes; then
29258 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29259 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29261 if test $have_acl = yes; then
29263 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29267 if test $have_extended_acl = yes; then
29269 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29276 # Check whether --enable-xattr was given.
29277 if test "${enable_xattr+set}" = set; then :
29278 enableval=$enable_xattr;
29279 if test x$enableval = xyes; then
29281 elif test x$enableval = xno; then
29290 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29291 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29292 x${HAVE_NETBSD_OS_TRUE} = x -o \
29293 x${HAVE_OPENBSD_OS_TRUE} = x; then
29294 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29295 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29297 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29302 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29303 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29305 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29310 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29313 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29314 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29315 cat >>confdefs.h <<_ACEOF
29316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29321 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29324 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29327 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29335 if test $have_xattr = no; then
29336 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29340 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29341 cat >>confdefs.h <<_ACEOF
29342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29347 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29350 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29353 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29362 if test $have_xattr = yes; then
29363 have_extattr_string_in_libc=no
29364 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29369 cat >>confdefs.h <<_ACEOF
29370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29373 have_extattr_string_in_libc=yes
29375 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29378 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29386 if test $have_extattr_string_in_libc = no; then
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29388 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29389 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29390 $as_echo_n "(cached) " >&6
29392 ac_check_lib_save_LIBS=$LIBS
29393 LIBS="-lutil $LIBS"
29394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29395 /* end confdefs.h. */
29397 /* Override any GCC internal prototype to avoid an error.
29398 Use char because int might match the return type of a GCC
29399 builtin and then its argument prototype would still apply. */
29403 char extattr_namespace_to_string extattr_string_to_namespace ();
29407 return extattr_namespace_to_string extattr_string_to_namespace ();
29412 if ac_fn_c_try_link "$LINENO"; then :
29413 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29415 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29417 rm -f core conftest.err conftest.$ac_objext \
29418 conftest$ac_exeext conftest.$ac_ext
29419 LIBS=$ac_check_lib_save_LIBS
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29422 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29423 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29426 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29429 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29431 FDLIBS="-lutil $FDLIBS"
29440 if test $have_xattr = no -a \
29441 x${HAVE_AIX_OS_TRUE} = x; then
29442 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29443 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29445 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29450 for ac_func in llistea lgetea lsetea
29452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29455 cat >>confdefs.h <<_ACEOF
29456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29461 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29464 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29467 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29475 if test $have_xattr = no; then
29476 for ac_func in listea getea setea
29478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29481 cat >>confdefs.h <<_ACEOF
29482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29487 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29490 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29493 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29503 if test $have_xattr = no -a \
29504 x${HAVE_OSF1_OS_TRUE} = x; then
29505 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29506 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29508 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29513 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29518 cat >>confdefs.h <<_ACEOF
29519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29524 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29527 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29530 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29533 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29536 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29545 if test $have_xattr = no -a \
29546 x${HAVE_SUN_OS_TRUE} = x; then
29547 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29548 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29550 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29555 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29556 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29558 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29563 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29564 if test "x$ac_cv_header_attr_h" = x""yes; then :
29566 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29572 for ac_func in openat fstatat unlinkat fchownat futimesat
29574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29577 cat >>confdefs.h <<_ACEOF
29578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29583 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29586 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29589 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29592 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29595 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29603 if test $have_xattr = yes; then
29604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29605 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29606 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29607 $as_echo_n "(cached) " >&6
29609 ac_check_lib_save_LIBS=$LIBS
29610 LIBS="-lnvpair $LIBS"
29611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612 /* end confdefs.h. */
29614 /* Override any GCC internal prototype to avoid an error.
29615 Use char because int might match the return type of a GCC
29616 builtin and then its argument prototype would still apply. */
29620 char nvlist_next_nvpair ();
29624 return nvlist_next_nvpair ();
29629 if ac_fn_c_try_link "$LINENO"; then :
29630 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29632 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29634 rm -f core conftest.err conftest.$ac_objext \
29635 conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29639 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29640 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29643 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29645 FDLIBS="-lnvpair $FDLIBS"
29653 if test $have_xattr = no; then
29654 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29655 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29657 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29662 for ac_func in llistxattr lgetxattr lsetxattr
29664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29667 cat >>confdefs.h <<_ACEOF
29668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29673 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29676 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29679 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29687 if test $have_xattr = no; then
29688 for ac_func in listxattr getxattr setxattr
29690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29692 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29693 cat >>confdefs.h <<_ACEOF
29694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29699 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29702 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29705 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29715 if test x$support_xattr = xyes -a $have_xattr != yes; then
29716 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29717 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29719 if test $have_xattr = yes; then
29721 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29729 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29730 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29731 $as_echo_n "(cached) " >&6
29733 ac_check_lib_save_LIBS=$LIBS
29734 LIBS="-lpthread $LIBS"
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h. */
29738 /* Override any GCC internal prototype to avoid an error.
29739 Use char because int might match the return type of a GCC
29740 builtin and then its argument prototype would still apply. */
29744 char pthread_create ();
29748 return pthread_create ();
29753 if ac_fn_c_try_link "$LINENO"; then :
29754 ac_cv_lib_pthread_pthread_create=yes
29756 ac_cv_lib_pthread_pthread_create=no
29758 rm -f core conftest.err conftest.$ac_objext \
29759 conftest$ac_exeext conftest.$ac_ext
29760 LIBS=$ac_check_lib_save_LIBS
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29763 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29764 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29765 PTHREAD_LIB="-lpthread"
29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29769 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29770 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29771 $as_echo_n "(cached) " >&6
29773 ac_check_lib_save_LIBS=$LIBS
29774 LIBS="-lpthreads $LIBS"
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29778 /* Override any GCC internal prototype to avoid an error.
29779 Use char because int might match the return type of a GCC
29780 builtin and then its argument prototype would still apply. */
29784 char pthread_create ();
29788 return pthread_create ();
29793 if ac_fn_c_try_link "$LINENO"; then :
29794 ac_cv_lib_pthreads_pthread_create=yes
29796 ac_cv_lib_pthreads_pthread_create=no
29798 rm -f core conftest.err conftest.$ac_objext \
29799 conftest$ac_exeext conftest.$ac_ext
29800 LIBS=$ac_check_lib_save_LIBS
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29803 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29804 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29805 PTHREAD_LIB="-lpthreads"
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29809 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29810 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29811 $as_echo_n "(cached) " >&6
29813 ac_check_lib_save_LIBS=$LIBS
29815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29816 /* end confdefs.h. */
29818 /* Override any GCC internal prototype to avoid an error.
29819 Use char because int might match the return type of a GCC
29820 builtin and then its argument prototype would still apply. */
29824 char pthread_create ();
29828 return pthread_create ();
29833 if ac_fn_c_try_link "$LINENO"; then :
29834 ac_cv_lib_c_r_pthread_create=yes
29836 ac_cv_lib_c_r_pthread_create=no
29838 rm -f core conftest.err conftest.$ac_objext \
29839 conftest$ac_exeext conftest.$ac_ext
29840 LIBS=$ac_check_lib_save_LIBS
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29843 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29844 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29845 PTHREAD_LIB="-lc_r"
29848 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29849 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29866 for ac_header in sys/prctl.h sys/capability.h
29868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29871 cat >>confdefs.h <<_ACEOF
29872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29879 for ac_func in prctl setreuid
29881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29883 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29884 cat >>confdefs.h <<_ACEOF
29885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29892 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29893 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29894 $as_echo_n "(cached) " >&6
29896 ac_check_lib_save_LIBS=$LIBS
29898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29899 /* end confdefs.h. */
29901 /* Override any GCC internal prototype to avoid an error.
29902 Use char because int might match the return type of a GCC
29903 builtin and then its argument prototype would still apply. */
29907 char cap_set_proc ();
29911 return cap_set_proc ();
29916 if ac_fn_c_try_link "$LINENO"; then :
29917 ac_cv_lib_cap_cap_set_proc=yes
29919 ac_cv_lib_cap_cap_set_proc=no
29921 rm -f core conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
29923 LIBS=$ac_check_lib_save_LIBS
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29926 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29927 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29933 if test x$CAP_LIBS = x-lcap; then
29935 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29941 $as_echo "#define FDLIBS 1" >>confdefs.h
29944 CFLAGS=${CFLAGS--O}
29946 if test x$have_gcc = xyes ; then
29947 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29948 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29950 LDFLAGS=${LDFLAGS--O}
29951 CPPFLAGS="$CPPFLAGS"
29977 PFILES="platforms/Makefile"
29981 COMPRESS_MANPAGES=yes
29983 hostname=`uname -n | cut -d '.' -f 1`
29984 if test x${hostname} = x ; then
29985 hostname="localhost"
29987 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29988 if test ! $? = 0; then
29989 hostname="localhost"
29992 case "$DISTNAME" in
29995 PSCMD="ps -e -o pid,comm"
29996 PFILES="${PFILES} \
29997 platforms/aix/Makefile"
29998 TAPEDRIVE="/dev/rmt0.1"
30002 PTHREAD_LIB="-lpthread -lexc"
30003 if test "${CC}" = "gcc" ; then
30010 TAPEDRIVE="/dev/nrmt0"
30013 DISTVER=`uname -a |awk '{print $3}'`
30014 TAPEDRIVE="/dev/nrmt0"
30015 PTHREAD_LIB="-pthread"
30016 CFLAGS="${CFLAGS} -pthread"
30017 PSCMD="ps -ax -o pid,command"
30020 PFILES="${PFILES} \
30021 platforms/bsdi/Makefile \
30022 platforms/bsdi/bacula-fd \
30023 platforms/bsdi/bacula-sd \
30024 platforms/bsdi/bacula-dir"
30025 largefile_support="yes"
30028 DISTVER=`uname -a |awk '{print $3}'`
30029 TAPEDRIVE="/dev/nrst0"
30031 WCFLAGS="-mwindows"
30032 WLDFLAGS="-mwindows"
30036 TAPEDRIVE="/dev/nst0"
30037 PSCMD="ps -e -o pid,command"
30039 PFILES="${PFILES} \
30040 platforms/darwin/Makefile"
30044 TAPEDRIVE="/dev/nst0"
30045 PSCMD="ps -e -o pid,command"
30047 PFILES="${PFILES} \
30048 platforms/osx/Makefile"
30051 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30054 DISTVER=`cat /etc/debian_version`
30055 if test -f /etc/lsb-release ; then
30057 if test "x$DISTRIB_ID" != "x" ; then
30058 DISTNAME=$DISTRIB_ID
30060 if test "x$DISTRIB_RELEASE" != "x" ; then
30061 DISTVER=$DISTRIB_RELEASE
30064 if test "$DISTNAME" = "Ubuntu" ; then
30067 TAPEDRIVE="/dev/nst0"
30068 PSCMD="ps -e -o pid,command"
30069 if test "$DISTNAME" = "ubuntu" ; then
30070 PFILES="${PFILES} \
30071 platforms/ubuntu/Makefile \
30072 platforms/ubuntu/bacula-fd \
30073 platforms/ubuntu/bacula-sd \
30074 platforms/ubuntu/bacula-dir"
30076 PFILES="${PFILES} \
30077 platforms/debian/Makefile \
30078 platforms/debian/bacula-fd \
30079 platforms/debian/bacula-sd \
30080 platforms/debian/bacula-dir"
30084 DISTVER=`uname -a |awk '{print $3}'`
30085 VER=`echo $DISTVER | cut -c 1`
30086 if test x$VER = x4 ; then
30087 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30088 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30092 TAPEDRIVE="/dev/nrsa0"
30093 PSCMD="ps -ax -o pid,command"
30094 PFILES="${PFILES} \
30095 platforms/freebsd/Makefile \
30096 platforms/freebsd/bacula-fd \
30097 platforms/freebsd/bacula-sd \
30098 platforms/freebsd/bacula-dir"
30099 largefile_support="yes"
30102 PSCMD="UNIX95=1; ps -e -o pid,comm"
30103 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30105 TAPEDRIVE="/dev/rmt/0hnb"
30106 PTHREAD_LIB="-lpthread"
30107 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30112 TAPEDRIVE="/dev/rmt/0cbn"
30113 PSCMD="ps -e -o pid,comm"
30114 PFILES="${PFILES} \
30115 platforms/irix/Makefile \
30116 platforms/irix/bacula-fd \
30117 platforms/irix/bacula-sd \
30118 platforms/irix/bacula-dir"
30121 DISTVER=`uname -a |awk '{print $3}'`
30124 TAPEDRIVE="/dev/nrst0"
30125 PSCMD="ps -ax -o pid,command"
30126 PTHREAD_LIB="-pthread"
30127 CFLAGS="${CFLAGS} -pthread"
30130 DISTVER=`uname -a |awk '{print $3}'`
30133 TAPEDRIVE="/dev/nrst0"
30134 PSCMD="ps -ax -o pid,command"
30135 PTHREAD_LIB="-pthread"
30136 CFLAGS="${CFLAGS} -pthread"
30137 PFILES="${PFILES} \
30138 platforms/openbsd/Makefile \
30139 platforms/openbsd/bacula-fd \
30140 platforms/openbsd/bacula-sd \
30141 platforms/openbsd/bacula-dir"
30144 if test -f /etc/whitebox-release ; then
30145 f=/etc/whitebox-release
30147 f=/etc/redhat-release
30149 if test `cat $f | grep release |\
30150 cut -f 3 -d ' '`x = "Enterprise"x ; then
30151 DISTVER="Enterprise "`cat $f | grep release |\
30154 DISTVER=`cat /etc/redhat-release | grep release |\
30157 TAPEDRIVE="/dev/nst0"
30158 PSCMD="ps -e -o pid,command"
30159 PFILES="${PFILES} \
30160 platforms/redhat/Makefile \
30161 platforms/redhat/bacula-fd \
30162 platforms/redhat/bacula-sd \
30163 platforms/redhat/bacula-dir
30167 DISTVER=`cat /etc/mandrake-release | grep release |\
30169 TAPEDRIVE="/dev/nst0"
30170 PSCMD="ps -e -o pid,command"
30171 PFILES="${PFILES} \
30172 platforms/mandrake/Makefile \
30173 platforms/mandrake/bacula-fd \
30174 platforms/mandrake/bacula-sd \
30175 platforms/mandrake/bacula-dir \
30179 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30180 TAPEDRIVE="/dev/nst0"
30181 PSCMD="ps -e -o pid,command"
30182 PFILES="${PFILES} \
30183 platforms/gentoo/Makefile \
30184 platforms/gentoo/bacula-init \
30185 platforms/gentoo/bacula-fd \
30186 platforms/gentoo/bacula-sd \
30187 platforms/gentoo/bacula-dir"
30190 DISTVER=`cat /etc/slackware-version`
30191 TAPEDRIVE="/dev/nst0"
30192 PSCMD="ps -e -o pid,command"
30193 PFILES="${PFILES} \
30194 platforms/slackware/Makefile \
30195 platforms/slackware/rc.bacula-fd \
30196 platforms/slackware/rc.bacula-sd \
30197 platforms/slackware/rc.bacula-dir\
30198 platforms/slackware/functions.bacula"
30202 TAPEDRIVE="/dev/rmt/0cbn"
30203 PSCMD="ps -e -o pid,comm"
30204 PFILES="${PFILES} \
30205 platforms/solaris/Makefile \
30206 platforms/solaris/bacula-fd \
30207 platforms/solaris/bacula-sd \
30208 platforms/solaris/bacula-dir"
30212 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30214 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30218 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30224 LIBS="$LIBS -lresolv -lrt"
30227 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30229 TAPEDRIVE="/dev/nst0"
30230 PSCMD="ps -e -o pid,command"
30231 PFILES="${PFILES} \
30232 platforms/suse/Makefile \
30233 platforms/suse/bacula-fd \
30234 platforms/suse/bacula-sd \
30235 platforms/suse/bacula-dir \
30236 platforms/suse/bacula"
30241 TAPEDRIVE="/dev/nst0"
30242 PSCMD="ps -e -o pid,command"
30243 PFILES="${PFILES} \
30244 platforms/suse/Makefile \
30245 platforms/suse/bacula-fd \
30246 platforms/suse/bacula-sd \
30247 platforms/suse/bacula-dir"
30251 TAPEDRIVE="/dev/nst0"
30254 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30260 LIBS="$PTHREAD_LIB $LIBS"
30262 cat >>confdefs.h <<_ACEOF
30266 cat >>confdefs.h <<_ACEOF
30278 MCOMMON=./autoconf/Make.common
30281 if test "x${subsysdir}" = "x${sbindir}" ; then
30284 echo "You have set both --sbindir and --with-subsys-dir"
30285 echo " equal to: ${subsysdir} "
30286 echo "This is not permitted. Please reconfigure."
30288 echo "Aborting configuration ..."
30294 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/bgnome-console.console_apps 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 examples/nagios/check_bacula/Makefile $PFILES"
30296 ac_config_commands="$ac_config_commands default"
30298 cat >confcache <<\_ACEOF
30299 # This file is a shell script that caches the results of configure
30300 # tests run on this system so they can be shared between configure
30301 # scripts and configure runs, see configure's option --config-cache.
30302 # It is not useful on other systems. If it contains results you don't
30303 # want to keep, you may remove or edit it.
30305 # config.status only pays attention to the cache file if you give it
30306 # the --recheck option to rerun configure.
30308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30310 # following values.
30314 # The following way of writing the cache mishandles newlines in values,
30315 # but we know of no workaround that is simple, portable, and efficient.
30316 # So, we kill variables containing newlines.
30317 # Ultrix sh set writes to stderr and can't be redirected directly,
30318 # and sets the high bit in the cache file unless we assign to the vars.
30320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30321 eval ac_val=\$$ac_var
30325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30329 _ | IFS | as_nl) ;; #(
30330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30331 *) { eval $ac_var=; unset $ac_var;} ;;
30337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30338 *${as_nl}ac_space=\ *)
30339 # `set' does not quote correctly, so add quotes: double-quote
30340 # substitution turns \\\\ into \\, and sed turns \\ into \.
30343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30346 # `set' quotes correctly as required by POSIX, so do not add quotes.
30347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30361 if test -w "$cache_file"; then
30362 test "x$cache_file" != "x/dev/null" &&
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30364 $as_echo "$as_me: updating cache $cache_file" >&6;}
30365 cat confcache >$cache_file
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30374 # Let make expand exec_prefix.
30375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30377 DEFS=-DHAVE_CONFIG_H
30382 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30383 # 1. Remove the extension, and $U if already installed.
30384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30385 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30387 # will be set to the directory where LIBOBJS objects are built.
30388 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30389 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30391 LIBOBJS=$ac_libobjs
30393 LTLIBOBJS=$ac_ltlibobjs
30398 : ${CONFIG_STATUS=./config.status}
30400 ac_clean_files_save=$ac_clean_files
30401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30403 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30407 # Generated by $as_me.
30408 # Run this file to recreate the current configuration.
30409 # Compiler output produced by configure, useful for debugging
30410 # configure, is in config.log if it exists.
30413 ac_cs_recheck=false
30416 SHELL=\${CONFIG_SHELL-$SHELL}
30419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30420 ## -------------------- ##
30421 ## M4sh Initialization. ##
30422 ## -------------------- ##
30424 # Be more Bourne compatible
30425 DUALCASE=1; export DUALCASE # for MKS sh
30426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30430 # is contrary to our usage. Disable this feature.
30431 alias -g '${1+"$@"}'='"$@"'
30432 setopt NO_GLOB_SUBST
30434 case `(set -o) 2>/dev/null` in #(
30446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30450 # Prefer a ksh shell builtin over an external printf program on Solaris,
30451 # but without wasting forks for bash or zsh.
30452 if test -z "$BASH_VERSION$ZSH_VERSION" \
30453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30454 as_echo='print -r --'
30455 as_echo_n='print -rn --'
30456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30457 as_echo='printf %s\n'
30458 as_echo_n='printf %s'
30460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30462 as_echo_n='/usr/ucb/echo -n'
30464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30465 as_echo_n_body='eval
30469 expr "X$arg" : "X\\(.*\\)$as_nl";
30470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30474 export as_echo_n_body
30475 as_echo_n='sh -c $as_echo_n_body as_echo'
30477 export as_echo_body
30478 as_echo='sh -c $as_echo_body as_echo'
30481 # The user is always right.
30482 if test "${PATH_SEPARATOR+set}" != set; then
30484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30492 # We need space, tab and new line, in precisely that order. Quoting is
30493 # there to prevent editors from complaining about space-tab.
30494 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30495 # splitting by setting IFS to empty value.)
30498 # Find who we are. Look in the path if we contain no directory separator.
30500 *[\\/]* ) as_myself=$0 ;;
30501 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30502 for as_dir in $PATH
30505 test -z "$as_dir" && as_dir=.
30506 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30512 # We did not find ourselves, most probably we were run as `sh COMMAND'
30513 # in which case we are not to be found in the path.
30514 if test "x$as_myself" = x; then
30517 if test ! -f "$as_myself"; then
30518 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30522 # Unset variables that we do not need and which cause bugs (e.g. in
30523 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30524 # suppresses any "Segmentation fault" message there. '((' could
30525 # trigger a bug in pdksh 5.2.14.
30526 for as_var in BASH_ENV ENV MAIL MAILPATH
30527 do eval test x\${$as_var+set} = xset \
30528 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30541 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30544 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30545 # ----------------------------------------
30546 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30547 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30548 # script with STATUS, using 1 if that was 0.
30551 as_status=$1; test $as_status -eq 0 && as_status=1
30553 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30554 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30556 $as_echo "$as_me: error: $2" >&2
30557 as_fn_exit $as_status
30561 # as_fn_set_status STATUS
30562 # -----------------------
30563 # Set $? to STATUS, without forking.
30564 as_fn_set_status ()
30567 } # as_fn_set_status
30569 # as_fn_exit STATUS
30570 # -----------------
30571 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30575 as_fn_set_status $1
30581 # Portably unset VAR.
30584 { eval $1=; unset $1;}
30586 as_unset=as_fn_unset
30587 # as_fn_append VAR VALUE
30588 # ----------------------
30589 # Append the text in VALUE to the end of the definition contained in VAR. Take
30590 # advantage of any shell optimizations that allow amortized linear growth over
30591 # repeated appends, instead of the typical quadratic growth present in naive
30593 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30594 eval 'as_fn_append ()
30605 # as_fn_arith ARG...
30606 # ------------------
30607 # Perform arithmetic evaluation on the ARGs, and store the result in the
30608 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30609 # must be portable across $(()) and expr.
30610 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30611 eval 'as_fn_arith ()
30618 as_val=`expr "$@" || test $? -eq 1`
30623 if expr a : '\(a\)' >/dev/null 2>&1 &&
30624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30630 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30631 as_basename=basename
30636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30642 as_me=`$as_basename -- "$0" ||
30643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30644 X"$0" : 'X\(//\)$' \| \
30645 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30647 sed '/^.*\/\([^/][^/]*\)\/*$/{
30661 # Avoid depending upon Character Ranges.
30662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30665 as_cr_digits='0123456789'
30666 as_cr_alnum=$as_cr_Letters$as_cr_digits
30668 ECHO_C= ECHO_N= ECHO_T=
30669 case `echo -n x` in #(((((
30671 case `echo 'xy\c'` in
30672 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30674 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30681 rm -f conf$$ conf$$.exe conf$$.file
30682 if test -d conf$$.dir; then
30683 rm -f conf$$.dir/conf$$.file
30686 mkdir conf$$.dir 2>/dev/null
30688 if (echo >conf$$.file) 2>/dev/null; then
30689 if ln -s conf$$.file conf$$ 2>/dev/null; then
30691 # ... but there are two gotchas:
30692 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30693 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30694 # In both cases, we have to default to `cp -p'.
30695 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30697 elif ln conf$$.file conf$$ 2>/dev/null; then
30705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30706 rmdir conf$$.dir 2>/dev/null
30711 # Create "$as_dir" as a directory, including parents if necessary.
30716 -*) as_dir=./$as_dir;;
30718 test -d "$as_dir" || eval $as_mkdir_p || {
30722 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30723 *) as_qdir=$as_dir;;
30725 as_dirs="'$as_qdir' $as_dirs"
30726 as_dir=`$as_dirname -- "$as_dir" ||
30727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30728 X"$as_dir" : 'X\(//\)[^/]' \| \
30729 X"$as_dir" : 'X\(//\)$' \| \
30730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30731 $as_echo X"$as_dir" |
30732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30736 /^X\(\/\/\)[^/].*/{
30749 test -d "$as_dir" && break
30751 test -z "$as_dirs" || eval "mkdir $as_dirs"
30752 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30756 if mkdir -p . 2>/dev/null; then
30757 as_mkdir_p='mkdir -p "$as_dir"'
30759 test -d ./-p && rmdir ./-p
30763 if test -x / >/dev/null 2>&1; then
30764 as_test_x='test -x'
30766 if ls -dL / >/dev/null 2>&1; then
30773 if test -d "$1"; then
30779 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30780 ???[sx]*):;;*)false;;esac;fi
30784 as_executable_p=$as_test_x
30786 # Sed expression to map a string onto a valid CPP name.
30787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30789 # Sed expression to map a string onto a valid variable name.
30790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30794 ## ----------------------------------- ##
30795 ## Main body of $CONFIG_STATUS script. ##
30796 ## ----------------------------------- ##
30798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30801 # Save the log message, to keep $0 and so on meaningful, and to
30802 # report actual input values of CONFIG_FILES etc. instead of their
30803 # values after options handling.
30805 This file was extended by bacula $as_me 5.2.0rc1, which was
30806 generated by GNU Autoconf 2.67. Invocation command line was
30808 CONFIG_FILES = $CONFIG_FILES
30809 CONFIG_HEADERS = $CONFIG_HEADERS
30810 CONFIG_LINKS = $CONFIG_LINKS
30811 CONFIG_COMMANDS = $CONFIG_COMMANDS
30814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30819 case $ac_config_files in *"
30820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30823 case $ac_config_headers in *"
30824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30829 # Files that config.status was made for.
30830 config_files="$ac_config_files"
30831 config_headers="$ac_config_headers"
30832 config_commands="$ac_config_commands"
30836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30838 \`$as_me' instantiates files and other configuration actions
30839 from templates according to the current configuration. Unless the files
30840 and actions are specified as TAGs, all are instantiated by default.
30842 Usage: $0 [OPTION]... [TAG]...
30844 -h, --help print this help, then exit
30845 -V, --version print version number and configuration settings, then exit
30846 --config print configuration, then exit
30847 -q, --quiet, --silent
30848 do not print progress messages
30849 -d, --debug don't remove temporary files
30850 --recheck update $as_me by reconfiguring in the same conditions
30851 --file=FILE[:TEMPLATE]
30852 instantiate the configuration file FILE
30853 --header=FILE[:TEMPLATE]
30854 instantiate the configuration header FILE
30856 Configuration files:
30859 Configuration headers:
30862 Configuration commands:
30865 Report bugs to the package provider."
30868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30871 bacula config.status 5.2.0rc1
30872 configured by $0, generated by GNU Autoconf 2.67,
30873 with options \\"\$ac_cs_config\\"
30875 Copyright (C) 2010 Free Software Foundation, Inc.
30876 This config.status script is free software; the Free Software Foundation
30877 gives unlimited permission to copy, distribute and modify it."
30883 test -n "\$AWK" || AWK=awk
30886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30887 # The default lists apply if the user does not specify any file.
30893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30910 # Handling of the options.
30911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30914 $as_echo "$ac_cs_version"; exit ;;
30915 --config | --confi | --conf | --con | --co | --c )
30916 $as_echo "$ac_cs_config"; exit ;;
30917 --debug | --debu | --deb | --de | --d | -d )
30919 --file | --fil | --fi | --f )
30922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30923 '') as_fn_error $? "missing file argument" ;;
30925 as_fn_append CONFIG_FILES " '$ac_optarg'"
30926 ac_need_defaults=false;;
30927 --header | --heade | --head | --hea )
30930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30932 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30933 ac_need_defaults=false;;
30935 # Conflict between --help and --header
30936 as_fn_error $? "ambiguous option: \`$1'
30937 Try \`$0 --help' for more information.";;
30938 --help | --hel | -h )
30939 $as_echo "$ac_cs_usage"; exit ;;
30940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30944 # This is an error.
30945 -*) as_fn_error $? "unrecognized option: \`$1'
30946 Try \`$0 --help' for more information." ;;
30948 *) as_fn_append ac_config_targets " $1"
30949 ac_need_defaults=false ;;
30955 ac_configure_extra_args=
30957 if $ac_cs_silent; then
30959 ac_configure_extra_args="$ac_configure_extra_args --silent"
30963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30964 if \$ac_cs_recheck; then
30965 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30968 CONFIG_SHELL='$SHELL'
30969 export CONFIG_SHELL
30974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30979 ## Running $as_me. ##
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30991 # The HP-UX ksh and POSIX shell print the target directory to stdout
30992 # if CDPATH is set.
30993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30995 sed_quote_subst='$sed_quote_subst'
30996 double_quote_subst='$double_quote_subst'
30997 delay_variable_subst='$delay_variable_subst'
30998 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30999 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31000 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31001 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31002 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31003 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31004 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31005 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31006 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31007 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31008 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31009 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31010 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31011 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31012 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31013 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31014 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31015 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31016 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31017 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31018 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31019 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31020 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31021 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31022 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31023 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31024 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31025 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31026 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31027 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31028 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31029 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31030 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31031 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31032 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31033 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31034 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31035 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31036 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31037 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31038 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31039 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31040 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31041 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31042 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31043 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31044 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31045 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31046 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31047 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31048 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31049 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31050 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31051 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31052 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31053 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"`'
31054 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31055 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31056 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31057 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31058 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31059 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31060 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31061 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31062 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31063 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31064 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31065 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31066 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31067 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31068 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31069 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31070 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31071 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31072 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31073 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31074 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31075 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31076 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31077 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31078 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31079 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31080 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31081 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31082 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31083 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31084 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31085 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31086 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31087 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31088 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31089 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31090 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31091 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31092 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31093 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31094 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31095 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31096 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31097 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31098 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31099 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31100 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31101 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31102 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31103 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31104 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31105 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31106 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31107 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31108 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31109 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31110 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31111 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31112 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31113 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31114 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31115 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31116 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31117 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31118 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31119 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31120 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31121 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31122 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31123 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31124 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31125 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31126 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31127 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31128 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31129 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31130 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31131 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31132 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31133 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31134 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31135 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31136 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31137 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31138 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31139 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31140 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31141 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31142 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31143 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31144 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31145 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31146 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31147 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31148 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31149 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31150 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31151 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31152 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31153 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31154 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31155 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31156 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31157 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31158 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31159 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31160 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31161 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31162 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31163 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31164 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31165 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31166 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31167 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31168 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31169 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31170 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31171 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31172 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31173 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31174 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31175 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31176 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31177 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31178 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31179 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31180 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31181 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31182 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31185 LTCFLAGS='$LTCFLAGS'
31186 compiler='$compiler_DEFAULT'
31188 # A function that is used when there is no print builtin or printf.
31189 func_fallback_echo ()
31191 eval 'cat <<_LTECHO_EOF
31196 # Quote evaled strings.
31210 deplibs_check_method \
31215 sharedlib_from_linklib_cmd \
31218 archiver_list_spec \
31224 lt_cv_sys_global_symbol_pipe \
31225 lt_cv_sys_global_symbol_to_cdecl \
31226 lt_cv_sys_global_symbol_to_c_name_address \
31227 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31228 nm_file_list_spec \
31229 lt_prog_compiler_no_builtin_flag \
31230 lt_prog_compiler_pic \
31231 lt_prog_compiler_wl \
31232 lt_prog_compiler_static \
31233 lt_cv_prog_compiler_c_o \
31242 export_dynamic_flag_spec \
31243 whole_archive_flag_spec \
31244 compiler_needs_object \
31246 allow_undefined_flag \
31247 no_undefined_flag \
31248 hardcode_libdir_flag_spec \
31249 hardcode_libdir_flag_spec_ld \
31250 hardcode_libdir_separator \
31254 variables_saved_for_relink \
31256 library_names_spec \
31258 install_override_mode \
31262 compiler_lib_search_dirs \
31267 compiler_lib_search_path \
31271 lt_prog_compiler_no_builtin_flag_CXX \
31272 lt_prog_compiler_pic_CXX \
31273 lt_prog_compiler_wl_CXX \
31274 lt_prog_compiler_static_CXX \
31275 lt_cv_prog_compiler_c_o_CXX \
31276 export_dynamic_flag_spec_CXX \
31277 whole_archive_flag_spec_CXX \
31278 compiler_needs_object_CXX \
31280 allow_undefined_flag_CXX \
31281 no_undefined_flag_CXX \
31282 hardcode_libdir_flag_spec_CXX \
31283 hardcode_libdir_flag_spec_ld_CXX \
31284 hardcode_libdir_separator_CXX \
31285 exclude_expsyms_CXX \
31286 include_expsyms_CXX \
31287 file_list_spec_CXX \
31288 compiler_lib_search_dirs_CXX \
31289 predep_objects_CXX \
31290 postdep_objects_CXX \
31293 compiler_lib_search_path_CXX; do
31294 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31295 *[\\\\\\\`\\"\\\$]*)
31296 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31299 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31304 # Double-quote double-evaled strings.
31305 for var in reload_cmds \
31306 old_postinstall_cmds \
31307 old_postuninstall_cmds \
31309 extract_expsyms_cmds \
31310 old_archive_from_new_cmds \
31311 old_archive_from_expsyms_cmds \
31313 archive_expsym_cmds \
31315 module_expsym_cmds \
31316 export_symbols_cmds \
31320 postuninstall_cmds \
31322 sys_lib_search_path_spec \
31323 sys_lib_dlsearch_path_spec \
31325 old_archive_cmds_CXX \
31326 old_archive_from_new_cmds_CXX \
31327 old_archive_from_expsyms_cmds_CXX \
31329 archive_expsym_cmds_CXX \
31331 module_expsym_cmds_CXX \
31332 export_symbols_cmds_CXX \
31334 postlink_cmds_CXX; do
31335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31336 *[\\\\\\\`\\"\\\$]*)
31337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31345 ac_aux_dir='$ac_aux_dir'
31346 xsi_shell='$xsi_shell'
31347 lt_shell_append='$lt_shell_append'
31349 # See if we are running on zsh, and set the options which allow our
31350 # commands through without removal of \ escapes INIT.
31351 if test -n "\${ZSH_VERSION+set}" ; then
31352 setopt NO_GLOB_SUBST
31358 TIMESTAMP='$TIMESTAMP'
31366 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31367 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31369 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31370 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31371 LINGUAS="${LINGUAS-%UNSET%}"
31376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31378 # Handling of arguments.
31379 for ac_config_target in $ac_config_targets
31381 case $ac_config_target in
31382 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31384 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31385 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31386 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31387 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31388 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31389 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31390 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31391 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31392 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31393 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31394 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31395 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31396 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31397 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31398 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31399 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31400 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31401 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31402 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31403 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31404 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31405 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31406 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31407 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31408 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31409 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31410 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31411 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31412 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31413 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31414 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31415 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31416 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31417 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31419 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31420 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31421 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31422 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31423 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31424 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31425 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31426 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31427 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31428 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31429 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31430 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31431 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31432 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31433 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31434 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31435 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31436 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31437 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31438 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31439 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31440 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31441 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31442 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31443 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31444 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31445 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31446 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31447 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31448 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31449 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31450 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31451 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31452 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31453 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31454 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31455 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31456 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31457 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31458 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31459 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31460 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31461 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31462 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31463 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31464 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31465 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31466 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31467 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31468 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31469 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31470 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31471 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31472 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31473 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31474 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31475 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31476 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31477 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31478 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31479 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31480 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31481 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31482 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31483 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31484 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31485 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31486 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31487 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31488 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
31495 # If the user did not use the arguments to specify the items to instantiate,
31496 # then the envvar interface is used. Set only those that are not.
31497 # We use the long form for the default assignment because of an extremely
31498 # bizarre bug on SunOS 4.1.3.
31499 if $ac_need_defaults; then
31500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31505 # Have a temporary directory for convenience. Make it in the build tree
31506 # simply because there is no reason against having it here, and in addition,
31507 # creating and moving files from /tmp can sometimes cause problems.
31508 # Hook for its removal unless debugging.
31509 # Note that there is a small window in which the directory will not be cleaned:
31510 # after its creation but before its name has been assigned to `$tmp'.
31514 trap 'exit_status=$?
31515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31517 trap 'as_fn_exit 1' 1 2 13 15
31519 # Create a (secure) tmp directory for tmp files.
31522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31523 test -n "$tmp" && test -d "$tmp"
31526 tmp=./conf$$-$RANDOM
31527 (umask 077 && mkdir "$tmp")
31528 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31530 # Set up the scripts for CONFIG_FILES section.
31531 # No need to generate them if there are no CONFIG_FILES.
31532 # This happens for instance with `./config.status config.h'.
31533 if test -n "$CONFIG_FILES"; then
31535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31536 ac_cs_awk_getline=:
31537 ac_cs_awk_pipe_init=
31538 ac_cs_awk_read_file='
31539 while ((getline aline < (F[key])) > 0)
31542 ac_cs_awk_pipe_fini=
31544 ac_cs_awk_getline=false
31545 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31546 ac_cs_awk_read_file='
31548 print "cat " F[key] " &&"
31549 '$ac_cs_awk_pipe_init
31550 # The final `:' finishes the AND list.
31551 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31553 ac_cr=`echo X | tr X '\015'`
31554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31555 # But we know of no other shell where ac_cr would be empty at this
31556 # point, so we can use a bashism as a fallback.
31557 if test "x$ac_cr" = x; then
31558 eval ac_cr=\$\'\\r\'
31560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31564 ac_cs_awk_cr=$ac_cr
31567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31570 # Create commands to substitute file output variables.
31572 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31573 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31574 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31577 } >conf$$files.sh &&
31578 . ./conf$$files.sh ||
31579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31580 rm -f conf$$files.sh
31583 echo "cat >conf$$subs.awk <<_ACEOF" &&
31584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31586 } >conf$$subs.sh ||
31587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31590 for ac_last_try in false false false false false :; do
31591 . ./conf$$subs.sh ||
31592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31594 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31595 if test $ac_delim_n = $ac_delim_num; then
31597 elif $ac_last_try; then
31598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31603 rm -f conf$$subs.sh
31605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31610 s/^/S["/; s/!.*/"]=/
31620 s/\(.\{148\}\)..*/\1/
31622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31634 s/\(.\{148\}\)..*/\1/
31636 s/["\\]/\\&/g; s/^/"/; s/$/"/
31640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31645 ' <conf$$subs.awk | sed '
31650 ' >>$CONFIG_STATUS || ac_write_fail=1
31651 rm -f conf$$subs.awk
31652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31655 for (key in S) S_is_set[key] = 1
31657 \$ac_cs_awk_pipe_init
31661 nfields = split(line, field, "@")
31663 len = length(field[1])
31664 for (i = 2; i < nfields; i++) {
31666 keylen = length(key)
31667 if (S_is_set[key]) {
31669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31670 len += length(value) + length(field[++i])
31675 if (nfields == 3 && !substed) {
31677 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31678 \$ac_cs_awk_read_file
31684 \$ac_cs_awk_pipe_fini
31687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31692 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31698 # trailing colons and then remove the whole line if VPATH becomes empty
31699 # (actually we leave an empty line to preserve line numbers).
31700 if test "x$srcdir" = x.; then
31701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31720 fi # test -n "$CONFIG_FILES"
31722 # Set up the scripts for CONFIG_HEADERS section.
31723 # No need to generate them if there are no CONFIG_HEADERS.
31724 # This happens for instance with `./config.status Makefile'.
31725 if test -n "$CONFIG_HEADERS"; then
31726 cat >"$tmp/defines.awk" <<\_ACAWK ||
31730 # Transform confdefs.h into an awk script `defines.awk', embedded as
31731 # here-document in config.status, that substitutes the proper values into
31732 # config.h.in to produce config.h.
31734 # Create a delimiter string that does not exist in confdefs.h, to ease
31735 # handling of long lines.
31737 for ac_last_try in false false :; do
31738 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31739 if test -z "$ac_t"; then
31741 elif $ac_last_try; then
31742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31748 # For the awk script, D is an array of macro values keyed by name,
31749 # likewise P contains macro parameters if any. Preserve backslash
31750 # newline sequences.
31752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31754 s/.\{148\}/&'"$ac_delim"'/g
31757 s/^[ ]*#[ ]*define[ ][ ]*/ /
31764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31771 D["\1"]=" \3\\\\\\n"\\/p
31773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31778 s/.\{148\}/&'"$ac_delim"'/g
31783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31788 ' <confdefs.h | sed '
31789 s/'"$ac_delim"'/"\\\
31790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31793 for (key in D) D_is_set[key] = 1
31796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31798 split(line, arg, " ")
31799 if (arg[1] == "#") {
31803 defundef = substr(arg[1], 2)
31806 split(mac1, mac2, "(") #)
31808 prefix = substr(line, 1, index(line, defundef) - 1)
31809 if (D_is_set[macro]) {
31810 # Preserve the white space surrounding the "#".
31811 print prefix "define", macro P[macro] D[macro]
31814 # Replace #undef with comments. This is necessary, for example,
31815 # in the case of _POSIX_SOURCE, which is predefined and required
31816 # on some systems where configure will not decide to define it.
31817 if (defundef == "undef") {
31818 print "/*", prefix defundef, macro, "*/"
31826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31828 fi # test -n "$CONFIG_HEADERS"
31831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31836 :[FHLC]) ac_mode=$ac_tag; continue;;
31838 case $ac_mode$ac_tag in
31840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
31841 :[FH]-) ac_tag=-:-;;
31842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31859 -) ac_f="$tmp/stdin";;
31860 *) # Look for the file first in the build tree, then in the source tree
31861 # (if the path is not absolute). The absolute path cannot be DOS-style,
31862 # because $ac_f cannot contain `:'.
31866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
31870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31871 as_fn_append ac_file_inputs " '$ac_f'"
31874 # Let's still pretend it is `configure' which instantiates (i.e., don't
31875 # use $as_me), people would be surprised to read:
31876 # /* config.h. Generated by config.status. */
31877 configure_input='Generated from '`
31878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31880 if test x"$ac_file" != x-; then
31881 configure_input="$ac_file. $configure_input"
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31883 $as_echo "$as_me: creating $ac_file" >&6;}
31885 # Neutralize special characters interpreted by sed in replacement strings.
31886 case $configure_input in #(
31887 *\&* | *\|* | *\\* )
31888 ac_sed_conf_input=`$as_echo "$configure_input" |
31889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31890 *) ac_sed_conf_input=$configure_input;;
31894 *:-:* | *:-) cat >"$tmp/stdin" \
31895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31900 ac_dir=`$as_dirname -- "$ac_file" ||
31901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902 X"$ac_file" : 'X\(//\)[^/]' \| \
31903 X"$ac_file" : 'X\(//\)$' \| \
31904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31905 $as_echo X"$ac_file" |
31906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31910 /^X\(\/\/\)[^/].*/{
31923 as_dir="$ac_dir"; as_fn_mkdir_p
31927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31930 # A ".." for each directory in $ac_dir_suffix.
31931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31932 case $ac_top_builddir_sub in
31933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31937 ac_abs_top_builddir=$ac_pwd
31938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31939 # for backward compatibility:
31940 ac_top_builddir=$ac_top_build_prefix
31943 .) # We are building in place.
31945 ac_top_srcdir=$ac_top_builddir_sub
31946 ac_abs_top_srcdir=$ac_pwd ;;
31947 [\\/]* | ?:[\\/]* ) # Absolute name.
31948 ac_srcdir=$srcdir$ac_dir_suffix;
31949 ac_top_srcdir=$srcdir
31950 ac_abs_top_srcdir=$srcdir ;;
31951 *) # Relative name.
31952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31953 ac_top_srcdir=$ac_top_build_prefix$srcdir
31954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31972 # If the template does not know about datarootdir, expand it.
31973 # FIXME: This hack should be removed a few years after 2.60.
31974 ac_datarootdir_hack=; ac_datarootdir_seen=
31985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31986 *datarootdir*) ac_datarootdir_seen=yes;;
31987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31992 ac_datarootdir_hack='
31993 s&@datadir@&$datadir&g
31994 s&@docdir@&$docdir&g
31995 s&@infodir@&$infodir&g
31996 s&@localedir@&$localedir&g
31997 s&@mandir@&$mandir&g
31998 s&\\\${datarootdir}&$datarootdir&g' ;;
32002 # Neutralize VPATH when `$srcdir' = `.'.
32003 # Shell code in configure.ac might set extrasub.
32004 # FIXME: do we really want to maintain this feature?
32005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32006 ac_sed_extra="$ac_vpsub
32009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32012 s|@configure_input@|$ac_sed_conf_input|;t t
32013 s&@top_builddir@&$ac_top_builddir_sub&;t t
32014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32015 s&@srcdir@&$ac_srcdir&;t t
32016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32017 s&@top_srcdir@&$ac_top_srcdir&;t t
32018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32019 s&@builddir@&$ac_builddir&;t t
32020 s&@abs_builddir@&$ac_abs_builddir&;t t
32021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32022 s&@INSTALL@&$ac_INSTALL&;t t
32023 $ac_datarootdir_hack
32025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32026 if $ac_cs_awk_getline; then
32027 $AWK -f "$tmp/subs.awk"
32029 $AWK -f "$tmp/subs.awk" | $SHELL
32031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32034 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32037 which seems to be undefined. Please make sure it is defined" >&5
32038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32039 which seems to be undefined. Please make sure it is defined" >&2;}
32043 -) cat "$tmp/out" && rm -f "$tmp/out";;
32044 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32052 if test x"$ac_file" != x-; then
32054 $as_echo "/* $configure_input */" \
32055 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32056 } >"$tmp/config.h" \
32057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32058 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32063 mv "$tmp/config.h" "$ac_file" \
32064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32067 $as_echo "/* $configure_input */" \
32068 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32069 || as_fn_error $? "could not create -" "$LINENO" 5
32073 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32074 $as_echo "$as_me: executing $ac_file commands" >&6;}
32079 case $ac_file$ac_mode in
32082 # See if we are running on zsh, and set the options which allow our
32083 # commands through without removal of \ escapes.
32084 if test -n "${ZSH_VERSION+set}" ; then
32085 setopt NO_GLOB_SUBST
32088 cfgfile="${ofile}T"
32089 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32092 cat <<_LT_EOF >> "$cfgfile"
32095 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32096 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32098 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32100 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32101 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32103 # Written by Gordon Matzigkeit, 1996
32105 # This file is part of GNU Libtool.
32107 # GNU Libtool is free software; you can redistribute it and/or
32108 # modify it under the terms of the GNU General Public License as
32109 # published by the Free Software Foundation; either version 2 of
32110 # the License, or (at your option) any later version.
32112 # As a special exception to the GNU General Public License,
32113 # if you distribute this file as part of a program or library that
32114 # is built using GNU Libtool, you may include this file under the
32115 # same distribution terms that you use for the rest of that program.
32117 # GNU Libtool is distributed in the hope that it will be useful,
32118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32120 # GNU General Public License for more details.
32122 # You should have received a copy of the GNU General Public License
32123 # along with GNU Libtool; see the file COPYING. If not, a copy
32124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32125 # obtained by writing to the Free Software Foundation, Inc.,
32126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32129 # The names of the tagged configurations supported by this script.
32130 available_tags="CXX "
32132 # ### BEGIN LIBTOOL CONFIG
32134 # Which release of libtool.m4 was used?
32135 macro_version=$macro_version
32136 macro_revision=$macro_revision
32138 # Whether or not to build shared libraries.
32139 build_libtool_libs=$enable_shared
32141 # Whether or not to build static libraries.
32142 build_old_libs=$enable_static
32144 # What type of objects to build.
32147 # Whether or not to optimize for fast installation.
32148 fast_install=$enable_fast_install
32150 # Shell to use when invoking shell scripts.
32153 # An echo program that protects backslashes.
32157 host_alias=$host_alias
32161 # The build system.
32162 build_alias=$build_alias
32166 # A sed program that does not truncate output.
32169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32170 Xsed="\$SED -e 1s/^X//"
32172 # A grep program that handles long lines.
32178 # A literal string matcher.
32181 # A BSD- or MS-compatible name lister.
32184 # Whether we need soft or hard links.
32187 # What is the maximum length of a command?
32188 max_cmd_len=$max_cmd_len
32190 # Object file suffix (normally "o").
32193 # Executable file suffix (normally "").
32196 # whether the shell understands "unset".
32199 # turn spaces into newlines.
32202 # turn newlines into spaces.
32205 # convert \$build file names to \$host format.
32206 to_host_file_cmd=$lt_cv_to_host_file_cmd
32208 # convert \$build files to toolchain format.
32209 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32211 # An object symbol dumper.
32212 OBJDUMP=$lt_OBJDUMP
32214 # Method to check whether dependent libraries are shared objects.
32215 deplibs_check_method=$lt_deplibs_check_method
32217 # Command to use when deplibs_check_method = "file_magic".
32218 file_magic_cmd=$lt_file_magic_cmd
32220 # How to find potential files when deplibs_check_method = "file_magic".
32221 file_magic_glob=$lt_file_magic_glob
32223 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32224 want_nocaseglob=$lt_want_nocaseglob
32226 # DLL creation program.
32227 DLLTOOL=$lt_DLLTOOL
32229 # Command to associate shared and link libraries.
32230 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32235 # Flags to create an archive.
32236 AR_FLAGS=$lt_AR_FLAGS
32238 # How to feed a file listing to the archiver.
32239 archiver_list_spec=$lt_archiver_list_spec
32241 # A symbol stripping program.
32244 # Commands used to install an old-style archive.
32246 old_postinstall_cmds=$lt_old_postinstall_cmds
32247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32249 # Whether to use a lock for old archive extraction.
32250 lock_old_archive_extraction=$lock_old_archive_extraction
32255 # LTCC compiler flags.
32256 LTCFLAGS=$lt_CFLAGS
32258 # Take the output of nm and produce a listing of raw symbols and C names.
32259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32261 # Transform the output of nm in a proper C declaration.
32262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32264 # Transform the output of nm in a C name address pair.
32265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32267 # Transform the output of nm in a C name address pair when lib prefix is needed.
32268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32270 # Specify filename containing input files for \$NM.
32271 nm_file_list_spec=$lt_nm_file_list_spec
32273 # The root where to search for dependent libraries,and in which our libraries should be installed.
32274 lt_sysroot=$lt_sysroot
32276 # The name of the directory that contains temporary libtool files.
32279 # Used to examine libraries when file_magic_cmd begins with "file".
32280 MAGIC_CMD=$MAGIC_CMD
32282 # Must we lock files when doing compilation?
32283 need_locks=$lt_need_locks
32286 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32289 DSYMUTIL=$lt_DSYMUTIL
32291 # Tool to change global to local symbols on Mac OS X.
32294 # Tool to manipulate fat objects and archives on Mac OS X.
32297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32301 OTOOL64=$lt_OTOOL64
32303 # Old archive suffix (normally "a").
32306 # Shared library suffix (normally ".so").
32307 shrext_cmds=$lt_shrext_cmds
32309 # The commands to extract the exported symbol list from a shared archive.
32310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32312 # Variables whose values should be saved in libtool wrapper scripts and
32313 # restored at link time.
32314 variables_saved_for_relink=$lt_variables_saved_for_relink
32316 # Do we need the "lib" prefix for modules?
32317 need_lib_prefix=$need_lib_prefix
32319 # Do we need a version for libraries?
32320 need_version=$need_version
32322 # Library versioning type.
32323 version_type=$version_type
32325 # Shared library runtime path variable.
32326 runpath_var=$runpath_var
32328 # Shared library path variable.
32329 shlibpath_var=$shlibpath_var
32331 # Is shlibpath searched before the hard-coded library search path?
32332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32334 # Format of library name prefix.
32335 libname_spec=$lt_libname_spec
32337 # List of archive names. First name is the real one, the rest are links.
32338 # The last name is the one that the linker finds with -lNAME
32339 library_names_spec=$lt_library_names_spec
32341 # The coded name of the library, if different from the real name.
32342 soname_spec=$lt_soname_spec
32344 # Permission mode override for installation of shared libraries.
32345 install_override_mode=$lt_install_override_mode
32347 # Command to use after installation of a shared archive.
32348 postinstall_cmds=$lt_postinstall_cmds
32350 # Command to use after uninstallation of a shared archive.
32351 postuninstall_cmds=$lt_postuninstall_cmds
32353 # Commands used to finish a libtool library installation in a directory.
32354 finish_cmds=$lt_finish_cmds
32356 # As "finish_cmds", except a single script fragment to be evaled but
32358 finish_eval=$lt_finish_eval
32360 # Whether we should hardcode library paths into libraries.
32361 hardcode_into_libs=$hardcode_into_libs
32363 # Compile-time system search path for libraries.
32364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32366 # Run-time system search path for libraries.
32367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32369 # Whether dlopen is supported.
32370 dlopen_support=$enable_dlopen
32372 # Whether dlopen of programs is supported.
32373 dlopen_self=$enable_dlopen_self
32375 # Whether dlopen of statically linked programs is supported.
32376 dlopen_self_static=$enable_dlopen_self_static
32378 # Commands to strip libraries.
32379 old_striplib=$lt_old_striplib
32380 striplib=$lt_striplib
32383 # The linker used to build libraries.
32386 # How to create reloadable object files.
32387 reload_flag=$lt_reload_flag
32388 reload_cmds=$lt_reload_cmds
32390 # Commands used to build an old-style archive.
32391 old_archive_cmds=$lt_old_archive_cmds
32393 # A language specific compiler.
32396 # Is the compiler the GNU compiler?
32399 # Compiler flag to turn off builtin functions.
32400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32402 # Additional compiler flags for building library objects.
32403 pic_flag=$lt_lt_prog_compiler_pic
32405 # How to pass a linker flag through the compiler.
32406 wl=$lt_lt_prog_compiler_wl
32408 # Compiler flag to prevent dynamic linking.
32409 link_static_flag=$lt_lt_prog_compiler_static
32411 # Does compiler simultaneously support -c and -o options?
32412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32414 # Whether or not to add -lc for building shared libraries.
32415 build_libtool_need_lc=$archive_cmds_need_lc
32417 # Whether or not to disallow shared libs when runtime libs are static.
32418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32420 # Compiler flag to allow reflexive dlopens.
32421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32423 # Compiler flag to generate shared objects directly from archives.
32424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32426 # Whether the compiler copes with passing no objects directly.
32427 compiler_needs_object=$lt_compiler_needs_object
32429 # Create an old-style archive from a shared archive.
32430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32432 # Create a temporary old-style archive to link instead of a shared archive.
32433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32435 # Commands used to build a shared archive.
32436 archive_cmds=$lt_archive_cmds
32437 archive_expsym_cmds=$lt_archive_expsym_cmds
32439 # Commands used to build a loadable module if different from building
32440 # a shared archive.
32441 module_cmds=$lt_module_cmds
32442 module_expsym_cmds=$lt_module_expsym_cmds
32444 # Whether we are building with GNU ld or not.
32445 with_gnu_ld=$lt_with_gnu_ld
32447 # Flag that allows shared libraries with undefined symbols to be built.
32448 allow_undefined_flag=$lt_allow_undefined_flag
32450 # Flag that enforces no undefined symbols.
32451 no_undefined_flag=$lt_no_undefined_flag
32453 # Flag to hardcode \$libdir into a binary during linking.
32454 # This must work even if \$libdir does not exist
32455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32457 # If ld is used when linking, flag to hardcode \$libdir into a binary
32458 # during linking. This must work even if \$libdir does not exist.
32459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32461 # Whether we need a single "-rpath" flag with a separated argument.
32462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32465 # DIR into the resulting binary.
32466 hardcode_direct=$hardcode_direct
32468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32469 # DIR into the resulting binary and the resulting library dependency is
32470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32471 # library is relocated.
32472 hardcode_direct_absolute=$hardcode_direct_absolute
32474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32475 # into the resulting binary.
32476 hardcode_minus_L=$hardcode_minus_L
32478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32479 # into the resulting binary.
32480 hardcode_shlibpath_var=$hardcode_shlibpath_var
32482 # Set to "yes" if building a shared library automatically hardcodes DIR
32483 # into the library and all subsequent libraries and executables linked
32485 hardcode_automatic=$hardcode_automatic
32487 # Set to yes if linker adds runtime paths of dependent libraries
32488 # to runtime path list.
32489 inherit_rpath=$inherit_rpath
32491 # Whether libtool must link a program against all its dependency libraries.
32492 link_all_deplibs=$link_all_deplibs
32494 # Set to "yes" if exported symbols are required.
32495 always_export_symbols=$always_export_symbols
32497 # The commands to list exported symbols.
32498 export_symbols_cmds=$lt_export_symbols_cmds
32500 # Symbols that should not be listed in the preloaded symbols.
32501 exclude_expsyms=$lt_exclude_expsyms
32503 # Symbols that must always be exported.
32504 include_expsyms=$lt_include_expsyms
32506 # Commands necessary for linking programs (against libraries) with templates.
32507 prelink_cmds=$lt_prelink_cmds
32509 # Commands necessary for finishing linking programs.
32510 postlink_cmds=$lt_postlink_cmds
32512 # Specify filename containing input files.
32513 file_list_spec=$lt_file_list_spec
32515 # How to hardcode a shared library path into an executable.
32516 hardcode_action=$hardcode_action
32518 # The directories searched by this compiler when creating a shared library.
32519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32521 # Dependencies to place before and after the objects being linked to
32522 # create a shared library.
32523 predep_objects=$lt_predep_objects
32524 postdep_objects=$lt_postdep_objects
32525 predeps=$lt_predeps
32526 postdeps=$lt_postdeps
32528 # The library search path used internally by the compiler when linking
32529 # a shared library.
32530 compiler_lib_search_path=$lt_compiler_lib_search_path
32532 # ### END LIBTOOL CONFIG
32538 cat <<\_LT_EOF >> "$cfgfile"
32539 # AIX sometimes has problems with the GCC collect2 program. For some
32540 # reason, if we set the COLLECT_NAMES environment variable, the problems
32541 # vanish in a puff of smoke.
32542 if test "X${COLLECT_NAMES+set}" != Xset; then
32544 export COLLECT_NAMES
32551 ltmain="$ac_aux_dir/ltmain.sh"
32554 # We use sed instead of cat because bash on DJGPP gets confused if
32555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32556 # text mode, it properly converts lines to CR/LF. This bash problem
32557 # is reportedly fixed, but why not run on old versions too?
32558 sed '$q' "$ltmain" >> "$cfgfile" \
32559 || (rm -f "$cfgfile"; exit 1)
32561 if test x"$xsi_shell" = xyes; then
32562 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32566 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32567 \ * ) func_dirname_result="${3}" ;;\
32569 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32570 && mv -f "$cfgfile.tmp" "$cfgfile" \
32571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32572 test 0 -eq $? || _lt_function_replace_fail=:
32575 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32578 \ func_basename_result="${1##*/}"\
32579 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32580 && mv -f "$cfgfile.tmp" "$cfgfile" \
32581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32582 test 0 -eq $? || _lt_function_replace_fail=:
32585 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32586 func_dirname_and_basename ()\
32589 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32590 \ * ) func_dirname_result="${3}" ;;\
32592 \ func_basename_result="${1##*/}"\
32593 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32594 && mv -f "$cfgfile.tmp" "$cfgfile" \
32595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32596 test 0 -eq $? || _lt_function_replace_fail=:
32599 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32602 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32603 \ # positional parameters, so assign one to ordinary parameter first.\
32604 \ func_stripname_result=${3}\
32605 \ func_stripname_result=${func_stripname_result#"${1}"}\
32606 \ func_stripname_result=${func_stripname_result%"${2}"}\
32607 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32608 && mv -f "$cfgfile.tmp" "$cfgfile" \
32609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32610 test 0 -eq $? || _lt_function_replace_fail=:
32613 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32614 func_split_long_opt ()\
32616 \ func_split_long_opt_name=${1%%=*}\
32617 \ func_split_long_opt_arg=${1#*=}\
32618 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32619 && mv -f "$cfgfile.tmp" "$cfgfile" \
32620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32621 test 0 -eq $? || _lt_function_replace_fail=:
32624 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32625 func_split_short_opt ()\
32627 \ func_split_short_opt_arg=${1#??}\
32628 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32629 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32630 && mv -f "$cfgfile.tmp" "$cfgfile" \
32631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32632 test 0 -eq $? || _lt_function_replace_fail=:
32635 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32639 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32640 \ *) func_lo2o_result=${1} ;;\
32642 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32643 && mv -f "$cfgfile.tmp" "$cfgfile" \
32644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32645 test 0 -eq $? || _lt_function_replace_fail=:
32648 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32651 func_xform_result=${1%.*}.lo\
32652 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32653 && mv -f "$cfgfile.tmp" "$cfgfile" \
32654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32655 test 0 -eq $? || _lt_function_replace_fail=:
32658 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32661 func_arith_result=$(( $* ))\
32662 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32663 && mv -f "$cfgfile.tmp" "$cfgfile" \
32664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32665 test 0 -eq $? || _lt_function_replace_fail=:
32668 sed -e '/^func_len ()$/,/^} # func_len /c\
32671 func_len_result=${#1}\
32672 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32673 && mv -f "$cfgfile.tmp" "$cfgfile" \
32674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32675 test 0 -eq $? || _lt_function_replace_fail=:
32679 if test x"$lt_shell_append" = xyes; then
32680 sed -e '/^func_append ()$/,/^} # func_append /c\
32683 eval "${1}+=\\${2}"\
32684 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32685 && mv -f "$cfgfile.tmp" "$cfgfile" \
32686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32687 test 0 -eq $? || _lt_function_replace_fail=:
32690 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32691 func_append_quoted ()\
32693 \ func_quote_for_eval "${2}"\
32694 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32695 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32696 && mv -f "$cfgfile.tmp" "$cfgfile" \
32697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32698 test 0 -eq $? || _lt_function_replace_fail=:
32701 # Save a `func_append' function call where possible by direct use of '+='
32702 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32703 && mv -f "$cfgfile.tmp" "$cfgfile" \
32704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32705 test 0 -eq $? || _lt_function_replace_fail=:
32707 # Save a `func_append' function call even when '+=' is not available
32708 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32709 && mv -f "$cfgfile.tmp" "$cfgfile" \
32710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32711 test 0 -eq $? || _lt_function_replace_fail=:
32714 if test x"$_lt_function_replace_fail" = x":"; then
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32716 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32720 mv -f "$cfgfile" "$ofile" ||
32721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32725 cat <<_LT_EOF >> "$ofile"
32727 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32729 # The linker used to build libraries.
32732 # How to create reloadable object files.
32733 reload_flag=$lt_reload_flag_CXX
32734 reload_cmds=$lt_reload_cmds_CXX
32736 # Commands used to build an old-style archive.
32737 old_archive_cmds=$lt_old_archive_cmds_CXX
32739 # A language specific compiler.
32740 CC=$lt_compiler_CXX
32742 # Is the compiler the GNU compiler?
32745 # Compiler flag to turn off builtin functions.
32746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32748 # Additional compiler flags for building library objects.
32749 pic_flag=$lt_lt_prog_compiler_pic_CXX
32751 # How to pass a linker flag through the compiler.
32752 wl=$lt_lt_prog_compiler_wl_CXX
32754 # Compiler flag to prevent dynamic linking.
32755 link_static_flag=$lt_lt_prog_compiler_static_CXX
32757 # Does compiler simultaneously support -c and -o options?
32758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32760 # Whether or not to add -lc for building shared libraries.
32761 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32763 # Whether or not to disallow shared libs when runtime libs are static.
32764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32766 # Compiler flag to allow reflexive dlopens.
32767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32769 # Compiler flag to generate shared objects directly from archives.
32770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32772 # Whether the compiler copes with passing no objects directly.
32773 compiler_needs_object=$lt_compiler_needs_object_CXX
32775 # Create an old-style archive from a shared archive.
32776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32778 # Create a temporary old-style archive to link instead of a shared archive.
32779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32781 # Commands used to build a shared archive.
32782 archive_cmds=$lt_archive_cmds_CXX
32783 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32785 # Commands used to build a loadable module if different from building
32786 # a shared archive.
32787 module_cmds=$lt_module_cmds_CXX
32788 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32790 # Whether we are building with GNU ld or not.
32791 with_gnu_ld=$lt_with_gnu_ld_CXX
32793 # Flag that allows shared libraries with undefined symbols to be built.
32794 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32796 # Flag that enforces no undefined symbols.
32797 no_undefined_flag=$lt_no_undefined_flag_CXX
32799 # Flag to hardcode \$libdir into a binary during linking.
32800 # This must work even if \$libdir does not exist
32801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32803 # If ld is used when linking, flag to hardcode \$libdir into a binary
32804 # during linking. This must work even if \$libdir does not exist.
32805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32807 # Whether we need a single "-rpath" flag with a separated argument.
32808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32810 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32811 # DIR into the resulting binary.
32812 hardcode_direct=$hardcode_direct_CXX
32814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32815 # DIR into the resulting binary and the resulting library dependency is
32816 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32817 # library is relocated.
32818 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32820 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32821 # into the resulting binary.
32822 hardcode_minus_L=$hardcode_minus_L_CXX
32824 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32825 # into the resulting binary.
32826 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32828 # Set to "yes" if building a shared library automatically hardcodes DIR
32829 # into the library and all subsequent libraries and executables linked
32831 hardcode_automatic=$hardcode_automatic_CXX
32833 # Set to yes if linker adds runtime paths of dependent libraries
32834 # to runtime path list.
32835 inherit_rpath=$inherit_rpath_CXX
32837 # Whether libtool must link a program against all its dependency libraries.
32838 link_all_deplibs=$link_all_deplibs_CXX
32840 # Set to "yes" if exported symbols are required.
32841 always_export_symbols=$always_export_symbols_CXX
32843 # The commands to list exported symbols.
32844 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32846 # Symbols that should not be listed in the preloaded symbols.
32847 exclude_expsyms=$lt_exclude_expsyms_CXX
32849 # Symbols that must always be exported.
32850 include_expsyms=$lt_include_expsyms_CXX
32852 # Commands necessary for linking programs (against libraries) with templates.
32853 prelink_cmds=$lt_prelink_cmds_CXX
32855 # Commands necessary for finishing linking programs.
32856 postlink_cmds=$lt_postlink_cmds_CXX
32858 # Specify filename containing input files.
32859 file_list_spec=$lt_file_list_spec_CXX
32861 # How to hardcode a shared library path into an executable.
32862 hardcode_action=$hardcode_action_CXX
32864 # The directories searched by this compiler when creating a shared library.
32865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32867 # Dependencies to place before and after the objects being linked to
32868 # create a shared library.
32869 predep_objects=$lt_predep_objects_CXX
32870 postdep_objects=$lt_postdep_objects_CXX
32871 predeps=$lt_predeps_CXX
32872 postdeps=$lt_postdeps_CXX
32874 # The library search path used internally by the compiler when linking
32875 # a shared library.
32876 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32878 # ### END LIBTOOL TAG CONFIG: CXX
32883 for ac_file in $CONFIG_FILES; do
32884 # Support "outfile[:infile[:infile...]]"
32886 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32888 # PO directories have a Makefile.in generated from Makefile.in.in.
32889 case "$ac_file" in */Makefile.in)
32890 # Adjust a relative srcdir.
32891 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32892 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32893 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32894 # In autoconf-2.13 it is called $ac_given_srcdir.
32895 # In autoconf-2.50 it is called $srcdir.
32896 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32897 case "$ac_given_srcdir" in
32898 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32899 /*) top_srcdir="$ac_given_srcdir" ;;
32900 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32902 # Treat a directory as a PO directory if and only if it has a
32903 # POTFILES.in file. This allows packages to have multiple PO
32904 # directories under different names or in different locations.
32905 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32906 rm -f "$ac_dir/POTFILES"
32907 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32908 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32909 POMAKEFILEDEPS="POTFILES.in"
32910 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32911 # on $ac_dir but don't depend on user-specified configuration
32913 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32914 # The LINGUAS file contains the set of available languages.
32915 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32916 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32918 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32919 # Hide the ALL_LINGUAS assigment from automake.
32920 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32921 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32923 # The set of available languages was given in configure.in.
32924 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32927 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32928 # Compute UPDATEPOFILES
32929 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32930 # Compute DUMMYPOFILES
32931 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32933 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32934 case "$ac_given_srcdir" in
32936 *) srcdirpre='$(srcdir)/' ;;
32942 for lang in $ALL_LINGUAS; do
32943 POFILES="$POFILES $srcdirpre$lang.po"
32944 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32945 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32946 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32948 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32949 # environment variable.
32951 if test -n "$ALL_LINGUAS"; then
32952 for presentlang in $ALL_LINGUAS; do
32954 if test "%UNSET%" != "$LINGUAS"; then
32955 desiredlanguages="$LINGUAS"
32957 desiredlanguages="$ALL_LINGUAS"
32959 for desiredlang in $desiredlanguages; do
32960 # Use the presentlang catalog if desiredlang is
32961 # a. equal to presentlang, or
32962 # b. a variant of presentlang (because in this case,
32963 # presentlang can be used as a fallback for messages
32964 # which are not translated in the desiredlang catalog).
32965 case "$desiredlang" in
32966 "$presentlang"*) useit=yes;;
32969 if test $useit = yes; then
32970 INST_LINGUAS="$INST_LINGUAS $presentlang"
32975 if test -n "$INST_LINGUAS"; then
32976 for lang in $INST_LINGUAS; do
32977 CATALOGS="$CATALOGS $lang.gmo"
32980 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32981 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"
32982 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32983 if test -f "$f"; then
32985 *.orig | *.bak | *~) ;;
32986 *) cat "$f" >> "$ac_dir/Makefile" ;;
33003 ac_clean_files=$ac_clean_files_save
33005 test $ac_write_fail = 0 ||
33006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33009 # configure is writing to config.log, and then calls config.status.
33010 # config.status does its own redirection, appending to config.log.
33011 # Unfortunately, on DOS this fails, as config.log is still kept open
33012 # by configure, so config.status won't be able to write to it; its
33013 # output is simply discarded. So we exec the FD to /dev/null,
33014 # effectively closing config.log, so it can be properly (re)opened and
33015 # appended to by config.status. When coming back to configure, we
33016 # need to make the FD available again.
33017 if test "$no_create" != yes; then
33019 ac_config_status_args=
33020 test "$silent" = yes &&
33021 ac_config_status_args="$ac_config_status_args --quiet"
33023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33026 # would make configure fail if this is the last instruction.
33027 $ac_cs_success || as_fn_exit 1
33029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33035 if test "${support_bat}" = "yes" ; then
33036 if test "x$QMAKE" = "xnone"; then
33037 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33041 echo "Creating bat Makefile"
33046 ${MAKE:-make} clean
33050 if test X"$GCC" = "Xyes" ; then
33051 echo "Doing make of dependencies"
33052 ${MAKE:-make} depend
33056 chmod 755 install_conf_file build-depkgs-qt-console
33060 chmod 755 bacula btraceback mtx-changer
33061 chmod 755 dvd-handler dvd-simulator
33062 chmod 755 bconsole mtx-changer devel_bacula logrotate
33066 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33067 chmod 755 $c/update_postgresql_tables_10_to_11
33068 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33069 chmod 755 $c/update_postgresql_tables_11_to_12
33074 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33075 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33077 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33078 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33080 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33081 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33083 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33084 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33086 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33087 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33090 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33091 chmod 755 $c/sqlite
33094 chmod 755 $c/install-default-backend
33096 chmod 755 src/win32/build-depkgs-mingw32
33098 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33099 largefile_support="yes"
33102 if test X"$GCC" = "Xyes" ; then
33103 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33104 if test "x${CCVERSION}" = "x" ; then
33105 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33107 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33108 if test x"${CXXVERSION}" = x ; then
33109 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33113 # clean up any old junk
33117 ${MAKE:-make} clean
33120 Configuration on `date`:
33122 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33123 Bacula version: ${BACULA} ${VERSION} (${DATE})
33124 Source code location: ${srcdir}
33125 Install binaries: ${sbindir}
33126 Install libraries: ${libdir}
33127 Install config files: ${sysconfdir}
33128 Scripts directory: ${scriptdir}
33129 Archive directory: ${archivedir}
33130 Working directory: ${working_dir}
33131 PID directory: ${piddir}
33132 Subsys directory: ${subsysdir}
33133 Man directory: ${mandir}
33134 Data directory: ${datarootdir}
33135 Plugin directory: ${plugindir}
33136 C Compiler: ${CC} ${CCVERSION}
33137 C++ Compiler: ${CXX} ${CXXVERSION}
33138 Compiler flags: ${WCFLAGS} ${CFLAGS}
33139 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33141 Statically Linked Tools: ${support_static_tools}
33142 Statically Linked FD: ${support_static_fd}
33143 Statically Linked SD: ${support_static_sd}
33144 Statically Linked DIR: ${support_static_dir}
33145 Statically Linked CONS: ${support_static_cons}
33146 Database backends: ${db_backends}
33147 Database port: ${db_port}
33148 Database name: ${db_name}
33149 Database user: ${db_user}
33151 Job Output Email: ${job_email}
33152 Traceback Email: ${dump_email}
33153 SMTP Host Address: ${smtp_host}
33155 Director Port: ${dir_port}
33156 File daemon Port: ${fd_port}
33157 Storage daemon Port: ${sd_port}
33159 Director User: ${dir_user}
33160 Director Group: ${dir_group}
33161 Storage Daemon User: ${sd_user}
33162 Storage DaemonGroup: ${sd_group}
33163 File Daemon User: ${fd_user}
33164 File Daemon Group: ${fd_group}
33166 Large file support: $largefile_support
33167 Bacula conio support: ${got_conio} ${CONS_LIBS}
33168 readline support: ${got_readline} ${PRTREADLINE_SRC}
33169 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33170 TLS support: ${support_tls}
33171 Encryption support: ${support_crypto}
33172 ZLIB support: ${have_zlib}
33173 LZO support: ${have_lzo}
33174 enable-smartalloc: ${support_smartalloc}
33175 enable-lockmgr: ${support_lockmgr}
33176 bat support: ${support_bat}
33177 enable-gnome: ${support_gnome} ${gnome_version}
33178 enable-bwx-console: ${support_wx_console} ${wx_version}
33179 enable-tray-monitor: ${support_tray_monitor}
33180 client-only: ${build_client_only}
33181 build-dird: ${build_dird}
33182 build-stored: ${build_stored}
33183 Plugin support: ${have_plugins}
33184 ACL support: ${have_acl}
33185 XATTR support: ${have_xattr}
33186 Python support: ${support_python} ${PYTHON_LIBS}
33187 Batch insert enabled: ${support_batch_insert}
33191 # create a small shell script useful for support with
33192 # configure options and config.out info
33193 cat > scripts/bacula_config << EOF
33196 $ $0 $ac_configure_args
33198 cat config.out >> scripts/bacula_config
33199 echo __EOC__ >> scripts/bacula_config
33200 chmod 755 scripts/bacula_config