2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.15.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$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'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
651 # maybe with a smaller string...
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 # Oops. We lost completely, so just stick with echo.
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 test -n "$DJDIR" || exec 7<&0 </dev/null
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697 ac_default_prefix=/usr/local
699 ac_config_libobj_dir=.
706 # Identity of this package.
707 PACKAGE_NAME='bacula'
708 PACKAGE_TARNAME='bacula'
709 PACKAGE_VERSION='5.1.15'
710 PACKAGE_STRING='bacula 5.1.15'
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
752 ac_subst_vars='LTLIBOBJS
779 SHARED_CATALOG_TARGETS
849 TRAY_MONITOR_CPPFLAGS
858 INTL_LIBTOOL_SUFFIX_PREFIX
865 BUILD_INCLUDED_LIBINTL
896 HAVE_OPENBSD_OS_FALSE
900 HAVE_FREEBSD_OS_FALSE
912 INCLUDE_UNINSTALL_TARGET
913 INCLUDE_INSTALL_TARGET
917 LIBTOOL_UNINSTALL_TARGET
918 LIBTOOL_INSTALL_TARGET
919 DEFAULT_SHARED_OBJECT_TYPE
993 LIBBACFIND_LT_RELEASE
994 LIBBACCATS_LT_RELEASE
1039 program_transform_name
1050 ac_subst_files='MCOMMON'
1052 enable_option_checking
1063 with_libiconv_prefix
1065 with_included_gettext
1104 with_mon_dir_password
1105 with_mon_fd_password
1106 with_mon_sd_password
1128 ac_precious_vars='build_alias
1146 # Initialize some variables set by options.
1148 ac_init_version=false
1149 ac_unrecognized_opts=
1150 ac_unrecognized_sep=
1151 # The variables have the same names as the options, with
1152 # dashes changed to underlines.
1153 cache_file=/dev/null
1160 program_transform_name=s,x,x,
1168 # Installation directory options.
1169 # These are left unexpanded so users can "make install exec_prefix=/foo"
1170 # and all the variables that are supposed to be based on exec_prefix
1171 # by default will actually change.
1172 # Use braces instead of parens because sh, perl, etc. also accept them.
1173 # (The list follows the same order as the GNU Coding Standards.)
1174 bindir='${exec_prefix}/bin'
1175 sbindir='${exec_prefix}/sbin'
1176 libexecdir='${exec_prefix}/libexec'
1177 datarootdir='${prefix}/share'
1178 datadir='${datarootdir}'
1179 sysconfdir='${prefix}/etc'
1180 sharedstatedir='${prefix}/com'
1181 localstatedir='${prefix}/var'
1182 includedir='${prefix}/include'
1183 oldincludedir='/usr/include'
1184 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1185 infodir='${datarootdir}/info'
1190 libdir='${exec_prefix}/lib'
1191 localedir='${datarootdir}/locale'
1192 mandir='${datarootdir}/man'
1198 # If the previous option needs an argument, assign it.
1199 if test -n "$ac_prev"; then
1200 eval $ac_prev=\$ac_option
1206 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1211 # Accept the important Cygnus configure options, so we can diagnose typos.
1213 case $ac_dashdash$ac_option in
1217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1220 bindir=$ac_optarg ;;
1222 -build | --build | --buil | --bui | --bu)
1223 ac_prev=build_alias ;;
1224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1225 build_alias=$ac_optarg ;;
1227 -cache-file | --cache-file | --cache-fil | --cache-fi \
1228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1229 ac_prev=cache_file ;;
1230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1232 cache_file=$ac_optarg ;;
1234 --config-cache | -C)
1235 cache_file=config.cache ;;
1237 -datadir | --datadir | --datadi | --datad)
1239 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1240 datadir=$ac_optarg ;;
1242 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1243 | --dataroo | --dataro | --datar)
1244 ac_prev=datarootdir ;;
1245 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1246 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1247 datarootdir=$ac_optarg ;;
1249 -disable-* | --disable-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid feature name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "enable_$ac_useropt"
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1263 eval enable_$ac_useropt=no ;;
1265 -docdir | --docdir | --docdi | --doc | --do)
1267 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1268 docdir=$ac_optarg ;;
1270 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1272 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1273 dvidir=$ac_optarg ;;
1275 -enable-* | --enable-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid feature name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1284 "enable_$ac_useropt"
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval enable_$ac_useropt=\$ac_optarg ;;
1291 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1292 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1293 | --exec | --exe | --ex)
1294 ac_prev=exec_prefix ;;
1295 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1296 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1297 | --exec=* | --exe=* | --ex=*)
1298 exec_prefix=$ac_optarg ;;
1300 -gas | --gas | --ga | --g)
1301 # Obsolete; use --with-gas.
1304 -help | --help | --hel | --he | -h)
1305 ac_init_help=long ;;
1306 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1307 ac_init_help=recursive ;;
1308 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1309 ac_init_help=short ;;
1311 -host | --host | --hos | --ho)
1312 ac_prev=host_alias ;;
1313 -host=* | --host=* | --hos=* | --ho=*)
1314 host_alias=$ac_optarg ;;
1316 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1318 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1320 htmldir=$ac_optarg ;;
1322 -includedir | --includedir | --includedi | --included | --include \
1323 | --includ | --inclu | --incl | --inc)
1324 ac_prev=includedir ;;
1325 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1326 | --includ=* | --inclu=* | --incl=* | --inc=*)
1327 includedir=$ac_optarg ;;
1329 -infodir | --infodir | --infodi | --infod | --info | --inf)
1331 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1332 infodir=$ac_optarg ;;
1334 -libdir | --libdir | --libdi | --libd)
1336 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1337 libdir=$ac_optarg ;;
1339 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1340 | --libexe | --libex | --libe)
1341 ac_prev=libexecdir ;;
1342 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1343 | --libexe=* | --libex=* | --libe=*)
1344 libexecdir=$ac_optarg ;;
1346 -localedir | --localedir | --localedi | --localed | --locale)
1347 ac_prev=localedir ;;
1348 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1349 localedir=$ac_optarg ;;
1351 -localstatedir | --localstatedir | --localstatedi | --localstated \
1352 | --localstate | --localstat | --localsta | --localst | --locals)
1353 ac_prev=localstatedir ;;
1354 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1355 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1356 localstatedir=$ac_optarg ;;
1358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1361 mandir=$ac_optarg ;;
1363 -nfp | --nfp | --nf)
1364 # Obsolete; use --without-fp.
1367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1368 | --no-cr | --no-c | -n)
1371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1377 | --oldin | --oldi | --old | --ol | --o)
1378 ac_prev=oldincludedir ;;
1379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1382 oldincludedir=$ac_optarg ;;
1384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1387 prefix=$ac_optarg ;;
1389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1390 | --program-pre | --program-pr | --program-p)
1391 ac_prev=program_prefix ;;
1392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1394 program_prefix=$ac_optarg ;;
1396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1397 | --program-suf | --program-su | --program-s)
1398 ac_prev=program_suffix ;;
1399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1401 program_suffix=$ac_optarg ;;
1403 -program-transform-name | --program-transform-name \
1404 | --program-transform-nam | --program-transform-na \
1405 | --program-transform-n | --program-transform- \
1406 | --program-transform | --program-transfor \
1407 | --program-transfo | --program-transf \
1408 | --program-trans | --program-tran \
1409 | --progr-tra | --program-tr | --program-t)
1410 ac_prev=program_transform_name ;;
1411 -program-transform-name=* | --program-transform-name=* \
1412 | --program-transform-nam=* | --program-transform-na=* \
1413 | --program-transform-n=* | --program-transform-=* \
1414 | --program-transform=* | --program-transfor=* \
1415 | --program-transfo=* | --program-transf=* \
1416 | --program-trans=* | --program-tran=* \
1417 | --progr-tra=* | --program-tr=* | --program-t=*)
1418 program_transform_name=$ac_optarg ;;
1420 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1422 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1423 pdfdir=$ac_optarg ;;
1425 -psdir | --psdir | --psdi | --psd | --ps)
1427 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1431 | -silent | --silent | --silen | --sile | --sil)
1434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1438 sbindir=$ac_optarg ;;
1440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1442 | --sharedst | --shareds | --shared | --share | --shar \
1444 ac_prev=sharedstatedir ;;
1445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1449 sharedstatedir=$ac_optarg ;;
1451 -site | --site | --sit)
1453 -site=* | --site=* | --sit=*)
1456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1459 srcdir=$ac_optarg ;;
1461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1462 | --syscon | --sysco | --sysc | --sys | --sy)
1463 ac_prev=sysconfdir ;;
1464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1466 sysconfdir=$ac_optarg ;;
1468 -target | --target | --targe | --targ | --tar | --ta | --t)
1469 ac_prev=target_alias ;;
1470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1471 target_alias=$ac_optarg ;;
1473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1476 -version | --version | --versio | --versi | --vers | -V)
1477 ac_init_version=: ;;
1480 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1483 as_fn_error $? "invalid package name: $ac_useropt"
1484 ac_useropt_orig=$ac_useropt
1485 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1490 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1491 ac_unrecognized_sep=', ';;
1493 eval with_$ac_useropt=\$ac_optarg ;;
1495 -without-* | --without-*)
1496 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1497 # Reject names that are not valid shell variable names.
1498 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1499 as_fn_error $? "invalid package name: $ac_useropt"
1500 ac_useropt_orig=$ac_useropt
1501 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502 case $ac_user_opts in
1506 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1507 ac_unrecognized_sep=', ';;
1509 eval with_$ac_useropt=no ;;
1512 # Obsolete; use --with-x.
1515 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1516 | --x-incl | --x-inc | --x-in | --x-i)
1517 ac_prev=x_includes ;;
1518 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1519 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1520 x_includes=$ac_optarg ;;
1522 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1523 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1524 ac_prev=x_libraries ;;
1525 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1526 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1527 x_libraries=$ac_optarg ;;
1529 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1530 Try \`$0 --help' for more information"
1534 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1535 # Reject names that are not valid shell variable names.
1536 case $ac_envvar in #(
1537 '' | [0-9]* | *[!_$as_cr_alnum]* )
1538 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1540 eval $ac_envvar=\$ac_optarg
1541 export $ac_envvar ;;
1544 # FIXME: should be removed in autoconf 3.0.
1545 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1546 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1547 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1548 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1554 if test -n "$ac_prev"; then
1555 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1556 as_fn_error $? "missing argument to $ac_option"
1559 if test -n "$ac_unrecognized_opts"; then
1560 case $enable_option_checking in
1562 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1563 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1567 # Check all directory arguments for consistency.
1568 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1569 datadir sysconfdir sharedstatedir localstatedir includedir \
1570 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1571 libdir localedir mandir
1573 eval ac_val=\$$ac_var
1574 # Remove trailing slashes.
1577 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1578 eval $ac_var=\$ac_val;;
1580 # Be sure to have absolute directory names.
1582 [\\/$]* | ?:[\\/]* ) continue;;
1583 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1585 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1588 # There might be people who depend on the old broken behavior: `$host'
1589 # used to hold the argument of --host etc.
1590 # FIXME: To remove some day.
1593 target=$target_alias
1595 # FIXME: To remove some day.
1596 if test "x$host_alias" != x; then
1597 if test "x$build_alias" = x; then
1598 cross_compiling=maybe
1599 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1600 If a cross compiler is detected then cross compile mode will be used" >&2
1601 elif test "x$build_alias" != "x$host_alias"; then
1607 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1609 test "$silent" = yes && exec 6>/dev/null
1612 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1613 ac_ls_di=`ls -di .` &&
1614 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1615 as_fn_error $? "working directory cannot be determined"
1616 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1617 as_fn_error $? "pwd does not report name of working directory"
1620 # Find the source files, if location was not specified.
1621 if test -z "$srcdir"; then
1622 ac_srcdir_defaulted=yes
1623 # Try the directory containing this script, then the parent directory.
1624 ac_confdir=`$as_dirname -- "$as_myself" ||
1625 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1626 X"$as_myself" : 'X\(//\)[^/]' \| \
1627 X"$as_myself" : 'X\(//\)$' \| \
1628 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1629 $as_echo X"$as_myself" |
1630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1648 if test ! -r "$srcdir/$ac_unique_file"; then
1652 ac_srcdir_defaulted=no
1654 if test ! -r "$srcdir/$ac_unique_file"; then
1655 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1656 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1658 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1660 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1662 # When building in place, set srcdir=.
1663 if test "$ac_abs_confdir" = "$ac_pwd"; then
1666 # Remove unnecessary trailing slashes from srcdir.
1667 # Double slashes in file names in object file debugging info
1668 # mess up M-x gdb in Emacs.
1670 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1672 for ac_var in $ac_precious_vars; do
1673 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1674 eval ac_env_${ac_var}_value=\$${ac_var}
1675 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1676 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1680 # Report the --help message.
1682 if test "$ac_init_help" = "long"; then
1683 # Omit some internal or obsolete options to make the list less imposing.
1684 # This message is too long to be a string in the A/UX 3.1 sh.
1686 \`configure' configures bacula 5.1.15 to adapt to many kinds of systems.
1688 Usage: $0 [OPTION]... [VAR=VALUE]...
1690 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1691 VAR=VALUE. See below for descriptions of some of the useful variables.
1693 Defaults for the options are specified in brackets.
1696 -h, --help display this help and exit
1697 --help=short display options specific to this package
1698 --help=recursive display the short help of all the included packages
1699 -V, --version display version information and exit
1700 -q, --quiet, --silent do not print \`checking ...' messages
1701 --cache-file=FILE cache test results in FILE [disabled]
1702 -C, --config-cache alias for \`--cache-file=config.cache'
1703 -n, --no-create do not create output files
1704 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1706 Installation directories:
1707 --prefix=PREFIX install architecture-independent files in PREFIX
1708 [$ac_default_prefix]
1709 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1712 By default, \`make install' will install all the files in
1713 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1714 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1715 for instance \`--prefix=\$HOME'.
1717 For better control, use the options below.
1719 Fine tuning of the installation directories:
1720 --bindir=DIR user executables [EPREFIX/bin]
1721 --sbindir=DIR system admin executables [EPREFIX/sbin]
1722 --libexecdir=DIR program executables [EPREFIX/libexec]
1723 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1724 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1725 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1726 --libdir=DIR object code libraries [EPREFIX/lib]
1727 --includedir=DIR C header files [PREFIX/include]
1728 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1729 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1730 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1731 --infodir=DIR info documentation [DATAROOTDIR/info]
1732 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1733 --mandir=DIR man documentation [DATAROOTDIR/man]
1734 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1735 --htmldir=DIR html documentation [DOCDIR]
1736 --dvidir=DIR dvi documentation [DOCDIR]
1737 --pdfdir=DIR pdf documentation [DOCDIR]
1738 --psdir=DIR ps documentation [DOCDIR]
1744 --x-includes=DIR X include files are in DIR
1745 --x-libraries=DIR X library files are in DIR
1748 --build=BUILD configure for building on BUILD [guessed]
1749 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1753 if test -n "$ac_init_help"; then
1754 case $ac_init_help in
1755 short | recursive ) echo "Configuration of bacula 5.1.15:";;
1760 --disable-option-checking ignore unrecognized --enable/--with options
1761 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1762 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1763 --enable-libtool enable building using GNU libtool [default=yes]
1764 --enable-shared[=PKGS] build shared libraries [default=yes]
1765 --enable-static[=PKGS] build static libraries [default=no]
1766 --enable-fast-install[=PKGS]
1767 optimize for fast installation [default=yes]
1768 --disable-libtool-lock avoid locking (might break parallel builds)
1769 --enable-includes enable installing of include files [default=no]
1770 --disable-nls do not use Native Language Support
1771 --disable-rpath do not hardcode runtime library paths
1772 --enable-gnome enable build of bgnome-console GUI [default=no]
1773 --enable-bat enable build of bat Qt4 GUI [default=no]
1774 --enable-bwx-console enable build of wxWidgets console [default=no]
1775 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1777 --enable-smartalloc enable smartalloc debugging support [default=no]
1778 --enable-lockmgr enable lock manager support [default=no]
1779 --enable-static-tools enable static tape tools [default=no]
1780 --enable-static-fd enable static File daemon [default=no]
1781 --enable-static-sd enable static Storage daemon [default=no]
1782 --enable-static-dir enable static Director [default=no]
1783 --enable-static-cons enable static Console [default=no]
1784 --enable-client-only build client (File daemon) only [default=no]
1785 --enable-build-dird enable building of dird (Director) [default=yes]
1786 --enable-build-stored enable building of stored (Storage daemon)
1788 --disable-conio disable conio support [default=no]
1789 --enable-ipv6 enable ipv6 support [default=yes]
1790 --disable-readline disable readline support [default=yes]
1791 --enable-batch-insert enable the DB batch insert code [default=yes]
1792 --disable-largefile omit support for large files
1793 --disable-acl disable acl support [default=auto]
1794 --disable-xattr disable xattr support [default=auto]
1797 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1798 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1799 --with-pic try to use only PIC/non-PIC objects [default=use
1801 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1802 --with-gnu-ld assume the C compiler uses GNU ld default=no
1803 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1804 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1805 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1806 --without-libintl-prefix don't search for libintl in includedir and libdir
1807 --with-included-gettext use the GNU gettext library included here
1808 --with-readline[=DIR] specify readline library directory
1809 --with-python[=DIR] Include Python support. DIR is the Python base
1810 install directory, default is to search through a
1811 number of common places for the Python files.
1812 --with-tcp-wrappers[=DIR]
1813 enable tcpwrappers support
1814 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1815 --with-working-dir=PATH specify path of Bacula working directory
1816 --with-archivedir=PATH specify path of SD archive directory
1817 --with-basename=RESNAME specify base resource name for daemons
1818 --with-hostname=RESNAME specify host name for daemons
1819 --with-scriptdir=PATH specify path of Bacula scripts directory
1820 --with-bsrdir=PATH specify path of Bacula bsrs directory
1821 --with-logdir=PATH specify path of Bacula logs directory
1822 --with-plugindir=PATH specify path of Bacula plugins directory
1823 --with-dump-email=EMAIL dump email address
1824 --with-job-email=EMAIL job output email address
1825 --with-smtp-host=HOST SMTP mail host address
1826 --with-pid-dir=PATH specify location of Bacula pid files
1827 --with-subsys-dir=PATH specify location of Bacula subsys file
1828 --with-baseport=PORT specify base port address for daemons
1829 --with-dir-password=PASSWORD
1830 specify Director's password
1831 --with-fd-password=PASSWORD
1832 specify Client's password
1833 --with-sd-password=PASSWORD
1834 specify Storage daemon's password
1835 --with-mon-dir-password=PASSWORD
1836 specify Director's password used by the monitor
1837 --with-mon-fd-password=PASSWORD
1838 specify Client's password used by the monitor
1839 --with-mon-sd-password=PASSWORD
1840 specify Storage daemon's password used by the
1842 --with-db-name=DBNAME specify database name [default=bacula]
1843 --with-db-user=UNAME specify database user [default=bacula]
1844 --with-db-password=PWD specify database password [default=*none*]
1845 --with-db-port=DBPORT specify a database port [default=null]
1846 --with-dir-user=USER specify user for Director daemon
1847 --with-dir-group=GROUP specify group for Director daemon
1848 --with-sd-user=USER specify user for Storage daemon
1849 --with-sd-group=GROUP specify group for Storage daemon
1850 --with-fd-user=USER specify user for File daemon
1851 --with-fd-group=GROUP specify group for File daemon
1852 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1853 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1854 base install directory, [default=/usr/local/pgsql]
1855 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1856 directory, default is to search through a number of
1857 common places for the MySQL files.
1858 --with-embedded-mysql[=DIR]
1859 Include MySQL support. DIR is the MySQL base install
1860 directory, default is to search through a number of
1861 common places for the MySQL files.
1862 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1863 install directory, default is to search through a
1864 number of common places for the SQLite3 files.
1865 --with-x use the X Window System
1867 Some influential environment variables:
1868 CC C compiler command
1869 CFLAGS C compiler flags
1870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1871 nonstandard directory <lib dir>
1872 LIBS libraries to pass to the linker, e.g. -l<library>
1873 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1874 you have headers in a nonstandard directory <include dir>
1875 CXX C++ compiler command
1876 CXXFLAGS C++ compiler flags
1878 WXCONFIG wx-config command. On some systems, you must set it to
1879 wx-config-2.6 to use wxWidgets 2.6.
1880 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1881 CXXCPP C++ preprocessor
1882 XMKMF Path to xmkmf, Makefile generator for X Window System
1884 Use these variables to override the choices made by `configure' or to help
1885 it to find libraries and programs with nonstandard names/locations.
1887 Report bugs to the package provider.
1892 if test "$ac_init_help" = "recursive"; then
1893 # If there are subdirs, report their specific --help.
1894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1895 test -d "$ac_dir" ||
1896 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1904 # A ".." for each directory in $ac_dir_suffix.
1905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1906 case $ac_top_builddir_sub in
1907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1911 ac_abs_top_builddir=$ac_pwd
1912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1913 # for backward compatibility:
1914 ac_top_builddir=$ac_top_build_prefix
1917 .) # We are building in place.
1919 ac_top_srcdir=$ac_top_builddir_sub
1920 ac_abs_top_srcdir=$ac_pwd ;;
1921 [\\/]* | ?:[\\/]* ) # Absolute name.
1922 ac_srcdir=$srcdir$ac_dir_suffix;
1923 ac_top_srcdir=$srcdir
1924 ac_abs_top_srcdir=$srcdir ;;
1926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1927 ac_top_srcdir=$ac_top_build_prefix$srcdir
1928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1932 cd "$ac_dir" || { ac_status=$?; continue; }
1933 # Check for guested configure.
1934 if test -f "$ac_srcdir/configure.gnu"; then
1936 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1937 elif test -f "$ac_srcdir/configure"; then
1939 $SHELL "$ac_srcdir/configure" --help=recursive
1941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943 cd "$ac_pwd" || { ac_status=$?; break; }
1947 test -n "$ac_init_help" && exit $ac_status
1948 if $ac_init_version; then
1950 bacula configure 5.1.15
1951 generated by GNU Autoconf 2.68
1953 Copyright (C) 2010 Free Software Foundation, Inc.
1954 This configure script is free software; the Free Software Foundation
1955 gives unlimited permission to copy, distribute and modify it.
1960 ## ------------------------ ##
1961 ## Autoconf initialization. ##
1962 ## ------------------------ ##
1964 # ac_fn_c_try_compile LINENO
1965 # --------------------------
1966 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_compile ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext
1971 if { { ac_try="$ac_compile"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_compile") 2>conftest.err
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest.$ac_objext; then :
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_try_compile
2002 # ac_fn_cxx_try_compile LINENO
2003 # ----------------------------
2004 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_compile ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 rm -f conftest.$ac_objext
2009 if { { ac_try="$ac_compile"
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_compile") 2>conftest.err
2018 if test -s conftest.err; then
2019 grep -v '^ *+' conftest.err >conftest.er1
2020 cat conftest.er1 >&5
2021 mv -f conftest.er1 conftest.err
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && {
2025 test -z "$ac_cxx_werror_flag" ||
2026 test ! -s conftest.err
2027 } && test -s conftest.$ac_objext; then :
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 as_fn_set_status $ac_retval
2038 } # ac_fn_cxx_try_compile
2040 # ac_fn_c_try_cpp LINENO
2041 # ----------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_cpp conftest.$ac_ext"
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } > conftest.i && {
2062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2063 test ! -s conftest.err
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
2104 $as_test_x conftest$ac_exeext
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status $ac_retval
2121 } # ac_fn_c_try_link
2123 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists and can be compiled using the include files in
2126 # INCLUDES, setting the cache variable VAR accordingly.
2127 ac_fn_c_check_header_compile ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_header_compile
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if { { ac_try="$ac_link"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168 (eval "$ac_link") 2>&5
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172 { { case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_try") 2>&5
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; }; }; then :
2184 $as_echo "$as_me: program exited with status $ac_status" >&5
2185 $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 ac_retval=$ac_status
2190 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2211 #define $2 innocuous_$2
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $2 (); below.
2215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 <limits.h> exists even on freestanding compilers. */
2219 # include <limits.h>
2221 # include <assert.h>
2226 /* Override any GCC internal prototype to avoid an error.
2227 Use char because int might match the return type of a GCC
2228 builtin and then its argument prototype would still apply. */
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined __stub_$2 || defined __stub___$2
2248 if ac_fn_c_try_link "$LINENO"; then :
2253 rm -f core conftest.err conftest.$ac_objext \
2254 conftest$ac_exeext conftest.$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_func
2263 # ac_fn_cxx_try_cpp LINENO
2264 # ------------------------
2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_cpp ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if { { ac_try="$ac_cpp conftest.$ac_ext"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278 if test -s conftest.err; then
2279 grep -v '^ *+' conftest.err >conftest.er1
2280 cat conftest.er1 >&5
2281 mv -f conftest.er1 conftest.err
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } > conftest.i && {
2285 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2286 test ! -s conftest.err
2290 $as_echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 as_fn_set_status $ac_retval
2298 } # ac_fn_cxx_try_cpp
2300 # ac_fn_cxx_try_link LINENO
2301 # -------------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_cxx_try_link ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 rm -f conftest.$ac_objext conftest$ac_exeext
2307 if { { ac_try="$ac_link"
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_link") 2>conftest.err
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } && {
2323 test -z "$ac_cxx_werror_flag" ||
2324 test ! -s conftest.err
2325 } && test -s conftest$ac_exeext && {
2326 test "$cross_compiling" = yes ||
2327 $as_test_x conftest$ac_exeext
2331 $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2336 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2337 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2338 # interfere with the next link command; also delete a directory that is
2339 # left behind by Apple's compiler. We do this before executing the actions.
2340 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_cxx_try_link
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356 $as_echo_n "(cached) " >&6
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_c_check_type
2400 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2401 # -------------------------------------------------------
2402 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2403 # the include files in INCLUDES and setting the cache variable VAR
2405 ac_fn_c_check_header_mongrel ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 if eval \${$3+:} false; then :
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412 $as_echo_n "(cached) " >&6
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2418 # Is the header compilable?
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2420 $as_echo_n "checking $2 usability... " >&6; }
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_header_compiler=yes
2429 ac_header_compiler=no
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2433 $as_echo "$ac_header_compiler" >&6; }
2435 # Is the header present?
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2437 $as_echo_n "checking $2 presence... " >&6; }
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2443 ac_header_preproc=yes
2445 ac_header_preproc=no
2447 rm -f conftest.err conftest.i conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2449 $as_echo "$ac_header_preproc" >&6; }
2451 # So? What about this header?
2452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2455 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2461 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2463 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2465 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2467 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if eval \${$3+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 eval "$3=\$ac_header_compiler"
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485 } # ac_fn_c_check_header_mongrel
2487 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2488 # --------------------------------------------
2489 # Tries to find the compile-time value of EXPR in a program that includes
2490 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2492 ac_fn_c_compute_int ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 if test "$cross_compiling" = yes; then
2496 # Depending upon the size, compute the lo and hi bounds.
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2503 static int test_array [1 - 2 * !(($2) >= 0)];
2510 if ac_fn_c_try_compile "$LINENO"; then :
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527 ac_hi=$ac_mid; break
2529 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2530 if test $ac_lo -le $ac_mid; then
2534 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2545 static int test_array [1 - 2 * !(($2) < 0)];
2552 if ac_fn_c_try_compile "$LINENO"; then :
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2561 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 ac_lo=$ac_mid; break
2571 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2572 if test $ac_mid -le $ac_hi; then
2576 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 # Binary search between lo and hi bounds.
2587 while test "x$ac_lo" != "x$ac_hi"; do
2588 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2602 if ac_fn_c_try_compile "$LINENO"; then :
2605 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2617 static long int longval () { return $2; }
2618 static unsigned long int ulongval () { return $2; }
2625 FILE *f = fopen ("conftest.val", "w");
2630 long int i = longval ();
2633 fprintf (f, "%ld", i);
2637 unsigned long int i = ulongval ();
2640 fprintf (f, "%lu", i);
2642 /* Do not output a trailing newline, as this causes \r\n confusion
2643 on some platforms. */
2644 return ferror (f) || fclose (f) != 0;
2650 if ac_fn_c_try_run "$LINENO"; then :
2651 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2656 conftest.$ac_objext conftest.beam conftest.$ac_ext
2660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 as_fn_set_status $ac_retval
2663 } # ac_fn_c_compute_int
2665 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2666 # ----------------------------------------------------
2667 # Tries to find if the field MEMBER exists in type AGGR, after including
2668 # INCLUDES, setting cache variable VAR accordingly.
2669 ac_fn_c_check_member ()
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2673 $as_echo_n "checking for $2.$3... " >&6; }
2674 if eval \${$4+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2690 if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2700 if (sizeof ac_aggr.$3)
2706 if ac_fn_c_try_compile "$LINENO"; then :
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720 } # ac_fn_c_check_member
2722 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2723 # ---------------------------------------------
2724 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2726 ac_fn_c_check_decl ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 as_decl_name=`echo $2|sed 's/ *(.*//'`
2730 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2732 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2733 if eval \${$3+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2742 #ifndef $as_decl_name
2744 (void) $as_decl_use;
2746 (void) $as_decl_name;
2754 if ac_fn_c_try_compile "$LINENO"; then :
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766 } # ac_fn_c_check_decl
2768 # ac_fn_cxx_try_run LINENO
2769 # ------------------------
2770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2771 # that executables *can* be run.
2772 ac_fn_cxx_try_run ()
2774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775 if { { ac_try="$ac_link"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link") 2>&5
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2786 { { case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_try") 2>&5
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; }; then :
2798 $as_echo "$as_me: program exited with status $ac_status" >&5
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 ac_retval=$ac_status
2804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 as_fn_set_status $ac_retval
2808 } # ac_fn_cxx_try_run
2810 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2811 # ---------------------------------------------------------
2812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2813 # the include files in INCLUDES and setting the cache variable VAR
2815 ac_fn_cxx_check_header_mongrel ()
2817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818 if eval \${$3+:} false; then :
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2820 $as_echo_n "checking for $2... " >&6; }
2821 if eval \${$3+:} false; then :
2822 $as_echo_n "(cached) " >&6
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2826 $as_echo "$ac_res" >&6; }
2828 # Is the header compilable?
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2830 $as_echo_n "checking $2 usability... " >&6; }
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2836 if ac_fn_cxx_try_compile "$LINENO"; then :
2837 ac_header_compiler=yes
2839 ac_header_compiler=no
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2843 $as_echo "$ac_header_compiler" >&6; }
2845 # Is the header present?
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2847 $as_echo_n "checking $2 presence... " >&6; }
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2852 if ac_fn_cxx_try_cpp "$LINENO"; then :
2853 ac_header_preproc=yes
2855 ac_header_preproc=no
2857 rm -f conftest.err conftest.i conftest.$ac_ext
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2859 $as_echo "$ac_header_preproc" >&6; }
2861 # So? What about this header?
2862 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2883 $as_echo_n "checking for $2... " >&6; }
2884 if eval \${$3+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 eval "$3=\$ac_header_compiler"
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2891 $as_echo "$ac_res" >&6; }
2893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 } # ac_fn_cxx_check_header_mongrel
2896 cat >config.log <<_ACEOF
2897 This file contains any messages produced by compilers while
2898 running configure, to aid debugging if configure makes a mistake.
2900 It was created by bacula $as_me 5.1.15, which was
2901 generated by GNU Autoconf 2.68. Invocation command line was
2913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2920 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2922 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2923 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2925 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2926 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2927 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2928 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 $as_echo "PATH: $as_dir"
2953 # Keep a trace of the command line.
2954 # Strip out --no-create and --no-recursion so they do not pile up.
2955 # Strip out --silent because we don't want to record it for future runs.
2956 # Also quote any args containing shell meta-characters.
2957 # Make two passes to allow for proper duplicate-argument suppression.
2961 ac_must_keep_next=false
2967 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2969 | -silent | --silent | --silen | --sile | --sil)
2972 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2977 as_fn_append ac_configure_args1 " '$ac_arg'"
2978 if test $ac_must_keep_next = true; then
2979 ac_must_keep_next=false # Got value, back to normal.
2982 *=* | --config-cache | -C | -disable-* | --disable-* \
2983 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2984 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2985 | -with-* | --with-* | -without-* | --without-* | --x)
2986 case "$ac_configure_args0 " in
2987 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2990 -* ) ac_must_keep_next=true ;;
2993 as_fn_append ac_configure_args " '$ac_arg'"
2998 { ac_configure_args0=; unset ac_configure_args0;}
2999 { ac_configure_args1=; unset ac_configure_args1;}
3001 # When interrupted or exit'd, cleanup temporary files, and complete
3002 # config.log. We remove comments because anyway the quotes in there
3003 # would cause problems or look ugly.
3004 # WARNING: Use '\'' to represent an apostrophe within the trap.
3005 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3006 trap 'exit_status=$?
3007 # Save into config.log some information that might help in debugging.
3011 $as_echo "## ---------------- ##
3012 ## Cache variables. ##
3013 ## ---------------- ##"
3015 # The following way of writing the cache mishandles newlines in values,
3017 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3018 eval ac_val=\$$ac_var
3022 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3023 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3026 _ | IFS | as_nl) ;; #(
3027 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3028 *) { eval $ac_var=; unset $ac_var;} ;;
3033 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3034 *${as_nl}ac_space=\ *)
3036 "s/'\''/'\''\\\\'\'''\''/g;
3037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3047 $as_echo "## ----------------- ##
3048 ## Output variables. ##
3049 ## ----------------- ##"
3051 for ac_var in $ac_subst_vars
3053 eval ac_val=\$$ac_var
3055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3057 $as_echo "$ac_var='\''$ac_val'\''"
3061 if test -n "$ac_subst_files"; then
3062 $as_echo "## ------------------- ##
3063 ## File substitutions. ##
3064 ## ------------------- ##"
3066 for ac_var in $ac_subst_files
3068 eval ac_val=\$$ac_var
3070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3072 $as_echo "$ac_var='\''$ac_val'\''"
3077 if test -s confdefs.h; then
3078 $as_echo "## ----------- ##
3085 test "$ac_signal" != 0 &&
3086 $as_echo "$as_me: caught signal $ac_signal"
3087 $as_echo "$as_me: exit $exit_status"
3089 rm -f core *.core core.conftest.* &&
3090 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3093 for ac_signal in 1 2 13 15; do
3094 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3099 rm -f -r conftest* confdefs.h
3101 $as_echo "/* confdefs.h */" > confdefs.h
3103 # Predefined preprocessor variables.
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_NAME "$PACKAGE_NAME"
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_STRING "$PACKAGE_STRING"
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_URL "$PACKAGE_URL"
3130 # Let the site file select an alternate cache file if it wants to.
3131 # Prefer an explicitly selected file to automatically selected ones.
3134 if test -n "$CONFIG_SITE"; then
3135 # We do not want a PATH search for config.site.
3136 case $CONFIG_SITE in #((
3137 -*) ac_site_file1=./$CONFIG_SITE;;
3138 */*) ac_site_file1=$CONFIG_SITE;;
3139 *) ac_site_file1=./$CONFIG_SITE;;
3141 elif test "x$prefix" != xNONE; then
3142 ac_site_file1=$prefix/share/config.site
3143 ac_site_file2=$prefix/etc/config.site
3145 ac_site_file1=$ac_default_prefix/share/config.site
3146 ac_site_file2=$ac_default_prefix/etc/config.site
3148 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3150 test "x$ac_site_file" = xNONE && continue
3151 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3153 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3154 sed 's/^/| /' "$ac_site_file" >&5
3156 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error $? "failed to load site script $ac_site_file
3159 See \`config.log' for more details" "$LINENO" 5; }
3163 if test -r "$cache_file"; then
3164 # Some versions of bash will fail to source /dev/null (special files
3165 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3166 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3168 $as_echo "$as_me: loading cache $cache_file" >&6;}
3170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3171 *) . "./$cache_file";;
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3176 $as_echo "$as_me: creating cache $cache_file" >&6;}
3180 as_fn_append ac_header_list " stdlib.h"
3181 as_fn_append ac_header_list " unistd.h"
3182 as_fn_append ac_header_list " sys/param.h"
3183 # Check that the precious variables saved in the cache have kept the same
3185 ac_cache_corrupted=false
3186 for ac_var in $ac_precious_vars; do
3187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3188 eval ac_new_set=\$ac_env_${ac_var}_set
3189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3190 eval ac_new_val=\$ac_env_${ac_var}_value
3191 case $ac_old_set,$ac_new_set in
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3195 ac_cache_corrupted=: ;;
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3199 ac_cache_corrupted=: ;;
3202 if test "x$ac_old_val" != "x$ac_new_val"; then
3203 # differences in whitespace do not lead to failure.
3204 ac_old_val_w=`echo x $ac_old_val`
3205 ac_new_val_w=`echo x $ac_new_val`
3206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3209 ac_cache_corrupted=:
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3213 eval $ac_var=\$ac_old_val
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3221 # Pass precious variables to config.status.
3222 if test "$ac_new_set" = set; then
3224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3225 *) ac_arg=$ac_var=$ac_new_val ;;
3227 case " $ac_configure_args " in
3228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3233 if $ac_cache_corrupted; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240 ## -------------------- ##
3241 ## Main body of script. ##
3242 ## -------------------- ##
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3261 if test -f "$ac_dir/install-sh"; then
3263 ac_install_sh="$ac_aux_dir/install-sh -c"
3265 elif test -f "$ac_dir/install.sh"; then
3267 ac_install_sh="$ac_aux_dir/install.sh -c"
3269 elif test -f "$ac_dir/shtool"; then
3271 ac_install_sh="$ac_aux_dir/shtool install -c"
3275 if test -z "$ac_aux_dir"; then
3276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3279 # These three variables are undocumented and unsupported,
3280 # and are intended to be withdrawn in a future Autoconf release.
3281 # They can cause serious problems if a builder's source tree is in a directory
3282 # whose full name contains unusual characters.
3283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3288 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3291 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3292 WIN32MAINDIR=${BUILD_DIR}
3293 WIN32TOPDIR=${TOP_DIR}
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_path_TRUEPRG+:} false; then :
3305 $as_echo_n "(cached) " >&6
3309 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 TRUEPRG=$ac_cv_path_TRUEPRG
3331 if test -n "$TRUEPRG"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3333 $as_echo "$TRUEPRG" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3340 test -n "$TRUEPRG" && break
3342 test -n "$TRUEPRG" || TRUEPRG=":"
3344 for ac_prog in false
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_path_FALSEPRG+:} false; then :
3351 $as_echo_n "(cached) " >&6
3355 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 FALSEPRG=$ac_cv_path_FALSEPRG
3377 if test -n "$FALSEPRG"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3379 $as_echo "$FALSEPRG" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3386 test -n "$FALSEPRG" && break
3388 test -n "$FALSEPRG" || FALSEPRG=":"
3393 if test "x$BACULA" != x; then
3394 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3396 BACULA=${BACULA:-Bacula}
3397 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3399 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3400 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3402 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3403 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3404 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3406 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3407 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3408 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3411 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3412 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3414 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3415 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3418 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3420 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3423 echo "configuring for ${BACULA} $VERSION ($DATE)"
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$ac_cv_prog_CC"; then
3473 # Extract the first word of "gcc", so it can be a program name with args.
3474 set dummy gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_ac_ct_CC="gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 $as_echo "$ac_ct_CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3509 if test "x$ac_ct_CC" = x; then
3512 case $cross_compiling:$ac_tool_warned in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3524 if test -z "$CC"; then
3525 if test -n "$ac_tool_prefix"; then
3526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}cc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_CC="${ac_tool_prefix}cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3565 if test -z "$CC"; then
3566 # Extract the first word of "cc", so it can be a program name with args.
3567 set dummy cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3585 ac_prog_rejected=yes
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test $ac_prog_rejected = yes; then
3597 # We found a bogon in the path, so make sure we never use it.
3598 set dummy $ac_cv_prog_CC
3600 if test $# != 0; then
3601 # We chose a different compiler from the bogus one.
3602 # However, it has the same basename, so the bogon will be chosen
3603 # first if we set CC to just the basename; use the full file name.
3605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3621 if test -z "$CC"; then
3622 if test -n "$ac_tool_prefix"; then
3623 for ac_prog in cl.exe
3625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if ${ac_cv_prog_CC+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 if test -n "$CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$CC" && break
3665 if test -z "$CC"; then
3667 for ac_prog in cl.exe
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy $ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_ac_ct_CC="$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3699 $as_echo "$ac_ct_CC" >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$ac_ct_CC" && break
3709 if test "x$ac_ct_CC" = x; then
3712 case $cross_compiling:$ac_tool_warned in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "no acceptable C compiler found in \$PATH
3728 See \`config.log' for more details" "$LINENO" 5; }
3730 # Provide some information about the compiler.
3731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3734 for ac_option in --version -v -V -qversion; do
3735 { { ac_try="$ac_compiler $ac_option >&5"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3744 if test -s conftest.err; then
3746 ... rest of stderr output deleted ...
3747 10q' conftest.err >conftest.er1
3748 cat conftest.er1 >&5
3750 rm -f conftest.er1 conftest.err
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3772 $as_echo_n "checking whether the C compiler works... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779 for ac_file in $ac_files
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788 if { { ac_try="$ac_link_default"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3804 for ac_file in $ac_files ''
3806 test -f "$ac_file" || continue
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3811 # We found the default executable, but exeext='' is most
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3834 if test -z "$ac_file"; then :
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error 77 "C compiler cannot create executables
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3851 $as_echo "$ac_file" >&6; }
3852 ac_exeext=$ac_cv_exeext
3854 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3855 ac_clean_files=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3857 $as_echo_n "checking for suffix of executables... " >&6; }
3858 if { { ac_try="$ac_link"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3871 # work properly (i.e., refer to `conftest.exe'), while it won't with
3873 for ac_file in conftest.exe conftest conftest.*; do
3874 test -f "$ac_file" || continue
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3886 See \`config.log' for more details" "$LINENO" 5; }
3888 rm -f conftest conftest$ac_cv_exeext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3890 $as_echo "$ac_cv_exeext" >&6; }
3892 rm -f conftest.$ac_ext
3893 EXEEXT=$ac_cv_exeext
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3901 FILE *f = fopen ("conftest.out", "w");
3902 return ferror (f) || fclose (f) != 0;
3908 ac_clean_files="$ac_clean_files conftest.out"
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 if test "$cross_compiling" != yes; then
3914 { { ac_try="$ac_link"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3925 if { ac_try='./conftest$ac_cv_exeext'
3926 { { case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_try") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; }; then
3938 if test "$cross_compiling" = maybe; then
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot run C compiled programs.
3944 If you meant to cross compile, use \`--host'.
3945 See \`config.log' for more details" "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3953 ac_clean_files=$ac_clean_files_save
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if ${ac_cv_objext+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details" "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if ${ac_cv_c_compiler_gnu+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if ${ac_cv_prog_cc_g+:} false; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4114 if test "$GCC" = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if ${ac_cv_prog_cc_c89+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_prog_cc_c89=no
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 ac_cpp='$CXXCPP $CPPFLAGS'
4219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4222 if test -z "$CXX"; then
4223 if test -n "$CCC"; then
4226 if test -n "$ac_tool_prefix"; then
4227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_CXX+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -n "$CXX"; then
4237 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test -n "$CXX"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4259 $as_echo "$CXX" >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4266 test -n "$CXX" && break
4269 if test -z "$CXX"; then
4271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$ac_ct_CXX"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_CXX="$ac_prog"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4301 if test -n "$ac_ct_CXX"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4303 $as_echo "$ac_ct_CXX" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4310 test -n "$ac_ct_CXX" && break
4313 if test "x$ac_ct_CXX" = x; then
4316 case $cross_compiling:$ac_tool_warned in
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4320 ac_tool_warned=yes ;;
4328 # Provide some information about the compiler.
4329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4332 for ac_option in --version -v -V -qversion; do
4333 { { ac_try="$ac_compiler $ac_option >&5"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342 if test -s conftest.err; then
4344 ... rest of stderr output deleted ...
4345 10q' conftest.err >conftest.er1
4346 cat conftest.er1 >&5
4348 rm -f conftest.er1 conftest.err
4349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4354 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4355 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4356 $as_echo_n "(cached) " >&6
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4382 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4383 if test $ac_compiler_gnu = yes; then
4388 ac_test_CXXFLAGS=${CXXFLAGS+set}
4389 ac_save_CXXFLAGS=$CXXFLAGS
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4391 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4392 if ${ac_cv_prog_cxx_g+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4396 ac_cxx_werror_flag=yes
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4410 if ac_fn_cxx_try_compile "$LINENO"; then :
4411 ac_cv_prog_cxx_g=yes
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4425 if ac_fn_cxx_try_compile "$LINENO"; then :
4428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4441 if ac_fn_cxx_try_compile "$LINENO"; then :
4442 ac_cv_prog_cxx_g=yes
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4452 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4453 if test "$ac_test_CXXFLAGS" = set; then
4454 CXXFLAGS=$ac_save_CXXFLAGS
4455 elif test $ac_cv_prog_cxx_g = yes; then
4456 if test "$GXX" = yes; then
4462 if test "$GXX" = yes; then
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 if test "x$CC" != xcc; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4476 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4479 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4481 set dummy $CC; ac_cc=`$as_echo "$2" |
4482 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4483 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4497 # Make sure it works both with $CC and with simple cc.
4498 # We do the test twice because some compilers refuse to overwrite an
4499 # existing .o file with -o, though they will create one.
4500 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4502 if { { case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_try") 2>&5
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; } &&
4512 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_try") 2>&5
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; };
4523 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4524 if test "x$CC" != xcc; then
4525 # Test first that cc exists at all.
4526 if { ac_try='cc -c conftest.$ac_ext >&5'
4527 { { case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_try") 2>&5
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; }; then
4537 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4539 if { { case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; } &&
4549 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4554 $as_echo "$ac_try_echo"; } >&5
4555 (eval "$ac_try") 2>&5
4557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4558 test $ac_status = 0; };
4563 # cc exists but doesn't like -o.
4564 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4571 rm -f core conftest*
4574 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4581 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4592 # On Suns, sometimes $CPP names a directory.
4593 if test -n "$CPP" && test -d "$CPP"; then
4596 if test -z "$CPP"; then
4597 if ${ac_cv_prog_CPP+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 # Double quotes because CPP needs to be expanded
4601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4604 for ac_c_preproc_warn_flag in '' yes
4606 # Use a header file that comes with gcc, so configuring glibc
4607 # with a fresh cross-compiler works.
4608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4609 # <limits.h> exists even on freestanding compilers.
4610 # On the NeXT, cc -E runs the code through the compiler's parser,
4611 # not just through cpp. "Syntax error" is here to catch this case.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4615 # include <limits.h>
4617 # include <assert.h>
4621 if ac_fn_c_try_cpp "$LINENO"; then :
4624 # Broken: fails on valid input.
4627 rm -f conftest.err conftest.i conftest.$ac_ext
4629 # OK, works on sane cases. Now check whether nonexistent headers
4630 # can be detected and how.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <ac_nonexistent.h>
4635 if ac_fn_c_try_cpp "$LINENO"; then :
4636 # Broken: success on invalid input.
4639 # Passes both tests.
4643 rm -f conftest.err conftest.i conftest.$ac_ext
4646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4647 rm -f conftest.i conftest.err conftest.$ac_ext
4648 if $ac_preproc_ok; then :
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4661 $as_echo "$CPP" >&6; }
4663 for ac_c_preproc_warn_flag in '' yes
4665 # Use a header file that comes with gcc, so configuring glibc
4666 # with a fresh cross-compiler works.
4667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668 # <limits.h> exists even on freestanding compilers.
4669 # On the NeXT, cc -E runs the code through the compiler's parser,
4670 # not just through cpp. "Syntax error" is here to catch this case.
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 # include <limits.h>
4676 # include <assert.h>
4680 if ac_fn_c_try_cpp "$LINENO"; then :
4683 # Broken: fails on valid input.
4686 rm -f conftest.err conftest.i conftest.$ac_ext
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <ac_nonexistent.h>
4694 if ac_fn_c_try_cpp "$LINENO"; then :
4695 # Broken: success on invalid input.
4698 # Passes both tests.
4702 rm -f conftest.err conftest.i conftest.$ac_ext
4705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4706 rm -f conftest.i conftest.err conftest.$ac_ext
4707 if $ac_preproc_ok; then :
4710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4713 See \`config.log' for more details" "$LINENO" 5; }
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4725 if ${ac_cv_path_GREP+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -z "$GREP"; then
4729 ac_path_GREP_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in grep ggrep; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4740 # Check for GNU ac_path_GREP and select it if it is found.
4741 # Check for GNU $ac_path_GREP
4742 case `"$ac_path_GREP" --version 2>&1` in
4744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4747 $as_echo_n 0123456789 >"conftest.in"
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo 'GREP' >> "conftest.nl"
4754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_GREP="$ac_path_GREP"
4760 ac_path_GREP_max=$ac_count
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 $ac_path_GREP_found && break 3
4773 if test -z "$ac_cv_path_GREP"; then
4774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777 ac_cv_path_GREP=$GREP
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4782 $as_echo "$ac_cv_path_GREP" >&6; }
4783 GREP="$ac_cv_path_GREP"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4787 $as_echo_n "checking for egrep... " >&6; }
4788 if ${ac_cv_path_EGREP+:} false; then :
4789 $as_echo_n "(cached) " >&6
4791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4792 then ac_cv_path_EGREP="$GREP -E"
4794 if test -z "$EGREP"; then
4795 ac_path_EGREP_found=false
4796 # Loop through the user's path and test for each of PROGNAME-LIST
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4801 test -z "$as_dir" && as_dir=.
4802 for ac_prog in egrep; do
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4805 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4806 # Check for GNU ac_path_EGREP and select it if it is found.
4807 # Check for GNU $ac_path_EGREP
4808 case `"$ac_path_EGREP" --version 2>&1` in
4810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4813 $as_echo_n 0123456789 >"conftest.in"
4816 cat "conftest.in" "conftest.in" >"conftest.tmp"
4817 mv "conftest.tmp" "conftest.in"
4818 cp "conftest.in" "conftest.nl"
4819 $as_echo 'EGREP' >> "conftest.nl"
4820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822 as_fn_arith $ac_count + 1 && ac_count=$as_val
4823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4824 # Best one so far, save it but keep looking for a better one
4825 ac_cv_path_EGREP="$ac_path_EGREP"
4826 ac_path_EGREP_max=$ac_count
4828 # 10*(2^10) chars as input seems more than enough
4829 test $ac_count -gt 10 && break
4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 $ac_path_EGREP_found && break 3
4839 if test -z "$ac_cv_path_EGREP"; then
4840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843 ac_cv_path_EGREP=$EGREP
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4849 $as_echo "$ac_cv_path_EGREP" >&6; }
4850 EGREP="$ac_cv_path_EGREP"
4853 if test $ac_cv_c_compiler_gnu = yes; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4855 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4856 if ${ac_cv_prog_gcc_traditional+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 ac_pattern="Autoconf.*'x'"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4867 ac_cv_prog_gcc_traditional=yes
4869 ac_cv_prog_gcc_traditional=no
4874 if test $ac_cv_prog_gcc_traditional = no; then
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4882 ac_cv_prog_gcc_traditional=yes
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4889 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4890 if test $ac_cv_prog_gcc_traditional = yes; then
4891 CC="$CC -traditional"
4895 BASECC=`basename $CC`
4897 if test "x$BASECC" = xgcc; then
4898 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4902 # Extract the first word of "$CXX", so it can be a program name with args.
4903 set dummy $CXX; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_CXX+:} false; then :
4907 $as_echo_n "(cached) " >&6
4911 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4934 if test -n "$CXX"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4936 $as_echo "$CXX" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 if test ! -e $CXX; then
4944 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 # Reject install programs that cannot install multiple files.
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4963 if test -z "$INSTALL"; then
4964 if ${ac_cv_path_install+:} false; then :
4965 $as_echo_n "(cached) " >&6
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 # Account for people who put trailing slashes in PATH elements.
4973 case $as_dir/ in #((
4974 ./ | .// | /[cC]/* | \
4975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4979 # OSF1 and SCO ODT 3.0 have their own names for install.
4980 # Don't use installbsd from OSF since it installs stuff as root
4982 for ac_prog in ginstall scoinst install; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4985 if test $ac_prog = install &&
4986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4987 # AIX install. It has an incompatible calling convention.
4989 elif test $ac_prog = install &&
4990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4991 # program-specific install script used by HP pwplus--don't use.
4994 rm -rf conftest.one conftest.two conftest.dir
4995 echo one > conftest.one
4996 echo two > conftest.two
4998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4999 test -s conftest.one && test -s conftest.two &&
5000 test -s conftest.dir/conftest.one &&
5001 test -s conftest.dir/conftest.two
5003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5016 rm -rf conftest.one conftest.two conftest.dir
5019 if test "${ac_cv_path_install+set}" = set; then
5020 INSTALL=$ac_cv_path_install
5022 # As a last resort, use the slow shell script. Don't cache a
5023 # value for INSTALL within a source directory, because that will
5024 # break other packages using the cache if that directory is
5025 # removed, or if the value is a relative name.
5026 INSTALL=$ac_install_sh
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5030 $as_echo "$INSTALL" >&6; }
5032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5033 # It thinks the first close brace ends the variable substitution.
5034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5040 # Extract the first word of "mv", so it can be a program name with args.
5041 set dummy mv; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_MV+:} false; then :
5045 $as_echo_n "(cached) " >&6
5049 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5072 if test -n "$MV"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5074 $as_echo "$MV" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 # Extract the first word of "rm", so it can be a program name with args.
5082 set dummy rm; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_REMOVE+:} false; then :
5086 $as_echo_n "(cached) " >&6
5090 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5112 REMOVE=$ac_cv_path_REMOVE
5113 if test -n "$REMOVE"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5115 $as_echo "$REMOVE" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 # Extract the first word of "cp", so it can be a program name with args.
5123 set dummy cp; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_CP+:} false; then :
5127 $as_echo_n "(cached) " >&6
5131 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5154 if test -n "$CP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5156 $as_echo "$CP" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 # Extract the first word of "sed", so it can be a program name with args.
5164 set dummy sed; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_SED+:} false; then :
5168 $as_echo_n "(cached) " >&6
5172 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5195 if test -n "$SED"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5197 $as_echo "$SED" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 # Extract the first word of "echo", so it can be a program name with args.
5205 set dummy echo; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_ECHO+:} false; then :
5209 $as_echo_n "(cached) " >&6
5213 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5235 ECHO=$ac_cv_path_ECHO
5236 if test -n "$ECHO"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5238 $as_echo "$ECHO" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 # Extract the first word of "cmp", so it can be a program name with args.
5246 set dummy cmp; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_CMP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5254 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5277 if test -n "$CMP"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5279 $as_echo "$CMP" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 # Extract the first word of "tbl", so it can be a program name with args.
5287 set dummy tbl; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_TBL+:} false; then :
5291 $as_echo_n "(cached) " >&6
5295 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5318 if test -n "$TBL"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5320 $as_echo "$TBL" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 # Extract the first word of "ar", so it can be a program name with args.
5328 set dummy ar; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_AR+:} false; then :
5332 $as_echo_n "(cached) " >&6
5336 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5359 if test -n "$AR"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 # Extract the first word of "openssl", so it can be a program name with args.
5369 set dummy openssl; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_OPENSSL+:} false; then :
5373 $as_echo_n "(cached) " >&6
5377 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5399 OPENSSL=$ac_cv_path_OPENSSL
5400 if test -n "$OPENSSL"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5402 $as_echo "$OPENSSL" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 # Extract the first word of "mtx", so it can be a program name with args.
5410 set dummy mtx; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_MTX+:} false; then :
5414 $as_echo_n "(cached) " >&6
5418 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5441 if test -n "$MTX"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5443 $as_echo "$MTX" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 # Extract the first word of "dd", so it can be a program name with args.
5451 set dummy dd; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DD+:} false; then :
5455 $as_echo_n "(cached) " >&6
5459 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5482 if test -n "$DD"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5484 $as_echo "$DD" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 # Extract the first word of "mkisofs", so it can be a program name with args.
5492 set dummy mkisofs; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_MKISOFS+:} false; then :
5496 $as_echo_n "(cached) " >&6
5500 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5522 MKISOFS=$ac_cv_path_MKISOFS
5523 if test -n "$MKISOFS"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5525 $as_echo "$MKISOFS" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 # Extract the first word of "python", so it can be a program name with args.
5533 set dummy python; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PYTHON+:} false; then :
5537 $as_echo_n "(cached) " >&6
5541 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5563 PYTHON=$ac_cv_path_PYTHON
5564 if test -n "$PYTHON"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5566 $as_echo "$PYTHON" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 # Extract the first word of "growisofs", so it can be a program name with args.
5574 set dummy growisofs; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_GROWISOFS+:} false; then :
5578 $as_echo_n "(cached) " >&6
5582 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5604 GROWISOFS=$ac_cv_path_GROWISOFS
5605 if test -n "$GROWISOFS"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5607 $as_echo "$GROWISOFS" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5614 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5615 set dummy dvd+rw-mediainfo; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 case $DVDRWMEDIAINFO in
5623 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5645 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5646 if test -n "$DVDRWMEDIAINFO"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5648 $as_echo "$DVDRWMEDIAINFO" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5656 set dummy dvd+rw-format; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5660 $as_echo_n "(cached) " >&6
5662 case $DVDRWFORMAT in
5664 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5686 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5687 if test -n "$DVDRWFORMAT"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5689 $as_echo "$DVDRWFORMAT" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 # Extract the first word of "pkg-config", so it can be a program name with args.
5697 set dummy pkg-config; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PKGCONFIG+:} false; then :
5701 $as_echo_n "(cached) " >&6
5705 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5727 PKGCONFIG=$ac_cv_path_PKGCONFIG
5728 if test -n "$PKGCONFIG"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5730 $as_echo "$PKGCONFIG" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 # Extract the first word of "qmake", so it can be a program name with args.
5738 set dummy qmake; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_path_QMAKE+:} false; then :
5742 $as_echo_n "(cached) " >&6
5746 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5768 QMAKE=$ac_cv_path_QMAKE
5769 if test -n "$QMAKE"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5771 $as_echo "$QMAKE" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5778 # Extract the first word of "gmake", so it can be a program name with args.
5779 set dummy gmake; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_GMAKE+:} false; then :
5783 $as_echo_n "(cached) " >&6
5787 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5809 GMAKE=$ac_cv_path_GMAKE
5810 if test -n "$GMAKE"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5812 $as_echo "$GMAKE" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5820 if test "x$WXCONFIG" = x; then
5823 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5824 set dummy ${WXCONFIG}; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_path_WXCONFIG+:} false; then :
5828 $as_echo_n "(cached) " >&6
5832 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5854 WXCONFIG=$ac_cv_path_WXCONFIG
5855 if test -n "$WXCONFIG"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5857 $as_echo "$WXCONFIG" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5865 # Extract the first word of "cdrecord", so it can be a program name with args.
5866 set dummy cdrecord; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_CDRECORD+:} false; then :
5870 $as_echo_n "(cached) " >&6
5874 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5896 CDRECORD=$ac_cv_path_CDRECORD
5897 if test -n "$CDRECORD"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5899 $as_echo "$CDRECORD" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5906 # Extract the first word of "pidof", so it can be a program name with args.
5907 set dummy pidof; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_path_PIDOF+:} false; then :
5911 $as_echo_n "(cached) " >&6
5915 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5937 PIDOF=$ac_cv_path_PIDOF
5938 if test -n "$PIDOF"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5940 $as_echo "$PIDOF" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5947 for ac_prog in gawk mawk nawk awk
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_AWK+:} false; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -n "$AWK"; then
5957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_AWK="$ac_prog"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 if test -n "$AWK"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5979 $as_echo "$AWK" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5986 test -n "$AWK" && break
5989 # Some AWK programs fail, so test it and warn the user
5990 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5991 { if ((prog == $2) || (("(" prog ")") == $2) ||
5992 (("" prog "") == $2) ||
5993 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5995 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5996 The regex engine of $AWK is too broken to be used you
5997 might want to install GNU AWK.
5998 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
6001 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6002 set dummy $THE_AWK; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_path_AWK+:} false; then :
6006 $as_echo_n "(cached) " >&6
6010 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6033 if test -n "$AWK"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6035 $as_echo "$AWK" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6044 test -n "$ARFLAG" || ARFLAGS="cr"
6056 # Check whether --enable-libtool was given.
6057 if test "${enable_libtool+set}" = set; then :
6058 enableval=$enable_libtool;
6059 if test x$enableval = xno; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6074 macro_version='2.2.6'
6075 macro_revision='1.3012'
6089 ltmain="$ac_aux_dir/ltmain.sh"
6091 # Make sure we can run config.sub.
6092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6093 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6096 $as_echo_n "checking build system type... " >&6; }
6097 if ${ac_cv_build+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 ac_build_alias=$build_alias
6101 test "x$ac_build_alias" = x &&
6102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6103 test "x$ac_build_alias" = x &&
6104 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6110 $as_echo "$ac_cv_build" >&6; }
6111 case $ac_cv_build in
6113 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6116 ac_save_IFS=$IFS; IFS='-'
6122 # Remember, the first character of IFS is used to create $*,
6123 # except with old shells:
6126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6130 $as_echo_n "checking host system type... " >&6; }
6131 if ${ac_cv_host+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 if test "x$host_alias" = x; then
6135 ac_cv_host=$ac_cv_build
6137 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6143 $as_echo "$ac_cv_host" >&6; }
6146 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6149 ac_save_IFS=$IFS; IFS='-'
6155 # Remember, the first character of IFS is used to create $*,
6156 # except with old shells:
6159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6163 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6164 if ${ac_cv_path_SED+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6168 for ac_i in 1 2 3 4 5 6 7; do
6169 ac_script="$ac_script$as_nl$ac_script"
6171 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6172 { ac_script=; unset ac_script;}
6173 if test -z "$SED"; then
6174 ac_path_SED_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in sed gsed; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6184 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6185 # Check for GNU ac_path_SED and select it if it is found.
6186 # Check for GNU $ac_path_SED
6187 case `"$ac_path_SED" --version 2>&1` in
6189 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6192 $as_echo_n 0123456789 >"conftest.in"
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo '' >> "conftest.nl"
6199 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 as_fn_arith $ac_count + 1 && ac_count=$as_val
6202 if test $ac_count -gt ${ac_path_SED_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_SED="$ac_path_SED"
6205 ac_path_SED_max=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6213 $ac_path_SED_found && break 3
6218 if test -z "$ac_cv_path_SED"; then
6219 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6227 $as_echo "$ac_cv_path_SED" >&6; }
6228 SED="$ac_cv_path_SED"
6231 test -z "$SED" && SED=sed
6232 Xsed="$SED -e 1s/^X//"
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6245 $as_echo_n "checking for fgrep... " >&6; }
6246 if ${ac_cv_path_FGREP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6250 then ac_cv_path_FGREP="$GREP -F"
6252 if test -z "$FGREP"; then
6253 ac_path_FGREP_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 test -z "$as_dir" && as_dir=.
6260 for ac_prog in fgrep; do
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6263 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6264 # Check for GNU ac_path_FGREP and select it if it is found.
6265 # Check for GNU $ac_path_FGREP
6266 case `"$ac_path_FGREP" --version 2>&1` in
6268 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6271 $as_echo_n 0123456789 >"conftest.in"
6274 cat "conftest.in" "conftest.in" >"conftest.tmp"
6275 mv "conftest.tmp" "conftest.in"
6276 cp "conftest.in" "conftest.nl"
6277 $as_echo 'FGREP' >> "conftest.nl"
6278 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6280 as_fn_arith $ac_count + 1 && ac_count=$as_val
6281 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6282 # Best one so far, save it but keep looking for a better one
6283 ac_cv_path_FGREP="$ac_path_FGREP"
6284 ac_path_FGREP_max=$ac_count
6286 # 10*(2^10) chars as input seems more than enough
6287 test $ac_count -gt 10 && break
6289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6292 $ac_path_FGREP_found && break 3
6297 if test -z "$ac_cv_path_FGREP"; then
6298 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6301 ac_cv_path_FGREP=$FGREP
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6307 $as_echo "$ac_cv_path_FGREP" >&6; }
6308 FGREP="$ac_cv_path_FGREP"
6311 test -z "$GREP" && GREP=grep
6331 # Check whether --with-gnu-ld was given.
6332 if test "${with_gnu_ld+set}" = set; then :
6333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6339 if test "$GCC" = yes; then
6340 # Check if gcc -print-prog-name=ld gives a path.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6342 $as_echo_n "checking for ld used by $CC... " >&6; }
6345 # gcc leaves a trailing carriage return which upsets mingw
6346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6351 # Accept absolute paths.
6353 re_direlt='/[^/][^/]*/\.\./'
6354 # Canonicalize the pathname of ld
6355 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6356 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6357 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6359 test -z "$LD" && LD="$ac_prog"
6362 # If it fails, then pretend we aren't using GCC.
6366 # If it is relative, then search for the first ld in PATH.
6370 elif test "$with_gnu_ld" = yes; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6372 $as_echo_n "checking for GNU ld... " >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6375 $as_echo_n "checking for non-GNU ld... " >&6; }
6377 if ${lt_cv_path_LD+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -z "$LD"; then
6381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6382 for ac_dir in $PATH; do
6384 test -z "$ac_dir" && ac_dir=.
6385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6386 lt_cv_path_LD="$ac_dir/$ac_prog"
6387 # Check to see if the program is GNU ld. I'd rather use --version,
6388 # but apparently some variants of GNU ld only accept -v.
6389 # Break only if it was the GNU/non-GNU ld that we prefer.
6390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6391 *GNU* | *'with BFD'*)
6392 test "$with_gnu_ld" != no && break
6395 test "$with_gnu_ld" != yes && break
6402 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6407 if test -n "$LD"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6409 $as_echo "$LD" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6416 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6417 if ${lt_cv_prog_gnu_ld+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6421 case `$LD -v 2>&1 </dev/null` in
6422 *GNU* | *'with BFD'*)
6423 lt_cv_prog_gnu_ld=yes
6426 lt_cv_prog_gnu_ld=no
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6431 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6432 with_gnu_ld=$lt_cv_prog_gnu_ld
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6443 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6444 if ${lt_cv_path_NM+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$NM"; then
6448 # Let the user override the test.
6451 lt_nm_to_check="${ac_tool_prefix}nm"
6452 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6453 lt_nm_to_check="$lt_nm_to_check nm"
6455 for lt_tmp_nm in $lt_nm_to_check; do
6456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6457 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6459 test -z "$ac_dir" && ac_dir=.
6460 tmp_nm="$ac_dir/$lt_tmp_nm"
6461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6462 # Check to see if the nm accepts a BSD-compat flag.
6463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6464 # nm: unknown option "B" ignored
6465 # Tru64's nm complains that /dev/null is an invalid object file
6466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6467 */dev/null* | *'Invalid file or object type'*)
6468 lt_cv_path_NM="$tmp_nm -B"
6472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6474 lt_cv_path_NM="$tmp_nm -p"
6478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6479 continue # so that we can try to find one that supports BSD flags
6488 : ${lt_cv_path_NM=no}
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6492 $as_echo "$lt_cv_path_NM" >&6; }
6493 if test "$lt_cv_path_NM" != "no"; then
6496 # Didn't find any BSD compatible name lister, look for dumpbin.
6497 if test -n "$ac_tool_prefix"; then
6498 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_DUMPBIN+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$DUMPBIN"; then
6508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 DUMPBIN=$ac_cv_prog_DUMPBIN
6528 if test -n "$DUMPBIN"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6530 $as_echo "$DUMPBIN" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$DUMPBIN" && break
6540 if test -z "$DUMPBIN"; then
6541 ac_ct_DUMPBIN=$DUMPBIN
6542 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6544 # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$ac_ct_DUMPBIN"; then
6552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6572 if test -n "$ac_ct_DUMPBIN"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6574 $as_echo "$ac_ct_DUMPBIN" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6581 test -n "$ac_ct_DUMPBIN" && break
6584 if test "x$ac_ct_DUMPBIN" = x; then
6587 case $cross_compiling:$ac_tool_warned in
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6593 DUMPBIN=$ac_ct_DUMPBIN
6598 if test "$DUMPBIN" != ":"; then
6602 test -z "$NM" && NM=nm
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6610 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6611 if ${lt_cv_nm_interface+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 lt_cv_nm_interface="BSD nm"
6615 echo "int some_variable = 0;" > conftest.$ac_ext
6616 (eval echo "\"\$as_me:6616: $ac_compile\"" >&5)
6617 (eval "$ac_compile" 2>conftest.err)
6618 cat conftest.err >&5
6619 (eval echo "\"\$as_me:6619: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6620 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6621 cat conftest.err >&5
6622 (eval echo "\"\$as_me:6622: output\"" >&5)
6623 cat conftest.out >&5
6624 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6625 lt_cv_nm_interface="MS dumpbin"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6630 $as_echo "$lt_cv_nm_interface" >&6; }
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6633 $as_echo_n "checking whether ln -s works... " >&6; }
6635 if test "$LN_S" = "ln -s"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6640 $as_echo "no, using $LN_S" >&6; }
6643 # find the maximum length of command line arguments
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6645 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6646 if ${lt_cv_sys_max_cmd_len+:} false; then :
6647 $as_echo_n "(cached) " >&6
6654 # On DJGPP, this test can blow up pretty badly due to problems in libc
6655 # (any single argument exceeding 2000 bytes causes a buffer overrun
6656 # during glob expansion). Even if it were fixed, the result of this
6657 # check would be larger than it should be.
6658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6662 # Under GNU Hurd, this test is not required because there is
6663 # no limit to the length of command line arguments.
6664 # Libtool will interpret -1 as no limit whatsoever
6665 lt_cv_sys_max_cmd_len=-1;
6668 cygwin* | mingw* | cegcc*)
6669 # On Win9x/ME, this test blows up -- it succeeds, but takes
6670 # about 5 minutes as the teststring grows exponentially.
6671 # Worse, since 9x/ME are not pre-emptively multitasking,
6672 # you end up with a "frozen" computer, even though with patience
6673 # the test eventually succeeds (with a max line length of 256k).
6674 # Instead, let's just punt: use the minimum linelength reported by
6675 # all of the supported platforms: 8192 (on NT/2K/XP).
6676 lt_cv_sys_max_cmd_len=8192;
6680 # On AmigaOS with pdksh, this test takes hours, literally.
6681 # So we just punt and use a minimum line length of 8192.
6682 lt_cv_sys_max_cmd_len=8192;
6685 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6686 # This has been around since 386BSD, at least. Likely further.
6687 if test -x /sbin/sysctl; then
6688 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6689 elif test -x /usr/sbin/sysctl; then
6690 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6692 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6694 # And add a safety zone
6695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6700 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6701 lt_cv_sys_max_cmd_len=196608
6705 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6706 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6707 # nice to cause kernel panics so lets avoid the loop below.
6708 # First set a reasonable default.
6709 lt_cv_sys_max_cmd_len=16384
6711 if test -x /sbin/sysconfig; then
6712 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6713 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6718 lt_cv_sys_max_cmd_len=102400
6720 sysv5* | sco5v6* | sysv4.2uw2*)
6721 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6722 if test -n "$kargmax"; then
6723 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6725 lt_cv_sys_max_cmd_len=32768
6729 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6730 if test -n "$lt_cv_sys_max_cmd_len"; then
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6734 # Make teststring a little bigger before we do anything with it.
6735 # a 1K string should be a reasonable start.
6736 for i in 1 2 3 4 5 6 7 8 ; do
6737 teststring=$teststring$teststring
6739 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6740 # If test is not a shell built-in, we'll probably end up computing a
6741 # maximum length that is only half of the actual maximum length, but
6743 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6744 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6745 test $i != 17 # 1/2 MB should be enough
6748 teststring=$teststring$teststring
6750 # Only check the string length outside the loop.
6751 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6753 # Add a significant safety factor because C++ compilers can tack on
6754 # massive amounts of additional arguments before passing them to the
6755 # linker. It appears as though 1/2 is a usable value.
6756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6763 if test -n $lt_cv_sys_max_cmd_len ; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6765 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6768 $as_echo "none" >&6; }
6770 max_cmd_len=$lt_cv_sys_max_cmd_len
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6782 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6783 # Try some XSI features
6786 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6788 && eval 'test $(( 1 + 1 )) -eq 2 \
6789 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6792 $as_echo "$xsi_shell" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6796 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6798 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6800 && lt_shell_append=yes
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6802 $as_echo "$lt_shell_append" >&6; }
6805 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6815 # test EBCDIC or ASCII
6816 case `echo X|tr X '\101'` in
6817 A) # ASCII based system
6818 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6819 lt_SP2NL='tr \040 \012'
6820 lt_NL2SP='tr \015\012 \040\040'
6822 *) # EBCDIC based system
6823 lt_SP2NL='tr \100 \n'
6824 lt_NL2SP='tr \r\n \100\100'
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6837 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6838 if ${lt_cv_ld_reload_flag+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 lt_cv_ld_reload_flag='-r'
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6844 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6845 reload_flag=$lt_cv_ld_reload_flag
6846 case $reload_flag in
6848 *) reload_flag=" $reload_flag" ;;
6850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6853 if test "$GCC" = yes; then
6854 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_OBJDUMP+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 if test -n "$OBJDUMP"; then
6878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 OBJDUMP=$ac_cv_prog_OBJDUMP
6898 if test -n "$OBJDUMP"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6900 $as_echo "$OBJDUMP" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6908 if test -z "$ac_cv_prog_OBJDUMP"; then
6909 ac_ct_OBJDUMP=$OBJDUMP
6910 # Extract the first word of "objdump", so it can be a program name with args.
6911 set dummy objdump; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6915 $as_echo_n "(cached) " >&6
6917 if test -n "$ac_ct_OBJDUMP"; then
6918 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6938 if test -n "$ac_ct_OBJDUMP"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6940 $as_echo "$ac_ct_OBJDUMP" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$ac_ct_OBJDUMP" = x; then
6949 case $cross_compiling:$ac_tool_warned in
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6955 OBJDUMP=$ac_ct_OBJDUMP
6958 OBJDUMP="$ac_cv_prog_OBJDUMP"
6961 test -z "$OBJDUMP" && OBJDUMP=objdump
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6972 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6973 if ${lt_cv_deplibs_check_method+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 lt_cv_file_magic_cmd='$MAGIC_CMD'
6977 lt_cv_file_magic_test_file=
6978 lt_cv_deplibs_check_method='unknown'
6979 # Need to set the preceding variable on all platforms that support
6980 # interlibrary dependencies.
6981 # 'none' -- dependencies not supported.
6982 # `unknown' -- same as none, but documents that we really don't know.
6983 # 'pass_all' -- all dependencies passed with no checks.
6984 # 'test_compile' -- check by making test program.
6985 # 'file_magic [[regex]]' -- check by looking for files in library path
6986 # which responds to the $file_magic_cmd with a given extended regex.
6987 # If you have `file' or equivalent on your system and you're not sure
6988 # whether `pass_all' will *always* work, you probably want this one.
6992 lt_cv_deplibs_check_method=pass_all
6996 lt_cv_deplibs_check_method=pass_all
7000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7001 lt_cv_file_magic_cmd='/usr/bin/file -L'
7002 lt_cv_file_magic_test_file=/shlib/libc.so
7006 # func_win32_libid is a shell function defined in ltmain.sh
7007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7008 lt_cv_file_magic_cmd='func_win32_libid'
7012 # Base MSYS/MinGW do not provide the 'file' command needed by
7013 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7014 # unless we find 'file', for example because we are cross-compiling.
7015 if ( file / ) >/dev/null 2>&1; then
7016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7017 lt_cv_file_magic_cmd='func_win32_libid'
7019 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7020 lt_cv_file_magic_cmd='$OBJDUMP -f'
7025 # use the weaker test based on 'objdump'. See mingw*.
7026 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7027 lt_cv_file_magic_cmd='$OBJDUMP -f'
7030 darwin* | rhapsody*)
7031 lt_cv_deplibs_check_method=pass_all
7034 freebsd* | dragonfly*)
7035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7038 # Not sure whether the presence of OpenBSD here was a mistake.
7039 # Let's accept both of them until this is cleared up.
7040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7041 lt_cv_file_magic_cmd=/usr/bin/file
7042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7046 lt_cv_deplibs_check_method=pass_all
7051 lt_cv_deplibs_check_method=pass_all
7054 hpux10.20* | hpux11*)
7055 lt_cv_file_magic_cmd=/usr/bin/file
7058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7077 irix5* | irix6* | nonstopux*)
7079 *-32|*"-32 ") libmagic=32-bit;;
7080 *-n32|*"-n32 ") libmagic=N32;;
7081 *-64|*"-64 ") libmagic=64-bit;;
7082 *) libmagic=never-match;;
7084 lt_cv_deplibs_check_method=pass_all
7087 # This must be Linux ELF.
7088 linux* | k*bsd*-gnu)
7089 lt_cv_deplibs_check_method=pass_all
7093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7102 lt_cv_file_magic_cmd=/usr/bin/file
7103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7107 lt_cv_deplibs_check_method=pass_all
7111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7118 osf3* | osf4* | osf5*)
7119 lt_cv_deplibs_check_method=pass_all
7123 lt_cv_deplibs_check_method=pass_all
7127 lt_cv_deplibs_check_method=pass_all
7130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7131 lt_cv_deplibs_check_method=pass_all
7135 case $host_vendor in
7137 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]'
7138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7141 lt_cv_deplibs_check_method=pass_all
7144 lt_cv_file_magic_cmd='/bin/file'
7145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7148 lt_cv_file_magic_cmd='/bin/file'
7149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7150 lt_cv_file_magic_test_file=/lib/libc.so
7153 lt_cv_deplibs_check_method=pass_all
7156 lt_cv_deplibs_check_method=pass_all
7162 lt_cv_deplibs_check_method=pass_all
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7168 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7169 file_magic_cmd=$lt_cv_file_magic_cmd
7170 deplibs_check_method=$lt_cv_deplibs_check_method
7171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}ar; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_AR+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 if test -n "$AR"; then
7193 ac_cv_prog_AR="$AR" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_AR="${ac_tool_prefix}ar"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 if test -n "$AR"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7215 $as_echo "$AR" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7223 if test -z "$ac_cv_prog_AR"; then
7225 # Extract the first word of "ar", so it can be a program name with args.
7226 set dummy ar; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$ac_ct_AR"; then
7233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_ac_ct_AR="ar"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7253 if test -n "$ac_ct_AR"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7255 $as_echo "$ac_ct_AR" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7261 if test "x$ac_ct_AR" = x; then
7264 case $cross_compiling:$ac_tool_warned in
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7276 test -z "$AR" && AR=ar
7277 test -z "$AR_FLAGS" && AR_FLAGS=cru
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}strip; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_STRIP+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$STRIP"; then
7298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 STRIP=$ac_cv_prog_STRIP
7318 if test -n "$STRIP"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7320 $as_echo "$STRIP" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7328 if test -z "$ac_cv_prog_STRIP"; then
7330 # Extract the first word of "strip", so it can be a program name with args.
7331 set dummy strip; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$ac_ct_STRIP"; then
7338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_prog_ac_ct_STRIP="strip"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358 if test -n "$ac_ct_STRIP"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7360 $as_echo "$ac_ct_STRIP" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_ct_STRIP" = x; then
7369 case $cross_compiling:$ac_tool_warned in
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7378 STRIP="$ac_cv_prog_STRIP"
7381 test -z "$STRIP" && STRIP=:
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_RANLIB+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$RANLIB"; then
7397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 RANLIB=$ac_cv_prog_RANLIB
7417 if test -n "$RANLIB"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7419 $as_echo "$RANLIB" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7427 if test -z "$ac_cv_prog_RANLIB"; then
7428 ac_ct_RANLIB=$RANLIB
7429 # Extract the first word of "ranlib", so it can be a program name with args.
7430 set dummy ranlib; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$ac_ct_RANLIB"; then
7437 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_ac_ct_RANLIB="ranlib"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7457 if test -n "$ac_ct_RANLIB"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7459 $as_echo "$ac_ct_RANLIB" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 if test "x$ac_ct_RANLIB" = x; then
7468 case $cross_compiling:$ac_tool_warned in
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7474 RANLIB=$ac_ct_RANLIB
7477 RANLIB="$ac_cv_prog_RANLIB"
7480 test -z "$RANLIB" && RANLIB=:
7487 # Determine commands to create old-style static archives.
7488 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7489 old_postinstall_cmds='chmod 644 $oldlib'
7490 old_postuninstall_cmds=
7492 if test -n "$RANLIB"; then
7495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7498 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7501 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7537 # If no C compiler was specified, use CC.
7540 # If no C compiler flags were specified, use CFLAGS.
7541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7543 # Allow CC to be a program name with arguments.
7547 # Check for command to grab the raw symbol name followed by C symbol from nm.
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7550 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7551 $as_echo_n "(cached) " >&6
7554 # These are sane defaults that work on at least a few old systems.
7555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7557 # Character class describing NM global symbol codes.
7558 symcode='[BCDEGRST]'
7560 # Regexp to match symbols that can be accessed directly from C.
7561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7563 # Define system-specific variables.
7568 cygwin* | mingw* | pw32* | cegcc*)
7569 symcode='[ABCDGISTW]'
7572 if test "$host_cpu" = ia64; then
7573 symcode='[ABCDEGRST]'
7577 symcode='[BCDEGRST]'
7580 symcode='[BCDEGQRST]'
7591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7599 # If we're using GNU nm, then use its standard symbol codes.
7600 case `$NM -V 2>&1` in
7601 *GNU* | *'with BFD'*)
7602 symcode='[ABCDGIRSTW]' ;;
7605 # Transform an extracted symbol line into a proper C declaration.
7606 # Some systems (esp. on ia64) link data and code symbols differently,
7607 # so use this general approach.
7608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7610 # Transform an extracted symbol line into symbol name and symbol address
7611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7612 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'"
7614 # Handle CRLF in mingw tool chain
7618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7622 # Try without a prefix underscore, then with it.
7623 for ac_symprfx in "" "_"; do
7625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7626 symxfrm="\\1 $ac_symprfx\\2 \\2"
7628 # Write the raw and C identifiers.
7629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630 # Fake it for dumpbin and say T for any non-static function
7631 # and D for any global variable.
7632 # Also find C++ and __fastcall symbols from MSVC++,
7633 # which start with @ or ?.
7634 lt_cv_sys_global_symbol_pipe="$AWK '"\
7635 " {last_section=section; section=\$ 3};"\
7636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7637 " \$ 0!~/External *\|/{next};"\
7638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7639 " {if(hide[section]) next};"\
7640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7644 " ' prfx=^$ac_symprfx"
7646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7649 # Check to see that the pipe works correctly.
7653 cat > conftest.$ac_ext <<_LT_EOF
7658 void nm_test_func(void);
7659 void nm_test_func(void){}
7663 int main(){nm_test_var='a';nm_test_func();return(0);}
7666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667 (eval $ac_compile) 2>&5
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }; then
7671 # Now try to grab the symbols.
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; } && test -s "$nlist"; then
7678 # Try sorting and uniquifying the output.
7679 if sort "$nlist" | uniq > "$nlist"T; then
7680 mv -f "$nlist"T "$nlist"
7685 # Make sure that we snagged all the symbols we need.
7686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7688 cat <<_LT_EOF > conftest.$ac_ext
7694 # Now generate the symbol file.
7695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7697 cat <<_LT_EOF >> conftest.$ac_ext
7699 /* The mapping between symbol names and symbols. */
7704 lt__PROGRAM__LTX_preloaded_symbols[] =
7706 { "@PROGRAM@", (void *) 0 },
7708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7709 cat <<\_LT_EOF >> conftest.$ac_ext
7713 /* This works around a problem in FreeBSD linker */
7714 #ifdef FREEBSD_WORKAROUND
7715 static const void *lt_preloaded_setup() {
7716 return lt__PROGRAM__LTX_preloaded_symbols;
7724 # Now try linking the two files.
7725 mv conftest.$ac_objext conftstm.$ac_objext
7726 lt_save_LIBS="$LIBS"
7727 lt_save_CFLAGS="$CFLAGS"
7728 LIBS="conftstm.$ac_objext"
7729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7731 (eval $ac_link) 2>&5
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7737 LIBS="$lt_save_LIBS"
7738 CFLAGS="$lt_save_CFLAGS"
7740 echo "cannot find nm_test_func in $nlist" >&5
7743 echo "cannot find nm_test_var in $nlist" >&5
7746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7749 echo "$progname: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 rm -rf conftest* conftst*
7754 # Do not use the global_symbol_pipe unless it works.
7755 if test "$pipe_works" = yes; then
7758 lt_cv_sys_global_symbol_pipe=
7764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7765 lt_cv_sys_global_symbol_to_cdecl=
7767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7769 $as_echo "failed" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7772 $as_echo "ok" >&6; }
7796 # Check whether --enable-libtool-lock was given.
7797 if test "${enable_libtool_lock+set}" = set; then :
7798 enableval=$enable_libtool_lock;
7801 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7803 # Some flags need to be propagated to the compiler or linker for good
7807 # Find out which ABI we are using.
7808 echo 'int i;' > conftest.$ac_ext
7809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7810 (eval $ac_compile) 2>&5
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; }; then
7814 case `/usr/bin/file conftest.$ac_objext` in
7826 # Find out which ABI we are using.
7827 echo '#line 7827 "configure"' > conftest.$ac_ext
7828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7829 (eval $ac_compile) 2>&5
7831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7832 test $ac_status = 0; }; then
7833 if test "$lt_cv_prog_gnu_ld" = yes; then
7834 case `/usr/bin/file conftest.$ac_objext` in
7836 LD="${LD-ld} -melf32bsmip"
7839 LD="${LD-ld} -melf32bmipn32"
7842 LD="${LD-ld} -melf64bmip"
7846 case `/usr/bin/file conftest.$ac_objext` in
7862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7864 # Find out which ABI we are using.
7865 echo 'int i;' > conftest.$ac_ext
7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867 (eval $ac_compile) 2>&5
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }; then
7871 case `/usr/bin/file conftest.o` in
7874 x86_64-*kfreebsd*-gnu)
7875 LD="${LD-ld} -m elf_i386_fbsd"
7878 LD="${LD-ld} -m elf_i386"
7880 ppc64-*linux*|powerpc64-*linux*)
7881 LD="${LD-ld} -m elf32ppclinux"
7884 LD="${LD-ld} -m elf_s390"
7887 LD="${LD-ld} -m elf32_sparc"
7893 x86_64-*kfreebsd*-gnu)
7894 LD="${LD-ld} -m elf_x86_64_fbsd"
7897 LD="${LD-ld} -m elf_x86_64"
7899 ppc*-*linux*|powerpc*-*linux*)
7900 LD="${LD-ld} -m elf64ppc"
7902 s390*-*linux*|s390*-*tpf*)
7903 LD="${LD-ld} -m elf64_s390"
7906 LD="${LD-ld} -m elf64_sparc"
7916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7917 SAVE_CFLAGS="$CFLAGS"
7918 CFLAGS="$CFLAGS -belf"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7920 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7921 if ${lt_cv_cc_needs_belf+:} false; then :
7922 $as_echo_n "(cached) " >&6
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7941 if ac_fn_c_try_link "$LINENO"; then :
7942 lt_cv_cc_needs_belf=yes
7944 lt_cv_cc_needs_belf=no
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7949 ac_cpp='$CPP $CPPFLAGS'
7950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7959 CFLAGS="$SAVE_CFLAGS"
7963 # Find out which ABI we are using.
7964 echo 'int i;' > conftest.$ac_ext
7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7966 (eval $ac_compile) 2>&5
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 case `/usr/bin/file conftest.o` in
7972 case $lt_cv_prog_gnu_ld in
7973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7987 need_locks="$enable_libtool_lock"
7991 rhapsody* | darwin*)
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7998 $as_echo_n "(cached) " >&6
8000 if test -n "$DSYMUTIL"; then
8001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8021 if test -n "$DSYMUTIL"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8023 $as_echo "$DSYMUTIL" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 if test -z "$ac_cv_prog_DSYMUTIL"; then
8032 ac_ct_DSYMUTIL=$DSYMUTIL
8033 # Extract the first word of "dsymutil", so it can be a program name with args.
8034 set dummy dsymutil; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 if test -n "$ac_ct_DSYMUTIL"; then
8041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8061 if test -n "$ac_ct_DSYMUTIL"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8069 if test "x$ac_ct_DSYMUTIL" = x; then
8072 case $cross_compiling:$ac_tool_warned in
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8078 DSYMUTIL=$ac_ct_DSYMUTIL
8081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_NMEDIT+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$NMEDIT"; then
8093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 NMEDIT=$ac_cv_prog_NMEDIT
8113 if test -n "$NMEDIT"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8115 $as_echo "$NMEDIT" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8123 if test -z "$ac_cv_prog_NMEDIT"; then
8124 ac_ct_NMEDIT=$NMEDIT
8125 # Extract the first word of "nmedit", so it can be a program name with args.
8126 set dummy nmedit; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 if test -n "$ac_ct_NMEDIT"; then
8133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8153 if test -n "$ac_ct_NMEDIT"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8155 $as_echo "$ac_ct_NMEDIT" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 if test "x$ac_ct_NMEDIT" = x; then
8164 case $cross_compiling:$ac_tool_warned in
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8170 NMEDIT=$ac_ct_NMEDIT
8173 NMEDIT="$ac_cv_prog_NMEDIT"
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_LIPO+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 if test -n "$LIPO"; then
8185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 LIPO=$ac_cv_prog_LIPO
8205 if test -n "$LIPO"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8207 $as_echo "$LIPO" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8215 if test -z "$ac_cv_prog_LIPO"; then
8217 # Extract the first word of "lipo", so it can be a program name with args.
8218 set dummy lipo; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8222 $as_echo_n "(cached) " >&6
8224 if test -n "$ac_ct_LIPO"; then
8225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_ac_ct_LIPO="lipo"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8245 if test -n "$ac_ct_LIPO"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8247 $as_echo "$ac_ct_LIPO" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8253 if test "x$ac_ct_LIPO" = x; then
8256 case $cross_compiling:$ac_tool_warned in
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8265 LIPO="$ac_cv_prog_LIPO"
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}otool; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_OTOOL+:} false; then :
8274 $as_echo_n "(cached) " >&6
8276 if test -n "$OTOOL"; then
8277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 OTOOL=$ac_cv_prog_OTOOL
8297 if test -n "$OTOOL"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8299 $as_echo "$OTOOL" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8307 if test -z "$ac_cv_prog_OTOOL"; then
8309 # Extract the first word of "otool", so it can be a program name with args.
8310 set dummy otool; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8314 $as_echo_n "(cached) " >&6
8316 if test -n "$ac_ct_OTOOL"; then
8317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_ac_ct_OTOOL="otool"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8337 if test -n "$ac_ct_OTOOL"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8339 $as_echo "$ac_ct_OTOOL" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8345 if test "x$ac_ct_OTOOL" = x; then
8348 case $cross_compiling:$ac_tool_warned in
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8357 OTOOL="$ac_cv_prog_OTOOL"
8360 if test -n "$ac_tool_prefix"; then
8361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_OTOOL64+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 if test -n "$OTOOL64"; then
8369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 OTOOL64=$ac_cv_prog_OTOOL64
8389 if test -n "$OTOOL64"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8391 $as_echo "$OTOOL64" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 if test -z "$ac_cv_prog_OTOOL64"; then
8400 ac_ct_OTOOL64=$OTOOL64
8401 # Extract the first word of "otool64", so it can be a program name with args.
8402 set dummy otool64; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 if test -n "$ac_ct_OTOOL64"; then
8409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_ac_ct_OTOOL64="otool64"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8429 if test -n "$ac_ct_OTOOL64"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8431 $as_echo "$ac_ct_OTOOL64" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8437 if test "x$ac_ct_OTOOL64" = x; then
8440 case $cross_compiling:$ac_tool_warned in
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8446 OTOOL64=$ac_ct_OTOOL64
8449 OTOOL64="$ac_cv_prog_OTOOL64"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8479 $as_echo_n "checking for -single_module linker flag... " >&6; }
8480 if ${lt_cv_apple_cc_single_mod+:} false; then :
8481 $as_echo_n "(cached) " >&6
8483 lt_cv_apple_cc_single_mod=no
8484 if test -z "${LT_MULTI_MODULE}"; then
8485 # By default we will add the -single_module flag. You can override
8486 # by either setting the environment variable LT_MULTI_MODULE
8487 # non-empty at configure time, or by adding -multi_module to the
8489 rm -rf libconftest.dylib*
8490 echo "int foo(void){return 1;}" > conftest.c
8491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8492 -dynamiclib -Wl,-single_module conftest.c" >&5
8493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8497 lt_cv_apple_cc_single_mod=yes
8499 cat conftest.err >&5
8501 rm -rf libconftest.dylib*
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8509 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8510 $as_echo_n "(cached) " >&6
8512 lt_cv_ld_exported_symbols_list=no
8513 save_LDFLAGS=$LDFLAGS
8514 echo "_main" > conftest.sym
8515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8527 if ac_fn_c_try_link "$LINENO"; then :
8528 lt_cv_ld_exported_symbols_list=yes
8530 lt_cv_ld_exported_symbols_list=no
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 LDFLAGS="$save_LDFLAGS"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8540 rhapsody* | darwin1.[012])
8541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8544 darwin*) # darwin 5.x on
8545 # if running on 10.5 or later, the deployment target defaults
8546 # to the OS version, if on x86, and 10.4, the deployment
8547 # target defaults to 10.4. Don't you love it?
8548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8559 _lt_dar_single_mod='$single_module'
8561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8566 if test "$DSYMUTIL" != ":"; then
8567 _lt_dsymutil='~$DSYMUTIL $lib || :'
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8575 $as_echo_n "checking for ANSI C header files... " >&6; }
8576 if ${ac_cv_header_stdc+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 ac_cv_header_stdc=yes
8597 ac_cv_header_stdc=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 if test $ac_cv_header_stdc = yes; then
8602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8609 $EGREP "memchr" >/dev/null 2>&1; then :
8612 ac_cv_header_stdc=no
8618 if test $ac_cv_header_stdc = yes; then
8619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8626 $EGREP "free" >/dev/null 2>&1; then :
8629 ac_cv_header_stdc=no
8635 if test $ac_cv_header_stdc = yes; then
8636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8637 if test "$cross_compiling" = yes; then :
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8644 #if ((' ' & 0x0FF) == 0x020)
8645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8648 # define ISLOWER(c) \
8649 (('a' <= (c) && (c) <= 'i') \
8650 || ('j' <= (c) && (c) <= 'r') \
8651 || ('s' <= (c) && (c) <= 'z'))
8652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8660 for (i = 0; i < 256; i++)
8661 if (XOR (islower (i), ISLOWER (i))
8662 || toupper (i) != TOUPPER (i))
8667 if ac_fn_c_try_run "$LINENO"; then :
8670 ac_cv_header_stdc=no
8672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8673 conftest.$ac_objext conftest.beam conftest.$ac_ext
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8679 $as_echo "$ac_cv_header_stdc" >&6; }
8680 if test $ac_cv_header_stdc = yes; then
8682 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8687 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8688 inttypes.h stdint.h unistd.h
8690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8703 for ac_header in dlfcn.h
8705 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8707 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DLFCN_H 1
8719 ac_cpp='$CXXCPP $CPPFLAGS'
8720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8723 if test -z "$CXX"; then
8724 if test -n "$CCC"; then
8727 if test -n "$ac_tool_prefix"; then
8728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_CXX+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 if test -n "$CXX"; then
8738 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 if test -n "$CXX"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8760 $as_echo "$CXX" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8767 test -n "$CXX" && break
8770 if test -z "$CXX"; then
8772 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8774 # Extract the first word of "$ac_prog", so it can be a program name with args.
8775 set dummy $ac_prog; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8779 $as_echo_n "(cached) " >&6
8781 if test -n "$ac_ct_CXX"; then
8782 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_ac_ct_CXX="$ac_prog"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8802 if test -n "$ac_ct_CXX"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8804 $as_echo "$ac_ct_CXX" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8811 test -n "$ac_ct_CXX" && break
8814 if test "x$ac_ct_CXX" = x; then
8817 case $cross_compiling:$ac_tool_warned in
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8821 ac_tool_warned=yes ;;
8829 # Provide some information about the compiler.
8830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8833 for ac_option in --version -v -V -qversion; do
8834 { { ac_try="$ac_compiler $ac_option >&5"
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8840 $as_echo "$ac_try_echo"; } >&5
8841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8843 if test -s conftest.err; then
8845 ... rest of stderr output deleted ...
8846 10q' conftest.err >conftest.er1
8847 cat conftest.er1 >&5
8849 rm -f conftest.er1 conftest.err
8850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851 test $ac_status = 0; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8855 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8856 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8857 $as_echo_n "(cached) " >&6
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8873 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8883 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8884 if test $ac_compiler_gnu = yes; then
8889 ac_test_CXXFLAGS=${CXXFLAGS+set}
8890 ac_save_CXXFLAGS=$CXXFLAGS
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8892 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8893 if ${ac_cv_prog_cxx_g+:} false; then :
8894 $as_echo_n "(cached) " >&6
8896 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8897 ac_cxx_werror_flag=yes
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8911 if ac_fn_cxx_try_compile "$LINENO"; then :
8912 ac_cv_prog_cxx_g=yes
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8926 if ac_fn_cxx_try_compile "$LINENO"; then :
8929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8942 if ac_fn_cxx_try_compile "$LINENO"; then :
8943 ac_cv_prog_cxx_g=yes
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8953 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8954 if test "$ac_test_CXXFLAGS" = set; then
8955 CXXFLAGS=$ac_save_CXXFLAGS
8956 elif test $ac_cv_prog_cxx_g = yes; then
8957 if test "$GXX" = yes; then
8963 if test "$GXX" = yes; then
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8975 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8976 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8977 (test "X$CXX" != "Xg++"))) ; then
8979 ac_cpp='$CXXCPP $CPPFLAGS'
8980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8984 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8985 if test -z "$CXXCPP"; then
8986 if ${ac_cv_prog_CXXCPP+:} false; then :
8987 $as_echo_n "(cached) " >&6
8989 # Double quotes because CXXCPP needs to be expanded
8990 for CXXCPP in "$CXX -E" "/lib/cpp"
8993 for ac_cxx_preproc_warn_flag in '' yes
8995 # Use a header file that comes with gcc, so configuring glibc
8996 # with a fresh cross-compiler works.
8997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8998 # <limits.h> exists even on freestanding compilers.
8999 # On the NeXT, cc -E runs the code through the compiler's parser,
9000 # not just through cpp. "Syntax error" is here to catch this case.
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 # include <limits.h>
9006 # include <assert.h>
9010 if ac_fn_cxx_try_cpp "$LINENO"; then :
9013 # Broken: fails on valid input.
9016 rm -f conftest.err conftest.i conftest.$ac_ext
9018 # OK, works on sane cases. Now check whether nonexistent headers
9019 # can be detected and how.
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <ac_nonexistent.h>
9024 if ac_fn_cxx_try_cpp "$LINENO"; then :
9025 # Broken: success on invalid input.
9028 # Passes both tests.
9032 rm -f conftest.err conftest.i conftest.$ac_ext
9035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9036 rm -f conftest.i conftest.err conftest.$ac_ext
9037 if $ac_preproc_ok; then :
9042 ac_cv_prog_CXXCPP=$CXXCPP
9045 CXXCPP=$ac_cv_prog_CXXCPP
9047 ac_cv_prog_CXXCPP=$CXXCPP
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9050 $as_echo "$CXXCPP" >&6; }
9052 for ac_cxx_preproc_warn_flag in '' yes
9054 # Use a header file that comes with gcc, so configuring glibc
9055 # with a fresh cross-compiler works.
9056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9057 # <limits.h> exists even on freestanding compilers.
9058 # On the NeXT, cc -E runs the code through the compiler's parser,
9059 # not just through cpp. "Syntax error" is here to catch this case.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9063 # include <limits.h>
9065 # include <assert.h>
9069 if ac_fn_cxx_try_cpp "$LINENO"; then :
9072 # Broken: fails on valid input.
9075 rm -f conftest.err conftest.i conftest.$ac_ext
9077 # OK, works on sane cases. Now check whether nonexistent headers
9078 # can be detected and how.
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <ac_nonexistent.h>
9083 if ac_fn_cxx_try_cpp "$LINENO"; then :
9084 # Broken: success on invalid input.
9087 # Passes both tests.
9091 rm -f conftest.err conftest.i conftest.$ac_ext
9094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9095 rm -f conftest.i conftest.err conftest.$ac_ext
9096 if $ac_preproc_ok; then :
9099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9101 _lt_caught_CXX_error=yes; }
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9111 _lt_caught_CXX_error=yes
9119 # Check whether --enable-shared was given.
9120 if test "${enable_shared+set}" = set; then :
9121 enableval=$enable_shared; p=${PACKAGE-default}
9123 yes) enable_shared=yes ;;
9124 no) enable_shared=no ;;
9127 # Look at the argument we got. We use all the common list separators.
9128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129 for pkg in $enableval; do
9131 if test "X$pkg" = "X$p"; then
9148 # Check whether --enable-static was given.
9149 if test "${enable_static+set}" = set; then :
9150 enableval=$enable_static; p=${PACKAGE-default}
9152 yes) enable_static=yes ;;
9153 no) enable_static=no ;;
9156 # Look at the argument we got. We use all the common list separators.
9157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9158 for pkg in $enableval; do
9160 if test "X$pkg" = "X$p"; then
9189 # Check whether --with-pic was given.
9190 if test "${with_pic+set}" = set; then :
9191 withval=$with_pic; pic_mode="$withval"
9197 test -z "$pic_mode" && pic_mode=default
9205 # Check whether --enable-fast-install was given.
9206 if test "${enable_fast_install+set}" = set; then :
9207 enableval=$enable_fast_install; p=${PACKAGE-default}
9209 yes) enable_fast_install=yes ;;
9210 no) enable_fast_install=no ;;
9212 enable_fast_install=no
9213 # Look at the argument we got. We use all the common list separators.
9214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215 for pkg in $enableval; do
9217 if test "X$pkg" = "X$p"; then
9218 enable_fast_install=yes
9225 enable_fast_install=yes
9238 # This can be used to rebuild libtool when needed
9239 LIBTOOL_DEPS="$ltmain"
9241 # Always use our own libtool.
9242 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9268 test -z "$LN_S" && LN_S="ln -s"
9283 if test -n "${ZSH_VERSION+set}" ; then
9284 setopt NO_GLOB_SUBST
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9288 $as_echo_n "checking for objdir... " >&6; }
9289 if ${lt_cv_objdir+:} false; then :
9290 $as_echo_n "(cached) " >&6
9292 rm -f .libs 2>/dev/null
9293 mkdir .libs 2>/dev/null
9294 if test -d .libs; then
9297 # MS-DOS does not allow filenames that begin with a dot.
9300 rmdir .libs 2>/dev/null
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9303 $as_echo "$lt_cv_objdir" >&6; }
9304 objdir=$lt_cv_objdir
9310 cat >>confdefs.h <<_ACEOF
9311 #define LT_OBJDIR "$lt_cv_objdir/"
9332 # AIX sometimes has problems with the GCC collect2 program. For some
9333 # reason, if we set the COLLECT_NAMES environment variable, the problems
9334 # vanish in a puff of smoke.
9335 if test "X${COLLECT_NAMES+set}" != Xset; then
9337 export COLLECT_NAMES
9342 # Sed substitution that helps us do robust quoting. It backslashifies
9343 # metacharacters that are still active within double-quoted strings.
9344 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9346 # Same as above, but do not quote variable references.
9347 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9349 # Sed substitution to delay expansion of an escaped shell variable in a
9350 # double_quote_subst'ed string.
9351 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9353 # Sed substitution to delay expansion of an escaped single quote.
9354 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9356 # Sed substitution to avoid accidental globbing in evaled expressions
9357 no_glob_subst='s/\*/\\\*/g'
9361 can_build_shared=yes
9363 # All known linkers require a `.a' archive for static linking (except MSVC,
9364 # which needs '.lib').
9367 with_gnu_ld="$lt_cv_prog_gnu_ld"
9370 old_CFLAGS="$CFLAGS"
9372 # Set sane defaults for various variables
9373 test -z "$CC" && CC=cc
9374 test -z "$LTCC" && LTCC=$CC
9375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9376 test -z "$LD" && LD=ld
9377 test -z "$ac_objext" && ac_objext=o
9379 for cc_temp in $compiler""; do
9381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9387 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9390 # Only perform the check for file, if the check method requires it
9391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9392 case $deplibs_check_method in
9394 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9396 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9398 $as_echo_n "(cached) " >&6
9402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9405 lt_save_MAGIC_CMD="$MAGIC_CMD"
9406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9408 for ac_dir in $ac_dummy; do
9410 test -z "$ac_dir" && ac_dir=.
9411 if test -f $ac_dir/${ac_tool_prefix}file; then
9412 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9413 if test -n "$file_magic_test_file"; then
9414 case $deplibs_check_method in
9416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9419 $EGREP "$file_magic_regex" > /dev/null; then
9424 *** Warning: the command libtool uses to detect shared libraries,
9425 *** $file_magic_cmd, produces output that libtool cannot recognize.
9426 *** The result is that libtool may fail to recognize shared libraries
9427 *** as such. This will affect the creation of libtool libraries that
9428 *** depend on shared libraries, but programs linked with such libtool
9429 *** libraries will work regardless of this problem. Nevertheless, you
9430 *** may want to report the problem to your system manager and/or to
9431 *** bug-libtool@gnu.org
9441 MAGIC_CMD="$lt_save_MAGIC_CMD"
9446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9447 if test -n "$MAGIC_CMD"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9449 $as_echo "$MAGIC_CMD" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9459 if test -z "$lt_cv_path_MAGIC_CMD"; then
9460 if test -n "$ac_tool_prefix"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9462 $as_echo_n "checking for file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464 $as_echo_n "(cached) " >&6
9468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9471 lt_save_MAGIC_CMD="$MAGIC_CMD"
9472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474 for ac_dir in $ac_dummy; do
9476 test -z "$ac_dir" && ac_dir=.
9477 if test -f $ac_dir/file; then
9478 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9479 if test -n "$file_magic_test_file"; then
9480 case $deplibs_check_method in
9482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485 $EGREP "$file_magic_regex" > /dev/null; then
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such. This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem. Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9507 MAGIC_CMD="$lt_save_MAGIC_CMD"
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9531 # Use C for the default configuration in the libtool script
9535 ac_cpp='$CPP $CPPFLAGS'
9536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9541 # Source file extension for C test sources.
9544 # Object file extension for compiled C test sources.
9548 # Code to be used in simple compile tests
9549 lt_simple_compile_test_code="int some_variable = 0;"
9551 # Code to be used in simple link tests
9552 lt_simple_link_test_code='int main(){return(0);}'
9560 # If no C compiler was specified, use CC.
9563 # If no C compiler flags were specified, use CFLAGS.
9564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9566 # Allow CC to be a program name with arguments.
9569 # Save the default compiler, since it gets overwritten when the other
9570 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9571 compiler_DEFAULT=$CC
9573 # save warnings/boilerplate of simple test code
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9577 _lt_compiler_boilerplate=`cat conftest.err`
9580 ac_outfile=conftest.$ac_objext
9581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9583 _lt_linker_boilerplate=`cat conftest.err`
9588 ## There is no encapsulation within the following macros, do not change
9589 ## the running order or otherwise move them around unless you know exactly
9590 ## what you are doing...
9591 if test -n "$compiler"; then
9593 lt_prog_compiler_no_builtin_flag=
9595 if test "$GCC" = yes; then
9596 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9599 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9600 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9601 $as_echo_n "(cached) " >&6
9603 lt_cv_prog_compiler_rtti_exceptions=no
9604 ac_outfile=conftest.$ac_objext
9605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606 lt_compiler_flag="-fno-rtti -fno-exceptions"
9607 # Insert the option either (1) after the last *FLAGS variable, or
9608 # (2) before a word containing "conftest.", or (3) at the end.
9609 # Note that $ac_compile itself does not contain backslashes and begins
9610 # with a dollar sign (not a hyphen), so the echo should work correctly.
9611 # The option is referenced via a variable to avoid confusing sed.
9612 lt_compile=`echo "$ac_compile" | $SED \
9613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9615 -e 's:$: $lt_compiler_flag:'`
9616 (eval echo "\"\$as_me:9616: $lt_compile\"" >&5)
9617 (eval "$lt_compile" 2>conftest.err)
9619 cat conftest.err >&5
9620 echo "$as_me:9620: \$? = $ac_status" >&5
9621 if (exit $ac_status) && test -s "$ac_outfile"; then
9622 # The compiler can only warn and ignore the option if not recognized
9623 # So say no if there are warnings other than the usual output.
9624 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9627 lt_cv_prog_compiler_rtti_exceptions=yes
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9634 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9636 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9637 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9649 lt_prog_compiler_wl=
9650 lt_prog_compiler_pic=
9651 lt_prog_compiler_static=
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9656 if test "$GCC" = yes; then
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_static='-static'
9662 # All AIX code is PIC.
9663 if test "$host_cpu" = ia64; then
9664 # AIX 5 now supports IA64 processor
9665 lt_prog_compiler_static='-Bstatic'
9672 # see comment about AmigaOS4 .so support
9673 lt_prog_compiler_pic='-fPIC'
9676 # FIXME: we need at least 68020 code to build shared libraries, but
9677 # adding the `-m68020' flag to GCC prevents building anything better,
9679 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9684 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9685 # PIC is the default for these OSes.
9688 mingw* | cygwin* | pw32* | os2* | cegcc*)
9689 # This hack is so that the source file can tell whether it is being
9690 # built for inclusion in a dll (and should export symbols for example).
9691 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9692 # (--disable-auto-import) libraries
9693 lt_prog_compiler_pic='-DDLL_EXPORT'
9696 darwin* | rhapsody*)
9697 # PIC is the default on this platform
9698 # Common symbols not allowed in MH_DYLIB files
9699 lt_prog_compiler_pic='-fno-common'
9703 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9704 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9705 # sets the default TLS model and affects inlining.
9711 lt_prog_compiler_pic='-fPIC'
9717 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9718 # Instead, we relocate shared libraries at runtime.
9722 # Just because we use GCC doesn't mean we suddenly get shared libraries
9723 # on systems that don't support them.
9724 lt_prog_compiler_can_build_shared=no
9729 # QNX uses GNU C++, but need to define -shared option too, otherwise
9731 lt_prog_compiler_pic='-fPIC -shared'
9735 if test -d /usr/nec; then
9736 lt_prog_compiler_pic=-Kconform_pic
9741 lt_prog_compiler_pic='-fPIC'
9745 # PORTME Check for flag to pass linker flags through the system compiler.
9748 lt_prog_compiler_wl='-Wl,'
9749 if test "$host_cpu" = ia64; then
9750 # AIX 5 now supports IA64 processor
9751 lt_prog_compiler_static='-Bstatic'
9753 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9757 mingw* | cygwin* | pw32* | os2* | cegcc*)
9758 # This hack is so that the source file can tell whether it is being
9759 # built for inclusion in a dll (and should export symbols for example).
9760 lt_prog_compiler_pic='-DDLL_EXPORT'
9763 hpux9* | hpux10* | hpux11*)
9764 lt_prog_compiler_wl='-Wl,'
9765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9772 lt_prog_compiler_pic='+Z'
9775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9776 lt_prog_compiler_static='${wl}-a ${wl}archive'
9779 irix5* | irix6* | nonstopux*)
9780 lt_prog_compiler_wl='-Wl,'
9781 # PIC (with -KPIC) is the default.
9782 lt_prog_compiler_static='-non_shared'
9785 linux* | k*bsd*-gnu)
9786 case $cc_basename in
9787 # old Intel for x86_64 which still supported -KPIC.
9789 lt_prog_compiler_wl='-Wl,'
9790 lt_prog_compiler_pic='-KPIC'
9791 lt_prog_compiler_static='-static'
9793 # icc used to be incompatible with GCC.
9794 # ICC 10 doesn't accept -KPIC any more.
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-fPIC'
9798 lt_prog_compiler_static='-static'
9800 # Lahey Fortran 8.1.
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='--shared'
9804 lt_prog_compiler_static='--static'
9806 pgcc* | pgf77* | pgf90* | pgf95*)
9807 # Portland Group compilers (*not* the Pentium gcc compiler,
9808 # which looks to be a dead project)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-fpic'
9811 lt_prog_compiler_static='-Bstatic'
9814 lt_prog_compiler_wl='-Wl,'
9815 # All Alpha code is PIC.
9816 lt_prog_compiler_static='-non_shared'
9819 # IBM XL C 8.0/Fortran 10.1 on PPC
9820 lt_prog_compiler_wl='-Wl,'
9821 lt_prog_compiler_pic='-qpic'
9822 lt_prog_compiler_static='-qstaticlink'
9825 case `$CC -V 2>&1 | sed 5q` in
9828 lt_prog_compiler_pic='-KPIC'
9829 lt_prog_compiler_static='-Bstatic'
9830 lt_prog_compiler_wl='-Wl,'
9833 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9834 lt_prog_compiler_pic='-KPIC'
9835 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_wl=''
9844 lt_prog_compiler_pic='-KPIC'
9845 lt_prog_compiler_static='-Bstatic'
9849 # QNX uses GNU C++, but need to define -shared option too, otherwise
9851 lt_prog_compiler_pic='-fPIC -shared'
9854 osf3* | osf4* | osf5*)
9855 lt_prog_compiler_wl='-Wl,'
9856 # All OSF/1 code is PIC.
9857 lt_prog_compiler_static='-non_shared'
9861 lt_prog_compiler_static='-non_shared'
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 case $cc_basename in
9869 lt_prog_compiler_wl='-Qoption ld ';;
9871 lt_prog_compiler_wl='-Wl,';;
9876 lt_prog_compiler_wl='-Qoption ld '
9877 lt_prog_compiler_pic='-PIC'
9878 lt_prog_compiler_static='-Bstatic'
9881 sysv4 | sysv4.2uw2* | sysv4.3*)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-KPIC'
9884 lt_prog_compiler_static='-Bstatic'
9888 if test -d /usr/nec ;then
9889 lt_prog_compiler_pic='-Kconform_pic'
9890 lt_prog_compiler_static='-Bstatic'
9894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9895 lt_prog_compiler_wl='-Wl,'
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9901 lt_prog_compiler_wl='-Wl,'
9902 lt_prog_compiler_can_build_shared=no
9906 lt_prog_compiler_pic='-pic'
9907 lt_prog_compiler_static='-Bstatic'
9911 lt_prog_compiler_can_build_shared=no
9917 # For platforms which do not support PIC, -DPIC is meaningless:
9919 lt_prog_compiler_pic=
9922 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9926 $as_echo "$lt_prog_compiler_pic" >&6; }
9934 # Check to make sure the PIC flag actually works.
9936 if test -n "$lt_prog_compiler_pic"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9939 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9940 $as_echo_n "(cached) " >&6
9942 lt_cv_prog_compiler_pic_works=no
9943 ac_outfile=conftest.$ac_objext
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9946 # Insert the option either (1) after the last *FLAGS variable, or
9947 # (2) before a word containing "conftest.", or (3) at the end.
9948 # Note that $ac_compile itself does not contain backslashes and begins
9949 # with a dollar sign (not a hyphen), so the echo should work correctly.
9950 # The option is referenced via a variable to avoid confusing sed.
9951 lt_compile=`echo "$ac_compile" | $SED \
9952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9954 -e 's:$: $lt_compiler_flag:'`
9955 (eval echo "\"\$as_me:9955: $lt_compile\"" >&5)
9956 (eval "$lt_compile" 2>conftest.err)
9958 cat conftest.err >&5
9959 echo "$as_me:9959: \$? = $ac_status" >&5
9960 if (exit $ac_status) && test -s "$ac_outfile"; then
9961 # The compiler can only warn and ignore the option if not recognized
9962 # So say no if there are warnings other than the usual output.
9963 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler_pic_works=yes
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9973 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9975 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9976 case $lt_prog_compiler_pic in
9978 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9981 lt_prog_compiler_pic=
9982 lt_prog_compiler_can_build_shared=no
9993 # Check to make sure the static flag actually works.
9995 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9998 if ${lt_cv_prog_compiler_static_works+:} false; then :
9999 $as_echo_n "(cached) " >&6
10001 lt_cv_prog_compiler_static_works=no
10002 save_LDFLAGS="$LDFLAGS"
10003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10006 # The linker can only warn and ignore the option if not recognized
10007 # So say no if there are warnings
10008 if test -s conftest.err; then
10009 # Append any errors to the config.log.
10010 cat conftest.err 1>&5
10011 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10013 if diff conftest.exp conftest.er2 >/dev/null; then
10014 lt_cv_prog_compiler_static_works=yes
10017 lt_cv_prog_compiler_static_works=yes
10021 LDFLAGS="$save_LDFLAGS"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10025 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10027 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10030 lt_prog_compiler_static=
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10041 if ${lt_cv_prog_compiler_c_o+:} false; then :
10042 $as_echo_n "(cached) " >&6
10044 lt_cv_prog_compiler_c_o=no
10045 $RM -r conftest 2>/dev/null
10049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10051 lt_compiler_flag="-o out/conftest2.$ac_objext"
10052 # Insert the option either (1) after the last *FLAGS variable, or
10053 # (2) before a word containing "conftest.", or (3) at the end.
10054 # Note that $ac_compile itself does not contain backslashes and begins
10055 # with a dollar sign (not a hyphen), so the echo should work correctly.
10056 lt_compile=`echo "$ac_compile" | $SED \
10057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059 -e 's:$: $lt_compiler_flag:'`
10060 (eval echo "\"\$as_me:10060: $lt_compile\"" >&5)
10061 (eval "$lt_compile" 2>out/conftest.err)
10063 cat out/conftest.err >&5
10064 echo "$as_me:10064: \$? = $ac_status" >&5
10065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10067 # The compiler can only warn and ignore the option if not recognized
10068 # So say no if there are warnings
10069 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10072 lt_cv_prog_compiler_c_o=yes
10077 # SGI C++ compiler will create directory out/ii_files/ for
10078 # template instantiation
10079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10080 $RM out/* && rmdir out
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10087 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096 if ${lt_cv_prog_compiler_c_o+:} false; then :
10097 $as_echo_n "(cached) " >&6
10099 lt_cv_prog_compiler_c_o=no
10100 $RM -r conftest 2>/dev/null
10104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10106 lt_compiler_flag="-o out/conftest2.$ac_objext"
10107 # Insert the option either (1) after the last *FLAGS variable, or
10108 # (2) before a word containing "conftest.", or (3) at the end.
10109 # Note that $ac_compile itself does not contain backslashes and begins
10110 # with a dollar sign (not a hyphen), so the echo should work correctly.
10111 lt_compile=`echo "$ac_compile" | $SED \
10112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10114 -e 's:$: $lt_compiler_flag:'`
10115 (eval echo "\"\$as_me:10115: $lt_compile\"" >&5)
10116 (eval "$lt_compile" 2>out/conftest.err)
10118 cat out/conftest.err >&5
10119 echo "$as_me:10119: \$? = $ac_status" >&5
10120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10122 # The compiler can only warn and ignore the option if not recognized
10123 # So say no if there are warnings
10124 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10127 lt_cv_prog_compiler_c_o=yes
10132 # SGI C++ compiler will create directory out/ii_files/ for
10133 # template instantiation
10134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10135 $RM out/* && rmdir out
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10147 hard_links="nottested"
10148 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10149 # do not overwrite the value of need_locks provided by the user
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10151 $as_echo_n "checking if we can lock with hard links... " >&6; }
10154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10156 ln conftest.a conftest.b 2>&5 || hard_links=no
10157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10159 $as_echo "$hard_links" >&6; }
10160 if test "$hard_links" = no; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10175 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10178 allow_undefined_flag=
10179 always_export_symbols=no
10181 archive_expsym_cmds=
10182 compiler_needs_object=no
10183 enable_shared_with_static_runtimes=no
10184 export_dynamic_flag_spec=
10185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10186 hardcode_automatic=no
10188 hardcode_direct_absolute=no
10189 hardcode_libdir_flag_spec=
10190 hardcode_libdir_flag_spec_ld=
10191 hardcode_libdir_separator=
10192 hardcode_minus_L=no
10193 hardcode_shlibpath_var=unsupported
10195 link_all_deplibs=unknown
10197 module_expsym_cmds=
10198 old_archive_from_new_cmds=
10199 old_archive_from_expsyms_cmds=
10200 thread_safe_flag_spec=
10201 whole_archive_flag_spec=
10202 # include_expsyms should be a list of space-separated symbols to be *always*
10203 # included in the symbol list
10205 # exclude_expsyms can be an extended regexp of symbols to exclude
10206 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10207 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10208 # as well as any symbol that contains `d'.
10209 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10210 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10211 # platforms (ab)use it in PIC code, but their linkers get confused if
10212 # the symbol is explicitly referenced. Since portable code cannot
10213 # rely on this symbol name, it's probably fine to never include it in
10214 # preloaded symbol tables.
10215 # Exclude shared library initialization/finalization symbols.
10216 extract_expsyms_cmds=
10219 cygwin* | mingw* | pw32* | cegcc*)
10220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10221 # When not using gcc, we currently assume that we are using
10222 # Microsoft Visual C++.
10223 if test "$GCC" != yes; then
10228 # we just hope/assume this is gcc and not c89 (= MSVC++)
10237 if test "$with_gnu_ld" = yes; then
10238 # If archive_cmds runs LD, not CC, wlarc should be empty
10241 # Set some defaults for GNU ld with shared library support. These
10242 # are reset later if shared libraries are not supported. Putting them
10243 # here allows them to be overridden if necessary.
10244 runpath_var=LD_RUN_PATH
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 export_dynamic_flag_spec='${wl}--export-dynamic'
10247 # ancient GNU ld didn't support --whole-archive et. al.
10248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10249 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10251 whole_archive_flag_spec=
10253 supports_anon_versioning=no
10254 case `$LD -v 2>&1` in
10255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258 *\ 2.11.*) ;; # other 2.11 versions
10259 *) supports_anon_versioning=yes ;;
10262 # See if GNU ld supports shared libraries.
10265 # On AIX/PPC, the GNU linker is very broken
10266 if test "$host_cpu" != ia64; then
10270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support. If you
10273 *** really care for shared libraries, you may want to modify your PATH
10274 *** so that a non-GNU linker is found, and then restart.
10283 # see comment about AmigaOS4 .so support
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 archive_expsym_cmds=''
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 allow_undefined_flag=unsupported
10298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10299 # support --undefined. This deserves some investigation. FIXME
10300 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10308 # as there is no search path for DLLs.
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 allow_undefined_flag=unsupported
10311 always_export_symbols=no
10312 enable_shared_with_static_runtimes=yes
10313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10317 # If the export-symbols file already is a .def file (1st line
10318 # is EXPORTS), use it as is; otherwise, prepend...
10319 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320 cp $export_symbols $output_objdir/$soname.def;
10322 echo EXPORTS > $output_objdir/$soname.def;
10323 cat $export_symbols >> $output_objdir/$soname.def;
10325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10333 hardcode_shlibpath_var=no
10334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10335 export_dynamic_flag_spec='${wl}-E'
10336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10337 # Instead, shared libraries are loaded at an image base (0x10000000 by
10338 # default) and relocated if they conflict, which is a slow very memory
10339 # consuming and fragmenting process. To avoid this, we pick a random,
10340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10343 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'
10346 gnu* | linux* | tpf* | k*bsd*-gnu)
10348 if test "$host_os" = linux-dietlibc; then
10349 case $cc_basename in
10350 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10353 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10354 && test "$tmp_diet" = no
10357 tmp_sharedflag='-shared'
10358 case $cc_basename,$host_cpu in
10359 pgcc*) # Portland Group C compiler
10360 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10361 tmp_addflag=' $pic_flag'
10363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10364 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10365 tmp_addflag=' $pic_flag -Mnomain' ;;
10366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10367 tmp_addflag=' -i_dynamic' ;;
10368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10369 tmp_addflag=' -i_dynamic -nofor_main' ;;
10370 ifc* | ifort*) # Intel Fortran compiler
10371 tmp_addflag=' -nofor_main' ;;
10372 lf95*) # Lahey Fortran 8.1
10373 whole_archive_flag_spec=
10374 tmp_sharedflag='--shared' ;;
10375 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10376 tmp_sharedflag='-qmkshrobj'
10379 case `$CC -V 2>&1 | sed 5q` in
10380 *Sun\ C*) # Sun C 5.9
10381 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10382 compiler_needs_object=yes
10383 tmp_sharedflag='-G' ;;
10384 *Sun\ F*) # Sun Fortran 8.3
10385 tmp_sharedflag='-G' ;;
10387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 if test "x$supports_anon_versioning" = xyes; then
10390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10392 echo "local: *; };" >> $output_objdir/$libname.ver~
10393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10396 case $cc_basename in
10398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10400 hardcode_libdir_flag_spec=
10401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10402 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10403 if test "x$supports_anon_versioning" = xyes; then
10404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406 echo "local: *; };" >> $output_objdir/$libname.ver~
10407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432 *** create shared libraries on Solaris systems. Therefore, libtool
10433 *** is disabling shared libraries support. We urge you to upgrade GNU
10434 *** binutils to release 2.9.1 or newer. Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448 case `$LD -v 2>&1` in
10449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10454 *** reliably create shared libraries on SCO systems. Therefore, libtool
10455 *** is disabling shared libraries support. We urge you to upgrade GNU
10456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10457 *** your PATH or compiler configuration so that the native linker is
10458 *** used, and then restart.
10463 # For security reasons, it is highly recommended that you always
10464 # use absolute paths for naming shared libraries, and exclude the
10465 # DT_RUNPATH tag from executables and libraries. But doing so
10466 # requires that you compile everything twice, which is a pain.
10467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10495 if test "$ld_shlibs" = no; then
10497 hardcode_libdir_flag_spec=
10498 export_dynamic_flag_spec=
10499 whole_archive_flag_spec=
10502 # PORTME fill in a description of your system's linker (not GNU ld)
10505 allow_undefined_flag=unsupported
10506 always_export_symbols=yes
10507 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'
10508 # Note: this linker hardcodes the directories in LIBPATH if there
10509 # are no directories specified by -L.
10510 hardcode_minus_L=yes
10511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10512 # Neither direct hardcoding nor static linking is supported with a
10514 hardcode_direct=unsupported
10519 if test "$host_cpu" = ia64; then
10520 # On IA64, the linker does run time linking by default, so we don't
10521 # have to do anything special.
10522 aix_use_runtimelinking=no
10523 exp_sym_flag='-Bexport'
10526 # If we're using GNU nm, then we don't want the "-C" option.
10527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10531 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'
10533 aix_use_runtimelinking=no
10535 # Test if we are trying to use run time linking or normal
10536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537 # need to do runtime linking.
10538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10539 for ld_flag in $LDFLAGS; do
10540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10541 aix_use_runtimelinking=yes
10548 exp_sym_flag='-bexport'
10549 no_entry_flag='-bnoentry'
10552 # When large executables or shared objects are built, AIX ld can
10553 # have problems creating the table of contents. If linking a library
10554 # or program results in "error TOC overflow" add -mminimal-toc to
10555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10559 hardcode_direct=yes
10560 hardcode_direct_absolute=yes
10561 hardcode_libdir_separator=':'
10562 link_all_deplibs=yes
10563 file_list_spec='${wl}-f,'
10565 if test "$GCC" = yes; then
10566 case $host_os in aix4.[012]|aix4.[012].*)
10567 # We only want to do this on AIX 4.2 and lower, the check
10568 # below for broken collect2 doesn't work under 4.3+
10569 collect2name=`${CC} -print-prog-name=collect2`
10570 if test -f "$collect2name" &&
10571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10573 # We have reworked collect2
10576 # We have old collect2
10577 hardcode_direct=unsupported
10578 # It fails to find uninstalled libraries when the uninstalled
10579 # path is not listed in the libpath. Setting hardcode_minus_L
10580 # to unsupported forces relinking
10581 hardcode_minus_L=yes
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_libdir_separator=
10587 shared_flag='-shared'
10588 if test "$aix_use_runtimelinking" = yes; then
10589 shared_flag="$shared_flag "'${wl}-G'
10593 if test "$host_cpu" = ia64; then
10594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10595 # chokes on -Wl,-G. The following line is correct:
10598 if test "$aix_use_runtimelinking" = yes; then
10599 shared_flag='${wl}-G'
10601 shared_flag='${wl}-bM:SRE'
10606 export_dynamic_flag_spec='${wl}-bexpall'
10607 # It seems that -bexpall does not export symbols beginning with
10608 # underscore (_), so it is better to generate a list of symbols to export.
10609 always_export_symbols=yes
10610 if test "$aix_use_runtimelinking" = yes; then
10611 # Warning - without using the other runtime loading flags (-brtl),
10612 # -berok will link without error, but may produce a broken library.
10613 allow_undefined_flag='-berok'
10614 # Determine the default libpath from the value encoded in an
10615 # empty executable.
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10627 if ac_fn_c_try_link "$LINENO"; then :
10629 lt_aix_libpath_sed='
10630 /Import File Strings/,/^$/ {
10636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10637 # Check for a 64-bit object if we didn't find anything.
10638 if test -z "$aix_libpath"; then
10639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10647 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10649 if test "$host_cpu" = ia64; then
10650 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10651 allow_undefined_flag="-z nodefs"
10652 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"
10654 # Determine the default libpath from the value encoded in an
10655 # empty executable.
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10667 if ac_fn_c_try_link "$LINENO"; then :
10669 lt_aix_libpath_sed='
10670 /Import File Strings/,/^$/ {
10676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10677 # Check for a 64-bit object if we didn't find anything.
10678 if test -z "$aix_libpath"; then
10679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10687 # Warning - without using the other run time loading flags,
10688 # -berok will link without error, but may produce a broken library.
10689 no_undefined_flag=' ${wl}-bernotok'
10690 allow_undefined_flag=' ${wl}-berok'
10691 # Exported symbols can be pulled into shared objects from archives
10692 whole_archive_flag_spec='$convenience'
10693 archive_cmds_need_lc=yes
10694 # This is similar to how AIX traditionally builds its shared libraries.
10695 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'
10703 # see comment about AmigaOS4 .so support
10704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705 archive_expsym_cmds=''
10708 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)'
10709 hardcode_libdir_flag_spec='-L$libdir'
10710 hardcode_minus_L=yes
10716 export_dynamic_flag_spec=-rdynamic
10719 cygwin* | mingw* | pw32* | cegcc*)
10720 # When not using gcc, we currently assume that we are using
10721 # Microsoft Visual C++.
10722 # hardcode_libdir_flag_spec is actually meaningless, as there is
10723 # no search path for DLLs.
10724 hardcode_libdir_flag_spec=' '
10725 allow_undefined_flag=unsupported
10726 # Tell ltmain to make .lib files, not .a files.
10728 # Tell ltmain to make .dll files, not .so files.
10730 # FIXME: Setting linknames here is a bad hack.
10731 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10732 # The linker will automatically build a .lib file if we build a DLL.
10733 old_archive_from_new_cmds='true'
10734 # FIXME: Should let the user specify the lib program.
10735 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10736 fix_srcfile_path='`cygpath -w "$srcfile"`'
10737 enable_shared_with_static_runtimes=yes
10740 darwin* | rhapsody*)
10743 archive_cmds_need_lc=no
10745 hardcode_automatic=yes
10746 hardcode_shlibpath_var=unsupported
10747 whole_archive_flag_spec=''
10748 link_all_deplibs=yes
10749 allow_undefined_flag="$_lt_dar_allow_undefined"
10750 case $cc_basename in
10751 ifort*) _lt_dar_can_shared=yes ;;
10752 *) _lt_dar_can_shared=$GCC ;;
10754 if test "$_lt_dar_can_shared" = "yes"; then
10755 output_verbose_link_cmd=echo
10756 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10757 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10758 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}"
10759 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}"
10768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769 hardcode_libdir_flag_spec='-L$libdir'
10770 hardcode_shlibpath_var=no
10777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10778 # support. Future versions do this automatically, but an explicit c++rt0.o
10779 # does not break anything, and helps significantly (at the cost of a little
10782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10783 hardcode_libdir_flag_spec='-R$libdir'
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_direct=yes
10792 hardcode_minus_L=yes
10793 hardcode_shlibpath_var=no
10796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10797 freebsd* | dragonfly*)
10798 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10799 hardcode_libdir_flag_spec='-R$libdir'
10800 hardcode_direct=yes
10801 hardcode_shlibpath_var=no
10805 if test "$GCC" = yes; then
10806 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10808 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'
10810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10811 hardcode_libdir_separator=:
10812 hardcode_direct=yes
10814 # hardcode_minus_L: Not really in the search PATH,
10815 # but as the default location of the library.
10816 hardcode_minus_L=yes
10817 export_dynamic_flag_spec='${wl}-E'
10821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10826 if test "$with_gnu_ld" = no; then
10827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10828 hardcode_libdir_flag_spec_ld='+b $libdir'
10829 hardcode_libdir_separator=:
10830 hardcode_direct=yes
10831 hardcode_direct_absolute=yes
10832 export_dynamic_flag_spec='${wl}-E'
10833 # hardcode_minus_L: Not really in the search PATH,
10834 # but as the default location of the library.
10835 hardcode_minus_L=yes
10840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10843 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10855 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10865 if test "$with_gnu_ld" = no; then
10866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10867 hardcode_libdir_separator=:
10872 hardcode_shlibpath_var=no
10875 hardcode_direct=yes
10876 hardcode_direct_absolute=yes
10877 export_dynamic_flag_spec='${wl}-E'
10879 # hardcode_minus_L: Not really in the search PATH,
10880 # but as the default location of the library.
10881 hardcode_minus_L=yes
10887 irix5* | irix6* | nonstopux*)
10888 if test "$GCC" = yes; then
10889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10890 # Try to use the -exported_symbol ld option, if it does not
10891 # work, assume that -exports_file does not work either and
10892 # implicitly export all symbols.
10893 save_LDFLAGS="$LDFLAGS"
10894 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10899 if ac_fn_c_try_link "$LINENO"; then :
10900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LDFLAGS="$save_LDFLAGS"
10907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10910 archive_cmds_need_lc='no'
10911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10912 hardcode_libdir_separator=:
10914 link_all_deplibs=yes
10918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10921 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10923 hardcode_libdir_flag_spec='-R$libdir'
10924 hardcode_direct=yes
10925 hardcode_shlibpath_var=no
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_direct=yes
10931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932 hardcode_libdir_separator=:
10933 hardcode_shlibpath_var=no
10940 if test -f /usr/libexec/ld.so; then
10941 hardcode_direct=yes
10942 hardcode_shlibpath_var=no
10943 hardcode_direct_absolute=yes
10944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10948 export_dynamic_flag_spec='${wl}-E'
10951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10953 hardcode_libdir_flag_spec='-R$libdir'
10956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 hardcode_minus_L=yes
10969 allow_undefined_flag=unsupported
10970 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'
10971 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10975 if test "$GCC" = yes; then
10976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10979 allow_undefined_flag=' -expect_unresolved \*'
10980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10982 archive_cmds_need_lc='no'
10983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10984 hardcode_libdir_separator=:
10987 osf4* | osf5*) # as osf3* with the addition of -msym flag
10988 if test "$GCC" = yes; then
10989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10993 allow_undefined_flag=' -expect_unresolved \*'
10994 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10995 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~
10996 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10998 # Both c and cxx compiler support -rpath directly
10999 hardcode_libdir_flag_spec='-rpath $libdir'
11001 archive_cmds_need_lc='no'
11002 hardcode_libdir_separator=:
11006 no_undefined_flag=' -z defs'
11007 if test "$GCC" = yes; then
11009 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11011 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11013 case `$CC -V 2>&1` in
11016 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11022 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11024 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11028 hardcode_libdir_flag_spec='-R$libdir'
11029 hardcode_shlibpath_var=no
11031 solaris2.[0-5] | solaris2.[0-5].*) ;;
11033 # The compiler driver will combine and reorder linker options,
11034 # but understands `-z linker_flag'. GCC discards it without `$wl',
11035 # but is careful enough not to reorder.
11036 # Supported since Solaris 2.6 (maybe 2.5.1?)
11037 if test "$GCC" = yes; then
11038 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11040 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11044 link_all_deplibs=yes
11048 if test "x$host_vendor" = xsequent; then
11049 # Use $CC to link under sequent, because it throws in some extra .o
11050 # files that make .init and .fini sections work.
11051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11055 hardcode_libdir_flag_spec='-L$libdir'
11056 hardcode_direct=yes
11057 hardcode_minus_L=yes
11058 hardcode_shlibpath_var=no
11062 case $host_vendor in
11064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065 hardcode_direct=yes # is this really true???
11068 ## LD is ld it makes a PLAMLIB
11069 ## CC just makes a GrossModule.
11070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11071 reload_cmds='$CC -r -o $output$reload_objs'
11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11079 runpath_var='LD_RUN_PATH'
11080 hardcode_shlibpath_var=no
11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085 hardcode_shlibpath_var=no
11086 export_dynamic_flag_spec='-Bexport'
11090 if test -d /usr/nec; then
11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_shlibpath_var=no
11093 runpath_var=LD_RUN_PATH
11094 hardcode_runpath_var=yes
11099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11100 no_undefined_flag='${wl}-z,text'
11101 archive_cmds_need_lc=no
11102 hardcode_shlibpath_var=no
11103 runpath_var='LD_RUN_PATH'
11105 if test "$GCC" = yes; then
11106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 sysv5* | sco3.2v5* | sco5v6*)
11115 # Note: We can NOT use -z defs as we might desire, because we do not
11116 # link with -lc, and that would cause any symbols used from libc to
11117 # always be unresolved, which means just about no library would
11118 # ever link correctly. If we're not using GNU ld we use -z text
11119 # though, which does catch some bad symbols but isn't as heavy-handed
11121 no_undefined_flag='${wl}-z,text'
11122 allow_undefined_flag='${wl}-z,nodefs'
11123 archive_cmds_need_lc=no
11124 hardcode_shlibpath_var=no
11125 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11126 hardcode_libdir_separator=':'
11127 link_all_deplibs=yes
11128 export_dynamic_flag_spec='${wl}-Bexport'
11129 runpath_var='LD_RUN_PATH'
11131 if test "$GCC" = yes; then
11132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142 hardcode_libdir_flag_spec='-L$libdir'
11143 hardcode_shlibpath_var=no
11151 if test x$host_vendor = xsni; then
11153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11154 export_dynamic_flag_spec='${wl}-Blargedynsym'
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11161 $as_echo "$ld_shlibs" >&6; }
11162 test "$ld_shlibs" = no && can_build_shared=no
11164 with_gnu_ld=$with_gnu_ld
11181 # Do we need to explicitly link libc?
11183 case "x$archive_cmds_need_lc" in
11185 # Assume -lc should be added
11186 archive_cmds_need_lc=yes
11188 if test "$enable_shared" = yes && test "$GCC" = yes; then
11189 case $archive_cmds in
11191 # FIXME: we may have to deal with multi-command sequences.
11194 # Test whether the compiler implicitly links with -lc since on some
11195 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11196 # to ld, don't add -lc before -lgcc.
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11198 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11203 (eval $ac_compile) 2>&5
11205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11206 test $ac_status = 0; } 2>conftest.err; then
11209 libobjs=conftest.$ac_objext
11211 wl=$lt_prog_compiler_wl
11212 pic_flag=$lt_prog_compiler_pic
11218 lt_save_allow_undefined_flag=$allow_undefined_flag
11219 allow_undefined_flag=
11220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11221 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 test $ac_status = 0; }
11226 archive_cmds_need_lc=no
11228 archive_cmds_need_lc=yes
11230 allow_undefined_flag=$lt_save_allow_undefined_flag
11232 cat conftest.err 1>&5
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11236 $as_echo "$archive_cmds_need_lc" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11400 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11402 if test "$GCC" = yes; then
11404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11405 *) lt_awk_arg="/^libraries:/" ;;
11407 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11408 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11409 # if the path contains ";" then we assume it to be the separator
11410 # otherwise default to the standard path separator (i.e. ":") - it is
11411 # assumed that no part of a normal pathname contains ";" but that should
11412 # okay in the real world where ";" in dirpaths is itself problematic.
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11417 # Ok, now we have the path, separated by spaces, we can step through it
11418 # and add multilib dir if necessary.
11419 lt_tmp_lt_search_path_spec=
11420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11421 for lt_sys_path in $lt_search_path_spec; do
11422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11425 test -d "$lt_sys_path" && \
11426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11429 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11430 BEGIN {RS=" "; FS="/|\n";} {
11433 for (lt_i = NF; lt_i > 0; lt_i--) {
11434 if ($lt_i != "" && $lt_i != ".") {
11435 if ($lt_i == "..") {
11438 if (lt_count == 0) {
11439 lt_foo="/" $lt_i lt_foo;
11446 if (lt_foo != "") { lt_freq[lt_foo]++; }
11447 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11449 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11453 library_names_spec=
11454 libname_spec='lib$name'
11458 postuninstall_cmds=
11462 shlibpath_overrides_runpath=unknown
11464 dynamic_linker="$host_os ld.so"
11465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11466 need_lib_prefix=unknown
11467 hardcode_into_libs=no
11469 # when you set need_version to no, make sure it does not cause -set_version
11470 # flags to be left without arguments
11471 need_version=unknown
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11477 shlibpath_var=LIBPATH
11479 # AIX 3 has no versioning support, so we append a major version to the name.
11480 soname_spec='${libname}${release}${shared_ext}$major'
11487 hardcode_into_libs=yes
11488 if test "$host_cpu" = ia64; then
11489 # AIX 5 supports IA64
11490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11491 shlibpath_var=LD_LIBRARY_PATH
11493 # With GCC up to 2.95.x, collect2 would create an import file
11494 # for dependence libraries. The import file would start with
11495 # the line `#! .'. This would cause the generated library to
11496 # depend on `.', always an invalid library. This was fixed in
11497 # development snapshots of GCC prior to 3.0.
11499 aix4 | aix4.[01] | aix4.[01].*)
11500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11505 can_build_shared=no
11509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11510 # soname into executable. Probably we can add versioning support to
11511 # collect2, so additional links can be useful in future.
11512 if test "$aix_use_runtimelinking" = yes; then
11513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11514 # instead of lib<name>.a to let people know that these are not
11515 # typical AIX shared libraries.
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 # We preserve .a as extension for shared libraries through AIX4.2
11519 # and later when we are not doing run time linking.
11520 library_names_spec='${libname}${release}.a $libname.a'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LIBPATH
11530 # Since July 2007 AmigaOS4 officially supports .so libraries.
11531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 library_names_spec='$libname.ixlibrary $libname.a'
11536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11543 library_names_spec='${libname}${shared_ext}'
11544 dynamic_linker="$host_os ld.so"
11545 shlibpath_var=LIBRARY_PATH
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11557 # the default ld.so.conf also contains /usr/contrib/lib and
11558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11559 # libtool to hard-code these into programs
11562 cygwin* | mingw* | pw32* | cegcc*)
11563 version_type=windows
11568 case $GCC,$host_os in
11569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11570 library_names_spec='$libname.dll.a'
11571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11572 postinstall_cmds='base_file=`basename \${file}`~
11573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11574 dldir=$destdir/`dirname \$dlpath`~
11575 test -d \$dldir || mkdir -p \$dldir~
11576 $install_prog $dir/$dlname \$dldir/$dlname~
11577 chmod a+x \$dldir/$dlname~
11578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582 dlpath=$dir/\$dldll~
11584 shlibpath_overrides_runpath=yes
11588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11590 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11593 # MinGW DLLs use traditional 'lib' prefix
11594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11595 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11596 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11597 # It is most probably a Windows format PATH printed by
11598 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11599 # path with ; separators, and with drive letters. We can handle the
11600 # drive letters (cygwin fileutils understands them), so leave them,
11601 # especially as we might pass files found there to a mingw objdump,
11602 # which wouldn't understand a cygwinified path. Ahh.
11603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11609 # pw32 DLLs use 'pw' prefix rather than 'lib'
11610 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11616 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11619 dynamic_linker='Win32 ld.exe'
11620 # FIXME: first we should search . and the directory the executable is in
11624 darwin* | rhapsody*)
11625 dynamic_linker="$host_os dyld"
11626 version_type=darwin
11629 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11630 soname_spec='${libname}${release}${major}$shared_ext'
11631 shlibpath_overrides_runpath=yes
11632 shlibpath_var=DYLD_LIBRARY_PATH
11633 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11635 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11652 freebsd* | dragonfly*)
11653 # DragonFly does not have aout. When/if they implement a new
11654 # versioning mechanism, adjust this.
11655 if test -x /usr/bin/objformat; then
11656 objformat=`/usr/bin/objformat`
11659 freebsd[123]*) objformat=aout ;;
11660 *) objformat=elf ;;
11663 version_type=freebsd-$objformat
11664 case $version_type in
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11675 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes
11680 freebsd3.[01]* | freebsdelf3.[01]*)
11681 shlibpath_overrides_runpath=yes
11682 hardcode_into_libs=yes
11684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11689 *) # from 4.6 on, and DragonFly
11690 shlibpath_overrides_runpath=yes
11691 hardcode_into_libs=yes
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 hardcode_into_libs=yes
11706 hpux9* | hpux10* | hpux11*)
11707 # Give a soname corresponding to the major version so that dld.sl refuses to
11708 # link against other versions.
11715 hardcode_into_libs=yes
11716 dynamic_linker="$host_os dld.so"
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 if test "X$HPUX_IA64_MODE" = X32; then
11722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11730 hardcode_into_libs=yes
11731 dynamic_linker="$host_os dld.sl"
11732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11741 dynamic_linker="$host_os dld.sl"
11742 shlibpath_var=SHLIB_PATH
11743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11749 postinstall_cmds='chmod 555 $lib'
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11764 irix5* | irix6* | nonstopux*)
11766 nonstopux*) version_type=nonstopux ;;
11768 if test "$lt_cv_prog_gnu_ld" = yes; then
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11779 irix5* | nonstopux*)
11780 libsuff= shlibsuff=
11783 case $LD in # libtool.m4 will add one of these switches to LD
11784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785 libsuff= shlibsuff= libmagic=32-bit;;
11786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787 libsuff=32 shlibsuff=N32 libmagic=N32;;
11788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790 *) libsuff= shlibsuff= libmagic=never-match;;
11794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795 shlibpath_overrides_runpath=no
11796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798 hardcode_into_libs=yes
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11806 # This must be Linux ELF.
11807 linux* | k*bsd*-gnu)
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 # Some binutils ld are patched to set DT_RUNPATH
11817 save_LDFLAGS=$LDFLAGS
11818 save_libdir=$libdir
11819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11832 if ac_fn_c_try_link "$LINENO"; then :
11833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11834 shlibpath_overrides_runpath=yes
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 LDFLAGS=$save_LDFLAGS
11840 libdir=$save_libdir
11842 # This implies no fast_install, which is unacceptable.
11843 # Some rework will be needed to allow for fast_install
11844 # before this can be enabled.
11845 hardcode_into_libs=yes
11847 # Append ld.so.conf contents to the search path
11848 if test -f /etc/ld.so.conf; then
11849 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;/^$/d' | tr '\n' ' '`
11850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11853 # We used to test for /lib/ld.so.1 and disable shared libraries on
11854 # powerpc, because MkLinux only supported shared libraries with the
11855 # GNU dynamic linker. Since this was broken with cross compilers,
11856 # most powerpc-linux boxes support dynamic linking these days and
11857 # people can always --disable-shared, the test was removed, and we
11858 # assume the GNU/Linux dynamic linker is in use.
11859 dynamic_linker='GNU/Linux ld.so'
11866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869 dynamic_linker='NetBSD (a.out) ld.so'
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 dynamic_linker='NetBSD ld.elf_so'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 hardcode_into_libs=yes
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 dynamic_linker='ldqnx.so'
11901 sys_lib_dlsearch_path_spec="/usr/lib"
11903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11906 *) need_version=no ;;
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913 openbsd2.[89] | openbsd2.[89].*)
11914 shlibpath_overrides_runpath=no
11917 shlibpath_overrides_runpath=yes
11921 shlibpath_overrides_runpath=yes
11926 libname_spec='$name'
11929 library_names_spec='$libname${shared_ext} $libname.a'
11930 dynamic_linker='OS/2 ld.exe'
11931 shlibpath_var=LIBPATH
11934 osf3* | osf4* | osf5*)
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=yes
11957 hardcode_into_libs=yes
11958 # ldd complains unless libraries are executable
11959 postinstall_cmds='chmod +x $lib'
11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=yes
11968 if test "$with_gnu_ld" = yes; then
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 case $host_vendor in
11981 shlibpath_overrides_runpath=no
11983 runpath_var=LD_RUN_PATH
11991 shlibpath_overrides_runpath=no
11992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11998 if test -d /usr/nec ;then
12000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12001 soname_spec='$libname${shared_ext}.$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12007 version_type=freebsd-elf
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12015 if test "$with_gnu_ld" = yes; then
12016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12018 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12025 sys_lib_dlsearch_path_spec='/usr/lib'
12029 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=no
12036 hardcode_into_libs=yes
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042 soname_spec='${libname}${release}${shared_ext}$major'
12043 shlibpath_var=LD_LIBRARY_PATH
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12051 $as_echo "$dynamic_linker" >&6; }
12052 test "$dynamic_linker" = no && can_build_shared=no
12054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12055 if test "$GCC" = yes; then
12056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12060 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12063 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12155 if test -n "$hardcode_libdir_flag_spec" ||
12156 test -n "$runpath_var" ||
12157 test "X$hardcode_automatic" = "Xyes" ; then
12159 # We can hardcode non-existent directories.
12160 if test "$hardcode_direct" != no &&
12161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12162 # have to relink, otherwise we might link with an installed library
12163 # when we should be linking with a yet-to-be-installed one
12164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12165 test "$hardcode_minus_L" != no; then
12166 # Linking always hardcodes the temporary library directory.
12167 hardcode_action=relink
12169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12170 hardcode_action=immediate
12173 # We cannot hardcode anything, or else we can only hardcode existing
12175 hardcode_action=unsupported
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12178 $as_echo "$hardcode_action" >&6; }
12180 if test "$hardcode_action" = relink ||
12181 test "$inherit_rpath" = yes; then
12182 # Fast installation is not supported
12183 enable_fast_install=no
12184 elif test "$shlibpath_overrides_runpath" = yes ||
12185 test "$enable_shared" = no; then
12186 # Fast installation is not necessary
12187 enable_fast_install=needless
12195 if test "x$enable_dlopen" != xyes; then
12196 enable_dlopen=unknown
12197 enable_dlopen_self=unknown
12198 enable_dlopen_self_static=unknown
12205 lt_cv_dlopen="load_add_on"
12207 lt_cv_dlopen_self=yes
12210 mingw* | pw32* | cegcc*)
12211 lt_cv_dlopen="LoadLibrary"
12216 lt_cv_dlopen="dlopen"
12221 # if libdl is installed we need to link against it
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12224 if ${ac_cv_lib_dl_dlopen+:} false; then :
12225 $as_echo_n "(cached) " >&6
12227 ac_check_lib_save_LIBS=$LIBS
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12247 if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_lib_dl_dlopen=yes
12250 ac_cv_lib_dl_dlopen=no
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12262 lt_cv_dlopen="dyld"
12264 lt_cv_dlopen_self=yes
12271 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12272 if test "x$ac_cv_func_shl_load" = xyes; then :
12273 lt_cv_dlopen="shl_load"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12277 if ${ac_cv_lib_dld_shl_load+:} false; then :
12278 $as_echo_n "(cached) " >&6
12280 ac_check_lib_save_LIBS=$LIBS
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12285 /* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
12295 return shl_load ();
12300 if ac_fn_c_try_link "$LINENO"; then :
12301 ac_cv_lib_dld_shl_load=yes
12303 ac_cv_lib_dld_shl_load=no
12305 rm -f core conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12307 LIBS=$ac_check_lib_save_LIBS
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12311 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12312 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12314 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12315 if test "x$ac_cv_func_dlopen" = xyes; then :
12316 lt_cv_dlopen="dlopen"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12320 if ${ac_cv_lib_dl_dlopen+:} false; then :
12321 $as_echo_n "(cached) " >&6
12323 ac_check_lib_save_LIBS=$LIBS
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_lib_dl_dlopen=yes
12346 ac_cv_lib_dl_dlopen=no
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12354 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12359 if ${ac_cv_lib_svld_dlopen+:} false; then :
12360 $as_echo_n "(cached) " >&6
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lsvld $LIBS"
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12367 /* Override any GCC internal prototype to avoid an error.
12368 Use char because int might match the return type of a GCC
12369 builtin and then its argument prototype would still apply. */
12382 if ac_fn_c_try_link "$LINENO"; then :
12383 ac_cv_lib_svld_dlopen=yes
12385 ac_cv_lib_svld_dlopen=no
12387 rm -f core conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12393 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12398 if ${ac_cv_lib_dld_dld_link+:} false; then :
12399 $as_echo_n "(cached) " >&6
12401 ac_check_lib_save_LIBS=$LIBS
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12416 return dld_link ();
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 ac_cv_lib_dld_dld_link=yes
12424 ac_cv_lib_dld_dld_link=no
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12432 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12454 if test "x$lt_cv_dlopen" != xno; then
12460 case $lt_cv_dlopen in
12462 save_CPPFLAGS="$CPPFLAGS"
12463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12465 save_LDFLAGS="$LDFLAGS"
12466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12469 LIBS="$lt_cv_dlopen_libs $LIBS"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12473 if ${lt_cv_dlopen_self+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 if test "$cross_compiling" = yes; then :
12477 lt_cv_dlopen_self=cross
12479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12480 lt_status=$lt_dlunknown
12481 cat > conftest.$ac_ext <<_LT_EOF
12482 #line 12482 "configure"
12483 #include "confdefs.h"
12492 # define LT_DLGLOBAL RTLD_GLOBAL
12495 # define LT_DLGLOBAL DL_GLOBAL
12497 # define LT_DLGLOBAL 0
12501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12502 find out it does not work in some platform. */
12503 #ifndef LT_DLLAZY_OR_NOW
12505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12508 # define LT_DLLAZY_OR_NOW DL_LAZY
12511 # define LT_DLLAZY_OR_NOW RTLD_NOW
12514 # define LT_DLLAZY_OR_NOW DL_NOW
12516 # define LT_DLLAZY_OR_NOW 0
12523 void fnord() { int i=42;}
12526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12527 int status = $lt_dlunknown;
12531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12533 /* dlclose (self); */
12541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12542 (eval $ac_link) 2>&5
12544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12546 (./conftest; exit; ) >&5 2>/dev/null
12548 case x$lt_status in
12549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12554 # compilation failed
12555 lt_cv_dlopen_self=no
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12563 $as_echo "$lt_cv_dlopen_self" >&6; }
12565 if test "x$lt_cv_dlopen_self" = xyes; then
12566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12568 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12569 if ${lt_cv_dlopen_self_static+:} false; then :
12570 $as_echo_n "(cached) " >&6
12572 if test "$cross_compiling" = yes; then :
12573 lt_cv_dlopen_self_static=cross
12575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12576 lt_status=$lt_dlunknown
12577 cat > conftest.$ac_ext <<_LT_EOF
12578 #line 12578 "configure"
12579 #include "confdefs.h"
12588 # define LT_DLGLOBAL RTLD_GLOBAL
12591 # define LT_DLGLOBAL DL_GLOBAL
12593 # define LT_DLGLOBAL 0
12597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12598 find out it does not work in some platform. */
12599 #ifndef LT_DLLAZY_OR_NOW
12601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12604 # define LT_DLLAZY_OR_NOW DL_LAZY
12607 # define LT_DLLAZY_OR_NOW RTLD_NOW
12610 # define LT_DLLAZY_OR_NOW DL_NOW
12612 # define LT_DLLAZY_OR_NOW 0
12619 void fnord() { int i=42;}
12622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12623 int status = $lt_dlunknown;
12627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12629 /* dlclose (self); */
12637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12638 (eval $ac_link) 2>&5
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12642 (./conftest; exit; ) >&5 2>/dev/null
12644 case x$lt_status in
12645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12647 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12650 # compilation failed
12651 lt_cv_dlopen_self_static=no
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12659 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12662 CPPFLAGS="$save_CPPFLAGS"
12663 LDFLAGS="$save_LDFLAGS"
12668 case $lt_cv_dlopen_self in
12669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12670 *) enable_dlopen_self=unknown ;;
12673 case $lt_cv_dlopen_self_static in
12674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12675 *) enable_dlopen_self_static=unknown ;;
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12698 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12699 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12700 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12701 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 $as_echo "yes" >&6; }
12705 # FIXME - insert some real tests, host_os isn't really good enough
12708 if test -n "$STRIP" ; then
12709 striplib="$STRIP -x"
12710 old_striplib="$STRIP -S"
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12736 # Report which library types will actually be built
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12738 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12740 $as_echo "$can_build_shared" >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12743 $as_echo_n "checking whether to build shared libraries... " >&6; }
12744 test "$can_build_shared" = "no" && enable_shared=no
12746 # On AIX, shared libraries and static libraries use the same namespace, and
12747 # are all built from PIC.
12750 test "$enable_shared" = yes && enable_static=no
12751 if test -n "$RANLIB"; then
12752 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12753 postinstall_cmds='$RANLIB $lib'
12758 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12759 test "$enable_shared" = yes && enable_static=no
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12764 $as_echo "$enable_shared" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12767 $as_echo_n "checking whether to build static libraries... " >&6; }
12768 # Make sure either enable_shared or enable_static is yes.
12769 test "$enable_shared" = yes || enable_static=yes
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12771 $as_echo "$enable_static" >&6; }
12778 ac_cpp='$CPP $CPPFLAGS'
12779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12787 ac_cpp='$CXXCPP $CPPFLAGS'
12788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12792 archive_cmds_need_lc_CXX=no
12793 allow_undefined_flag_CXX=
12794 always_export_symbols_CXX=no
12795 archive_expsym_cmds_CXX=
12796 compiler_needs_object_CXX=no
12797 export_dynamic_flag_spec_CXX=
12798 hardcode_direct_CXX=no
12799 hardcode_direct_absolute_CXX=no
12800 hardcode_libdir_flag_spec_CXX=
12801 hardcode_libdir_flag_spec_ld_CXX=
12802 hardcode_libdir_separator_CXX=
12803 hardcode_minus_L_CXX=no
12804 hardcode_shlibpath_var_CXX=unsupported
12805 hardcode_automatic_CXX=no
12806 inherit_rpath_CXX=no
12808 module_expsym_cmds_CXX=
12809 link_all_deplibs_CXX=unknown
12810 old_archive_cmds_CXX=$old_archive_cmds
12811 no_undefined_flag_CXX=
12812 whole_archive_flag_spec_CXX=
12813 enable_shared_with_static_runtimes_CXX=no
12815 # Source file extension for C++ test sources.
12818 # Object file extension for compiled C++ test sources.
12822 # No sense in running all these tests if we already determined that
12823 # the CXX compiler isn't working. Some variables (like enable_shared)
12824 # are currently assumed to apply to all compilers on this platform,
12825 # and will be corrupted by setting them based on a non-working compiler.
12826 if test "$_lt_caught_CXX_error" != yes; then
12827 # Code to be used in simple compile tests
12828 lt_simple_compile_test_code="int some_variable = 0;"
12830 # Code to be used in simple link tests
12831 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12840 # If no C compiler was specified, use CC.
12843 # If no C compiler flags were specified, use CFLAGS.
12844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12846 # Allow CC to be a program name with arguments.
12850 # save warnings/boilerplate of simple test code
12851 ac_outfile=conftest.$ac_objext
12852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12854 _lt_compiler_boilerplate=`cat conftest.err`
12857 ac_outfile=conftest.$ac_objext
12858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12860 _lt_linker_boilerplate=`cat conftest.err`
12864 # Allow CC to be a program name with arguments.
12869 lt_save_with_gnu_ld=$with_gnu_ld
12870 lt_save_path_LD=$lt_cv_path_LD
12871 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12872 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12874 $as_unset lt_cv_prog_gnu_ld
12876 if test -n "${lt_cv_path_LDCXX+set}"; then
12877 lt_cv_path_LD=$lt_cv_path_LDCXX
12879 $as_unset lt_cv_path_LD
12881 test -z "${LDCXX+set}" || LD=$LDCXX
12885 for cc_temp in $compiler""; do
12887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12893 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12896 if test -n "$compiler"; then
12897 # We don't want -fno-exception when compiling C++ code, so set the
12898 # no_builtin_flag separately
12899 if test "$GXX" = yes; then
12900 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12902 lt_prog_compiler_no_builtin_flag_CXX=
12905 if test "$GXX" = yes; then
12906 # Set up default GNU C++ configuration
12910 # Check whether --with-gnu-ld was given.
12911 if test "${with_gnu_ld+set}" = set; then :
12912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12918 if test "$GCC" = yes; then
12919 # Check if gcc -print-prog-name=ld gives a path.
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12921 $as_echo_n "checking for ld used by $CC... " >&6; }
12924 # gcc leaves a trailing carriage return which upsets mingw
12925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12930 # Accept absolute paths.
12932 re_direlt='/[^/][^/]*/\.\./'
12933 # Canonicalize the pathname of ld
12934 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12935 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12936 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12938 test -z "$LD" && LD="$ac_prog"
12941 # If it fails, then pretend we aren't using GCC.
12945 # If it is relative, then search for the first ld in PATH.
12946 with_gnu_ld=unknown
12949 elif test "$with_gnu_ld" = yes; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12951 $as_echo_n "checking for GNU ld... " >&6; }
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12954 $as_echo_n "checking for non-GNU ld... " >&6; }
12956 if ${lt_cv_path_LD+:} false; then :
12957 $as_echo_n "(cached) " >&6
12959 if test -z "$LD"; then
12960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12961 for ac_dir in $PATH; do
12963 test -z "$ac_dir" && ac_dir=.
12964 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12965 lt_cv_path_LD="$ac_dir/$ac_prog"
12966 # Check to see if the program is GNU ld. I'd rather use --version,
12967 # but apparently some variants of GNU ld only accept -v.
12968 # Break only if it was the GNU/non-GNU ld that we prefer.
12969 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12970 *GNU* | *'with BFD'*)
12971 test "$with_gnu_ld" != no && break
12974 test "$with_gnu_ld" != yes && break
12981 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12985 LD="$lt_cv_path_LD"
12986 if test -n "$LD"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12988 $as_echo "$LD" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12993 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12995 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12996 if ${lt_cv_prog_gnu_ld+:} false; then :
12997 $as_echo_n "(cached) " >&6
12999 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13000 case `$LD -v 2>&1 </dev/null` in
13001 *GNU* | *'with BFD'*)
13002 lt_cv_prog_gnu_ld=yes
13005 lt_cv_prog_gnu_ld=no
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13010 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13011 with_gnu_ld=$lt_cv_prog_gnu_ld
13019 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13020 # archiving commands below assume that GNU ld is being used.
13021 if test "$with_gnu_ld" = yes; then
13022 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13025 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028 # If archive_cmds runs LD, not CC, wlarc should be empty
13029 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13030 # investigate it a little bit more. (MM)
13033 # ancient GNU ld didn't support --whole-archive et. al.
13034 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13035 $GREP 'no-whole-archive' > /dev/null; then
13036 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13038 whole_archive_flag_spec_CXX=
13044 # A generic and very simple default shared library creation
13045 # command for GNU C++ for the case where it uses the native
13046 # linker, instead of GNU ld. If possible, this setting should
13047 # overridden to take advantage of the native linker features on
13048 # the platform it is being used on.
13049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13052 # Commands to make compiler produce verbose output that lists
13053 # what "hidden" libraries, object files and flags are used when
13054 # linking a shared library.
13055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13063 # PORTME: fill in a description of your system's C++ link characteristics
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13069 # FIXME: insert proper C++ library support
13073 if test "$host_cpu" = ia64; then
13074 # On IA64, the linker does run time linking by default, so we don't
13075 # have to do anything special.
13076 aix_use_runtimelinking=no
13077 exp_sym_flag='-Bexport'
13080 aix_use_runtimelinking=no
13082 # Test if we are trying to use run time linking or normal
13083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13084 # need to do runtime linking.
13085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13086 for ld_flag in $LDFLAGS; do
13089 aix_use_runtimelinking=yes
13097 exp_sym_flag='-bexport'
13098 no_entry_flag='-bnoentry'
13101 # When large executables or shared objects are built, AIX ld can
13102 # have problems creating the table of contents. If linking a library
13103 # or program results in "error TOC overflow" add -mminimal-toc to
13104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13107 archive_cmds_CXX=''
13108 hardcode_direct_CXX=yes
13109 hardcode_direct_absolute_CXX=yes
13110 hardcode_libdir_separator_CXX=':'
13111 link_all_deplibs_CXX=yes
13112 file_list_spec_CXX='${wl}-f,'
13114 if test "$GXX" = yes; then
13115 case $host_os in aix4.[012]|aix4.[012].*)
13116 # We only want to do this on AIX 4.2 and lower, the check
13117 # below for broken collect2 doesn't work under 4.3+
13118 collect2name=`${CC} -print-prog-name=collect2`
13119 if test -f "$collect2name" &&
13120 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13122 # We have reworked collect2
13125 # We have old collect2
13126 hardcode_direct_CXX=unsupported
13127 # It fails to find uninstalled libraries when the uninstalled
13128 # path is not listed in the libpath. Setting hardcode_minus_L
13129 # to unsupported forces relinking
13130 hardcode_minus_L_CXX=yes
13131 hardcode_libdir_flag_spec_CXX='-L$libdir'
13132 hardcode_libdir_separator_CXX=
13135 shared_flag='-shared'
13136 if test "$aix_use_runtimelinking" = yes; then
13137 shared_flag="$shared_flag "'${wl}-G'
13141 if test "$host_cpu" = ia64; then
13142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13143 # chokes on -Wl,-G. The following line is correct:
13146 if test "$aix_use_runtimelinking" = yes; then
13147 shared_flag='${wl}-G'
13149 shared_flag='${wl}-bM:SRE'
13154 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13155 # It seems that -bexpall does not export symbols beginning with
13156 # underscore (_), so it is better to generate a list of symbols to
13158 always_export_symbols_CXX=yes
13159 if test "$aix_use_runtimelinking" = yes; then
13160 # Warning - without using the other runtime loading flags (-brtl),
13161 # -berok will link without error, but may produce a broken library.
13162 allow_undefined_flag_CXX='-berok'
13163 # Determine the default libpath from the value encoded in an empty
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13176 if ac_fn_cxx_try_link "$LINENO"; then :
13178 lt_aix_libpath_sed='
13179 /Import File Strings/,/^$/ {
13185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 # Check for a 64-bit object if we didn't find anything.
13187 if test -z "$aix_libpath"; then
13188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13195 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13197 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13199 if test "$host_cpu" = ia64; then
13200 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13201 allow_undefined_flag_CXX="-z nodefs"
13202 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"
13204 # Determine the default libpath from the value encoded in an
13205 # empty executable.
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13217 if ac_fn_cxx_try_link "$LINENO"; then :
13219 lt_aix_libpath_sed='
13220 /Import File Strings/,/^$/ {
13226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13227 # Check for a 64-bit object if we didn't find anything.
13228 if test -z "$aix_libpath"; then
13229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13237 # Warning - without using the other run time loading flags,
13238 # -berok will link without error, but may produce a broken library.
13239 no_undefined_flag_CXX=' ${wl}-bernotok'
13240 allow_undefined_flag_CXX=' ${wl}-berok'
13241 # Exported symbols can be pulled into shared objects from archives
13242 whole_archive_flag_spec_CXX='$convenience'
13243 archive_cmds_need_lc_CXX=yes
13244 # This is similar to how AIX traditionally builds its shared
13246 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'
13252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13253 allow_undefined_flag_CXX=unsupported
13254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13255 # support --undefined. This deserves some investigation. FIXME
13256 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13263 case $cc_basename in
13265 # FIXME: insert proper C++ library support
13271 cygwin* | mingw* | pw32* | cegcc*)
13272 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13273 # as there is no search path for DLLs.
13274 hardcode_libdir_flag_spec_CXX='-L$libdir'
13275 allow_undefined_flag_CXX=unsupported
13276 always_export_symbols_CXX=no
13277 enable_shared_with_static_runtimes_CXX=yes
13279 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13280 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'
13281 # If the export-symbols file already is a .def file (1st line
13282 # is EXPORTS), use it as is; otherwise, prepend...
13283 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13284 cp $export_symbols $output_objdir/$soname.def;
13286 echo EXPORTS > $output_objdir/$soname.def;
13287 cat $export_symbols >> $output_objdir/$soname.def;
13289 $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'
13294 darwin* | rhapsody*)
13297 archive_cmds_need_lc_CXX=no
13298 hardcode_direct_CXX=no
13299 hardcode_automatic_CXX=yes
13300 hardcode_shlibpath_var_CXX=unsupported
13301 whole_archive_flag_spec_CXX=''
13302 link_all_deplibs_CXX=yes
13303 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13304 case $cc_basename in
13305 ifort*) _lt_dar_can_shared=yes ;;
13306 *) _lt_dar_can_shared=$GCC ;;
13308 if test "$_lt_dar_can_shared" = "yes"; then
13309 output_verbose_link_cmd=echo
13310 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}"
13311 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13312 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}"
13313 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}"
13314 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13315 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}"
13316 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}"
13326 case $cc_basename in
13328 # FIXME: insert proper C++ library support
13332 # Green Hills C++ Compiler
13333 # FIXME: insert proper C++ library support
13337 # FIXME: insert proper C++ library support
13344 # C++ shared libraries reported to be fairly broken before
13350 archive_cmds_need_lc_CXX=no
13353 freebsd* | dragonfly*)
13354 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13363 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13364 hardcode_libdir_separator_CXX=:
13365 export_dynamic_flag_spec_CXX='${wl}-E'
13366 hardcode_direct_CXX=yes
13367 hardcode_minus_L_CXX=yes # Not in the search PATH,
13368 # but as the default
13369 # location of the library.
13371 case $cc_basename in
13373 # FIXME: insert proper C++ library support
13377 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'
13378 # Commands to make compiler produce verbose output that lists
13379 # what "hidden" libraries, object files and flags are used when
13380 # linking a shared library.
13382 # There doesn't appear to be a way to prevent this compiler from
13383 # explicitly linking system object files so we need to strip them
13384 # from the output so that they don't get included in the library
13386 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; $ECHO "X$list" | $Xsed'
13389 if test "$GXX" = yes; then
13390 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13392 # FIXME: insert proper C++ library support
13400 if test $with_gnu_ld = no; then
13401 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13402 hardcode_libdir_separator_CXX=:
13408 export_dynamic_flag_spec_CXX='${wl}-E'
13414 hardcode_direct_CXX=no
13415 hardcode_shlibpath_var_CXX=no
13418 hardcode_direct_CXX=yes
13419 hardcode_direct_absolute_CXX=yes
13420 hardcode_minus_L_CXX=yes # Not in the search PATH,
13421 # but as the default
13422 # location of the library.
13426 case $cc_basename in
13428 # FIXME: insert proper C++ library support
13434 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13437 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13440 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13443 # Commands to make compiler produce verbose output that lists
13444 # what "hidden" libraries, object files and flags are used when
13445 # linking a shared library.
13447 # There doesn't appear to be a way to prevent this compiler from
13448 # explicitly linking system object files so we need to strip them
13449 # from the output so that they don't get included in the library
13451 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; $ECHO "X$list" | $Xsed'
13454 if test "$GXX" = yes; then
13455 if test $with_gnu_ld = no; then
13458 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13464 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13469 # FIXME: insert proper C++ library support
13477 hardcode_direct_CXX=no
13478 hardcode_shlibpath_var_CXX=no
13479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13480 export_dynamic_flag_spec_CXX='${wl}-E'
13481 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13482 # Instead, shared libraries are loaded at an image base (0x10000000 by
13483 # default) and relocated if they conflict, which is a slow very memory
13484 # consuming and fragmenting process. To avoid this, we pick a random,
13485 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13486 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13487 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'
13488 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'
13491 case $cc_basename in
13494 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13496 # Archives containing C++ object files must be created using
13497 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13498 # necessary to make sure instantiated templates are included
13500 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13503 if test "$GXX" = yes; then
13504 if test "$with_gnu_ld" = no; then
13505 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13507 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13510 link_all_deplibs_CXX=yes
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13514 hardcode_libdir_separator_CXX=:
13515 inherit_rpath_CXX=yes
13518 linux* | k*bsd*-gnu)
13519 case $cc_basename in
13521 # Kuck and Associates, Inc. (KAI) C++ Compiler
13523 # KCC will only create a shared library if the output file
13524 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13525 # to its proper name (with version) after linking.
13526 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'
13527 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'
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13532 # There doesn't appear to be a way to prevent this compiler from
13533 # explicitly linking system object files so we need to strip them
13534 # from the output so that they don't get included in the library
13536 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; $ECHO "X$list" | $Xsed'
13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13539 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13541 # Archives containing C++ object files must be created using
13542 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13543 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13548 # version 8.0 and above of icpc choke on multiply defined symbols
13549 # if we add $predep_objects and $postdep_objects, however 7.1 and
13550 # earlier do not add the objects themselves.
13551 case `$CC -V 2>&1` in
13553 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554 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'
13556 *) # Version 8.0 or newer
13559 ia64*) tmp_idyn=' -i_dynamic';;
13561 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 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'
13565 archive_cmds_need_lc_CXX=no
13566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13567 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13568 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13571 # Portland Group C++ compiler
13573 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13574 prelink_cmds_CXX='tpldir=Template.dir~
13576 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13577 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13578 old_archive_cmds_CXX='tpldir=Template.dir~
13580 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13581 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13583 archive_cmds_CXX='tpldir=Template.dir~
13585 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13586 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13587 archive_expsym_cmds_CXX='tpldir=Template.dir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13590 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13592 *) # Version 6 will use weak symbols
13593 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13594 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'
13598 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13600 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605 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'
13607 runpath_var=LD_RUN_PATH
13608 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13609 hardcode_libdir_separator_CXX=:
13611 # Commands to make compiler produce verbose output that lists
13612 # what "hidden" libraries, object files and flags are used when
13613 # linking a shared library.
13615 # There doesn't appear to be a way to prevent this compiler from
13616 # explicitly linking system object files so we need to strip them
13617 # from the output so that they don't get included in the library
13619 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13622 # IBM XL 8.0 on PPC, with GNU ld
13623 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13625 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626 if test "x$supports_anon_versioning" = xyes; then
13627 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13629 echo "local: *; };" >> $output_objdir/$libname.ver~
13630 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13634 case `$CC -V 2>&1 | sed 5q` in
13637 no_undefined_flag_CXX=' -zdefs'
13638 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13639 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'
13640 hardcode_libdir_flag_spec_CXX='-R$libdir'
13641 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13642 compiler_needs_object_CXX=yes
13644 # Not sure whether something based on
13645 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13647 output_verbose_link_cmd='echo'
13649 # Archives containing C++ object files must be created using
13650 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13651 # necessary to make sure instantiated templates are included
13653 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13661 # FIXME: insert proper C++ library support
13666 # FIXME: insert proper C++ library support
13671 case $cc_basename in
13673 # FIXME: insert proper C++ library support
13677 # FIXME: insert proper C++ library support
13684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13685 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13687 hardcode_libdir_flag_spec_CXX='-R$libdir'
13688 hardcode_direct_CXX=yes
13689 hardcode_shlibpath_var_CXX=no
13691 # Workaround some broken pre-1.5 toolchains
13692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13700 # C++ shared libraries are fairly broken
13705 if test -f /usr/libexec/ld.so; then
13706 hardcode_direct_CXX=yes
13707 hardcode_shlibpath_var_CXX=no
13708 hardcode_direct_absolute_CXX=yes
13709 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13712 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13713 export_dynamic_flag_spec_CXX='${wl}-E'
13714 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13716 output_verbose_link_cmd=echo
13722 osf3* | osf4* | osf5*)
13723 case $cc_basename in
13725 # Kuck and Associates, Inc. (KAI) C++ Compiler
13727 # KCC will only create a shared library if the output file
13728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13729 # to its proper name (with version) after linking.
13730 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'
13732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13733 hardcode_libdir_separator_CXX=:
13735 # Archives containing C++ object files must be created using
13736 # the KAI C++ compiler.
13738 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13739 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13743 # Rational C++ 2.4.1
13744 # FIXME: insert proper C++ library support
13750 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13751 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13755 allow_undefined_flag_CXX=' -expect_unresolved \*'
13756 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13757 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13758 echo "-hidden">> $lib.exp~
13759 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13761 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13765 hardcode_libdir_separator_CXX=:
13767 # Commands to make compiler produce verbose output that lists
13768 # what "hidden" libraries, object files and flags are used when
13769 # linking a shared library.
13771 # There doesn't appear to be a way to prevent this compiler from
13772 # explicitly linking system object files so we need to strip them
13773 # from the output so that they don't get included in the library
13775 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13778 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13779 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13782 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13785 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13790 hardcode_libdir_separator_CXX=:
13792 # Commands to make compiler produce verbose output that lists
13793 # what "hidden" libraries, object files and flags are used when
13794 # linking a shared library.
13795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13798 # FIXME: insert proper C++ library support
13806 # FIXME: insert proper C++ library support
13811 case $cc_basename in
13814 # FIXME: insert proper C++ library support
13819 # FIXME: insert proper C++ library support
13823 # FIXME: insert proper C++ library support
13830 case $cc_basename in
13832 # Sun C++ 4.2, 5.x and Centerline C++
13833 archive_cmds_need_lc_CXX=yes
13834 no_undefined_flag_CXX=' -zdefs'
13835 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13837 $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'
13839 hardcode_libdir_flag_spec_CXX='-R$libdir'
13840 hardcode_shlibpath_var_CXX=no
13842 solaris2.[0-5] | solaris2.[0-5].*) ;;
13844 # The compiler driver will combine and reorder linker options,
13845 # but understands `-z linker_flag'.
13846 # Supported since Solaris 2.6 (maybe 2.5.1?)
13847 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13850 link_all_deplibs_CXX=yes
13852 output_verbose_link_cmd='echo'
13854 # Archives containing C++ object files must be created using
13855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13856 # necessary to make sure instantiated templates are included
13858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13861 # Green Hills C++ Compiler
13862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13864 # The C++ compiler must be used to create the archive.
13865 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13868 # GNU C++ compiler with Solaris linker
13869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13870 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13871 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13872 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13873 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13881 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13883 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13884 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13885 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13887 # Commands to make compiler produce verbose output that lists
13888 # what "hidden" libraries, object files and flags are used when
13889 # linking a shared library.
13890 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13893 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13895 solaris2.[0-5] | solaris2.[0-5].*) ;;
13897 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13906 no_undefined_flag_CXX='${wl}-z,text'
13907 archive_cmds_need_lc_CXX=no
13908 hardcode_shlibpath_var_CXX=no
13909 runpath_var='LD_RUN_PATH'
13911 case $cc_basename in
13913 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13918 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 sysv5* | sco3.2v5* | sco5v6*)
13924 # Note: We can NOT use -z defs as we might desire, because we do not
13925 # link with -lc, and that would cause any symbols used from libc to
13926 # always be unresolved, which means just about no library would
13927 # ever link correctly. If we're not using GNU ld we use -z text
13928 # though, which does catch some bad symbols but isn't as heavy-handed
13930 no_undefined_flag_CXX='${wl}-z,text'
13931 allow_undefined_flag_CXX='${wl}-z,nodefs'
13932 archive_cmds_need_lc_CXX=no
13933 hardcode_shlibpath_var_CXX=no
13934 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13935 hardcode_libdir_separator_CXX=':'
13936 link_all_deplibs_CXX=yes
13937 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13938 runpath_var='LD_RUN_PATH'
13940 case $cc_basename in
13942 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13943 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13953 case $cc_basename in
13955 # NonStop-UX NCC 3.20
13956 # FIXME: insert proper C++ library support
13960 # FIXME: insert proper C++ library support
13967 # FIXME: insert proper C++ library support
13972 # FIXME: insert proper C++ library support
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979 test "$ld_shlibs_CXX" = no && can_build_shared=no
13985 ## There is no encapsulation within the following macros, do not change
13986 ## the running order or otherwise move them around unless you know exactly
13987 ## what you are doing...
13988 # Dependencies to place before and after the object being linked:
13989 predep_objects_CXX=
13990 postdep_objects_CXX=
13993 compiler_lib_search_path_CXX=
13995 cat > conftest.$ac_ext <<_LT_EOF
13999 Foo (void) { a = 0; }
14005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14006 (eval $ac_compile) 2>&5
14008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }; then
14010 # Parse the compiler output and extract the necessary
14011 # objects, libraries and library flags.
14013 # Sentinel used to keep track of whether or not we are before
14014 # the conftest object file.
14015 pre_test_object_deps_done=no
14017 for p in `eval "$output_verbose_link_cmd"`; do
14021 # Some compilers place space between "-{L,R}" and the path.
14022 # Remove the space.
14023 if test $p = "-L" ||
14024 test $p = "-R"; then
14031 if test "$pre_test_object_deps_done" = no; then
14034 # Internal compiler library paths should come after those
14035 # provided the user. The postdeps already come after the
14036 # user supplied libs so there is no need to process them.
14037 if test -z "$compiler_lib_search_path_CXX"; then
14038 compiler_lib_search_path_CXX="${prev}${p}"
14040 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14043 # The "-l" case would never come before the object being
14044 # linked, so don't bother handling this case.
14047 if test -z "$postdeps_CXX"; then
14048 postdeps_CXX="${prev}${p}"
14050 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14056 # This assumes that the test object file only shows up
14057 # once in the compiler output.
14058 if test "$p" = "conftest.$objext"; then
14059 pre_test_object_deps_done=yes
14063 if test "$pre_test_object_deps_done" = no; then
14064 if test -z "$predep_objects_CXX"; then
14065 predep_objects_CXX="$p"
14067 predep_objects_CXX="$predep_objects_CXX $p"
14070 if test -z "$postdep_objects_CXX"; then
14071 postdep_objects_CXX="$p"
14073 postdep_objects_CXX="$postdep_objects_CXX $p"
14078 *) ;; # Ignore the rest.
14086 echo "libtool.m4: error: problem compiling CXX test program"
14089 $RM -f confest.$objext
14091 # PORTME: override above test on systems where it is broken
14094 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14095 # hack all around it, let's just trust "g++" to DTRT.
14096 predep_objects_CXX=
14097 postdep_objects_CXX=
14102 case `$CC -V 2>&1 | sed 5q` in
14106 # The more standards-conforming stlport4 library is
14107 # incompatible with the Cstd library. Avoid specifying
14108 # it if it's in CXXFLAGS. Ignore libCrun as
14109 # -library=stlport4 depends on it.
14110 case " $CXX $CXXFLAGS " in
14111 *" -library=stlport4 "*)
14112 solaris_use_stlport4=yes
14116 if test "$solaris_use_stlport4" != yes; then
14117 postdeps_CXX='-library=Cstd -library=Crun'
14124 case $cc_basename in
14126 # The more standards-conforming stlport4 library is
14127 # incompatible with the Cstd library. Avoid specifying
14128 # it if it's in CXXFLAGS. Ignore libCrun as
14129 # -library=stlport4 depends on it.
14130 case " $CXX $CXXFLAGS " in
14131 *" -library=stlport4 "*)
14132 solaris_use_stlport4=yes
14136 # Adding this requires a known-good setup of shared libraries for
14137 # Sun compiler versions before 5.6, else PIC objects from an old
14138 # archive will be linked into the output, leading to subtle bugs.
14139 if test "$solaris_use_stlport4" != yes; then
14140 postdeps_CXX='-library=Cstd -library=Crun'
14148 case " $postdeps_CXX " in
14149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14151 compiler_lib_search_dirs_CXX=
14152 if test -n "${compiler_lib_search_path_CXX}"; then
14153 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14186 lt_prog_compiler_wl_CXX=
14187 lt_prog_compiler_pic_CXX=
14188 lt_prog_compiler_static_CXX=
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14193 # C++ specific cases for pic, static, wl, etc.
14194 if test "$GXX" = yes; then
14195 lt_prog_compiler_wl_CXX='-Wl,'
14196 lt_prog_compiler_static_CXX='-static'
14200 # All AIX code is PIC.
14201 if test "$host_cpu" = ia64; then
14202 # AIX 5 now supports IA64 processor
14203 lt_prog_compiler_static_CXX='-Bstatic'
14210 # see comment about AmigaOS4 .so support
14211 lt_prog_compiler_pic_CXX='-fPIC'
14214 # FIXME: we need at least 68020 code to build shared libraries, but
14215 # adding the `-m68020' flag to GCC prevents building anything better,
14217 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14223 # PIC is the default for these OSes.
14225 mingw* | cygwin* | os2* | pw32* | cegcc*)
14226 # This hack is so that the source file can tell whether it is being
14227 # built for inclusion in a dll (and should export symbols for example).
14228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14229 # (--disable-auto-import) libraries
14230 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14232 darwin* | rhapsody*)
14233 # PIC is the default on this platform
14234 # Common symbols not allowed in MH_DYLIB files
14235 lt_prog_compiler_pic_CXX='-fno-common'
14238 # DJGPP does not support shared libraries at all
14239 lt_prog_compiler_pic_CXX=
14242 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14243 # Instead, we relocate shared libraries at runtime.
14246 if test -d /usr/nec; then
14247 lt_prog_compiler_pic_CXX=-Kconform_pic
14251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14253 # sets the default TLS model and affects inlining.
14258 lt_prog_compiler_pic_CXX='-fPIC'
14263 # QNX uses GNU C++, but need to define -shared option too, otherwise
14264 # it will coredump.
14265 lt_prog_compiler_pic_CXX='-fPIC -shared'
14268 lt_prog_compiler_pic_CXX='-fPIC'
14274 # All AIX code is PIC.
14275 if test "$host_cpu" = ia64; then
14276 # AIX 5 now supports IA64 processor
14277 lt_prog_compiler_static_CXX='-Bstatic'
14279 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14283 case $cc_basename in
14285 # Green Hills C++ Compiler
14286 # _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"
14291 case $cc_basename in
14293 lt_prog_compiler_pic_CXX='-KPIC'
14296 # Green Hills C++ Compiler
14297 lt_prog_compiler_pic_CXX='-pic'
14303 freebsd* | dragonfly*)
14304 # FreeBSD uses GNU C++
14306 hpux9* | hpux10* | hpux11*)
14307 case $cc_basename in
14309 lt_prog_compiler_wl_CXX='-Wl,'
14310 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14311 if test "$host_cpu" != ia64; then
14312 lt_prog_compiler_pic_CXX='+Z'
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14323 lt_prog_compiler_pic_CXX='+Z'
14332 # This is c89, which is MS Visual C++ (no shared libs)
14333 # Anyone wants to do a port?
14335 irix5* | irix6* | nonstopux*)
14336 case $cc_basename in
14338 lt_prog_compiler_wl_CXX='-Wl,'
14339 lt_prog_compiler_static_CXX='-non_shared'
14340 # CC pic flag -KPIC is the default.
14346 linux* | k*bsd*-gnu)
14347 case $cc_basename in
14350 lt_prog_compiler_wl_CXX='--backend -Wl,'
14351 lt_prog_compiler_pic_CXX='-fPIC'
14354 # old Intel C++ for x86_64 which still supported -KPIC.
14355 lt_prog_compiler_wl_CXX='-Wl,'
14356 lt_prog_compiler_pic_CXX='-KPIC'
14357 lt_prog_compiler_static_CXX='-static'
14360 # Intel C++, used to be incompatible with GCC.
14361 # ICC 10 doesn't accept -KPIC any more.
14362 lt_prog_compiler_wl_CXX='-Wl,'
14363 lt_prog_compiler_pic_CXX='-fPIC'
14364 lt_prog_compiler_static_CXX='-static'
14367 # Portland Group C++ compiler
14368 lt_prog_compiler_wl_CXX='-Wl,'
14369 lt_prog_compiler_pic_CXX='-fpic'
14370 lt_prog_compiler_static_CXX='-Bstatic'
14374 # Make sure the PIC flag is empty. It appears that all Alpha
14375 # Linux and Compaq Tru64 Unix objects are PIC.
14376 lt_prog_compiler_pic_CXX=
14377 lt_prog_compiler_static_CXX='-non_shared'
14380 # IBM XL 8.0 on PPC
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_pic_CXX='-qpic'
14383 lt_prog_compiler_static_CXX='-qstaticlink'
14386 case `$CC -V 2>&1 | sed 5q` in
14389 lt_prog_compiler_pic_CXX='-KPIC'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14391 lt_prog_compiler_wl_CXX='-Qoption ld '
14402 case $cc_basename in
14404 lt_prog_compiler_pic_CXX='-W c,exportall'
14413 # QNX uses GNU C++, but need to define -shared option too, otherwise
14414 # it will coredump.
14415 lt_prog_compiler_pic_CXX='-fPIC -shared'
14417 osf3* | osf4* | osf5*)
14418 case $cc_basename in
14420 lt_prog_compiler_wl_CXX='--backend -Wl,'
14423 # Rational C++ 2.4.1
14424 lt_prog_compiler_pic_CXX='-pic'
14427 # Digital/Compaq C++
14428 lt_prog_compiler_wl_CXX='-Wl,'
14429 # Make sure the PIC flag is empty. It appears that all Alpha
14430 # Linux and Compaq Tru64 Unix objects are PIC.
14431 lt_prog_compiler_pic_CXX=
14432 lt_prog_compiler_static_CXX='-non_shared'
14441 case $cc_basename in
14443 # Sun C++ 4.2, 5.x and Centerline C++
14444 lt_prog_compiler_pic_CXX='-KPIC'
14445 lt_prog_compiler_static_CXX='-Bstatic'
14446 lt_prog_compiler_wl_CXX='-Qoption ld '
14449 # Green Hills C++ Compiler
14450 lt_prog_compiler_pic_CXX='-PIC'
14457 case $cc_basename in
14460 lt_prog_compiler_pic_CXX='-pic'
14461 lt_prog_compiler_static_CXX='-Bstatic'
14465 lt_prog_compiler_pic_CXX='-pic'
14471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14472 case $cc_basename in
14474 lt_prog_compiler_wl_CXX='-Wl,'
14475 lt_prog_compiler_pic_CXX='-KPIC'
14476 lt_prog_compiler_static_CXX='-Bstatic'
14481 case $cc_basename in
14483 # NonStop-UX NCC 3.20
14484 lt_prog_compiler_pic_CXX='-KPIC'
14493 lt_prog_compiler_can_build_shared_CXX=no
14499 # For platforms which do not support PIC, -DPIC is meaningless:
14501 lt_prog_compiler_pic_CXX=
14504 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14508 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14513 # Check to make sure the PIC flag actually works.
14515 if test -n "$lt_prog_compiler_pic_CXX"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14517 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14518 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14519 $as_echo_n "(cached) " >&6
14521 lt_cv_prog_compiler_pic_works_CXX=no
14522 ac_outfile=conftest.$ac_objext
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14525 # Insert the option either (1) after the last *FLAGS variable, or
14526 # (2) before a word containing "conftest.", or (3) at the end.
14527 # Note that $ac_compile itself does not contain backslashes and begins
14528 # with a dollar sign (not a hyphen), so the echo should work correctly.
14529 # The option is referenced via a variable to avoid confusing sed.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
14534 (eval echo "\"\$as_me:14534: $lt_compile\"" >&5)
14535 (eval "$lt_compile" 2>conftest.err)
14537 cat conftest.err >&5
14538 echo "$as_me:14538: \$? = $ac_status" >&5
14539 if (exit $ac_status) && test -s "$ac_outfile"; then
14540 # The compiler can only warn and ignore the option if not recognized
14541 # So say no if there are warnings other than the usual output.
14542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14545 lt_cv_prog_compiler_pic_works_CXX=yes
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14552 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14554 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14555 case $lt_prog_compiler_pic_CXX in
14557 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14560 lt_prog_compiler_pic_CXX=
14561 lt_prog_compiler_can_build_shared_CXX=no
14569 # Check to make sure the static flag actually works.
14571 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14573 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14574 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14575 $as_echo_n "(cached) " >&6
14577 lt_cv_prog_compiler_static_works_CXX=no
14578 save_LDFLAGS="$LDFLAGS"
14579 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14580 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14581 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14582 # The linker can only warn and ignore the option if not recognized
14583 # So say no if there are warnings
14584 if test -s conftest.err; then
14585 # Append any errors to the config.log.
14586 cat conftest.err 1>&5
14587 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14589 if diff conftest.exp conftest.er2 >/dev/null; then
14590 lt_cv_prog_compiler_static_works_CXX=yes
14593 lt_cv_prog_compiler_static_works_CXX=yes
14597 LDFLAGS="$save_LDFLAGS"
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14601 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14603 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14606 lt_prog_compiler_static_CXX=
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14614 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 lt_cv_prog_compiler_c_o_CXX=no
14618 $RM -r conftest 2>/dev/null
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 lt_compiler_flag="-o out/conftest2.$ac_objext"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>out/conftest.err)
14636 cat out/conftest.err >&5
14637 echo "$as_me:14637: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings
14642 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_c_o_CXX=yes
14650 # SGI C++ compiler will create directory out/ii_files/ for
14651 # template instantiation
14652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14653 $RM out/* && rmdir out
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14660 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14666 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14667 $as_echo_n "(cached) " >&6
14669 lt_cv_prog_compiler_c_o_CXX=no
14670 $RM -r conftest 2>/dev/null
14674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14676 lt_compiler_flag="-o out/conftest2.$ac_objext"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 lt_compile=`echo "$ac_compile" | $SED \
14682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684 -e 's:$: $lt_compiler_flag:'`
14685 (eval echo "\"\$as_me:14685: $lt_compile\"" >&5)
14686 (eval "$lt_compile" 2>out/conftest.err)
14688 cat out/conftest.err >&5
14689 echo "$as_me:14689: \$? = $ac_status" >&5
14690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings
14694 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_c_o_CXX=yes
14702 # SGI C++ compiler will create directory out/ii_files/ for
14703 # template instantiation
14704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14705 $RM out/* && rmdir out
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14712 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14717 hard_links="nottested"
14718 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14719 # do not overwrite the value of need_locks provided by the user
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14721 $as_echo_n "checking if we can lock with hard links... " >&6; }
14724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 ln conftest.a conftest.b 2>&5 || hard_links=no
14727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14729 $as_echo "$hard_links" >&6; }
14730 if test "$hard_links" = no; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14732 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14747 # If we're using GNU nm, then we don't want the "-C" option.
14748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14749 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14750 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14752 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'
14756 export_symbols_cmds_CXX="$ltdll_cmds"
14758 cygwin* | mingw* | cegcc*)
14759 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14762 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14768 $as_echo "$ld_shlibs_CXX" >&6; }
14769 test "$ld_shlibs_CXX" = no && can_build_shared=no
14771 with_gnu_ld_CXX=$with_gnu_ld
14779 # Do we need to explicitly link libc?
14781 case "x$archive_cmds_need_lc_CXX" in
14783 # Assume -lc should be added
14784 archive_cmds_need_lc_CXX=yes
14786 if test "$enable_shared" = yes && test "$GCC" = yes; then
14787 case $archive_cmds_CXX in
14789 # FIXME: we may have to deal with multi-command sequences.
14792 # Test whether the compiler implicitly links with -lc since on some
14793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14794 # to ld, don't add -lc before -lgcc.
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14796 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14801 (eval $ac_compile) 2>&5
14803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 test $ac_status = 0; } 2>conftest.err; then
14807 libobjs=conftest.$ac_objext
14809 wl=$lt_prog_compiler_wl_CXX
14810 pic_flag=$lt_prog_compiler_pic_CXX
14816 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14817 allow_undefined_flag_CXX=
14818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14819 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; }
14824 archive_cmds_need_lc_CXX=no
14826 archive_cmds_need_lc_CXX=yes
14828 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14830 cat conftest.err 1>&5
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14834 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14907 library_names_spec=
14908 libname_spec='lib$name'
14912 postuninstall_cmds=
14916 shlibpath_overrides_runpath=unknown
14918 dynamic_linker="$host_os ld.so"
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14920 need_lib_prefix=unknown
14921 hardcode_into_libs=no
14923 # when you set need_version to no, make sure it does not cause -set_version
14924 # flags to be left without arguments
14925 need_version=unknown
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14931 shlibpath_var=LIBPATH
14933 # AIX 3 has no versioning support, so we append a major version to the name.
14934 soname_spec='${libname}${release}${shared_ext}$major'
14941 hardcode_into_libs=yes
14942 if test "$host_cpu" = ia64; then
14943 # AIX 5 supports IA64
14944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14947 # With GCC up to 2.95.x, collect2 would create an import file
14948 # for dependence libraries. The import file would start with
14949 # the line `#! .'. This would cause the generated library to
14950 # depend on `.', always an invalid library. This was fixed in
14951 # development snapshots of GCC prior to 3.0.
14953 aix4 | aix4.[01] | aix4.[01].*)
14954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14959 can_build_shared=no
14963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14964 # soname into executable. Probably we can add versioning support to
14965 # collect2, so additional links can be useful in future.
14966 if test "$aix_use_runtimelinking" = yes; then
14967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14968 # instead of lib<name>.a to let people know that these are not
14969 # typical AIX shared libraries.
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972 # We preserve .a as extension for shared libraries through AIX4.2
14973 # and later when we are not doing run time linking.
14974 library_names_spec='${libname}${release}.a $libname.a'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14977 shlibpath_var=LIBPATH
14984 # Since July 2007 AmigaOS4 officially supports .so libraries.
14985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 library_names_spec='$libname.ixlibrary $libname.a'
14990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14991 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14997 library_names_spec='${libname}${shared_ext}'
14998 dynamic_linker="$host_os ld.so"
14999 shlibpath_var=LIBRARY_PATH
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15011 # the default ld.so.conf also contains /usr/contrib/lib and
15012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15013 # libtool to hard-code these into programs
15016 cygwin* | mingw* | pw32* | cegcc*)
15017 version_type=windows
15022 case $GCC,$host_os in
15023 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15024 library_names_spec='$libname.dll.a'
15025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15026 postinstall_cmds='base_file=`basename \${file}`~
15027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15028 dldir=$destdir/`dirname \$dlpath`~
15029 test -d \$dldir || mkdir -p \$dldir~
15030 $install_prog $dir/$dlname \$dldir/$dlname~
15031 chmod a+x \$dldir/$dlname~
15032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15036 dlpath=$dir/\$dldll~
15038 shlibpath_overrides_runpath=yes
15042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15044 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15047 # MinGW DLLs use traditional 'lib' prefix
15048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15049 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15050 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15051 # It is most probably a Windows format PATH printed by
15052 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15053 # path with ; separators, and with drive letters. We can handle the
15054 # drive letters (cygwin fileutils understands them), so leave them,
15055 # especially as we might pass files found there to a mingw objdump,
15056 # which wouldn't understand a cygwinified path. Ahh.
15057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15063 # pw32 DLLs use 'pw' prefix rather than 'lib'
15064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15073 dynamic_linker='Win32 ld.exe'
15074 # FIXME: first we should search . and the directory the executable is in
15078 darwin* | rhapsody*)
15079 dynamic_linker="$host_os dyld"
15080 version_type=darwin
15083 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15084 soname_spec='${libname}${release}${major}$shared_ext'
15085 shlibpath_overrides_runpath=yes
15086 shlibpath_var=DYLD_LIBRARY_PATH
15087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 shlibpath_var=LD_LIBRARY_PATH
15105 freebsd* | dragonfly*)
15106 # DragonFly does not have aout. When/if they implement a new
15107 # versioning mechanism, adjust this.
15108 if test -x /usr/bin/objformat; then
15109 objformat=`/usr/bin/objformat`
15112 freebsd[123]*) objformat=aout ;;
15113 *) objformat=elf ;;
15116 version_type=freebsd-$objformat
15117 case $version_type in
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15128 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=yes
15133 freebsd3.[01]* | freebsdelf3.[01]*)
15134 shlibpath_overrides_runpath=yes
15135 hardcode_into_libs=yes
15137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15139 shlibpath_overrides_runpath=no
15140 hardcode_into_libs=yes
15142 *) # from 4.6 on, and DragonFly
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 hardcode_into_libs=yes
15159 hpux9* | hpux10* | hpux11*)
15160 # Give a soname corresponding to the major version so that dld.sl refuses to
15161 # link against other versions.
15168 hardcode_into_libs=yes
15169 dynamic_linker="$host_os dld.so"
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 if test "X$HPUX_IA64_MODE" = X32; then
15175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15183 hardcode_into_libs=yes
15184 dynamic_linker="$host_os dld.sl"
15185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15194 dynamic_linker="$host_os dld.sl"
15195 shlibpath_var=SHLIB_PATH
15196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15202 postinstall_cmds='chmod 555 $lib'
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=no
15214 hardcode_into_libs=yes
15217 irix5* | irix6* | nonstopux*)
15219 nonstopux*) version_type=nonstopux ;;
15221 if test "$lt_cv_prog_gnu_ld" = yes; then
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15232 irix5* | nonstopux*)
15233 libsuff= shlibsuff=
15236 case $LD in # libtool.m4 will add one of these switches to LD
15237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15238 libsuff= shlibsuff= libmagic=32-bit;;
15239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15240 libsuff=32 shlibsuff=N32 libmagic=N32;;
15241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15243 *) libsuff= shlibsuff= libmagic=never-match;;
15247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15248 shlibpath_overrides_runpath=no
15249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15251 hardcode_into_libs=yes
15254 # No shared lib support for Linux oldld, aout, or coff.
15255 linux*oldld* | linux*aout* | linux*coff*)
15259 # This must be Linux ELF.
15260 linux* | k*bsd*-gnu)
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=no
15269 # Some binutils ld are patched to set DT_RUNPATH
15270 save_LDFLAGS=$LDFLAGS
15271 save_libdir=$libdir
15272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15285 if ac_fn_cxx_try_link "$LINENO"; then :
15286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15287 shlibpath_overrides_runpath=yes
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LDFLAGS=$save_LDFLAGS
15293 libdir=$save_libdir
15295 # This implies no fast_install, which is unacceptable.
15296 # Some rework will be needed to allow for fast_install
15297 # before this can be enabled.
15298 hardcode_into_libs=yes
15300 # Append ld.so.conf contents to the search path
15301 if test -f /etc/ld.so.conf; then
15302 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;/^$/d' | tr '\n' ' '`
15303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15306 # We used to test for /lib/ld.so.1 and disable shared libraries on
15307 # powerpc, because MkLinux only supported shared libraries with the
15308 # GNU dynamic linker. Since this was broken with cross compilers,
15309 # most powerpc-linux boxes support dynamic linking these days and
15310 # people can always --disable-shared, the test was removed, and we
15311 # assume the GNU/Linux dynamic linker is in use.
15312 dynamic_linker='GNU/Linux ld.so'
15319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15322 dynamic_linker='NetBSD (a.out) ld.so'
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 dynamic_linker='NetBSD ld.elf_so'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 shlibpath_overrides_runpath=yes
15330 hardcode_into_libs=yes
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=no
15348 hardcode_into_libs=yes
15349 dynamic_linker='ldqnx.so'
15354 sys_lib_dlsearch_path_spec="/usr/lib"
15356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15359 *) need_version=no ;;
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15366 openbsd2.[89] | openbsd2.[89].*)
15367 shlibpath_overrides_runpath=no
15370 shlibpath_overrides_runpath=yes
15374 shlibpath_overrides_runpath=yes
15379 libname_spec='$name'
15382 library_names_spec='$libname${shared_ext} $libname.a'
15383 dynamic_linker='OS/2 ld.exe'
15384 shlibpath_var=LIBPATH
15387 osf3* | osf4* | osf5*)
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15411 # ldd complains unless libraries are executable
15412 postinstall_cmds='chmod +x $lib'
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15421 if test "$with_gnu_ld" = yes; then
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 case $host_vendor in
15434 shlibpath_overrides_runpath=no
15436 runpath_var=LD_RUN_PATH
15444 shlibpath_overrides_runpath=no
15445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15451 if test -d /usr/nec ;then
15453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15454 soname_spec='$libname${shared_ext}.$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15460 version_type=freebsd-elf
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15468 if test "$with_gnu_ld" = yes; then
15469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15478 sys_lib_dlsearch_path_spec='/usr/lib'
15482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=no
15489 hardcode_into_libs=yes
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 shlibpath_var=LD_LIBRARY_PATH
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15504 $as_echo "$dynamic_linker" >&6; }
15505 test "$dynamic_linker" = no && can_build_shared=no
15507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15508 if test "$GCC" = yes; then
15509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15516 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15556 hardcode_action_CXX=
15557 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15558 test -n "$runpath_var_CXX" ||
15559 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15561 # We can hardcode non-existent directories.
15562 if test "$hardcode_direct_CXX" != no &&
15563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15564 # have to relink, otherwise we might link with an installed library
15565 # when we should be linking with a yet-to-be-installed one
15566 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15567 test "$hardcode_minus_L_CXX" != no; then
15568 # Linking always hardcodes the temporary library directory.
15569 hardcode_action_CXX=relink
15571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15572 hardcode_action_CXX=immediate
15575 # We cannot hardcode anything, or else we can only hardcode existing
15577 hardcode_action_CXX=unsupported
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15580 $as_echo "$hardcode_action_CXX" >&6; }
15582 if test "$hardcode_action_CXX" = relink ||
15583 test "$inherit_rpath_CXX" = yes; then
15584 # Fast installation is not supported
15585 enable_fast_install=no
15586 elif test "$shlibpath_overrides_runpath" = yes ||
15587 test "$enable_shared" = no; then
15588 # Fast installation is not necessary
15589 enable_fast_install=needless
15598 fi # test -n "$compiler"
15604 with_gnu_ld=$lt_save_with_gnu_ld
15605 lt_cv_path_LDCXX=$lt_cv_path_LD
15606 lt_cv_path_LD=$lt_save_path_LD
15607 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15608 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15609 fi # test "$_lt_caught_CXX_error" != yes
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15629 ac_config_commands="$ac_config_commands libtool"
15634 # Only expand once:
15639 if test x$use_libtool != xno; then
15640 DEFAULT_OBJECT_TYPE=".lo"
15641 DEFAULT_ARCHIVE_TYPE=".la"
15642 DEFAULT_SHARED_OBJECT_TYPE=".la"
15643 LIBTOOL="\$(LIBTOOL)"
15644 LIBTOOL_INSTALL_TARGET="libtool-install"
15645 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15646 LIBTOOL_CLEAN_TARGET="libtool-clean"
15647 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15648 FD_PLUGIN_DIR="src/plugins/fd"
15651 DEFAULT_OBJECT_TYPE=".o"
15652 DEFAULT_ARCHIVE_TYPE=".a"
15653 DEFAULT_SHARED_OBJECT_TYPE=".so"
15654 LIBTOOL="# \$(LIBTOOL)"
15655 LIBTOOL_INSTALL_TARGET=""
15656 LIBTOOL_UNINSTALL_TARGET=""
15657 LIBTOOL_CLEAN_TARGET=""
15658 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15673 # Check whether --enable-includes was given.
15674 if test "${enable_includes+set}" = set; then :
15675 enableval=$enable_includes;
15676 if test x$enableval = xyes; then
15677 install_includes=yes
15685 if test x$use_libtool != xno -a x$install_includes = xyes; then
15686 INCLUDE_INSTALL_TARGET="install-includes"
15687 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15689 INCLUDE_INSTALL_TARGET=""
15690 INCLUDE_UNINSTALL_TARGET=""
15698 *cygwin* ) CYGWIN=yes;;
15702 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15708 HAVE_SUN_OS_FALSE='#'
15710 HAVE_SUN_OS_TRUE='#'
15713 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15720 HAVE_SUN_OS_FALSE='#'
15722 HAVE_SUN_OS_TRUE='#'
15727 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15733 HAVE_OSF1_OS_FALSE='#'
15735 HAVE_OSF1_OS_TRUE='#'
15736 HAVE_OSF1_OS_FALSE=
15738 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15745 HAVE_OSF1_OS_FALSE='#'
15747 HAVE_OSF1_OS_TRUE='#'
15748 HAVE_OSF1_OS_FALSE=
15752 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15758 HAVE_AIX_OS_FALSE='#'
15760 HAVE_AIX_OS_TRUE='#'
15763 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15770 HAVE_AIX_OS_FALSE='#'
15772 HAVE_AIX_OS_TRUE='#'
15777 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15783 HAVE_HPUX_OS_FALSE='#'
15785 HAVE_HPUX_OS_TRUE='#'
15786 HAVE_HPUX_OS_FALSE=
15788 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15795 HAVE_HPUX_OS_FALSE='#'
15797 HAVE_HPUX_OS_TRUE='#'
15798 HAVE_HPUX_OS_FALSE=
15802 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15807 HAVE_LINUX_OS_TRUE=
15808 HAVE_LINUX_OS_FALSE='#'
15810 HAVE_LINUX_OS_TRUE='#'
15811 HAVE_LINUX_OS_FALSE=
15813 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15819 HAVE_LINUX_OS_TRUE=
15820 HAVE_LINUX_OS_FALSE='#'
15822 HAVE_LINUX_OS_TRUE='#'
15823 HAVE_LINUX_OS_FALSE=
15827 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15832 HAVE_FREEBSD_OS_TRUE=
15833 HAVE_FREEBSD_OS_FALSE='#'
15835 HAVE_FREEBSD_OS_TRUE='#'
15836 HAVE_FREEBSD_OS_FALSE=
15838 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15844 HAVE_FREEBSD_OS_TRUE=
15845 HAVE_FREEBSD_OS_FALSE='#'
15847 HAVE_FREEBSD_OS_TRUE='#'
15848 HAVE_FREEBSD_OS_FALSE=
15852 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15857 HAVE_NETBSD_OS_TRUE=
15858 HAVE_NETBSD_OS_FALSE='#'
15860 HAVE_NETBSD_OS_TRUE='#'
15861 HAVE_NETBSD_OS_FALSE=
15863 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15869 HAVE_NETBSD_OS_TRUE=
15870 HAVE_NETBSD_OS_FALSE='#'
15872 HAVE_NETBSD_OS_TRUE='#'
15873 HAVE_NETBSD_OS_FALSE=
15877 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15882 HAVE_OPENBSD_OS_TRUE=
15883 HAVE_OPENBSD_OS_FALSE='#'
15885 HAVE_OPENBSD_OS_TRUE='#'
15886 HAVE_OPENBSD_OS_FALSE=
15888 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15894 HAVE_OPENBSD_OS_TRUE=
15895 HAVE_OPENBSD_OS_FALSE='#'
15897 HAVE_OPENBSD_OS_TRUE='#'
15898 HAVE_OPENBSD_OS_FALSE=
15902 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15908 HAVE_BSDI_OS_FALSE='#'
15910 HAVE_BSDI_OS_TRUE='#'
15911 HAVE_BSDI_OS_FALSE=
15913 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15920 HAVE_BSDI_OS_FALSE='#'
15922 HAVE_BSDI_OS_TRUE='#'
15923 HAVE_BSDI_OS_FALSE=
15927 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15933 HAVE_SGI_OS_FALSE='#'
15935 HAVE_SGI_OS_TRUE='#'
15938 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15945 HAVE_SGI_OS_FALSE='#'
15947 HAVE_SGI_OS_TRUE='#'
15952 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15958 HAVE_IRIX_OS_FALSE='#'
15960 HAVE_IRIX_OS_TRUE='#'
15961 HAVE_IRIX_OS_FALSE=
15963 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15970 HAVE_IRIX_OS_FALSE='#'
15972 HAVE_IRIX_OS_TRUE='#'
15973 HAVE_IRIX_OS_FALSE=
15977 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15982 HAVE_DARWIN_OS_TRUE=
15983 HAVE_DARWIN_OS_FALSE='#'
15985 HAVE_DARWIN_OS_TRUE='#'
15986 HAVE_DARWIN_OS_FALSE=
15988 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15994 HAVE_DARWIN_OS_TRUE=
15995 HAVE_DARWIN_OS_FALSE='#'
15997 HAVE_DARWIN_OS_TRUE='#'
15998 HAVE_DARWIN_OS_FALSE=
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16004 $as_echo_n "checking for Operating System Distribution... " >&6; }
16005 if test "x$DISTNAME" != "x"
16007 echo "distname set to $DISTNAME"
16008 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16011 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16014 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16017 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16020 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16023 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16026 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16029 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16032 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16035 elif test -f /etc/SuSE-release
16038 elif test -d /etc/SuSEconfig
16041 elif test -f /etc/mandrake-release
16044 elif test -f /etc/whitebox-release
16047 elif test -f /etc/redhat-release
16050 elif test -f /etc/gentoo-release
16053 elif test -f /etc/debian_version
16056 elif test -f /etc/slackware-version
16059 elif test x$host_vendor = xapple
16062 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16065 elif test -f /etc/engarde-version
16068 elif test -f /etc/arch-release
16071 elif test "$CYGWIN" = yes
16074 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16080 $as_echo "done" >&6; }
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16084 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16086 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16087 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16088 $as_echo_n "(cached) " >&6
16090 cat >conftest.make <<\_ACEOF
16093 @echo '@@@%%%=$(MAKE)=@@@%%%'
16095 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16096 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16097 *@@@%%%=?*=@@@%%%*)
16098 eval ac_cv_prog_make_${ac_make}_set=yes;;
16100 eval ac_cv_prog_make_${ac_make}_set=no;;
16102 rm -f conftest.make
16104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16111 SET_MAKE="MAKE=${MAKE-make}"
16117 if test -n "$ac_aux_dir"; then
16118 case "$ac_aux_dir" in
16119 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16120 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16123 if test -z "$MKINSTALLDIRS"; then
16124 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16130 $as_echo_n "checking whether NLS is requested... " >&6; }
16131 # Check whether --enable-nls was given.
16132 if test "${enable_nls+set}" = set; then :
16133 enableval=$enable_nls; USE_NLS=$enableval
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16139 $as_echo "$USE_NLS" >&6; }
16146 # Prepare PATH_SEPARATOR.
16147 # The user is always right.
16148 if test "${PATH_SEPARATOR+set}" != set; then
16149 echo "#! /bin/sh" >conf$$.sh
16150 echo "exit 0" >>conf$$.sh
16152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16160 # Find out how to test for executable files. Don't use a zero-byte file,
16161 # as systems may use methods other than mode bits to determine executability.
16162 cat >conf$$.file <<_ASEOF
16166 chmod +x conf$$.file
16167 if test -x conf$$.file >/dev/null 2>&1; then
16168 ac_executable_p="test -x"
16170 ac_executable_p="test -f"
16174 # Extract the first word of "msgfmt", so it can be a program name with args.
16175 set dummy msgfmt; ac_word=$2
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16177 $as_echo_n "checking for $ac_word... " >&6; }
16178 if ${ac_cv_path_MSGFMT+:} false; then :
16179 $as_echo_n "(cached) " >&6
16183 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16186 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16187 for ac_dir in $PATH; do
16189 test -z "$ac_dir" && ac_dir=.
16190 for ac_exec_ext in '' $ac_executable_extensions; do
16191 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16192 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16193 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16194 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16195 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16202 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16206 MSGFMT="$ac_cv_path_MSGFMT"
16207 if test "$MSGFMT" != ":"; then
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16209 $as_echo "$MSGFMT" >&6; }
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212 $as_echo "no" >&6; }
16215 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16216 set dummy gmsgfmt; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_path_GMSGFMT+:} false; then :
16220 $as_echo_n "(cached) " >&6
16224 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16234 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16242 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16246 GMSGFMT=$ac_cv_path_GMSGFMT
16247 if test -n "$GMSGFMT"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16249 $as_echo "$GMSGFMT" >&6; }
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16258 # Prepare PATH_SEPARATOR.
16259 # The user is always right.
16260 if test "${PATH_SEPARATOR+set}" != set; then
16261 echo "#! /bin/sh" >conf$$.sh
16262 echo "exit 0" >>conf$$.sh
16264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16272 # Find out how to test for executable files. Don't use a zero-byte file,
16273 # as systems may use methods other than mode bits to determine executability.
16274 cat >conf$$.file <<_ASEOF
16278 chmod +x conf$$.file
16279 if test -x conf$$.file >/dev/null 2>&1; then
16280 ac_executable_p="test -x"
16282 ac_executable_p="test -f"
16286 # Extract the first word of "xgettext", so it can be a program name with args.
16287 set dummy xgettext; ac_word=$2
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16289 $as_echo_n "checking for $ac_word... " >&6; }
16290 if ${ac_cv_path_XGETTEXT+:} false; then :
16291 $as_echo_n "(cached) " >&6
16293 case "$XGETTEXT" in
16295 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16298 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16299 for ac_dir in $PATH; do
16301 test -z "$ac_dir" && ac_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16304 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16305 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16306 (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
16307 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16314 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16318 XGETTEXT="$ac_cv_path_XGETTEXT"
16319 if test "$XGETTEXT" != ":"; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16321 $as_echo "$XGETTEXT" >&6; }
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16330 # Prepare PATH_SEPARATOR.
16331 # The user is always right.
16332 if test "${PATH_SEPARATOR+set}" != set; then
16333 echo "#! /bin/sh" >conf$$.sh
16334 echo "exit 0" >>conf$$.sh
16336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16344 # Find out how to test for executable files. Don't use a zero-byte file,
16345 # as systems may use methods other than mode bits to determine executability.
16346 cat >conf$$.file <<_ASEOF
16350 chmod +x conf$$.file
16351 if test -x conf$$.file >/dev/null 2>&1; then
16352 ac_executable_p="test -x"
16354 ac_executable_p="test -f"
16358 # Extract the first word of "msgmerge", so it can be a program name with args.
16359 set dummy msgmerge; ac_word=$2
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16361 $as_echo_n "checking for $ac_word... " >&6; }
16362 if ${ac_cv_path_MSGMERGE+:} false; then :
16363 $as_echo_n "(cached) " >&6
16365 case "$MSGMERGE" in
16367 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16370 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16371 for ac_dir in $PATH; do
16373 test -z "$ac_dir" && ac_dir=.
16374 for ac_exec_ext in '' $ac_executable_extensions; do
16375 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16376 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16377 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16378 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16385 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16389 MSGMERGE="$ac_cv_path_MSGMERGE"
16390 if test "$MSGMERGE" != ":"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16392 $as_echo "$MSGMERGE" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16399 if test "$GMSGFMT" != ":"; then
16400 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16401 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16404 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16406 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16411 if test "$XGETTEXT" != ":"; then
16412 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16413 (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
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16417 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16423 ac_config_commands="$ac_config_commands default-1"
16427 if test "X$prefix" = "XNONE"; then
16428 acl_final_prefix="$ac_default_prefix"
16430 acl_final_prefix="$prefix"
16432 if test "X$exec_prefix" = "XNONE"; then
16433 acl_final_exec_prefix='${prefix}'
16435 acl_final_exec_prefix="$exec_prefix"
16437 acl_save_prefix="$prefix"
16438 prefix="$acl_final_prefix"
16439 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16440 prefix="$acl_save_prefix"
16443 # Check whether --with-gnu-ld was given.
16444 if test "${with_gnu_ld+set}" = set; then :
16445 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16450 # Prepare PATH_SEPARATOR.
16451 # The user is always right.
16452 if test "${PATH_SEPARATOR+set}" != set; then
16453 echo "#! /bin/sh" >conf$$.sh
16454 echo "exit 0" >>conf$$.sh
16456 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16464 if test "$GCC" = yes; then
16465 # Check if gcc -print-prog-name=ld gives a path.
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16467 $as_echo_n "checking for ld used by GCC... " >&6; }
16470 # gcc leaves a trailing carriage return which upsets mingw
16471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16476 # Accept absolute paths.
16477 [\\/]* | [A-Za-z]:[\\/]*)
16478 re_direlt='/[^/][^/]*/\.\./'
16479 # Canonicalize the path of ld
16480 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16481 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16482 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16484 test -z "$LD" && LD="$ac_prog"
16487 # If it fails, then pretend we aren't using GCC.
16491 # If it is relative, then search for the first ld in PATH.
16492 with_gnu_ld=unknown
16495 elif test "$with_gnu_ld" = yes; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16497 $as_echo_n "checking for GNU ld... " >&6; }
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16500 $as_echo_n "checking for non-GNU ld... " >&6; }
16502 if ${acl_cv_path_LD+:} false; then :
16503 $as_echo_n "(cached) " >&6
16505 if test -z "$LD"; then
16506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16507 for ac_dir in $PATH; do
16508 test -z "$ac_dir" && ac_dir=.
16509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16510 acl_cv_path_LD="$ac_dir/$ac_prog"
16511 # Check to see if the program is GNU ld. I'd rather use --version,
16512 # but apparently some GNU ld's only accept -v.
16513 # Break only if it was the GNU/non-GNU ld that we prefer.
16514 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16515 *GNU* | *'with BFD'*)
16516 test "$with_gnu_ld" != no && break ;;
16518 test "$with_gnu_ld" != yes && break ;;
16524 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16528 LD="$acl_cv_path_LD"
16529 if test -n "$LD"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16531 $as_echo "$LD" >&6; }
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16536 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16539 if ${acl_cv_prog_gnu_ld+:} false; then :
16540 $as_echo_n "(cached) " >&6
16542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16543 case `$LD -v 2>&1 </dev/null` in
16544 *GNU* | *'with BFD'*)
16545 acl_cv_prog_gnu_ld=yes ;;
16547 acl_cv_prog_gnu_ld=no ;;
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16551 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16552 with_gnu_ld=$acl_cv_prog_gnu_ld
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16558 $as_echo_n "checking for shared library run path origin... " >&6; }
16559 if ${acl_cv_rpath+:} false; then :
16560 $as_echo_n "(cached) " >&6
16563 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16564 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16566 rm -f ./conftest.sh
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16571 $as_echo "$acl_cv_rpath" >&6; }
16573 libext="$acl_cv_libext"
16574 shlibext="$acl_cv_shlibext"
16575 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16576 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16577 hardcode_direct="$acl_cv_hardcode_direct"
16578 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16579 # Check whether --enable-rpath was given.
16580 if test "${enable_rpath+set}" = set; then :
16581 enableval=$enable_rpath; :
16595 acl_save_prefix="$prefix"
16596 prefix="$acl_final_prefix"
16597 acl_save_exec_prefix="$exec_prefix"
16598 exec_prefix="$acl_final_exec_prefix"
16600 eval additional_includedir=\"$includedir\"
16601 eval additional_libdir=\"$libdir\"
16603 exec_prefix="$acl_save_exec_prefix"
16604 prefix="$acl_save_prefix"
16607 # Check whether --with-libiconv-prefix was given.
16608 if test "${with_libiconv_prefix+set}" = set; then :
16609 withval=$with_libiconv_prefix;
16610 if test "X$withval" = "Xno"; then
16613 if test "X$withval" = "X"; then
16615 acl_save_prefix="$prefix"
16616 prefix="$acl_final_prefix"
16617 acl_save_exec_prefix="$exec_prefix"
16618 exec_prefix="$acl_final_exec_prefix"
16620 eval additional_includedir=\"$includedir\"
16621 eval additional_libdir=\"$libdir\"
16623 exec_prefix="$acl_save_exec_prefix"
16624 prefix="$acl_save_prefix"
16627 additional_includedir="$withval/include"
16628 additional_libdir="$withval/lib"
16639 names_already_handled=
16640 names_next_round='iconv '
16641 while test -n "$names_next_round"; do
16642 names_this_round="$names_next_round"
16644 for name in $names_this_round; do
16646 for n in $names_already_handled; do
16647 if test "$n" = "$name"; then
16648 already_handled=yes
16652 if test -z "$already_handled"; then
16653 names_already_handled="$names_already_handled $name"
16654 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16655 eval value=\"\$HAVE_LIB$uppername\"
16656 if test -n "$value"; then
16657 if test "$value" = yes; then
16658 eval value=\"\$LIB$uppername\"
16659 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16660 eval value=\"\$LTLIB$uppername\"
16661 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16670 if test $use_additional = yes; then
16671 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16672 found_dir="$additional_libdir"
16673 found_so="$additional_libdir/lib$name.$shlibext"
16674 if test -f "$additional_libdir/lib$name.la"; then
16675 found_la="$additional_libdir/lib$name.la"
16678 if test -f "$additional_libdir/lib$name.$libext"; then
16679 found_dir="$additional_libdir"
16680 found_a="$additional_libdir/lib$name.$libext"
16681 if test -f "$additional_libdir/lib$name.la"; then
16682 found_la="$additional_libdir/lib$name.la"
16687 if test "X$found_dir" = "X"; then
16688 for x in $LDFLAGS $LTLIBICONV; do
16690 acl_save_prefix="$prefix"
16691 prefix="$acl_final_prefix"
16692 acl_save_exec_prefix="$exec_prefix"
16693 exec_prefix="$acl_final_exec_prefix"
16695 exec_prefix="$acl_save_exec_prefix"
16696 prefix="$acl_save_prefix"
16700 dir=`echo "X$x" | sed -e 's/^X-L//'`
16701 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16703 found_so="$dir/lib$name.$shlibext"
16704 if test -f "$dir/lib$name.la"; then
16705 found_la="$dir/lib$name.la"
16708 if test -f "$dir/lib$name.$libext"; then
16710 found_a="$dir/lib$name.$libext"
16711 if test -f "$dir/lib$name.la"; then
16712 found_la="$dir/lib$name.la"
16718 if test "X$found_dir" != "X"; then
16723 if test "X$found_dir" != "X"; then
16724 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16725 if test "X$found_so" != "X"; then
16726 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16727 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16730 for x in $ltrpathdirs; do
16731 if test "X$x" = "X$found_dir"; then
16736 if test -z "$haveit"; then
16737 ltrpathdirs="$ltrpathdirs $found_dir"
16739 if test "$hardcode_direct" = yes; then
16740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16742 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16743 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16745 for x in $rpathdirs; do
16746 if test "X$x" = "X$found_dir"; then
16751 if test -z "$haveit"; then
16752 rpathdirs="$rpathdirs $found_dir"
16756 for x in $LDFLAGS $LIBICONV; do
16758 acl_save_prefix="$prefix"
16759 prefix="$acl_final_prefix"
16760 acl_save_exec_prefix="$exec_prefix"
16761 exec_prefix="$acl_final_exec_prefix"
16763 exec_prefix="$acl_save_exec_prefix"
16764 prefix="$acl_save_prefix"
16766 if test "X$x" = "X-L$found_dir"; then
16771 if test -z "$haveit"; then
16772 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16774 if test "$hardcode_minus_L" != no; then
16775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16777 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16783 if test "X$found_a" != "X"; then
16784 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16786 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16789 additional_includedir=
16790 case "$found_dir" in
16792 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16793 additional_includedir="$basedir/include"
16796 if test "X$additional_includedir" != "X"; then
16797 if test "X$additional_includedir" != "X/usr/include"; then
16799 if test "X$additional_includedir" = "X/usr/local/include"; then
16800 if test -n "$GCC"; then
16802 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16806 if test -z "$haveit"; then
16807 for x in $CPPFLAGS $INCICONV; do
16809 acl_save_prefix="$prefix"
16810 prefix="$acl_final_prefix"
16811 acl_save_exec_prefix="$exec_prefix"
16812 exec_prefix="$acl_final_exec_prefix"
16814 exec_prefix="$acl_save_exec_prefix"
16815 prefix="$acl_save_prefix"
16817 if test "X$x" = "X-I$additional_includedir"; then
16822 if test -z "$haveit"; then
16823 if test -d "$additional_includedir"; then
16824 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16830 if test -n "$found_la"; then
16831 save_libdir="$libdir"
16832 case "$found_la" in
16833 */* | *\\*) . "$found_la" ;;
16834 *) . "./$found_la" ;;
16836 libdir="$save_libdir"
16837 for dep in $dependency_libs; do
16840 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16841 if test "X$additional_libdir" != "X/usr/lib"; then
16843 if test "X$additional_libdir" = "X/usr/local/lib"; then
16844 if test -n "$GCC"; then
16846 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16850 if test -z "$haveit"; then
16852 for x in $LDFLAGS $LIBICONV; do
16854 acl_save_prefix="$prefix"
16855 prefix="$acl_final_prefix"
16856 acl_save_exec_prefix="$exec_prefix"
16857 exec_prefix="$acl_final_exec_prefix"
16859 exec_prefix="$acl_save_exec_prefix"
16860 prefix="$acl_save_prefix"
16862 if test "X$x" = "X-L$additional_libdir"; then
16867 if test -z "$haveit"; then
16868 if test -d "$additional_libdir"; then
16869 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16873 for x in $LDFLAGS $LTLIBICONV; do
16875 acl_save_prefix="$prefix"
16876 prefix="$acl_final_prefix"
16877 acl_save_exec_prefix="$exec_prefix"
16878 exec_prefix="$acl_final_exec_prefix"
16880 exec_prefix="$acl_save_exec_prefix"
16881 prefix="$acl_save_prefix"
16883 if test "X$x" = "X-L$additional_libdir"; then
16888 if test -z "$haveit"; then
16889 if test -d "$additional_libdir"; then
16890 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16897 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16898 if test "$enable_rpath" != no; then
16900 for x in $rpathdirs; do
16901 if test "X$x" = "X$dir"; then
16906 if test -z "$haveit"; then
16907 rpathdirs="$rpathdirs $dir"
16910 for x in $ltrpathdirs; do
16911 if test "X$x" = "X$dir"; then
16916 if test -z "$haveit"; then
16917 ltrpathdirs="$ltrpathdirs $dir"
16922 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16925 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16928 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16935 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16942 if test "X$rpathdirs" != "X"; then
16943 if test -n "$hardcode_libdir_separator"; then
16945 for found_dir in $rpathdirs; do
16946 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16948 acl_save_libdir="$libdir"
16950 eval flag=\"$hardcode_libdir_flag_spec\"
16951 libdir="$acl_save_libdir"
16952 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16954 for found_dir in $rpathdirs; do
16955 acl_save_libdir="$libdir"
16956 libdir="$found_dir"
16957 eval flag=\"$hardcode_libdir_flag_spec\"
16958 libdir="$acl_save_libdir"
16959 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16963 if test "X$ltrpathdirs" != "X"; then
16964 for found_dir in $ltrpathdirs; do
16965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16987 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16988 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16989 $as_echo_n "(cached) " >&6
16991 gt_save_CPPFLAGS="$CPPFLAGS"
16992 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16993 gt_save_LIBS="$LIBS"
16994 LIBS="$LIBS -framework CoreFoundation"
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16997 #include <CFPreferences.h>
17001 CFPreferencesCopyAppValue(NULL, NULL)
17006 if ac_fn_c_try_link "$LINENO"; then :
17007 gt_cv_func_CFPreferencesCopyAppValue=yes
17009 gt_cv_func_CFPreferencesCopyAppValue=no
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 CPPFLAGS="$gt_save_CPPFLAGS"
17014 LIBS="$gt_save_LIBS"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17017 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17018 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17020 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17024 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17025 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17026 $as_echo_n "(cached) " >&6
17028 gt_save_CPPFLAGS="$CPPFLAGS"
17029 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17030 gt_save_LIBS="$LIBS"
17031 LIBS="$LIBS -framework CoreFoundation"
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <CFLocale.h>
17038 CFLocaleCopyCurrent();
17043 if ac_fn_c_try_link "$LINENO"; then :
17044 gt_cv_func_CFLocaleCopyCurrent=yes
17046 gt_cv_func_CFLocaleCopyCurrent=no
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050 CPPFLAGS="$gt_save_CPPFLAGS"
17051 LIBS="$gt_save_LIBS"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17054 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17055 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17057 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17061 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17062 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17069 $as_echo_n "checking whether NLS is requested... " >&6; }
17070 # Check whether --enable-nls was given.
17071 if test "${enable_nls+set}" = set; then :
17072 enableval=$enable_nls; USE_NLS=$enableval
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17078 $as_echo "$USE_NLS" >&6; }
17087 if test "$USE_NLS" = "yes"; then
17088 gt_use_preinstalled_gnugettext=no
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17096 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17097 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17098 $as_echo_n "(cached) " >&6
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 #include <libintl.h>
17103 extern int _nl_msg_cat_cntr;
17104 extern int *_nl_domain_bindings;
17108 bindtextdomain ("", "");
17109 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17114 if ac_fn_c_try_link "$LINENO"; then :
17115 gt_cv_func_gnugettext1_libc=yes
17117 gt_cv_func_gnugettext1_libc=no
17119 rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17123 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17125 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17131 am_save_CPPFLAGS="$CPPFLAGS"
17133 for element in $INCICONV; do
17135 for x in $CPPFLAGS; do
17137 acl_save_prefix="$prefix"
17138 prefix="$acl_final_prefix"
17139 acl_save_exec_prefix="$exec_prefix"
17140 exec_prefix="$acl_final_exec_prefix"
17142 exec_prefix="$acl_save_exec_prefix"
17143 prefix="$acl_save_prefix"
17145 if test "X$x" = "X$element"; then
17150 if test -z "$haveit"; then
17151 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17157 $as_echo_n "checking for iconv... " >&6; }
17158 if ${am_cv_func_iconv+:} false; then :
17159 $as_echo_n "(cached) " >&6
17162 am_cv_func_iconv="no, consider installing GNU libiconv"
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 #include <stdlib.h>
17171 iconv_t cd = iconv_open("","");
17172 iconv(cd,NULL,NULL,NULL,NULL);
17178 if ac_fn_c_try_link "$LINENO"; then :
17179 am_cv_func_iconv=yes
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 if test "$am_cv_func_iconv" != yes; then
17184 am_save_LIBS="$LIBS"
17185 LIBS="$LIBS $LIBICONV"
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 #include <stdlib.h>
17193 iconv_t cd = iconv_open("","");
17194 iconv(cd,NULL,NULL,NULL,NULL);
17200 if ac_fn_c_try_link "$LINENO"; then :
17201 am_cv_lib_iconv=yes
17202 am_cv_func_iconv=yes
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206 LIBS="$am_save_LIBS"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17211 $as_echo "$am_cv_func_iconv" >&6; }
17212 if test "$am_cv_func_iconv" = yes; then
17214 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17217 if test "$am_cv_lib_iconv" = yes; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17219 $as_echo_n "checking how to link with libiconv... " >&6; }
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17221 $as_echo "$LIBICONV" >&6; }
17223 CPPFLAGS="$am_save_CPPFLAGS"
17235 acl_save_prefix="$prefix"
17236 prefix="$acl_final_prefix"
17237 acl_save_exec_prefix="$exec_prefix"
17238 exec_prefix="$acl_final_exec_prefix"
17240 eval additional_includedir=\"$includedir\"
17241 eval additional_libdir=\"$libdir\"
17243 exec_prefix="$acl_save_exec_prefix"
17244 prefix="$acl_save_prefix"
17247 # Check whether --with-libintl-prefix was given.
17248 if test "${with_libintl_prefix+set}" = set; then :
17249 withval=$with_libintl_prefix;
17250 if test "X$withval" = "Xno"; then
17253 if test "X$withval" = "X"; then
17255 acl_save_prefix="$prefix"
17256 prefix="$acl_final_prefix"
17257 acl_save_exec_prefix="$exec_prefix"
17258 exec_prefix="$acl_final_exec_prefix"
17260 eval additional_includedir=\"$includedir\"
17261 eval additional_libdir=\"$libdir\"
17263 exec_prefix="$acl_save_exec_prefix"
17264 prefix="$acl_save_prefix"
17267 additional_includedir="$withval/include"
17268 additional_libdir="$withval/lib"
17279 names_already_handled=
17280 names_next_round='intl '
17281 while test -n "$names_next_round"; do
17282 names_this_round="$names_next_round"
17284 for name in $names_this_round; do
17286 for n in $names_already_handled; do
17287 if test "$n" = "$name"; then
17288 already_handled=yes
17292 if test -z "$already_handled"; then
17293 names_already_handled="$names_already_handled $name"
17294 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17295 eval value=\"\$HAVE_LIB$uppername\"
17296 if test -n "$value"; then
17297 if test "$value" = yes; then
17298 eval value=\"\$LIB$uppername\"
17299 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17300 eval value=\"\$LTLIB$uppername\"
17301 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17310 if test $use_additional = yes; then
17311 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17312 found_dir="$additional_libdir"
17313 found_so="$additional_libdir/lib$name.$shlibext"
17314 if test -f "$additional_libdir/lib$name.la"; then
17315 found_la="$additional_libdir/lib$name.la"
17318 if test -f "$additional_libdir/lib$name.$libext"; then
17319 found_dir="$additional_libdir"
17320 found_a="$additional_libdir/lib$name.$libext"
17321 if test -f "$additional_libdir/lib$name.la"; then
17322 found_la="$additional_libdir/lib$name.la"
17327 if test "X$found_dir" = "X"; then
17328 for x in $LDFLAGS $LTLIBINTL; do
17330 acl_save_prefix="$prefix"
17331 prefix="$acl_final_prefix"
17332 acl_save_exec_prefix="$exec_prefix"
17333 exec_prefix="$acl_final_exec_prefix"
17335 exec_prefix="$acl_save_exec_prefix"
17336 prefix="$acl_save_prefix"
17340 dir=`echo "X$x" | sed -e 's/^X-L//'`
17341 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17343 found_so="$dir/lib$name.$shlibext"
17344 if test -f "$dir/lib$name.la"; then
17345 found_la="$dir/lib$name.la"
17348 if test -f "$dir/lib$name.$libext"; then
17350 found_a="$dir/lib$name.$libext"
17351 if test -f "$dir/lib$name.la"; then
17352 found_la="$dir/lib$name.la"
17358 if test "X$found_dir" != "X"; then
17363 if test "X$found_dir" != "X"; then
17364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17365 if test "X$found_so" != "X"; then
17366 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17367 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17370 for x in $ltrpathdirs; do
17371 if test "X$x" = "X$found_dir"; then
17376 if test -z "$haveit"; then
17377 ltrpathdirs="$ltrpathdirs $found_dir"
17379 if test "$hardcode_direct" = yes; then
17380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17382 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17383 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17385 for x in $rpathdirs; do
17386 if test "X$x" = "X$found_dir"; then
17391 if test -z "$haveit"; then
17392 rpathdirs="$rpathdirs $found_dir"
17396 for x in $LDFLAGS $LIBINTL; do
17398 acl_save_prefix="$prefix"
17399 prefix="$acl_final_prefix"
17400 acl_save_exec_prefix="$exec_prefix"
17401 exec_prefix="$acl_final_exec_prefix"
17403 exec_prefix="$acl_save_exec_prefix"
17404 prefix="$acl_save_prefix"
17406 if test "X$x" = "X-L$found_dir"; then
17411 if test -z "$haveit"; then
17412 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17414 if test "$hardcode_minus_L" != no; then
17415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17417 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17423 if test "X$found_a" != "X"; then
17424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17426 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17429 additional_includedir=
17430 case "$found_dir" in
17432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17433 additional_includedir="$basedir/include"
17436 if test "X$additional_includedir" != "X"; then
17437 if test "X$additional_includedir" != "X/usr/include"; then
17439 if test "X$additional_includedir" = "X/usr/local/include"; then
17440 if test -n "$GCC"; then
17442 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17446 if test -z "$haveit"; then
17447 for x in $CPPFLAGS $INCINTL; do
17449 acl_save_prefix="$prefix"
17450 prefix="$acl_final_prefix"
17451 acl_save_exec_prefix="$exec_prefix"
17452 exec_prefix="$acl_final_exec_prefix"
17454 exec_prefix="$acl_save_exec_prefix"
17455 prefix="$acl_save_prefix"
17457 if test "X$x" = "X-I$additional_includedir"; then
17462 if test -z "$haveit"; then
17463 if test -d "$additional_includedir"; then
17464 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17470 if test -n "$found_la"; then
17471 save_libdir="$libdir"
17472 case "$found_la" in
17473 */* | *\\*) . "$found_la" ;;
17474 *) . "./$found_la" ;;
17476 libdir="$save_libdir"
17477 for dep in $dependency_libs; do
17480 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17481 if test "X$additional_libdir" != "X/usr/lib"; then
17483 if test "X$additional_libdir" = "X/usr/local/lib"; then
17484 if test -n "$GCC"; then
17486 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17490 if test -z "$haveit"; then
17492 for x in $LDFLAGS $LIBINTL; do
17494 acl_save_prefix="$prefix"
17495 prefix="$acl_final_prefix"
17496 acl_save_exec_prefix="$exec_prefix"
17497 exec_prefix="$acl_final_exec_prefix"
17499 exec_prefix="$acl_save_exec_prefix"
17500 prefix="$acl_save_prefix"
17502 if test "X$x" = "X-L$additional_libdir"; then
17507 if test -z "$haveit"; then
17508 if test -d "$additional_libdir"; then
17509 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17513 for x in $LDFLAGS $LTLIBINTL; do
17515 acl_save_prefix="$prefix"
17516 prefix="$acl_final_prefix"
17517 acl_save_exec_prefix="$exec_prefix"
17518 exec_prefix="$acl_final_exec_prefix"
17520 exec_prefix="$acl_save_exec_prefix"
17521 prefix="$acl_save_prefix"
17523 if test "X$x" = "X-L$additional_libdir"; then
17528 if test -z "$haveit"; then
17529 if test -d "$additional_libdir"; then
17530 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17537 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17538 if test "$enable_rpath" != no; then
17540 for x in $rpathdirs; do
17541 if test "X$x" = "X$dir"; then
17546 if test -z "$haveit"; then
17547 rpathdirs="$rpathdirs $dir"
17550 for x in $ltrpathdirs; do
17551 if test "X$x" = "X$dir"; then
17556 if test -z "$haveit"; then
17557 ltrpathdirs="$ltrpathdirs $dir"
17562 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17565 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17568 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17575 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17576 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17582 if test "X$rpathdirs" != "X"; then
17583 if test -n "$hardcode_libdir_separator"; then
17585 for found_dir in $rpathdirs; do
17586 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17588 acl_save_libdir="$libdir"
17590 eval flag=\"$hardcode_libdir_flag_spec\"
17591 libdir="$acl_save_libdir"
17592 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17594 for found_dir in $rpathdirs; do
17595 acl_save_libdir="$libdir"
17596 libdir="$found_dir"
17597 eval flag=\"$hardcode_libdir_flag_spec\"
17598 libdir="$acl_save_libdir"
17599 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17603 if test "X$ltrpathdirs" != "X"; then
17604 for found_dir in $ltrpathdirs; do
17605 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17610 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17611 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17612 $as_echo_n "(cached) " >&6
17614 gt_save_CPPFLAGS="$CPPFLAGS"
17615 CPPFLAGS="$CPPFLAGS $INCINTL"
17616 gt_save_LIBS="$LIBS"
17617 LIBS="$LIBS $LIBINTL"
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 #include <libintl.h>
17621 extern int _nl_msg_cat_cntr;
17626 const char *_nl_expand_alias (const char *);
17630 bindtextdomain ("", "");
17631 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17636 if ac_fn_c_try_link "$LINENO"; then :
17637 gt_cv_func_gnugettext1_libintl=yes
17639 gt_cv_func_gnugettext1_libintl=no
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17644 LIBS="$LIBS $LIBICONV"
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647 #include <libintl.h>
17648 extern int _nl_msg_cat_cntr;
17653 const char *_nl_expand_alias (const char *);
17657 bindtextdomain ("", "");
17658 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17663 if ac_fn_c_try_link "$LINENO"; then :
17664 LIBINTL="$LIBINTL $LIBICONV"
17665 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17666 gt_cv_func_gnugettext1_libintl=yes
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17672 CPPFLAGS="$gt_save_CPPFLAGS"
17673 LIBS="$gt_save_LIBS"
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17676 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17679 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17680 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17681 && test "$PACKAGE" != gettext-runtime \
17682 && test "$PACKAGE" != gettext-tools; }; then
17683 gt_use_preinstalled_gnugettext=yes
17692 if test -n "$INTL_MACOSX_LIBS"; then
17693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17695 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17696 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17700 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17701 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17703 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17711 $as_echo_n "checking whether to use NLS... " >&6; }
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17713 $as_echo "$USE_NLS" >&6; }
17714 if test "$USE_NLS" = "yes"; then
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17716 $as_echo_n "checking where the gettext function comes from... " >&6; }
17717 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17718 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17719 gt_source="external libintl"
17724 gt_source="included intl directory"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17727 $as_echo "$gt_source" >&6; }
17730 if test "$USE_NLS" = "yes"; then
17732 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17733 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17735 $as_echo_n "checking how to link with libintl... " >&6; }
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17737 $as_echo "$LIBINTL" >&6; }
17739 for element in $INCINTL; do
17741 for x in $CPPFLAGS; do
17743 acl_save_prefix="$prefix"
17744 prefix="$acl_final_prefix"
17745 acl_save_exec_prefix="$exec_prefix"
17746 exec_prefix="$acl_final_exec_prefix"
17748 exec_prefix="$acl_save_exec_prefix"
17749 prefix="$acl_save_prefix"
17751 if test "X$x" = "X$element"; then
17756 if test -z "$haveit"; then
17757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17764 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17767 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17776 INTLLIBS="$LIBINTL"
17784 os_name=`uname -s 2>/dev/null`
17785 if test x${prefix} = xNONE ; then
17786 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17787 sysconfdir=/etc/bacula
17790 if test `eval echo ${libdir}` = NONE/lib ; then
17793 os_processor=`uname -p 2>/dev/null`
17794 case ${os_processor} in
17809 if test `eval echo ${includedir}` = NONE/include ; then
17810 includedir=/usr/include
17813 if test `eval echo ${datarootdir}` = NONE/share ; then
17814 datarootdir=/usr/share
17819 if test x${exec_prefix} = xNONE ; then
17820 exec_prefix=${prefix}
17823 sysconfdir=`eval echo ${sysconfdir}`
17824 datarootdir=`eval echo ${datarootdir}`
17825 docdir=`eval echo ${docdir}`
17826 htmldir=`eval echo ${htmldir}`
17827 libdir=`eval echo ${libdir}`
17828 includedir=`eval echo ${includedir}`
17829 localedir=`eval echo ${datarootdir}/locale`
17830 cat >>confdefs.h <<_ACEOF
17831 #define SYSCONFDIR "$sysconfdir"
17834 cat >>confdefs.h <<_ACEOF
17835 #define LOCALEDIR "$localedir"
17839 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17840 sbindir=${exec_prefix}/sbin
17842 sbindir=`eval echo ${sbindir}`
17844 if test x$mandir = x'${prefix}/man' ; then
17845 mandir=/usr/share/man
17848 if test x$htmldir = x${docdir} ; then
17849 htmldir=`eval echo ${docdir}bacula/html`
17852 if test x$docdir = x'/usr/share/doc/' ; then
17853 docdir=`eval echo ${docdir}bacula`
17857 for ac_prog in msgfmt
17859 # Extract the first word of "$ac_prog", so it can be a program name with args.
17860 set dummy $ac_prog; ac_word=$2
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17862 $as_echo_n "checking for $ac_word... " >&6; }
17863 if ${ac_cv_path_MSGFMT+:} false; then :
17864 $as_echo_n "(cached) " >&6
17868 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17872 for as_dir in $PATH
17875 test -z "$as_dir" && as_dir=.
17876 for ac_exec_ext in '' $ac_executable_extensions; do
17877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17878 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17889 MSGFMT=$ac_cv_path_MSGFMT
17890 if test -n "$MSGFMT"; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17892 $as_echo "$MSGFMT" >&6; }
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17899 test -n "$MSGFMT" && break
17901 test -n "$MSGFMT" || MSGFMT="no"
17903 if test "$MSGFMT" = "no"
17905 echo 'msgfmt program not found, disabling NLS !'
17907 USE_INCLUDED_LIBINTL=no
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17911 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17912 if ${ac_cv_gnu_library_2+:} false; then :
17913 $as_echo_n "(cached) " >&6
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17918 #include <features.h>
17919 #ifdef __GNU_LIBRARY__
17920 #if (__GLIBC__ >= 2)
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17928 ac_cv_gnu_library_2=yes
17930 ac_cv_gnu_library_2=no
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17938 $as_echo "$ac_cv_gnu_library_2" >&6; }
17940 GLIBC2="$ac_cv_gnu_library_2"
17943 if test -n "$ac_tool_prefix"; then
17944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17947 $as_echo_n "checking for $ac_word... " >&6; }
17948 if ${ac_cv_prog_RANLIB+:} false; then :
17949 $as_echo_n "(cached) " >&6
17951 if test -n "$RANLIB"; then
17952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955 for as_dir in $PATH
17958 test -z "$as_dir" && as_dir=.
17959 for ac_exec_ext in '' $ac_executable_extensions; do
17960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17971 RANLIB=$ac_cv_prog_RANLIB
17972 if test -n "$RANLIB"; then
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17974 $as_echo "$RANLIB" >&6; }
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17982 if test -z "$ac_cv_prog_RANLIB"; then
17983 ac_ct_RANLIB=$RANLIB
17984 # Extract the first word of "ranlib", so it can be a program name with args.
17985 set dummy ranlib; ac_word=$2
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17987 $as_echo_n "checking for $ac_word... " >&6; }
17988 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17989 $as_echo_n "(cached) " >&6
17991 if test -n "$ac_ct_RANLIB"; then
17992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17998 test -z "$as_dir" && as_dir=.
17999 for ac_exec_ext in '' $ac_executable_extensions; do
18000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18001 ac_cv_prog_ac_ct_RANLIB="ranlib"
18002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18012 if test -n "$ac_ct_RANLIB"; then
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18014 $as_echo "$ac_ct_RANLIB" >&6; }
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 $as_echo "no" >&6; }
18020 if test "x$ac_ct_RANLIB" = x; then
18023 case $cross_compiling:$ac_tool_warned in
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18027 ac_tool_warned=yes ;;
18029 RANLIB=$ac_ct_RANLIB
18032 RANLIB="$ac_cv_prog_RANLIB"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18037 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18038 if ${ac_cv_lib_cposix_strerror+:} false; then :
18039 $as_echo_n "(cached) " >&6
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lcposix $LIBS"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18056 return strerror ();
18061 if ac_fn_c_try_link "$LINENO"; then :
18062 ac_cv_lib_cposix_strerror=yes
18064 ac_cv_lib_cposix_strerror=no
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18071 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18072 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18073 LIBS="$LIBS -lcposix"
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18079 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18080 if ${ac_cv_c_const+:} false; then :
18081 $as_echo_n "(cached) " >&6
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18089 /* FIXME: Include the comments suggested by Paul. */
18090 #ifndef __cplusplus
18091 /* Ultrix mips cc rejects this. */
18092 typedef int charset[2];
18094 /* SunOS 4.1.1 cc rejects this. */
18095 char const *const *pcpcc;
18097 /* NEC SVR4.0.2 mips cc rejects this. */
18098 struct point {int x, y;};
18099 static struct point const zero = {0,0};
18100 /* AIX XL C 1.02.0.0 rejects this.
18101 It does not let you subtract one const X* pointer from another in
18102 an arm of an if-expression whose if-part is not a constant
18104 const char *g = "string";
18105 pcpcc = &g + (g ? g-g : 0);
18106 /* HPUX 7.0 cc rejects these. */
18108 ppc = (char**) pcpcc;
18109 pcpcc = (char const *const *) ppc;
18110 { /* SCO 3.2v4 cc rejects this. */
18112 char const *s = 0 ? (char *) 0 : (char const *) 0;
18117 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18118 int x[] = {25, 17};
18119 const int *foo = &x[0];
18122 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18123 typedef const int *iptr;
18127 { /* AIX XL C 1.02.0.0 rejects this saying
18128 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18129 struct s { int j; const int *ap[3]; };
18130 struct s *b; b->j = 5;
18132 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18133 const int foo = 10;
18134 if (!foo) return 0;
18136 return !cs[0] && !zero.x;
18143 if ac_fn_c_try_compile "$LINENO"; then :
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18151 $as_echo "$ac_cv_c_const" >&6; }
18152 if test $ac_cv_c_const = no; then
18154 $as_echo "#define const /**/" >>confdefs.h
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18160 $as_echo_n "checking for signed... " >&6; }
18161 if ${bh_cv_c_signed+:} false; then :
18162 $as_echo_n "(cached) " >&6
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18175 if ac_fn_c_try_compile "$LINENO"; then :
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18183 $as_echo "$bh_cv_c_signed" >&6; }
18184 if test $bh_cv_c_signed = no; then
18186 $as_echo "#define signed /**/" >>confdefs.h
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18191 $as_echo_n "checking for inline... " >&6; }
18192 if ${ac_cv_c_inline+:} false; then :
18193 $as_echo_n "(cached) " >&6
18196 for ac_kw in inline __inline__ __inline; do
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #ifndef __cplusplus
18201 static $ac_kw foo_t static_foo () {return 0; }
18202 $ac_kw foo_t foo () {return 0; }
18206 if ac_fn_c_try_compile "$LINENO"; then :
18207 ac_cv_c_inline=$ac_kw
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 test "$ac_cv_c_inline" != no && break
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18215 $as_echo "$ac_cv_c_inline" >&6; }
18217 case $ac_cv_c_inline in
18220 case $ac_cv_c_inline in
18222 *) ac_val=$ac_cv_c_inline;;
18224 cat >>confdefs.h <<_ACEOF
18225 #ifndef __cplusplus
18226 #define inline $ac_val
18232 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18233 if test "x$ac_cv_type_off_t" = xyes; then :
18237 cat >>confdefs.h <<_ACEOF
18238 #define off_t long int
18243 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18244 if test "x$ac_cv_type_size_t" = xyes; then :
18248 cat >>confdefs.h <<_ACEOF
18249 #define size_t unsigned int
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18256 $as_echo_n "checking for long long... " >&6; }
18257 if ${ac_cv_type_long_long+:} false; then :
18258 $as_echo_n "(cached) " >&6
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262 long long ll = 1LL; int i = 63;
18266 long long llmax = (long long) -1;
18267 return ll << i | ll >> i | llmax / ll | llmax % ll;
18272 if ac_fn_c_try_link "$LINENO"; then :
18273 ac_cv_type_long_long=yes
18275 ac_cv_type_long_long=no
18277 rm -f core conftest.err conftest.$ac_objext \
18278 conftest$ac_exeext conftest.$ac_ext
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18281 $as_echo "$ac_cv_type_long_long" >&6; }
18282 if test $ac_cv_type_long_long = yes; then
18284 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18290 $as_echo_n "checking for long double... " >&6; }
18291 if ${gt_cv_c_long_double+:} false; then :
18292 $as_echo_n "(cached) " >&6
18294 if test "$GCC" = yes; then
18295 gt_cv_c_long_double=yes
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18300 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18301 long double foo = 0.0;
18302 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18303 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18313 if ac_fn_c_try_compile "$LINENO"; then :
18314 gt_cv_c_long_double=yes
18316 gt_cv_c_long_double=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18322 $as_echo "$gt_cv_c_long_double" >&6; }
18323 if test $gt_cv_c_long_double = yes; then
18325 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18331 $as_echo_n "checking for wchar_t... " >&6; }
18332 if ${gt_cv_c_wchar_t+:} false; then :
18333 $as_echo_n "(cached) " >&6
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18337 #include <stddef.h>
18338 wchar_t foo = (wchar_t)'\0';
18347 if ac_fn_c_try_compile "$LINENO"; then :
18348 gt_cv_c_wchar_t=yes
18352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18355 $as_echo "$gt_cv_c_wchar_t" >&6; }
18356 if test $gt_cv_c_wchar_t = yes; then
18358 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18364 $as_echo_n "checking for wint_t... " >&6; }
18365 if ${gt_cv_c_wint_t+:} false; then :
18366 $as_echo_n "(cached) " >&6
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18371 wint_t foo = (wchar_t)'\0';
18380 if ac_fn_c_try_compile "$LINENO"; then :
18385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18388 $as_echo "$gt_cv_c_wint_t" >&6; }
18389 if test $gt_cv_c_wint_t = yes; then
18391 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18397 $as_echo_n "checking for inttypes.h... " >&6; }
18398 if ${gl_cv_header_inttypes_h+:} false; then :
18399 $as_echo_n "(cached) " >&6
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <sys/types.h>
18404 #include <inttypes.h>
18408 uintmax_t i = (uintmax_t) -1;
18413 if ac_fn_c_try_compile "$LINENO"; then :
18414 gl_cv_header_inttypes_h=yes
18416 gl_cv_header_inttypes_h=no
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18421 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18422 if test $gl_cv_header_inttypes_h = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18432 $as_echo_n "checking for stdint.h... " >&6; }
18433 if ${gl_cv_header_stdint_h+:} false; then :
18434 $as_echo_n "(cached) " >&6
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18438 #include <sys/types.h>
18439 #include <stdint.h>
18443 uintmax_t i = (uintmax_t) -1;
18448 if ac_fn_c_try_compile "$LINENO"; then :
18449 gl_cv_header_stdint_h=yes
18451 gl_cv_header_stdint_h=no
18453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18456 $as_echo "$gl_cv_header_stdint_h" >&6; }
18457 if test $gl_cv_header_stdint_h = yes; then
18459 cat >>confdefs.h <<_ACEOF
18460 #define HAVE_STDINT_H_WITH_UINTMAX 1
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18469 $as_echo_n "checking for intmax_t... " >&6; }
18470 if ${gt_cv_c_intmax_t+:} false; then :
18471 $as_echo_n "(cached) " >&6
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18476 #include <stddef.h>
18477 #include <stdlib.h>
18478 #if HAVE_STDINT_H_WITH_UINTMAX
18479 #include <stdint.h>
18481 #if HAVE_INTTYPES_H_WITH_UINTMAX
18482 #include <inttypes.h>
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494 gt_cv_c_intmax_t=yes
18496 gt_cv_c_intmax_t=no
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18501 $as_echo "$gt_cv_c_intmax_t" >&6; }
18502 if test $gt_cv_c_intmax_t = yes; then
18504 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18511 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18512 if ${gt_cv_func_printf_posix+:} false; then :
18513 $as_echo_n "(cached) " >&6
18516 if test "$cross_compiling" = yes; then :
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18521 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18527 $EGREP "notposix" >/dev/null 2>&1; then :
18528 gt_cv_func_printf_posix="guessing no"
18530 gt_cv_func_printf_posix="guessing yes"
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18540 #include <string.h>
18541 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18542 dollar expansion (possibly an autoconf bug). */
18543 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18544 static char buf[100];
18547 sprintf (buf, format, 33, 55);
18548 return (strcmp (buf, "55 33") != 0);
18551 if ac_fn_c_try_run "$LINENO"; then :
18552 gt_cv_func_printf_posix=yes
18554 gt_cv_func_printf_posix=no
18556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18557 conftest.$ac_objext conftest.beam conftest.$ac_ext
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18563 $as_echo "$gt_cv_func_printf_posix" >&6; }
18564 case $gt_cv_func_printf_posix in
18567 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18573 # for constant arguments. Useless!
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18575 $as_echo_n "checking for working alloca.h... " >&6; }
18576 if ${ac_cv_working_alloca_h+:} false; then :
18577 $as_echo_n "(cached) " >&6
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581 #include <alloca.h>
18585 char *p = (char *) alloca (2 * sizeof (int));
18591 if ac_fn_c_try_link "$LINENO"; then :
18592 ac_cv_working_alloca_h=yes
18594 ac_cv_working_alloca_h=no
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18600 $as_echo "$ac_cv_working_alloca_h" >&6; }
18601 if test $ac_cv_working_alloca_h = yes; then
18603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18608 $as_echo_n "checking for alloca... " >&6; }
18609 if ${ac_cv_func_alloca_works+:} false; then :
18610 $as_echo_n "(cached) " >&6
18612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18615 # define alloca __builtin_alloca
18618 # include <malloc.h>
18619 # define alloca _alloca
18621 # ifdef HAVE_ALLOCA_H
18622 # include <alloca.h>
18627 # ifndef alloca /* predefined by HP cc +Olibcalls */
18628 void *alloca (size_t);
18638 char *p = (char *) alloca (1);
18644 if ac_fn_c_try_link "$LINENO"; then :
18645 ac_cv_func_alloca_works=yes
18647 ac_cv_func_alloca_works=no
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18653 $as_echo "$ac_cv_func_alloca_works" >&6; }
18655 if test $ac_cv_func_alloca_works = yes; then
18657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18661 # that cause trouble. Some versions do not even contain alloca or
18662 # contain a buggy version. If you still want to use their alloca,
18663 # use ar to extract alloca.o from them instead of compiling alloca.c.
18665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18672 if ${ac_cv_os_cray+:} false; then :
18673 $as_echo_n "(cached) " >&6
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677 #if defined CRAY && ! defined CRAY2
18684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18685 $EGREP "webecray" >/dev/null 2>&1; then :
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18694 $as_echo "$ac_cv_os_cray" >&6; }
18695 if test $ac_cv_os_cray = yes; then
18696 for ac_func in _getb67 GETB67 getb67; do
18697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18701 cat >>confdefs.h <<_ACEOF
18702 #define CRAY_STACKSEG_END $ac_func
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18712 $as_echo_n "checking stack direction for C alloca... " >&6; }
18713 if ${ac_cv_c_stack_direction+:} false; then :
18714 $as_echo_n "(cached) " >&6
18716 if test "$cross_compiling" = yes; then :
18717 ac_cv_c_stack_direction=0
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18721 $ac_includes_default
18723 find_stack_direction ()
18725 static char *addr = 0;
18730 return find_stack_direction ();
18733 return (&dummy > addr) ? 1 : -1;
18739 return find_stack_direction () < 0;
18742 if ac_fn_c_try_run "$LINENO"; then :
18743 ac_cv_c_stack_direction=1
18745 ac_cv_c_stack_direction=-1
18747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18748 conftest.$ac_objext conftest.beam conftest.$ac_ext
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18753 $as_echo "$ac_cv_c_stack_direction" >&6; }
18754 cat >>confdefs.h <<_ACEOF
18755 #define STACK_DIRECTION $ac_cv_c_stack_direction
18764 for ac_header in $ac_header_list
18766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18770 cat >>confdefs.h <<_ACEOF
18771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18785 for ac_func in getpagesize
18787 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18788 if test "x$ac_cv_func_getpagesize" = xyes; then :
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_GETPAGESIZE 1
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18797 $as_echo_n "checking for working mmap... " >&6; }
18798 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18799 $as_echo_n "(cached) " >&6
18801 if test "$cross_compiling" = yes; then :
18802 ac_cv_func_mmap_fixed_mapped=no
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806 $ac_includes_default
18807 /* malloc might have been renamed as rpl_malloc. */
18810 /* Thanks to Mike Haertel and Jim Avera for this test.
18811 Here is a matrix of mmap possibilities:
18812 mmap private not fixed
18813 mmap private fixed at somewhere currently unmapped
18814 mmap private fixed at somewhere already mapped
18815 mmap shared not fixed
18816 mmap shared fixed at somewhere currently unmapped
18817 mmap shared fixed at somewhere already mapped
18818 For private mappings, we should verify that changes cannot be read()
18819 back from the file, nor mmap's back from the file at a different
18820 address. (There have been systems where private was not correctly
18821 implemented like the infamous i386 svr4.0, and systems where the
18822 VM page cache was not coherent with the file system buffer cache
18823 like early versions of FreeBSD and possibly contemporary NetBSD.)
18824 For shared mappings, we should conversely verify that changes get
18825 propagated back to all the places they're supposed to be.
18827 Grep wants private fixed already mapped.
18828 The main things grep needs to know about mmap are:
18829 * does it exist and is it safe to write into the mmap'd area
18830 * how to use it (BSD variants) */
18833 #include <sys/mman.h>
18835 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18839 /* This mess was copied from the GNU getpagesize.h. */
18840 #ifndef HAVE_GETPAGESIZE
18841 # ifdef _SC_PAGESIZE
18842 # define getpagesize() sysconf(_SC_PAGESIZE)
18843 # else /* no _SC_PAGESIZE */
18844 # ifdef HAVE_SYS_PARAM_H
18845 # include <sys/param.h>
18846 # ifdef EXEC_PAGESIZE
18847 # define getpagesize() EXEC_PAGESIZE
18848 # else /* no EXEC_PAGESIZE */
18850 # define getpagesize() NBPG * CLSIZE
18853 # endif /* no CLSIZE */
18854 # else /* no NBPG */
18856 # define getpagesize() NBPC
18857 # else /* no NBPC */
18859 # define getpagesize() PAGESIZE
18860 # endif /* PAGESIZE */
18861 # endif /* no NBPC */
18862 # endif /* no NBPG */
18863 # endif /* no EXEC_PAGESIZE */
18864 # else /* no HAVE_SYS_PARAM_H */
18865 # define getpagesize() 8192 /* punt totally */
18866 # endif /* no HAVE_SYS_PARAM_H */
18867 # endif /* no _SC_PAGESIZE */
18869 #endif /* no HAVE_GETPAGESIZE */
18874 char *data, *data2, *data3;
18875 const char *cdata2;
18879 pagesize = getpagesize ();
18881 /* First, make a file with some known garbage in it. */
18882 data = (char *) malloc (pagesize);
18885 for (i = 0; i < pagesize; ++i)
18886 *(data + i) = rand ();
18888 fd = creat ("conftest.mmap", 0600);
18891 if (write (fd, data, pagesize) != pagesize)
18895 /* Next, check that the tail of a page is zero-filled. File must have
18896 non-zero length, otherwise we risk SIGBUS for entire page. */
18897 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18901 if (write (fd2, cdata2, 1) != 1)
18903 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18904 if (data2 == MAP_FAILED)
18906 for (i = 0; i < pagesize; ++i)
18910 if (munmap (data2, pagesize))
18913 /* Next, try to mmap the file at a fixed address which already has
18914 something else allocated at it. If we can, also make sure that
18915 we see the same garbage. */
18916 fd = open ("conftest.mmap", O_RDWR);
18919 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18920 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18922 for (i = 0; i < pagesize; ++i)
18923 if (*(data + i) != *(data2 + i))
18926 /* Finally, make sure that changes to the mapped area do not
18927 percolate back to the file as seen by read(). (This is a bug on
18928 some variants of i386 svr4.0.) */
18929 for (i = 0; i < pagesize; ++i)
18930 *(data2 + i) = *(data2 + i) + 1;
18931 data3 = (char *) malloc (pagesize);
18934 if (read (fd, data3, pagesize) != pagesize)
18936 for (i = 0; i < pagesize; ++i)
18937 if (*(data + i) != *(data3 + i))
18943 if ac_fn_c_try_run "$LINENO"; then :
18944 ac_cv_func_mmap_fixed_mapped=yes
18946 ac_cv_func_mmap_fixed_mapped=no
18948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18949 conftest.$ac_objext conftest.beam conftest.$ac_ext
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18957 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18960 rm -f conftest.mmap conftest.txt
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18964 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18965 if ${ac_cv_gnu_library_2_1+:} false; then :
18966 $as_echo_n "(cached) " >&6
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18971 #include <features.h>
18972 #ifdef __GNU_LIBRARY__
18973 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18980 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18981 ac_cv_gnu_library_2_1=yes
18983 ac_cv_gnu_library_2_1=no
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18991 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18993 GLIBC21="$ac_cv_gnu_library_2_1"
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18999 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19000 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19001 $as_echo_n "(cached) " >&6
19004 if test "$cross_compiling" = yes; then :
19006 # Guess based on the CPU.
19007 case "$host_cpu" in
19008 alpha* | i3456786 | m68k | s390*)
19009 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19011 gt_cv_int_divbyzero_sigfpe="guessing no";;
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19018 #include <stdlib.h>
19019 #include <signal.h>
19023 sigfpe_handler (int sig)
19025 sigfpe_handler (sig) int sig;
19028 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19029 exit (sig != SIGFPE);
19039 signal (SIGFPE, sigfpe_handler);
19040 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19041 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19042 signal (SIGTRAP, sigfpe_handler);
19044 /* Linux/SPARC yields signal SIGILL. */
19045 #if defined (__sparc__) && defined (__linux__)
19046 signal (SIGILL, sigfpe_handler);
19055 if ac_fn_c_try_run "$LINENO"; then :
19056 gt_cv_int_divbyzero_sigfpe=yes
19058 gt_cv_int_divbyzero_sigfpe=no
19060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19061 conftest.$ac_objext conftest.beam conftest.$ac_ext
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19067 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19068 case "$gt_cv_int_divbyzero_sigfpe" in
19073 cat >>confdefs.h <<_ACEOF
19074 #define INTDIV0_RAISES_SIGFPE $value
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19080 $as_echo_n "checking for unsigned long long... " >&6; }
19081 if ${ac_cv_type_unsigned_long_long+:} false; then :
19082 $as_echo_n "(cached) " >&6
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19086 unsigned long long ull = 1ULL; int i = 63;
19090 unsigned long long ullmax = (unsigned long long) -1;
19091 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19096 if ac_fn_c_try_link "$LINENO"; then :
19097 ac_cv_type_unsigned_long_long=yes
19099 ac_cv_type_unsigned_long_long=no
19101 rm -f core conftest.err conftest.$ac_objext \
19102 conftest$ac_exeext conftest.$ac_ext
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19105 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19106 if test $ac_cv_type_unsigned_long_long = yes; then
19108 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19115 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19117 test $ac_cv_type_unsigned_long_long = yes \
19118 && ac_type='unsigned long long' \
19119 || ac_type='unsigned long'
19121 cat >>confdefs.h <<_ACEOF
19122 #define uintmax_t $ac_type
19127 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19133 $as_echo_n "checking for inttypes.h... " >&6; }
19134 if ${gt_cv_header_inttypes_h+:} false; then :
19135 $as_echo_n "(cached) " >&6
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19140 #include <sys/types.h>
19141 #include <inttypes.h>
19150 if ac_fn_c_try_compile "$LINENO"; then :
19151 gt_cv_header_inttypes_h=yes
19153 gt_cv_header_inttypes_h=no
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19159 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19160 if test $gt_cv_header_inttypes_h = yes; then
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_INTTYPES_H 1
19170 if test $gt_cv_header_inttypes_h = yes; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19172 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19173 if ${gt_cv_inttypes_pri_broken+:} false; then :
19174 $as_echo_n "(cached) " >&6
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19179 #include <inttypes.h>
19192 if ac_fn_c_try_compile "$LINENO"; then :
19193 gt_cv_inttypes_pri_broken=no
19195 gt_cv_inttypes_pri_broken=yes
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19201 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19203 if test "$gt_cv_inttypes_pri_broken" = yes; then
19205 cat >>confdefs.h <<_ACEOF
19206 #define PRI_MACROS_BROKEN 1
19212 for ac_header in stdint.h
19214 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19215 if test "x$ac_cv_header_stdint_h" = xyes; then :
19216 cat >>confdefs.h <<_ACEOF
19217 #define HAVE_STDINT_H 1
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19225 $as_echo_n "checking for SIZE_MAX... " >&6; }
19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h. */
19230 #include <limits.h>
19232 #include <stdint.h>
19239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19240 $EGREP "Found it" >/dev/null 2>&1; then :
19245 if test -z "$result"; then
19246 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19253 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19260 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19267 if test "$fits_in_uint" = 1; then
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270 #include <stddef.h>
19272 extern unsigned long foo;
19282 if ac_fn_c_try_compile "$LINENO"; then :
19285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 if test -z "$result"; then
19288 if test "$fits_in_uint" = 1; then
19289 result="$res_hi$res_lo"U
19291 result="$res_hi$res_lo"UL
19294 result='~(size_t)0'
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19298 $as_echo "$result" >&6; }
19299 if test "$result" != yes; then
19301 cat >>confdefs.h <<_ACEOF
19302 #define SIZE_MAX $result
19310 for ac_header in stdint.h
19312 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19313 if test "x$ac_cv_header_stdint_h" = xyes; then :
19314 cat >>confdefs.h <<_ACEOF
19315 #define HAVE_STDINT_H 1
19329 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19330 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19334 $as_echo "#define ptrdiff_t long" >>confdefs.h
19339 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19340 stdlib.h string.h unistd.h sys/param.h
19342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19343 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19345 cat >>confdefs.h <<_ACEOF
19346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19353 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19354 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19355 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19361 cat >>confdefs.h <<_ACEOF
19362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19371 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19372 if ${ac_cv_have_decl__snprintf+:} false; then :
19373 $as_echo_n "(cached) " >&6
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19383 char *p = (char *) _snprintf;
19390 if ac_fn_c_try_compile "$LINENO"; then :
19391 ac_cv_have_decl__snprintf=yes
19393 ac_cv_have_decl__snprintf=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19398 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19399 if test $ac_cv_have_decl__snprintf = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_DECL__SNPRINTF $gt_value
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19412 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19413 if ${ac_cv_have_decl__snwprintf+:} false; then :
19414 $as_echo_n "(cached) " >&6
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19424 char *p = (char *) _snwprintf;
19431 if ac_fn_c_try_compile "$LINENO"; then :
19432 ac_cv_have_decl__snwprintf=yes
19434 ac_cv_have_decl__snwprintf=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19439 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19440 if test $ac_cv_have_decl__snwprintf = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define HAVE_DECL__SNWPRINTF $gt_value
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19454 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19455 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19456 $as_echo_n "(cached) " >&6
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19465 #ifndef feof_unlocked
19466 char *p = (char *) feof_unlocked;
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474 ac_cv_have_decl_feof_unlocked=yes
19476 ac_cv_have_decl_feof_unlocked=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19482 if test $ac_cv_have_decl_feof_unlocked = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19495 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19496 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19497 $as_echo_n "(cached) " >&6
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19506 #ifndef fgets_unlocked
19507 char *p = (char *) fgets_unlocked;
19514 if ac_fn_c_try_compile "$LINENO"; then :
19515 ac_cv_have_decl_fgets_unlocked=yes
19517 ac_cv_have_decl_fgets_unlocked=no
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19522 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19523 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19536 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19537 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19538 $as_echo_n "(cached) " >&6
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19547 #ifndef getc_unlocked
19548 char *p = (char *) getc_unlocked;
19555 if ac_fn_c_try_compile "$LINENO"; then :
19556 ac_cv_have_decl_getc_unlocked=yes
19558 ac_cv_have_decl_getc_unlocked=no
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19563 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19564 if test $ac_cv_have_decl_getc_unlocked = yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19576 case $gt_cv_func_printf_posix in
19577 *yes) HAVE_POSIX_PRINTF=1 ;;
19578 *) HAVE_POSIX_PRINTF=0 ;;
19581 if test "$ac_cv_func_asprintf" = yes; then
19587 if test "$ac_cv_func_snprintf" = yes; then
19593 if test "$ac_cv_func_wprintf" = yes; then
19605 am_save_CPPFLAGS="$CPPFLAGS"
19607 for element in $INCICONV; do
19609 for x in $CPPFLAGS; do
19611 acl_save_prefix="$prefix"
19612 prefix="$acl_final_prefix"
19613 acl_save_exec_prefix="$exec_prefix"
19614 exec_prefix="$acl_final_exec_prefix"
19616 exec_prefix="$acl_save_exec_prefix"
19617 prefix="$acl_save_prefix"
19619 if test "X$x" = "X$element"; then
19624 if test -z "$haveit"; then
19625 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19631 $as_echo_n "checking for iconv... " >&6; }
19632 if ${am_cv_func_iconv+:} false; then :
19633 $as_echo_n "(cached) " >&6
19636 am_cv_func_iconv="no, consider installing GNU libiconv"
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640 #include <stdlib.h>
19645 iconv_t cd = iconv_open("","");
19646 iconv(cd,NULL,NULL,NULL,NULL);
19652 if ac_fn_c_try_link "$LINENO"; then :
19653 am_cv_func_iconv=yes
19655 rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657 if test "$am_cv_func_iconv" != yes; then
19658 am_save_LIBS="$LIBS"
19659 LIBS="$LIBS $LIBICONV"
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19662 #include <stdlib.h>
19667 iconv_t cd = iconv_open("","");
19668 iconv(cd,NULL,NULL,NULL,NULL);
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 am_cv_lib_iconv=yes
19676 am_cv_func_iconv=yes
19678 rm -f core conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS="$am_save_LIBS"
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19685 $as_echo "$am_cv_func_iconv" >&6; }
19686 if test "$am_cv_func_iconv" = yes; then
19688 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19691 if test "$am_cv_lib_iconv" = yes; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19693 $as_echo_n "checking how to link with libiconv... " >&6; }
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19695 $as_echo "$LIBICONV" >&6; }
19697 CPPFLAGS="$am_save_CPPFLAGS"
19704 if test "$am_cv_func_iconv" = yes; then
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19706 $as_echo_n "checking for iconv declaration... " >&6; }
19707 if ${am_cv_proto_iconv+:} false; then :
19708 $as_echo_n "(cached) " >&6
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19714 #include <stdlib.h>
19720 #if defined(__STDC__) || defined(__cplusplus)
19721 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19734 if ac_fn_c_try_compile "$LINENO"; then :
19735 am_cv_proto_iconv_arg1=""
19737 am_cv_proto_iconv_arg1="const"
19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 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);"
19743 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19745 }$am_cv_proto_iconv" >&5
19747 }$am_cv_proto_iconv" >&6; }
19749 cat >>confdefs.h <<_ACEOF
19750 #define ICONV_CONST $am_cv_proto_iconv_arg1
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19757 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19758 if ${am_cv_langinfo_codeset+:} false; then :
19759 $as_echo_n "(cached) " >&6
19761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h. */
19763 #include <langinfo.h>
19767 char* cs = nl_langinfo(CODESET);
19772 if ac_fn_c_try_link "$LINENO"; then :
19773 am_cv_langinfo_codeset=yes
19775 am_cv_langinfo_codeset=no
19777 rm -f core conftest.err conftest.$ac_objext \
19778 conftest$ac_exeext conftest.$ac_ext
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19782 $as_echo "$am_cv_langinfo_codeset" >&6; }
19783 if test $am_cv_langinfo_codeset = yes; then
19785 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19789 if test $ac_cv_header_locale_h = yes; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19792 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19793 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19798 #include <locale.h>
19807 if ac_fn_c_try_link "$LINENO"; then :
19808 gt_cv_val_LC_MESSAGES=yes
19810 gt_cv_val_LC_MESSAGES=no
19812 rm -f core conftest.err conftest.$ac_objext \
19813 conftest$ac_exeext conftest.$ac_ext
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19816 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19817 if test $gt_cv_val_LC_MESSAGES = yes; then
19819 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19825 if test -n "$INTL_MACOSX_LIBS"; then
19826 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19829 for ac_prog in bison
19831 # Extract the first word of "$ac_prog", so it can be a program name with args.
19832 set dummy $ac_prog; ac_word=$2
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19834 $as_echo_n "checking for $ac_word... " >&6; }
19835 if ${ac_cv_prog_INTLBISON+:} false; then :
19836 $as_echo_n "(cached) " >&6
19838 if test -n "$INTLBISON"; then
19839 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19845 test -z "$as_dir" && as_dir=.
19846 for ac_exec_ext in '' $ac_executable_extensions; do
19847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19848 ac_cv_prog_INTLBISON="$ac_prog"
19849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19858 INTLBISON=$ac_cv_prog_INTLBISON
19859 if test -n "$INTLBISON"; then
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19861 $as_echo "$INTLBISON" >&6; }
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864 $as_echo "no" >&6; }
19868 test -n "$INTLBISON" && break
19871 if test -z "$INTLBISON"; then
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19875 $as_echo_n "checking version of bison... " >&6; }
19876 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19877 case $ac_prog_version in
19878 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19879 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19880 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19881 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19884 $as_echo "$ac_prog_version" >&6; }
19886 if test $ac_verc_fail = yes; then
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19906 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19907 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19908 $as_echo_n "(cached) " >&6
19910 gt_save_CPPFLAGS="$CPPFLAGS"
19911 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19912 gt_save_LIBS="$LIBS"
19913 LIBS="$LIBS -framework CoreFoundation"
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19916 #include <CFPreferences.h>
19920 CFPreferencesCopyAppValue(NULL, NULL)
19925 if ac_fn_c_try_link "$LINENO"; then :
19926 gt_cv_func_CFPreferencesCopyAppValue=yes
19928 gt_cv_func_CFPreferencesCopyAppValue=no
19930 rm -f core conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19932 CPPFLAGS="$gt_save_CPPFLAGS"
19933 LIBS="$gt_save_LIBS"
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19936 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19937 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19939 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19943 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19944 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19945 $as_echo_n "(cached) " >&6
19947 gt_save_CPPFLAGS="$CPPFLAGS"
19948 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19949 gt_save_LIBS="$LIBS"
19950 LIBS="$LIBS -framework CoreFoundation"
19951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h. */
19953 #include <CFLocale.h>
19957 CFLocaleCopyCurrent();
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 gt_cv_func_CFLocaleCopyCurrent=yes
19965 gt_cv_func_CFLocaleCopyCurrent=no
19967 rm -f core conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19969 CPPFLAGS="$gt_save_CPPFLAGS"
19970 LIBS="$gt_save_LIBS"
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19973 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19974 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19976 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19980 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19981 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19988 $as_echo_n "checking whether NLS is requested... " >&6; }
19989 # Check whether --enable-nls was given.
19990 if test "${enable_nls+set}" = set; then :
19991 enableval=$enable_nls; USE_NLS=$enableval
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19997 $as_echo "$USE_NLS" >&6; }
20002 BUILD_INCLUDED_LIBINTL=no
20003 USE_INCLUDED_LIBINTL=no
20009 if test "$USE_NLS" = "yes"; then
20010 gt_use_preinstalled_gnugettext=no
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20013 $as_echo_n "checking whether included gettext is requested... " >&6; }
20015 # Check whether --with-included-gettext was given.
20016 if test "${with_included_gettext+set}" = set; then :
20017 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20019 nls_cv_force_use_gnu_gettext=no
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20023 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20025 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20026 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20034 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20035 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20036 $as_echo_n "(cached) " >&6
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040 #include <libintl.h>
20041 extern int _nl_msg_cat_cntr;
20042 extern int *_nl_domain_bindings;
20046 bindtextdomain ("", "");
20047 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20052 if ac_fn_c_try_link "$LINENO"; then :
20053 gt_cv_func_gnugettext1_libc=yes
20055 gt_cv_func_gnugettext1_libc=no
20057 rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20061 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20063 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20069 acl_save_prefix="$prefix"
20070 prefix="$acl_final_prefix"
20071 acl_save_exec_prefix="$exec_prefix"
20072 exec_prefix="$acl_final_exec_prefix"
20074 eval additional_includedir=\"$includedir\"
20075 eval additional_libdir=\"$libdir\"
20077 exec_prefix="$acl_save_exec_prefix"
20078 prefix="$acl_save_prefix"
20081 # Check whether --with-libintl-prefix was given.
20082 if test "${with_libintl_prefix+set}" = set; then :
20083 withval=$with_libintl_prefix;
20084 if test "X$withval" = "Xno"; then
20087 if test "X$withval" = "X"; then
20089 acl_save_prefix="$prefix"
20090 prefix="$acl_final_prefix"
20091 acl_save_exec_prefix="$exec_prefix"
20092 exec_prefix="$acl_final_exec_prefix"
20094 eval additional_includedir=\"$includedir\"
20095 eval additional_libdir=\"$libdir\"
20097 exec_prefix="$acl_save_exec_prefix"
20098 prefix="$acl_save_prefix"
20101 additional_includedir="$withval/include"
20102 additional_libdir="$withval/lib"
20113 names_already_handled=
20114 names_next_round='intl '
20115 while test -n "$names_next_round"; do
20116 names_this_round="$names_next_round"
20118 for name in $names_this_round; do
20120 for n in $names_already_handled; do
20121 if test "$n" = "$name"; then
20122 already_handled=yes
20126 if test -z "$already_handled"; then
20127 names_already_handled="$names_already_handled $name"
20128 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20129 eval value=\"\$HAVE_LIB$uppername\"
20130 if test -n "$value"; then
20131 if test "$value" = yes; then
20132 eval value=\"\$LIB$uppername\"
20133 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20134 eval value=\"\$LTLIB$uppername\"
20135 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20144 if test $use_additional = yes; then
20145 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20146 found_dir="$additional_libdir"
20147 found_so="$additional_libdir/lib$name.$shlibext"
20148 if test -f "$additional_libdir/lib$name.la"; then
20149 found_la="$additional_libdir/lib$name.la"
20152 if test -f "$additional_libdir/lib$name.$libext"; then
20153 found_dir="$additional_libdir"
20154 found_a="$additional_libdir/lib$name.$libext"
20155 if test -f "$additional_libdir/lib$name.la"; then
20156 found_la="$additional_libdir/lib$name.la"
20161 if test "X$found_dir" = "X"; then
20162 for x in $LDFLAGS $LTLIBINTL; do
20164 acl_save_prefix="$prefix"
20165 prefix="$acl_final_prefix"
20166 acl_save_exec_prefix="$exec_prefix"
20167 exec_prefix="$acl_final_exec_prefix"
20169 exec_prefix="$acl_save_exec_prefix"
20170 prefix="$acl_save_prefix"
20174 dir=`echo "X$x" | sed -e 's/^X-L//'`
20175 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20177 found_so="$dir/lib$name.$shlibext"
20178 if test -f "$dir/lib$name.la"; then
20179 found_la="$dir/lib$name.la"
20182 if test -f "$dir/lib$name.$libext"; then
20184 found_a="$dir/lib$name.$libext"
20185 if test -f "$dir/lib$name.la"; then
20186 found_la="$dir/lib$name.la"
20192 if test "X$found_dir" != "X"; then
20197 if test "X$found_dir" != "X"; then
20198 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20199 if test "X$found_so" != "X"; then
20200 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20201 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20204 for x in $ltrpathdirs; do
20205 if test "X$x" = "X$found_dir"; then
20210 if test -z "$haveit"; then
20211 ltrpathdirs="$ltrpathdirs $found_dir"
20213 if test "$hardcode_direct" = yes; then
20214 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20216 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20217 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20219 for x in $rpathdirs; do
20220 if test "X$x" = "X$found_dir"; then
20225 if test -z "$haveit"; then
20226 rpathdirs="$rpathdirs $found_dir"
20230 for x in $LDFLAGS $LIBINTL; do
20232 acl_save_prefix="$prefix"
20233 prefix="$acl_final_prefix"
20234 acl_save_exec_prefix="$exec_prefix"
20235 exec_prefix="$acl_final_exec_prefix"
20237 exec_prefix="$acl_save_exec_prefix"
20238 prefix="$acl_save_prefix"
20240 if test "X$x" = "X-L$found_dir"; then
20245 if test -z "$haveit"; then
20246 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20248 if test "$hardcode_minus_L" != no; then
20249 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20251 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20257 if test "X$found_a" != "X"; then
20258 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20260 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20263 additional_includedir=
20264 case "$found_dir" in
20266 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20267 additional_includedir="$basedir/include"
20270 if test "X$additional_includedir" != "X"; then
20271 if test "X$additional_includedir" != "X/usr/include"; then
20273 if test "X$additional_includedir" = "X/usr/local/include"; then
20274 if test -n "$GCC"; then
20276 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20280 if test -z "$haveit"; then
20281 for x in $CPPFLAGS $INCINTL; do
20283 acl_save_prefix="$prefix"
20284 prefix="$acl_final_prefix"
20285 acl_save_exec_prefix="$exec_prefix"
20286 exec_prefix="$acl_final_exec_prefix"
20288 exec_prefix="$acl_save_exec_prefix"
20289 prefix="$acl_save_prefix"
20291 if test "X$x" = "X-I$additional_includedir"; then
20296 if test -z "$haveit"; then
20297 if test -d "$additional_includedir"; then
20298 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20304 if test -n "$found_la"; then
20305 save_libdir="$libdir"
20306 case "$found_la" in
20307 */* | *\\*) . "$found_la" ;;
20308 *) . "./$found_la" ;;
20310 libdir="$save_libdir"
20311 for dep in $dependency_libs; do
20314 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20315 if test "X$additional_libdir" != "X/usr/lib"; then
20317 if test "X$additional_libdir" = "X/usr/local/lib"; then
20318 if test -n "$GCC"; then
20320 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20324 if test -z "$haveit"; then
20326 for x in $LDFLAGS $LIBINTL; do
20328 acl_save_prefix="$prefix"
20329 prefix="$acl_final_prefix"
20330 acl_save_exec_prefix="$exec_prefix"
20331 exec_prefix="$acl_final_exec_prefix"
20333 exec_prefix="$acl_save_exec_prefix"
20334 prefix="$acl_save_prefix"
20336 if test "X$x" = "X-L$additional_libdir"; then
20341 if test -z "$haveit"; then
20342 if test -d "$additional_libdir"; then
20343 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20347 for x in $LDFLAGS $LTLIBINTL; do
20349 acl_save_prefix="$prefix"
20350 prefix="$acl_final_prefix"
20351 acl_save_exec_prefix="$exec_prefix"
20352 exec_prefix="$acl_final_exec_prefix"
20354 exec_prefix="$acl_save_exec_prefix"
20355 prefix="$acl_save_prefix"
20357 if test "X$x" = "X-L$additional_libdir"; then
20362 if test -z "$haveit"; then
20363 if test -d "$additional_libdir"; then
20364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20371 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20372 if test "$enable_rpath" != no; then
20374 for x in $rpathdirs; do
20375 if test "X$x" = "X$dir"; then
20380 if test -z "$haveit"; then
20381 rpathdirs="$rpathdirs $dir"
20384 for x in $ltrpathdirs; do
20385 if test "X$x" = "X$dir"; then
20390 if test -z "$haveit"; then
20391 ltrpathdirs="$ltrpathdirs $dir"
20396 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20402 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20409 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20416 if test "X$rpathdirs" != "X"; then
20417 if test -n "$hardcode_libdir_separator"; then
20419 for found_dir in $rpathdirs; do
20420 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20422 acl_save_libdir="$libdir"
20424 eval flag=\"$hardcode_libdir_flag_spec\"
20425 libdir="$acl_save_libdir"
20426 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20428 for found_dir in $rpathdirs; do
20429 acl_save_libdir="$libdir"
20430 libdir="$found_dir"
20431 eval flag=\"$hardcode_libdir_flag_spec\"
20432 libdir="$acl_save_libdir"
20433 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20437 if test "X$ltrpathdirs" != "X"; then
20438 for found_dir in $ltrpathdirs; do
20439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20444 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20445 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20446 $as_echo_n "(cached) " >&6
20448 gt_save_CPPFLAGS="$CPPFLAGS"
20449 CPPFLAGS="$CPPFLAGS $INCINTL"
20450 gt_save_LIBS="$LIBS"
20451 LIBS="$LIBS $LIBINTL"
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454 #include <libintl.h>
20455 extern int _nl_msg_cat_cntr;
20460 const char *_nl_expand_alias (const char *);
20464 bindtextdomain ("", "");
20465 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20470 if ac_fn_c_try_link "$LINENO"; then :
20471 gt_cv_func_gnugettext1_libintl=yes
20473 gt_cv_func_gnugettext1_libintl=no
20475 rm -f core conftest.err conftest.$ac_objext \
20476 conftest$ac_exeext conftest.$ac_ext
20477 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20478 LIBS="$LIBS $LIBICONV"
20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20481 #include <libintl.h>
20482 extern int _nl_msg_cat_cntr;
20487 const char *_nl_expand_alias (const char *);
20491 bindtextdomain ("", "");
20492 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20497 if ac_fn_c_try_link "$LINENO"; then :
20498 LIBINTL="$LIBINTL $LIBICONV"
20499 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20500 gt_cv_func_gnugettext1_libintl=yes
20503 rm -f core conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
20506 CPPFLAGS="$gt_save_CPPFLAGS"
20507 LIBS="$gt_save_LIBS"
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20510 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20513 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20514 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20515 && test "$PACKAGE" != gettext-runtime \
20516 && test "$PACKAGE" != gettext-tools; }; then
20517 gt_use_preinstalled_gnugettext=yes
20525 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20526 nls_cv_use_gnu_gettext=yes
20530 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20531 BUILD_INCLUDED_LIBINTL=yes
20532 USE_INCLUDED_LIBINTL=yes
20533 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20534 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20535 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20539 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20540 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20545 if test -n "$INTL_MACOSX_LIBS"; then
20546 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20547 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20548 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20549 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20553 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20554 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20564 $as_echo_n "checking whether to use NLS... " >&6; }
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20566 $as_echo "$USE_NLS" >&6; }
20567 if test "$USE_NLS" = "yes"; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20569 $as_echo_n "checking where the gettext function comes from... " >&6; }
20570 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20571 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20572 gt_source="external libintl"
20577 gt_source="included intl directory"
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20580 $as_echo "$gt_source" >&6; }
20583 if test "$USE_NLS" = "yes"; then
20585 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20586 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20588 $as_echo_n "checking how to link with libintl... " >&6; }
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20590 $as_echo "$LIBINTL" >&6; }
20592 for element in $INCINTL; do
20594 for x in $CPPFLAGS; do
20596 acl_save_prefix="$prefix"
20597 prefix="$acl_final_prefix"
20598 acl_save_exec_prefix="$exec_prefix"
20599 exec_prefix="$acl_final_exec_prefix"
20601 exec_prefix="$acl_save_exec_prefix"
20602 prefix="$acl_save_prefix"
20604 if test "X$x" = "X$element"; then
20609 if test -z "$haveit"; then
20610 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20617 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20620 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20628 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20629 BUILD_INCLUDED_LIBINTL=yes
20636 nls_cv_header_intl=
20637 nls_cv_header_libgt=
20649 if test "$USE_INCLUDED_LIBINTL" = yes; then
20650 INTLOBJS="\$(GETTOBJS)"
20654 INTL_LIBTOOL_SUFFIX_PREFIX=
20658 INTLLIBS="$LIBINTL"
20667 support_smartalloc=yes
20668 support_readline=yes
20672 support_wx_console=no
20673 support_tray_monitor=no
20678 support_static_tools=no
20679 support_static_fd=no
20680 support_static_sd=no
20681 support_static_dir=no
20682 support_static_cons=no
20684 build_client_only=no
20691 # Check whether --enable-gnome was given.
20692 if test "${enable_gnome+set}" = set; then :
20693 enableval=$enable_gnome;
20694 if test x$enableval = xyes; then
20703 if test x$support_gnome = xyes; then
20704 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20705 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20707 # AC_SUBST(GNOME_DIR)
20709 # Check whether --enable-bat was given.
20710 if test "${enable_bat+set}" = set; then :
20711 enableval=$enable_bat;
20712 if test x$enableval = xyes; then
20714 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20724 if test x$support_bat = xyes; then
20725 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20727 if test $pkg = 0; then
20728 BAT_DIR=src/qt-console
20730 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20748 # Check whether --enable-bwx-console was given.
20749 if test "${enable_bwx_console+set}" = set; then :
20750 enableval=$enable_bwx_console;
20751 if test x$enableval = xyes; then
20752 support_wx_console=yes
20760 if test x$support_wx_console = xyes; then
20761 abc=`$WXCONFIG $WXFLAGS --cppflags`
20763 if test $pkg = 0; then
20764 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20765 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20766 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20770 WX_DIR="src/wx-console"
20773 echo "wx-config program not found. bwx-console disabled."
20775 support_wx_console=no
20780 # Check whether --enable-tray-monitor was given.
20781 if test "${enable_tray_monitor+set}" = set; then :
20782 enableval=$enable_tray_monitor;
20783 if test x$enableval = xyes; then
20784 support_tray_monitor=yes
20792 if test x$support_tray_monitor = xyes; then
20793 abc=`$PKGCONFIG --exists gtk+-2.0`
20795 if test $pkg = 0; then
20796 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20797 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20800 TRAY_MONITOR_DIR=src/tray-monitor
20801 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20803 if test $pkg = 0; then
20805 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20812 # Check whether --enable-smartalloc was given.
20813 if test "${enable_smartalloc+set}" = set; then :
20814 enableval=$enable_smartalloc;
20815 if test x$enableval = xno; then
20816 support_smartalloc=no
20823 if test x$support_smartalloc = xyes; then
20825 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20829 # Check whether --enable-lockmgr was given.
20830 if test "${enable_lockmgr+set}" = set; then :
20831 enableval=$enable_lockmgr;
20832 if test x$enableval = xyes; then
20833 support_lockmgr=yes
20840 if test x$support_lockmgr = xyes; then
20842 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20847 # Check whether --enable-static-tools was given.
20848 if test "${enable_static_tools+set}" = set; then :
20849 enableval=$enable_static_tools;
20850 if test x$enableval = xyes; then
20851 if test x$use_libtool = xyes; then
20852 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20853 please rerun configure with --disable-libtool" "$LINENO" 5
20855 support_static_tools=yes
20863 if test x$support_static_tools = xyes; then
20864 TTOOL_LDFLAGS="-static"
20868 # Check whether --enable-static-fd was given.
20869 if test "${enable_static_fd+set}" = set; then :
20870 enableval=$enable_static_fd;
20871 if test x$enableval = xyes; then
20872 if test x$use_libtool = xyes; then
20873 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20874 please rerun configure with --disable-libtool" "$LINENO" 5
20876 support_static_fd=yes
20884 if test x$support_static_fd = xyes; then
20885 STATIC_FD="static-bacula-fd"
20889 # Check whether --enable-static-sd was given.
20890 if test "${enable_static_sd+set}" = set; then :
20891 enableval=$enable_static_sd;
20892 if test x$enableval = xyes; then
20893 if test x$use_libtool = xyes; then
20894 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20895 please rerun configure with --disable-libtool" "$LINENO" 5
20897 support_static_sd=yes
20905 if test x$support_static_sd = xyes; then
20906 STATIC_SD="static-bacula-sd"
20910 # Check whether --enable-static-dir was given.
20911 if test "${enable_static_dir+set}" = set; then :
20912 enableval=$enable_static_dir;
20913 if test x$enableval = xyes; then
20914 if test x$use_libtool = xyes; then
20915 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20916 please rerun configure with --disable-libtool" "$LINENO" 5
20918 support_static_dir=yes
20926 if test x$support_static_dir = xyes; then
20927 STATIC_DIR="static-bacula-dir"
20931 # Check whether --enable-static-cons was given.
20932 if test "${enable_static_cons+set}" = set; then :
20933 enableval=$enable_static_cons;
20934 if test x$enableval = xyes; then
20935 if test x$use_libtool = xyes; then
20936 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20937 please rerun configure with --disable-libtool" "$LINENO" 5
20939 support_static_cons=yes
20949 if test x$support_static_cons = xyes; then
20950 STATIC_CONS="static-bconsole"
20951 STATIC_GNOME_CONS="static-bgnome-console"
20952 STATIC_WX_CONS="static-bwx-console"
20958 # Check whether --enable-client-only was given.
20959 if test "${enable_client_only+set}" = set; then :
20960 enableval=$enable_client_only;
20961 if test x$enableval = xyes; then
20962 build_client_only=yes
20970 if test x$build_client_only = xno; then
20977 # Check whether --enable-build-dird was given.
20978 if test "${enable_build_dird+set}" = set; then :
20979 enableval=$enable_build_dird;
20980 if test x$enableval = xno; then
20987 if test x$build_dird = xyes; then
20988 DIRD_DIR="src/dird"
20989 DIR_TOOLS="DIRTOOLS"
20992 DIR_TOOLS="NODIRTOOLS"
20997 # Check whether --enable-build-stored was given.
20998 if test "${enable_build_stored+set}" = set; then :
20999 enableval=$enable_build_stored;
21000 if test x$enableval = xno; then
21007 if test x$build_stored = xyes; then
21008 STORED_DIR="src/stored"
21014 # Check whether --enable-conio was given.
21015 if test "${enable_conio+set}" = set; then :
21016 enableval=$enable_conio;
21017 if test x$enableval = xno; then
21027 # Check whether --enable-ipv6 was given.
21028 if test "${enable_ipv6+set}" = set; then :
21029 enableval=$enable_ipv6;
21030 if test x$enableval = xno; then
21038 if test x$support_ipv6 = xyes; then
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21041 #include <sys/types.h>
21042 #include <sys/socket.h>
21043 #include <netinet/in.h>
21047 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21052 if ac_fn_c_try_link "$LINENO"; then :
21057 rm -f core conftest.err conftest.$ac_objext \
21058 conftest$ac_exeext conftest.$ac_ext
21061 if test x$support_ipv6 = xyes; then
21063 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21068 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21069 if test "x$ac_cv_header_curses_h" = xyes; then :
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21072 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21073 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21074 $as_echo_n "(cached) " >&6
21076 ac_check_lib_save_LIBS=$LIBS
21077 LIBS="-ltinfo $LIBS"
21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h. */
21081 /* Override any GCC internal prototype to avoid an error.
21082 Use char because int might match the return type of a GCC
21083 builtin and then its argument prototype would still apply. */
21096 if ac_fn_c_try_link "$LINENO"; then :
21097 ac_cv_lib_tinfo_tgetent=yes
21099 ac_cv_lib_tinfo_tgetent=no
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21103 LIBS=$ac_check_lib_save_LIBS
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21106 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21107 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21112 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21113 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21114 $as_echo_n "(cached) " >&6
21116 ac_check_lib_save_LIBS=$LIBS
21117 LIBS="-lncurses $LIBS"
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21136 if ac_fn_c_try_link "$LINENO"; then :
21137 ac_cv_lib_ncurses_tgetent=yes
21139 ac_cv_lib_ncurses_tgetent=no
21141 rm -f core conftest.err conftest.$ac_objext \
21142 conftest$ac_exeext conftest.$ac_ext
21143 LIBS=$ac_check_lib_save_LIBS
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21146 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21147 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21148 TERM_LIB="-lncurses"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21152 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21153 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21154 $as_echo_n "(cached) " >&6
21156 ac_check_lib_save_LIBS=$LIBS
21157 LIBS="-ltermcap $LIBS"
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21161 /* Override any GCC internal prototype to avoid an error.
21162 Use char because int might match the return type of a GCC
21163 builtin and then its argument prototype would still apply. */
21176 if ac_fn_c_try_link "$LINENO"; then :
21177 ac_cv_lib_termcap_tgetent=yes
21179 ac_cv_lib_termcap_tgetent=no
21181 rm -f core conftest.err conftest.$ac_objext \
21182 conftest$ac_exeext conftest.$ac_ext
21183 LIBS=$ac_check_lib_save_LIBS
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21186 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21187 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21188 TERM_LIB="-ltermcap"
21199 for ac_header in curses.h
21201 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21202 if test "x$ac_cv_header_curses_h" = xyes; then :
21203 cat >>confdefs.h <<_ACEOF
21204 #define HAVE_CURSES_H 1
21211 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21212 if test "x$ac_cv_header_term_h" = xyes; then :
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21214 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21215 if ${ac_cv_lib_curses_tgetent+:} false; then :
21216 $as_echo_n "(cached) " >&6
21218 ac_check_lib_save_LIBS=$LIBS
21219 LIBS="-lcurses $LIBS"
21220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h. */
21223 /* Override any GCC internal prototype to avoid an error.
21224 Use char because int might match the return type of a GCC
21225 builtin and then its argument prototype would still apply. */
21238 if ac_fn_c_try_link "$LINENO"; then :
21239 ac_cv_lib_curses_tgetent=yes
21241 ac_cv_lib_curses_tgetent=no
21243 rm -f core conftest.err conftest.$ac_objext \
21244 conftest$ac_exeext conftest.$ac_ext
21245 LIBS=$ac_check_lib_save_LIBS
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21248 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21249 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21250 TERM_LIB="-lcurses"
21264 if test x$support_conio = xyes; then
21265 if test x$TERM_LIB != x; then
21266 CONS_LIBS=$TERM_LIB
21270 support_readline=no
21272 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21275 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21280 # Check whether --enable-readline was given.
21281 if test "${enable_readline+set}" = set; then :
21282 enableval=$enable_readline;
21283 if test x$enableval = xno; then
21284 support_readline=no
21290 if test x$TERM_LIB = x ; then
21291 support_readline=no
21296 if test x$support_readline = xyes; then
21298 # Check whether --with-readline was given.
21299 if test "${with_readline+set}" = set; then :
21300 withval=$with_readline;
21301 case "$with_readline" in
21306 if test -f ${with_readline}/readline.h; then
21307 CONS_INC="-I${with_readline}"
21308 CONS_LDFLAGS="-L$with_readline"
21309 elif test -f ${with_readline}/include/readline/readline.h; then
21310 CONS_INC="-I${with_readline}/include/readline"
21311 CONS_LDFLAGS="-L${with_readline}/lib"
21312 with_readline="${with_readline}/include/readline"
21314 with_readline="/usr/include/readline"
21317 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21318 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21319 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21322 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21324 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21330 echo "readline.h not found. readline turned off ..."
21342 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21343 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21346 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21349 CONS_INC="-I/usr/include/readline"
21350 CONS_LIBS="-lreadline $TERM_LIB"
21354 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21355 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21359 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21362 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21363 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21364 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21365 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21370 echo "readline.h not found. readline turned off ..."
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21398 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21399 if ${ac_cv_header_stat_broken+:} false; then :
21400 $as_echo_n "(cached) " >&6
21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h. */
21404 #include <sys/types.h>
21405 #include <sys/stat.h>
21407 #if defined S_ISBLK && defined S_IFDIR
21408 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21411 #if defined S_ISBLK && defined S_IFCHR
21412 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21415 #if defined S_ISLNK && defined S_IFREG
21416 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21419 #if defined S_ISSOCK && defined S_IFREG
21420 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21424 if ac_fn_c_try_compile "$LINENO"; then :
21425 ac_cv_header_stat_broken=no
21427 ac_cv_header_stat_broken=yes
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21432 $as_echo "$ac_cv_header_stat_broken" >&6; }
21433 if test $ac_cv_header_stat_broken = yes; then
21435 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21439 ac_header_dirent=no
21440 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21441 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21443 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21444 if eval \${$as_ac_Header+:} false; then :
21445 $as_echo_n "(cached) " >&6
21447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448 /* end confdefs.h. */
21449 #include <sys/types.h>
21461 if ac_fn_c_try_compile "$LINENO"; then :
21462 eval "$as_ac_Header=yes"
21464 eval "$as_ac_Header=no"
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 eval ac_res=\$$as_ac_Header
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21470 $as_echo "$ac_res" >&6; }
21471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21472 cat >>confdefs.h <<_ACEOF
21473 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21476 ac_header_dirent=$ac_hdr; break
21480 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21481 if test $ac_header_dirent = dirent.h; then
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21483 $as_echo_n "checking for library containing opendir... " >&6; }
21484 if ${ac_cv_search_opendir+:} false; then :
21485 $as_echo_n "(cached) " >&6
21487 ac_func_search_save_LIBS=$LIBS
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21506 for ac_lib in '' dir; do
21507 if test -z "$ac_lib"; then
21508 ac_res="none required"
21511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21513 if ac_fn_c_try_link "$LINENO"; then :
21514 ac_cv_search_opendir=$ac_res
21516 rm -f core conftest.err conftest.$ac_objext \
21518 if ${ac_cv_search_opendir+:} false; then :
21522 if ${ac_cv_search_opendir+:} false; then :
21525 ac_cv_search_opendir=no
21527 rm conftest.$ac_ext
21528 LIBS=$ac_func_search_save_LIBS
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21531 $as_echo "$ac_cv_search_opendir" >&6; }
21532 ac_res=$ac_cv_search_opendir
21533 if test "$ac_res" != no; then :
21534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21540 $as_echo_n "checking for library containing opendir... " >&6; }
21541 if ${ac_cv_search_opendir+:} false; then :
21542 $as_echo_n "(cached) " >&6
21544 ac_func_search_save_LIBS=$LIBS
21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21548 /* Override any GCC internal prototype to avoid an error.
21549 Use char because int might match the return type of a GCC
21550 builtin and then its argument prototype would still apply. */
21563 for ac_lib in '' x; do
21564 if test -z "$ac_lib"; then
21565 ac_res="none required"
21568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21570 if ac_fn_c_try_link "$LINENO"; then :
21571 ac_cv_search_opendir=$ac_res
21573 rm -f core conftest.err conftest.$ac_objext \
21575 if ${ac_cv_search_opendir+:} false; then :
21579 if ${ac_cv_search_opendir+:} false; then :
21582 ac_cv_search_opendir=no
21584 rm conftest.$ac_ext
21585 LIBS=$ac_func_search_save_LIBS
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21588 $as_echo "$ac_cv_search_opendir" >&6; }
21589 ac_res=$ac_cv_search_opendir
21590 if test "$ac_res" != no; then :
21591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21597 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21602 cat >>confdefs.h <<_ACEOF
21603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21609 for ac_func in nanosleep nl_langinfo
21611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21614 cat >>confdefs.h <<_ACEOF
21615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21621 for ac_header in varargs.h
21623 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21624 if test "x$ac_cv_header_varargs_h" = xyes; then :
21625 cat >>confdefs.h <<_ACEOF
21626 #define HAVE_VARARGS_H 1
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21636 $as_echo_n "checking for Python support... " >&6; }
21638 # Check whether --with-python was given.
21639 if test "${with_python+set}" = set; then :
21640 withval=$with_python;
21643 if test "$withval" != "no"; then
21644 if test "$withval" = "yes"; then
21645 if test -e /usr/bin/python-config ; then
21646 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21647 PYTHON_LIBS=`/usr/bin/python-config --libs`
21649 for python_root in /usr /usr/local /usr/sfw; do
21650 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21651 if test -f $python_root/include/${ver}/Python.h; then
21652 PYTHON_INCDIR=-I$python_root/include/${ver}
21653 if test -d $python_root/lib64/${ver}/config; then
21654 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21656 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21663 if test x$PYTHON_INCDIR = x; then
21664 if test -f $prefix/include/Python.h; then
21665 PYTHON_INCDIR=-I$prefix/include
21666 if test -d $prefix/lib64/config; then
21667 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21669 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21673 $as_echo "no" >&6; }
21674 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21679 if test -e $withval/bin/python-config ; then
21680 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21681 PYTHON_LIBS=`$withval/bin/python-config --libs`
21682 elif test -f $withval/Python.h; then
21683 PYTHON_INCDIR=-I$withval
21684 PYTHON_LIBS="-L$withval/config -lpython"
21685 elif test -f $withval/include/Python.h; then
21686 PYTHON_INCDIR=-I$withval/include
21687 if test -d $withval/lib64/config; then
21688 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21690 PYTHON_LIBS="-L$withval/lib/config -lpython"
21692 elif test -f $withval/include/python/Python.h; then
21693 PYTHON_INCDIR=-I$withval/include/python
21694 if test -d $withval/lib64/python/config; then
21695 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21697 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21702 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21706 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21712 $as_echo "$as_me: checking for more Python libs" >&6;}
21713 saved_LIBS="$LIBS"; LIBS=
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21715 $as_echo_n "checking for library containing shm_open... " >&6; }
21716 if ${ac_cv_search_shm_open+:} false; then :
21717 $as_echo_n "(cached) " >&6
21719 ac_func_search_save_LIBS=$LIBS
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h. */
21723 /* Override any GCC internal prototype to avoid an error.
21724 Use char because int might match the return type of a GCC
21725 builtin and then its argument prototype would still apply. */
21733 return shm_open ();
21738 for ac_lib in '' rt; do
21739 if test -z "$ac_lib"; then
21740 ac_res="none required"
21743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21745 if ac_fn_c_try_link "$LINENO"; then :
21746 ac_cv_search_shm_open=$ac_res
21748 rm -f core conftest.err conftest.$ac_objext \
21750 if ${ac_cv_search_shm_open+:} false; then :
21754 if ${ac_cv_search_shm_open+:} false; then :
21757 ac_cv_search_shm_open=no
21759 rm conftest.$ac_ext
21760 LIBS=$ac_func_search_save_LIBS
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21763 $as_echo "$ac_cv_search_shm_open" >&6; }
21764 ac_res=$ac_cv_search_shm_open
21765 if test "$ac_res" != no; then :
21766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21771 $as_echo_n "checking for openpty in -lutil... " >&6; }
21772 if ${ac_cv_lib_util_openpty+:} false; then :
21773 $as_echo_n "(cached) " >&6
21775 ac_check_lib_save_LIBS=$LIBS
21776 LIBS="-lutil $LIBS"
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21780 /* Override any GCC internal prototype to avoid an error.
21781 Use char because int might match the return type of a GCC
21782 builtin and then its argument prototype would still apply. */
21795 if ac_fn_c_try_link "$LINENO"; then :
21796 ac_cv_lib_util_openpty=yes
21798 ac_cv_lib_util_openpty=no
21800 rm -f core conftest.err conftest.$ac_objext \
21801 conftest$ac_exeext conftest.$ac_ext
21802 LIBS=$ac_check_lib_save_LIBS
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21805 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21806 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21807 cat >>confdefs.h <<_ACEOF
21808 #define HAVE_LIBUTIL 1
21811 LIBS="-lutil $LIBS"
21815 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 $as_echo "no" >&6; }
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21833 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21834 if test "x$ac_cv_func_socket" = xyes; then :
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21836 $as_echo "using libc's socket" >&6; }
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21839 $as_echo_n "checking for socket in -lxnet... " >&6; }
21840 if ${ac_cv_lib_xnet_socket+:} false; then :
21841 $as_echo_n "(cached) " >&6
21843 ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lxnet $LIBS"
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21848 /* Override any GCC internal prototype to avoid an error.
21849 Use char because int might match the return type of a GCC
21850 builtin and then its argument prototype would still apply. */
21863 if ac_fn_c_try_link "$LINENO"; then :
21864 ac_cv_lib_xnet_socket=yes
21866 ac_cv_lib_xnet_socket=no
21868 rm -f core conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21873 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21874 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21875 cat >>confdefs.h <<_ACEOF
21876 #define HAVE_LIBXNET 1
21879 LIBS="-lxnet $LIBS"
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21884 $as_echo_n "checking for socket in -lsocket... " >&6; }
21885 if ${ac_cv_lib_socket_socket+:} false; then :
21886 $as_echo_n "(cached) " >&6
21888 ac_check_lib_save_LIBS=$LIBS
21889 LIBS="-lsocket $LIBS"
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h. */
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21908 if ac_fn_c_try_link "$LINENO"; then :
21909 ac_cv_lib_socket_socket=yes
21911 ac_cv_lib_socket_socket=no
21913 rm -f core conftest.err conftest.$ac_objext \
21914 conftest$ac_exeext conftest.$ac_ext
21915 LIBS=$ac_check_lib_save_LIBS
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21918 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21919 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21920 cat >>confdefs.h <<_ACEOF
21921 #define HAVE_LIBSOCKET 1
21924 LIBS="-lsocket $LIBS"
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21929 $as_echo_n "checking for socket in -linet... " >&6; }
21930 if ${ac_cv_lib_inet_socket+:} false; then :
21931 $as_echo_n "(cached) " >&6
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-linet $LIBS"
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21938 /* Override any GCC internal prototype to avoid an error.
21939 Use char because int might match the return type of a GCC
21940 builtin and then its argument prototype would still apply. */
21953 if ac_fn_c_try_link "$LINENO"; then :
21954 ac_cv_lib_inet_socket=yes
21956 ac_cv_lib_inet_socket=no
21958 rm -f core conftest.err conftest.$ac_objext \
21959 conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21963 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21964 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21965 cat >>confdefs.h <<_ACEOF
21966 #define HAVE_LIBINET 1
21969 LIBS="-linet $LIBS"
21979 # Check whether --with-tcp-wrappers was given.
21980 if test "${with_tcp_wrappers+set}" = set; then :
21981 withval=$with_tcp_wrappers;
21982 if test "x$withval" != "xno" ; then
21984 LIBS="$saved_LIBS -lwrap"
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21986 $as_echo_n "checking for library containing nanosleep... " >&6; }
21987 if ${ac_cv_search_nanosleep+:} false; then :
21988 $as_echo_n "(cached) " >&6
21990 ac_func_search_save_LIBS=$LIBS
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
22004 return nanosleep ();
22009 for ac_lib in '' rt; do
22010 if test -z "$ac_lib"; then
22011 ac_res="none required"
22014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22016 if ac_fn_c_try_link "$LINENO"; then :
22017 ac_cv_search_nanosleep=$ac_res
22019 rm -f core conftest.err conftest.$ac_objext \
22021 if ${ac_cv_search_nanosleep+:} false; then :
22025 if ${ac_cv_search_nanosleep+:} false; then :
22028 ac_cv_search_nanosleep=no
22030 rm conftest.$ac_ext
22031 LIBS=$ac_func_search_save_LIBS
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22034 $as_echo "$ac_cv_search_nanosleep" >&6; }
22035 ac_res=$ac_cv_search_nanosleep
22036 if test "$ac_res" != no; then :
22037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22042 $as_echo_n "checking for libwrap... " >&6; }
22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h. */
22046 #include <sys/types.h>
22048 int deny_severity = 0;
22049 int allow_severity = 0;
22050 struct request_info *req;
22062 if ac_fn_c_try_link "$LINENO"; then :
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22065 $as_echo "yes" >&6; }
22067 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22075 LIBS="$saved_LIBS -lwrap -lnsl"
22076 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22080 #include <sys/types.h>
22082 int deny_severity = 0;
22083 int allow_severity = 0;
22084 struct request_info *req;
22096 if ac_fn_c_try_link "$LINENO"; then :
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22101 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22109 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22113 rm -f core conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
22118 rm -f core conftest.err conftest.$ac_objext \
22119 conftest$ac_exeext conftest.$ac_ext
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22127 $as_echo_n "checking for OpenSSL... " >&6; }
22129 # Check whether --with-openssl was given.
22130 if test "${with_openssl+set}" = set; then :
22131 withval=$with_openssl;
22132 with_openssl_directory=${withval}
22138 if test "x$with_openssl_directory" != "xno"; then
22139 OPENSSL_LIBS="-lssl -lcrypto"
22142 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22144 # Make sure the $with_openssl_directory also makes sense
22146 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22147 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22148 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22152 saved_LIBS="${LIBS}"
22153 saved_CFLAGS="${CFLAGS}"
22154 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22155 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22160 #include <openssl/ssl.h>
22166 CRYPTO_set_id_callback(NULL);
22172 if ac_fn_c_try_link "$LINENO"; then :
22175 support_crypto="yes"
22180 support_crypto="no"
22184 rm -f core conftest.err conftest.$ac_objext \
22185 conftest$ac_exeext conftest.$ac_ext
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22190 #include <openssl/evp.h>
22202 if ac_fn_c_try_link "$LINENO"; then :
22204 ac_cv_openssl_sha2="yes"
22208 ac_cv_openssl_sha2="no"
22212 rm -f core conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h. */
22218 #include <openssl/evp.h>
22230 if ac_fn_c_try_link "$LINENO"; then :
22232 ac_cv_openssl_export="no"
22236 ac_cv_openssl_export="yes"
22240 rm -f core conftest.err conftest.$ac_objext \
22241 conftest$ac_exeext conftest.$ac_ext
22243 if test "$support_tls" = "yes"; then
22245 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22248 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22251 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22255 if test "$ac_cv_openssl_sha2" = "yes"; then
22257 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22261 if test "$ac_cv_openssl_export" = "yes"; then
22263 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22267 if test "$support_crypto" = "yes"; then
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22269 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22270 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22271 $as_echo_n "(cached) " >&6
22273 ac_check_lib_save_LIBS=$LIBS
22274 LIBS="-lcrypto $LIBS"
22275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h. */
22278 /* Override any GCC internal prototype to avoid an error.
22279 Use char because int might match the return type of a GCC
22280 builtin and then its argument prototype would still apply. */
22284 char EVP_PKEY_encrypt_old ();
22288 return EVP_PKEY_encrypt_old ();
22293 if ac_fn_c_try_link "$LINENO"; then :
22294 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22296 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22298 rm -f core conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
22300 LIBS=$ac_check_lib_save_LIBS
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22303 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22304 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22306 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22312 LIBS="${saved_LIBS}"
22313 CFLAGS="${saved_CFLAGS}"
22316 support_crypto="no"
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22321 $as_echo "$support_tls" >&6; }
22323 if test "$support_tls" = "no"; then
22327 if test "$support_crypto" = "no"; then
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22336 $as_echo_n "checking for library containing dlopen... " >&6; }
22337 if ${ac_cv_search_dlopen+:} false; then :
22338 $as_echo_n "(cached) " >&6
22340 ac_func_search_save_LIBS=$LIBS
22341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22342 /* end confdefs.h. */
22344 /* Override any GCC internal prototype to avoid an error.
22345 Use char because int might match the return type of a GCC
22346 builtin and then its argument prototype would still apply. */
22359 for ac_lib in '' dl; do
22360 if test -z "$ac_lib"; then
22361 ac_res="none required"
22364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22366 if ac_fn_c_try_link "$LINENO"; then :
22367 ac_cv_search_dlopen=$ac_res
22369 rm -f core conftest.err conftest.$ac_objext \
22371 if ${ac_cv_search_dlopen+:} false; then :
22375 if ${ac_cv_search_dlopen+:} false; then :
22378 ac_cv_search_dlopen=no
22380 rm conftest.$ac_ext
22381 LIBS=$ac_func_search_save_LIBS
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22384 $as_echo "$ac_cv_search_dlopen" >&6; }
22385 ac_res=$ac_cv_search_dlopen
22386 if test "$ac_res" != no; then :
22387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22392 working_dir=`eval echo ${prefix}/var/bacula/working`
22394 # Check whether --with-working-dir was given.
22395 if test "${with_working_dir+set}" = set; then :
22396 withval=$with_working_dir;
22397 if test "x$withval" != "xno" ; then
22398 working_dir=$withval
22409 # Check whether --with-archivedir was given.
22410 if test "${with_archivedir+set}" = set; then :
22411 withval=$with_archivedir;
22412 if test "x$withval" != "xno" ; then
22413 archivedir=$withval
22422 basename=`hostname`
22424 # Check whether --with-basename was given.
22425 if test "${with_basename+set}" = set; then :
22426 withval=$with_basename;
22427 if test "x$withval" != "xno" ; then
22437 hostname=`uname -n | cut -d '.' -f 1`
22438 if test x${hostname} = x ; then
22439 hostname="localhost"
22442 # Check whether --with-hostname was given.
22443 if test "${with_hostname+set}" = set; then :
22444 withval=$with_hostname;
22445 if test "x$withval" != "xno" ; then
22456 scriptdir=`eval echo ${sysconfdir}`
22458 # Check whether --with-scriptdir was given.
22459 if test "${with_scriptdir+set}" = set; then :
22460 withval=$with_scriptdir;
22461 if test "x$withval" != "xno" ; then
22474 # Check whether --with-bsrdir was given.
22475 if test "${with_bsrdir+set}" = set; then :
22476 withval=$with_bsrdir;
22477 if test "x$withval" != "xno" ; then
22489 # Check whether --with-logdir was given.
22490 if test "${with_logdir+set}" = set; then :
22491 withval=$with_logdir;
22492 if test "x$withval" != "xno" ; then
22503 # ------------------------------------------
22504 # Where to place plugindir (plugin files)
22505 # ------------------------------------------
22506 plugindir=`eval echo ${libdir}`
22508 # Check whether --with-plugindir was given.
22509 if test "${with_plugindir+set}" = set; then :
22510 withval=$with_plugindir;
22511 if test "x$withval" != "xno" ; then
22521 dump_email=root@localhost
22523 # Check whether --with-dump-email was given.
22524 if test "${with_dump_email+set}" = set; then :
22525 withval=$with_dump_email;
22526 if test "x$withval" != "xno" ; then
22527 dump_email=$withval
22536 job_email=root@localhost
22538 # Check whether --with-job-email was given.
22539 if test "${with_job_email+set}" = set; then :
22540 withval=$with_job_email;
22541 if test "x$withval" != "xno" ; then
22551 smtp_host=localhost
22553 # Check whether --with-smtp_host was given.
22554 if test "${with_smtp_host+set}" = set; then :
22555 withval=$with_smtp_host;
22556 if test "x$withval" != "xno" ; then
22568 # Check whether --with-pid-dir was given.
22569 if test "${with_pid_dir+set}" = set; then :
22570 withval=$with_pid_dir;
22571 if test "x$withval" != "xno" ; then
22579 cat >>confdefs.h <<_ACEOF
22580 #define _PATH_BACULA_PIDDIR "$piddir"
22585 subsysdir=/var/run/subsys
22586 if test -d /var/run/subsys; then
22587 subsysdir=/var/run/subsys
22588 elif test -d /var/lock/subsys; then
22589 subsysdir=/var/lock/subsys
22591 subsysdir=/var/run/subsys
22594 # Check whether --with-subsys-dir was given.
22595 if test "${with_subsys_dir+set}" = set; then :
22596 withval=$with_subsys_dir;
22597 if test "x$withval" != "xno" ; then
22609 # Check whether --with-baseport was given.
22610 if test "${with_baseport+set}" = set; then :
22611 withval=$with_baseport;
22612 if test "x$withval" != "xno" ; then
22621 dir_port=`expr $baseport`
22622 fd_port=`expr $baseport + 1`
22623 sd_port=`expr $fd_port + 1`
22631 # Check whether --with-dir-password was given.
22632 if test "${with_dir_password+set}" = set; then :
22633 withval=$with_dir_password;
22634 if test "x$withval" != "xno" ; then
22635 dir_password=$withval
22642 if test "x$dir_password" = "x" ; then
22643 if test "x$OPENSSL" = "xnone" ; then
22644 key=`autoconf/randpass 33`
22646 key=`openssl rand -base64 33`
22653 # Check whether --with-fd-password was given.
22654 if test "${with_fd_password+set}" = set; then :
22655 withval=$with_fd_password;
22656 if test "x$withval" != "xno" ; then
22657 fd_password=$withval
22664 if test "x$fd_password" = "x" ; then
22665 if test "x$OPENSSL" = "xnone" ; then
22666 key=`autoconf/randpass 37`
22668 key=`openssl rand -base64 33`
22675 # Check whether --with-sd-password was given.
22676 if test "${with_sd_password+set}" = set; then :
22677 withval=$with_sd_password;
22678 if test "x$withval" != "xno" ; then
22679 sd_password=$withval
22686 if test "x$sd_password" = "x" ; then
22687 if test "x$OPENSSL" = "xnone" ; then
22688 key=`autoconf/randpass 41`
22690 key=`openssl rand -base64 33`
22697 # Check whether --with-mon-dir-password was given.
22698 if test "${with_mon_dir_password+set}" = set; then :
22699 withval=$with_mon_dir_password;
22700 if test "x$withval" != "xno" ; then
22701 mon_dir_password=$withval
22708 if test "x$mon_dir_password" = "x" ; then
22709 if test "x$OPENSSL" = "xnone" ; then
22710 key=`autoconf/randpass 33`
22712 key=`openssl rand -base64 33`
22714 mon_dir_password=$key
22719 # Check whether --with-mon-fd-password was given.
22720 if test "${with_mon_fd_password+set}" = set; then :
22721 withval=$with_mon_fd_password;
22722 if test "x$withval" != "xno" ; then
22723 mon_fd_password=$withval
22730 if test "x$mon_fd_password" = "x" ; then
22731 if test "x$OPENSSL" = "xnone" ; then
22732 key=`autoconf/randpass 37`
22734 key=`openssl rand -base64 33`
22736 mon_fd_password=$key
22741 # Check whether --with-mon-sd-password was given.
22742 if test "${with_mon_sd_password+set}" = set; then :
22743 withval=$with_mon_sd_password;
22744 if test "x$withval" != "xno" ; then
22745 mon_sd_password=$withval
22752 if test "x$mon_sd_password" = "x" ; then
22753 if test "x$OPENSSL" = "xnone" ; then
22754 key=`autoconf/randpass 41`
22756 key=`openssl rand -base64 33`
22758 mon_sd_password=$key
22770 # Check whether --with-db_name was given.
22771 if test "${with_db_name+set}" = set; then :
22772 withval=$with_db_name;
22773 if test "x$withval" != "x" ; then
22784 # Check whether --with-db_user was given.
22785 if test "${with_db_user+set}" = set; then :
22786 withval=$with_db_user;
22787 if test "x$withval" != "x" ; then
22798 # Check whether --with-db_password was given.
22799 if test "${with_db_password+set}" = set; then :
22800 withval=$with_db_password;
22801 if test "x$withval" != "x" ; then
22802 db_password=$withval
22812 # Check whether --with-db_port was given.
22813 if test "${with_db_port+set}" = set; then :
22814 withval=$with_db_port;
22815 if test "x$withval" != "x" ; then
22825 # Handle users and groups for each daemon
22829 # Check whether --with-dir_user was given.
22830 if test "${with_dir_user+set}" = set; then :
22831 withval=$with_dir_user;
22832 if test "x$withval" != "x" ; then
22842 # Check whether --with-dir_group was given.
22843 if test "${with_dir_group+set}" = set; then :
22844 withval=$with_dir_group;
22845 if test "x$withval" != "x" ; then
22855 # Check whether --with-sd_user was given.
22856 if test "${with_sd_user+set}" = set; then :
22857 withval=$with_sd_user;
22858 if test "x$withval" != "x" ; then
22868 # Check whether --with-sd_group was given.
22869 if test "${with_sd_group+set}" = set; then :
22870 withval=$with_sd_group;
22871 if test "x$withval" != "x" ; then
22881 # Check whether --with-fd_user was given.
22882 if test "${with_fd_user+set}" = set; then :
22883 withval=$with_fd_user;
22884 if test "x$withval" != "x" ; then
22894 # Check whether --with-fd_group was given.
22895 if test "${with_fd_group+set}" = set; then :
22896 withval=$with_fd_group;
22897 if test "x$withval" != "x" ; then
22914 # Check whether --with-sbin-perm was given.
22915 if test "${with_sbin_perm+set}" = set; then :
22916 withval=$with_sbin_perm;
22917 if test "x$withval" != "x" ; then
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22929 $as_echo_n "checking for PostgreSQL support... " >&6; }
22931 # Check whether --with-postgresql was given.
22932 if test "${with_postgresql+set}" = set; then :
22933 withval=$with_postgresql;
22934 if test "$withval" != "no"; then
22935 if test "$withval" = "yes"; then
22936 PG_CONFIG=`which pg_config`
22937 if test -n "$PG_CONFIG"; then
22938 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22939 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22940 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22941 elif test -f /usr/local/include/libpq-fe.h; then
22942 POSTGRESQL_INCDIR=/usr/local/include
22943 if test -d /usr/local/lib64; then
22944 POSTGRESQL_LIBDIR=/usr/local/lib64
22946 POSTGRESQL_LIBDIR=/usr/local/lib
22948 POSTGRESQL_BINDIR=/usr/local/bin
22949 elif test -f /usr/include/libpq-fe.h; then
22950 POSTGRESQL_INCDIR=/usr/include
22951 if test -d /usr/lib64; then
22952 POSTGRESQL_LIBDIR=/usr/lib64
22954 POSTGRESQL_LIBDIR=/usr/lib
22956 POSTGRESQL_BINDIR=/usr/bin
22957 elif test -f /usr/include/pgsql/libpq-fe.h; then
22958 POSTGRESQL_INCDIR=/usr/include/pgsql
22959 if test -d /usr/lib64/pgsql; then
22960 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22962 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22964 POSTGRESQL_BINDIR=/usr/bin
22965 elif test -f /usr/include/postgresql/libpq-fe.h; then
22966 POSTGRESQL_INCDIR=/usr/include/postgresql
22967 if test -d /usr/lib64/postgresql; then
22968 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22970 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22972 POSTGRESQL_BINDIR=/usr/bin
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22975 $as_echo "no" >&6; }
22976 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22978 elif test -f $withval/include/libpq-fe.h; then
22979 POSTGRESQL_INCDIR=$withval/include
22980 POSTGRESQL_LIBDIR=$withval/lib
22981 POSTGRESQL_BINDIR=$withval/bin
22982 elif test -f $withval/include/postgresql/libpq-fe.h; then
22983 POSTGRESQL_INCDIR=$withval/include/postgresql
22984 if test -d $withval/lib64; then
22985 POSTGRESQL_LIBDIR=$withval/lib64
22987 POSTGRESQL_LIBDIR=$withval/lib
22989 POSTGRESQL_BINDIR=$withval/bin
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992 $as_echo "no" >&6; }
22993 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22996 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22999 $as_echo "yes" >&6; }
23001 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23002 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23003 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23004 if test "x$ac_cv_func_crypt" = xyes; then :
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23008 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23009 if ${ac_cv_lib_crypt_crypt+:} false; then :
23010 $as_echo_n "(cached) " >&6
23012 ac_check_lib_save_LIBS=$LIBS
23013 LIBS="-lcrypt $LIBS"
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h. */
23017 /* Override any GCC internal prototype to avoid an error.
23018 Use char because int might match the return type of a GCC
23019 builtin and then its argument prototype would still apply. */
23032 if ac_fn_c_try_link "$LINENO"; then :
23033 ac_cv_lib_crypt_crypt=yes
23035 ac_cv_lib_crypt_crypt=no
23037 rm -f core conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
23039 LIBS=$ac_check_lib_save_LIBS
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23042 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23043 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23044 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23049 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23050 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23052 if test -z "${db_backends}"; then
23053 db_backends="PostgreSQL"
23055 db_backends="${db_backends} PostgreSQL"
23057 if test -z "${DB_BACKENDS}"; then
23058 DB_BACKENDS="postgresql"
23060 DB_BACKENDS="${DB_BACKENDS} postgresql"
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064 $as_echo "no" >&6; }
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070 $as_echo "no" >&6; }
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23082 $as_echo_n "checking for MySQL support... " >&6; }
23084 # Check whether --with-mysql was given.
23085 if test "${with_mysql+set}" = set; then :
23086 withval=$with_mysql;
23087 if test "$withval" != "no"; then
23088 if test "$withval" = "yes"; then
23089 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23090 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23091 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23092 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23093 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23095 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23097 MYSQL_BINDIR=/usr/local/mysql/bin
23098 elif test -f /usr/include/mysql/mysql.h; then
23099 MYSQL_INCDIR=/usr/include/mysql
23100 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23101 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23102 MYSQL_LIBDIR=/usr/lib64/mysql
23103 elif test -f /usr/lib64/libmysqlclient_r.a \
23104 -o -f /usr/lib64/libmysqlclient_r.so; then
23105 MYSQL_LIBDIR=/usr/lib64
23106 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23107 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23108 MYSQL_LIBDIR=/usr/lib/mysql
23110 MYSQL_LIBDIR=/usr/lib
23112 MYSQL_BINDIR=/usr/bin
23113 elif test -f /usr/include/mysql.h; then
23114 MYSQL_INCDIR=/usr/include
23115 if test -f /usr/lib64/libmysqlclient_r.a \
23116 -o -f /usr/lib64/libmysqlclient_r.so; then
23117 MYSQL_LIBDIR=/usr/lib64
23119 MYSQL_LIBDIR=/usr/lib
23121 MYSQL_BINDIR=/usr/bin
23122 elif test -f /usr/local/include/mysql/mysql.h; then
23123 MYSQL_INCDIR=/usr/local/include/mysql
23124 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23125 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23126 MYSQL_LIBDIR=/usr/local/lib64/mysql
23128 MYSQL_LIBDIR=/usr/local/lib/mysql
23130 MYSQL_BINDIR=/usr/local/bin
23131 elif test -f /usr/local/include/mysql.h; then
23132 MYSQL_INCDIR=/usr/local/include
23133 if test -f /usr/local/lib64/libmysqlclient_r.a \
23134 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23135 MYSQL_LIBDIR=/usr/local/lib64
23137 MYSQL_LIBDIR=/usr/local/lib
23139 MYSQL_BINDIR=/usr/local/bin
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23143 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23146 if test -f $withval/include/mysql/mysql.h; then
23147 MYSQL_INCDIR=$withval/include/mysql
23148 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23149 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23150 MYSQL_LIBDIR=$withval/lib64/mysql
23151 elif test -f $withval/lib64/libmysqlclient_r.a \
23152 -o -f $withval/lib64/libmysqlclient_r.so; then
23153 MYSQL_LIBDIR=$withval/lib64
23154 elif test -f $withval/lib/libmysqlclient_r.a \
23155 -o -f $withval/lib/libmysqlclient_r.so; then
23156 MYSQL_LIBDIR=$withval/lib
23158 MYSQL_LIBDIR=$withval/lib/mysql
23160 MYSQL_BINDIR=$withval/bin
23161 elif test -f $withval/include/mysql.h; then
23162 MYSQL_INCDIR=$withval/include
23163 if test -f $withval/lib64/libmysqlclient_r.a \
23164 -o -f $withval/lib64/libmysqlclient_r.so; then
23165 MYSQL_LIBDIR=$withval/lib64
23167 MYSQL_LIBDIR=$withval/lib
23169 MYSQL_BINDIR=$withval/bin
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 $as_echo "no" >&6; }
23173 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23176 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23177 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23178 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23179 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23181 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23183 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23185 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23188 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23191 $as_echo "yes" >&6; }
23193 if test -z "${db_backends}" ; then
23194 db_backends="MySQL"
23196 db_backends="${db_backends} MySQL"
23198 if test -z "${DB_BACKENDS}" ; then
23199 DB_BACKENDS="mysql"
23201 DB_BACKENDS="${DB_BACKENDS} mysql"
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23213 # Check whether --with-embedded-mysql was given.
23214 if test "${with_embedded_mysql+set}" = set; then :
23215 withval=$with_embedded_mysql;
23216 if test "$withval" != "no"; then
23217 if test "$withval" = "yes"; then
23218 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23219 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23220 if test -d /usr/local/mysql/lib64/mysql; then
23221 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23223 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23225 MYSQL_BINDIR=/usr/local/mysql/bin
23226 elif test -f /usr/include/mysql/mysql.h; then
23227 MYSQL_INCDIR=/usr/include/mysql
23228 if test -d /usr/lib64/mysql; then
23229 MYSQL_LIBDIR=/usr/lib64/mysql
23231 MYSQL_LIBDIR=/usr/lib/mysql
23233 MYSQL_BINDIR=/usr/bin
23234 elif test -f /usr/include/mysql.h; then
23235 MYSQL_INCDIR=/usr/include
23236 if test -d /usr/lib64; then
23237 MYSQL_LIBDIR=/usr/lib64
23239 MYSQL_LIBDIR=/usr/lib
23241 MYSQL_BINDIR=/usr/bin
23242 elif test -f /usr/local/include/mysql/mysql.h; then
23243 MYSQL_INCDIR=/usr/local/include/mysql
23244 if test -d /usr/local/lib64/mysql; then
23245 MYSQL_LIBDIR=/usr/local/lib64/mysql
23247 MYSQL_LIBDIR=/usr/local/lib/mysql
23249 MYSQL_BINDIR=/usr/local/bin
23250 elif test -f /usr/local/include/mysql.h; then
23251 MYSQL_INCDIR=/usr/local/include
23252 if test -d /usr/local/lib64; then
23253 MYSQL_LIBDIR=/usr/local/lib64
23255 MYSQL_LIBDIR=/usr/local/lib
23257 MYSQL_BINDIR=/usr/local/bin
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260 $as_echo "no" >&6; }
23261 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23264 if test -f $withval/include/mysql/mysql.h; then
23265 MYSQL_INCDIR=$withval/include/mysql
23266 if test -d $withval/lib64/mysql; then
23267 MYSQL_LIBDIR=$withval/lib64/mysql
23269 MYSQL_LIBDIR=$withval/lib/mysql
23271 MYSQL_BINDIR=$withval/bin
23272 elif test -f $withval/include/mysql.h; then
23273 MYSQL_INCDIR=$withval/include
23274 if test -d $withval/lib64; then
23275 MYSQL_LIBDIR=$withval/lib64
23277 MYSQL_LIBDIR=$withval/lib
23279 MYSQL_BINDIR=$withval/bin
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23282 $as_echo "no" >&6; }
23283 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23286 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23287 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23288 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23289 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23292 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23295 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23298 $as_echo "yes" >&6; }
23300 if test -z "${db_backends}"; then
23301 db_backends="MySQL"
23303 db_backends="${db_backends} MySQL"
23305 if test -z "${DB_BACKENDS}"; then
23306 DB_BACKENDS="mysql"
23308 DB_BACKENDS="${DB_BACKENDS} mysql"
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 $as_echo "no" >&6; }
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23327 $as_echo_n "checking for SQLite3 support... " >&6; }
23329 # Check whether --with-sqlite3 was given.
23330 if test "${with_sqlite3+set}" = set; then :
23331 withval=$with_sqlite3;
23332 if test "$withval" != "no"; then
23333 if test "$withval" = "yes"; then
23334 if test -f /usr/local/include/sqlite3.h; then
23335 SQLITE_INCDIR=/usr/local/include
23336 if test -d /usr/local/lib64; then
23337 SQLITE_LIBDIR=/usr/local/lib64
23339 SQLITE_LIBDIR=/usr/local/lib
23341 SQLITE_BINDIR=/usr/local/bin
23342 elif test -f /usr/include/sqlite3.h; then
23343 SQLITE_INCDIR=/usr/include
23344 if test -d /usr/lib64; then
23345 SQLITE_LIBDIR=/usr/lib64
23347 SQLITE_LIBDIR=/usr/lib
23349 SQLITE_BINDIR=/usr/bin
23350 elif test -f $prefix/include/sqlite3.h; then
23351 SQLITE_INCDIR=$prefix/include
23352 if test -d $prefix/lib64; then
23353 SQLITE_LIBDIR=$prefix/lib64
23355 SQLITE_LIBDIR=$prefix/lib
23357 SQLITE_BINDIR=$prefix/bin
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23360 $as_echo "no" >&6; }
23361 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23364 if test -f $withval/sqlite3.h; then
23365 SQLITE_INCDIR=$withval
23366 SQLITE_LIBDIR=$withval
23367 SQLITE_BINDIR=$withval
23368 elif test -f $withval/include/sqlite3.h; then
23369 SQLITE_INCDIR=$withval/include
23370 if test -d $withval/lib64; then
23371 SQLITE_LIBDIR=$withval/lib64
23373 SQLITE_LIBDIR=$withval/lib
23375 SQLITE_BINDIR=$withval/bin
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23378 $as_echo "no" >&6; }
23379 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23382 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23383 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23384 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23385 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23388 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23391 $as_echo "yes" >&6; }
23393 if test -z "${db_backends}"; then
23394 db_backends="SQLite3"
23396 db_backends="${db_backends} SQLite3"
23398 if test -z "${DB_BACKENDS}"; then
23399 DB_BACKENDS="sqlite3"
23401 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23405 $as_echo "no" >&6; }
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23411 $as_echo "no" >&6; }
23421 #BA_CHECK_INGRES_DB
23425 #BA_CHECK_DBI_DRIVER
23427 if test "x${db_backends}" = "x" ; then
23430 echo "You have not specified either --enable-client-only or one of the"
23431 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23432 echo "This is not permitted. Please reconfigure."
23434 echo "Aborting the configuration ..."
23440 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23442 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23443 if test x$use_libtool = xno; then
23444 SHARED_CATALOG_TARGETS=""
23446 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23450 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23452 if test x$use_libtool = xno; then
23455 echo "You have specified two or more of the"
23456 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23457 echo "This is not permitted when not using libtool Please reconfigure."
23459 echo "Aborting the configuration ..."
23465 SHARED_CATALOG_TARGETS=""
23466 for db_type in ${DB_BACKENDS}
23468 if test -z "${SHARED_CATALOG_TARGETS}"; then
23469 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23471 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23477 if test x$use_libtool = xyes; then
23486 support_batch_insert=yes
23487 # Check whether --enable-batch-insert was given.
23488 if test "${enable_batch_insert+set}" = set; then :
23489 enableval=$enable_batch_insert;
23490 if test x$enableval = xno; then
23491 support_batch_insert=no
23498 if test x$support_batch_insert = xyes; then
23500 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23504 if test ! -z "$MYSQL_LIB"; then
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23506 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23507 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23508 $as_echo_n "(cached) " >&6
23510 ac_check_lib_save_LIBS=$LIBS
23511 LIBS="-lmysql_r $LIBS"
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23515 /* Override any GCC internal prototype to avoid an error.
23516 Use char because int might match the return type of a GCC
23517 builtin and then its argument prototype would still apply. */
23521 char mysql_thread_safe ();
23525 return mysql_thread_safe ();
23530 if ac_fn_c_try_link "$LINENO"; then :
23531 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23533 ac_cv_lib_mysql_r_mysql_thread_safe=no
23535 rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23540 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23541 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23543 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23549 if test ! -z "SQLITE_LIB"; then
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23551 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23552 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23553 $as_echo_n "(cached) " >&6
23555 ac_check_lib_save_LIBS=$LIBS
23556 LIBS="-lsqlite3 $LIBS"
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23560 /* Override any GCC internal prototype to avoid an error.
23561 Use char because int might match the return type of a GCC
23562 builtin and then its argument prototype would still apply. */
23566 char sqlite3_threadsafe ();
23570 return sqlite3_threadsafe ();
23575 if ac_fn_c_try_link "$LINENO"; then :
23576 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23578 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23580 rm -f core conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23582 LIBS=$ac_check_lib_save_LIBS
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23585 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23586 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23588 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23594 if test ! -z "$POSTGRESQL_LIB"; then
23595 saved_LIBS="${LIBS}"
23596 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23599 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23600 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23601 $as_echo_n "(cached) " >&6
23603 ac_check_lib_save_LIBS=$LIBS
23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23608 /* Override any GCC internal prototype to avoid an error.
23609 Use char because int might match the return type of a GCC
23610 builtin and then its argument prototype would still apply. */
23614 char PQisthreadsafe ();
23618 return PQisthreadsafe ();
23623 if ac_fn_c_try_link "$LINENO"; then :
23624 ac_cv_lib_pq_PQisthreadsafe=yes
23626 ac_cv_lib_pq_PQisthreadsafe=no
23628 rm -f core conftest.err conftest.$ac_objext \
23629 conftest$ac_exeext conftest.$ac_ext
23630 LIBS=$ac_check_lib_save_LIBS
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23633 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23634 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23636 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23641 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23642 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23643 $as_echo_n "(cached) " >&6
23645 ac_check_lib_save_LIBS=$LIBS
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 /* Override any GCC internal prototype to avoid an error.
23651 Use char because int might match the return type of a GCC
23652 builtin and then its argument prototype would still apply. */
23656 char PQputCopyData ();
23660 return PQputCopyData ();
23665 if ac_fn_c_try_link "$LINENO"; then :
23666 ac_cv_lib_pq_PQputCopyData=yes
23668 ac_cv_lib_pq_PQputCopyData=no
23670 rm -f core conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23675 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23676 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23678 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23682 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23683 if test $support_batch_insert = yes ; then
23685 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23690 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23692 echo "WARNING: Your PostgreSQL client library is too old to detect "
23693 echo "if it was compiled with --enable-thread-safety, consider to "
23694 echo "upgrade it in order to avoid problems with Batch insert mode"
23698 LIBS="${saved_LIBS}"
23701 if test ! -z "$DBI_LIBS"; then
23702 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23704 if test $DB_PROG = postgresql; then
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23706 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23707 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23708 $as_echo_n "(cached) " >&6
23710 ac_check_lib_save_LIBS=$LIBS
23712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23713 /* end confdefs.h. */
23715 /* Override any GCC internal prototype to avoid an error.
23716 Use char because int might match the return type of a GCC
23717 builtin and then its argument prototype would still apply. */
23721 char PQisthreadsafe ();
23725 return PQisthreadsafe ();
23730 if ac_fn_c_try_link "$LINENO"; then :
23731 ac_cv_lib_pq_PQisthreadsafe=yes
23733 ac_cv_lib_pq_PQisthreadsafe=no
23735 rm -f core conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
23737 LIBS=$ac_check_lib_save_LIBS
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23740 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23741 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23742 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23747 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23748 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23749 $as_echo_n "(cached) " >&6
23751 ac_check_lib_save_LIBS=$LIBS
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h. */
23756 /* Override any GCC internal prototype to avoid an error.
23757 Use char because int might match the return type of a GCC
23758 builtin and then its argument prototype would still apply. */
23762 char PQputCopyData ();
23766 return PQputCopyData ();
23771 if ac_fn_c_try_link "$LINENO"; then :
23772 ac_cv_lib_pq_PQputCopyData=yes
23774 ac_cv_lib_pq_PQputCopyData=no
23776 rm -f core conftest.err conftest.$ac_objext \
23777 conftest$ac_exeext conftest.$ac_ext
23778 LIBS=$ac_check_lib_save_LIBS
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23781 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23782 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23783 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23787 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23789 if test $pkg = 0; then
23790 if test $support_batch_insert = yes ; then
23792 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23803 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23806 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23807 if test -z "$CCOPTS"; then
23808 CCOPTS='-g -O2 -Wall'
23815 largefile_support="no"
23817 # Check whether --enable-largefile was given.
23818 if test "${enable_largefile+set}" = set; then :
23819 enableval=$enable_largefile;
23822 if test "$enable_largefile" != no; then
23823 if test -n "$ac_tool_prefix"; then
23824 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23825 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23827 $as_echo_n "checking for $ac_word... " >&6; }
23828 if ${ac_cv_prog_GETCONF+:} false; then :
23829 $as_echo_n "(cached) " >&6
23831 if test -n "$GETCONF"; then
23832 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23835 for as_dir in $PATH
23838 test -z "$as_dir" && as_dir=.
23839 for ac_exec_ext in '' $ac_executable_extensions; do
23840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23841 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23851 GETCONF=$ac_cv_prog_GETCONF
23852 if test -n "$GETCONF"; then
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23854 $as_echo "$GETCONF" >&6; }
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23857 $as_echo "no" >&6; }
23862 if test -z "$ac_cv_prog_GETCONF"; then
23863 ac_ct_GETCONF=$GETCONF
23864 # Extract the first word of "getconf", so it can be a program name with args.
23865 set dummy getconf; ac_word=$2
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23867 $as_echo_n "checking for $ac_word... " >&6; }
23868 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23869 $as_echo_n "(cached) " >&6
23871 if test -n "$ac_ct_GETCONF"; then
23872 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23875 for as_dir in $PATH
23878 test -z "$as_dir" && as_dir=.
23879 for ac_exec_ext in '' $ac_executable_extensions; do
23880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23881 ac_cv_prog_ac_ct_GETCONF="getconf"
23882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23891 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23892 if test -n "$ac_ct_GETCONF"; then
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23894 $as_echo "$ac_ct_GETCONF" >&6; }
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23900 if test "x$ac_ct_GETCONF" = x; then
23903 case $cross_compiling:$ac_tool_warned in
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23907 ac_tool_warned=yes ;;
23909 GETCONF=$ac_ct_GETCONF
23912 GETCONF="$ac_cv_prog_GETCONF"
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23916 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23917 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23918 $as_echo_n "(cached) " >&6
23920 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23921 ac_cv_sys_largefile_CFLAGS=no
23923 # IRIX 6.2 and later require cc -n32.
23924 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23925 if test "$GCC" != yes; then
23926 ac_cv_sys_largefile_CFLAGS=-n32
23929 CC="$CC $ac_cv_sys_largefile_CFLAGS"
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23941 if ac_fn_c_try_link "$LINENO"; then :
23944 ac_cv_sys_largefile_CFLAGS=no
23946 rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23953 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23955 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23956 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23957 $as_echo_n "(cached) " >&6
23959 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23960 ac_cv_sys_largefile_LDFLAGS=no
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23965 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23967 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23968 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23969 $as_echo_n "(cached) " >&6
23971 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23972 ac_cv_sys_largefile_LIBS=no
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23977 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23979 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23982 -D_FILE_OFFSET_BITS=*) ;;
23983 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23984 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23989 case "$CPPFLAGS" in
23990 '') CPPFLAGS="$ac_flag" ;;
23991 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23999 '') CFLAGS="$ac_flag" ;;
24000 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24005 case "$ac_cv_sys_largefile_LDFLAGS" in
24009 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24010 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24013 case "$ac_cv_sys_largefile_LIBS" in
24017 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24018 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24022 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24023 if ${ac_cv_sys_file_offset_bits+:} false; then :
24024 $as_echo_n "(cached) " >&6
24026 ac_cv_sys_file_offset_bits=no
24027 ac_cv_sys_file_offset_bits=64
24028 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24030 -D_FILE_OFFSET_BITS)
24031 ac_cv_sys_file_offset_bits=1 ;;
24032 -D_FILE_OFFSET_BITS=*)
24033 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24039 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24040 if test "$ac_cv_sys_file_offset_bits" != no; then
24042 cat >>confdefs.h <<_ACEOF
24043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24048 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24049 if ${ac_cv_sys_largefile_source+:} false; then :
24050 $as_echo_n "(cached) " >&6
24052 ac_cv_sys_largefile_source=no
24053 ac_cv_sys_largefile_source=1
24054 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24056 -D_LARGEFILE_SOURCE)
24057 ac_cv_sys_largefile_source=1 ;;
24058 -D_LARGEFILE_SOURCE=*)
24059 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24065 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24066 if test "$ac_cv_sys_largefile_source" != no; then
24068 cat >>confdefs.h <<_ACEOF
24069 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24074 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24075 if ${ac_cv_sys_large_files+:} false; then :
24076 $as_echo_n "(cached) " >&6
24078 ac_cv_sys_large_files=no
24079 ac_cv_sys_large_files=1
24080 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24083 ac_cv_sys_large_files=1 ;;
24085 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24091 $as_echo "$ac_cv_sys_large_files" >&6; }
24092 if test "$ac_cv_sys_large_files" != no; then
24094 cat >>confdefs.h <<_ACEOF
24095 #define _LARGE_FILES $ac_cv_sys_large_files
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24103 $as_echo_n "checking for X... " >&6; }
24106 # Check whether --with-x was given.
24107 if test "${with_x+set}" = set; then :
24111 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24112 if test "x$with_x" = xno; then
24113 # The user explicitly disabled X.
24116 case $x_includes,$x_libraries in #(
24117 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24118 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24119 $as_echo_n "(cached) " >&6
24121 # One or both of the vars are not set, and there is no cached value.
24122 ac_x_includes=no ac_x_libraries=no
24123 rm -f -r conftest.dir
24124 if mkdir conftest.dir; then
24126 cat >Imakefile <<'_ACEOF'
24128 @echo incroot='${INCROOT}'
24130 @echo usrlibdir='${USRLIBDIR}'
24132 @echo libdir='${LIBDIR}'
24134 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24135 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24136 for ac_var in incroot usrlibdir libdir; do
24137 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24140 for ac_extension in a so sl dylib la dll; do
24141 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24142 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24143 ac_im_usrlibdir=$ac_im_libdir; break
24146 # Screen out bogus values from the imake configuration. They are
24147 # bogus both because they are the default anyway, and because
24148 # using them would break gcc on systems where it needs fixed includes.
24149 case $ac_im_incroot in
24150 /usr/include) ac_x_includes= ;;
24151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24153 case $ac_im_usrlibdir in
24154 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24159 rm -f -r conftest.dir
24162 # Standard set of common directories for X headers.
24163 # Check X11 before X11Rn because it is often a symlink to the current release.
24177 /usr/local/X11/include
24178 /usr/local/X11R7/include
24179 /usr/local/X11R6/include
24180 /usr/local/X11R5/include
24181 /usr/local/X11R4/include
24183 /usr/local/include/X11
24184 /usr/local/include/X11R7
24185 /usr/local/include/X11R6
24186 /usr/local/include/X11R5
24187 /usr/local/include/X11R4
24191 /usr/XFree86/include/X11
24195 /usr/unsupported/include
24196 /usr/athena/include
24197 /usr/local/x11r5/include
24198 /usr/lpp/Xamples/include
24200 /usr/openwin/include
24201 /usr/openwin/share/include'
24203 if test "$ac_x_includes" = no; then
24204 # Guess where to find include files, by looking for Xlib.h.
24205 # First, try using that file with no special directory specified.
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24208 #include <X11/Xlib.h>
24210 if ac_fn_c_try_cpp "$LINENO"; then :
24211 # We can compile using X headers with no special include directory.
24214 for ac_dir in $ac_x_header_dirs; do
24215 if test -r "$ac_dir/X11/Xlib.h"; then
24216 ac_x_includes=$ac_dir
24221 rm -f conftest.err conftest.i conftest.$ac_ext
24222 fi # $ac_x_includes = no
24224 if test "$ac_x_libraries" = no; then
24225 # Check for the libraries.
24226 # See if we find them without any special options.
24227 # Don't add to $LIBS permanently.
24230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h. */
24232 #include <X11/Xlib.h>
24241 if ac_fn_c_try_link "$LINENO"; then :
24243 # We can link X programs with no special library path.
24247 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24249 # Don't even attempt the hair of trying to link an X program!
24250 for ac_extension in a so sl dylib la dll; do
24251 if test -r "$ac_dir/libX11.$ac_extension"; then
24252 ac_x_libraries=$ac_dir
24258 rm -f core conftest.err conftest.$ac_objext \
24259 conftest$ac_exeext conftest.$ac_ext
24260 fi # $ac_x_libraries = no
24262 case $ac_x_includes,$ac_x_libraries in #(
24263 no,* | *,no | *\'*)
24264 # Didn't find X, or a directory has "'" in its name.
24265 ac_cv_have_x="have_x=no";; #(
24267 # Record where we found X for the cache.
24268 ac_cv_have_x="have_x=yes\
24269 ac_x_includes='$ac_x_includes'\
24270 ac_x_libraries='$ac_x_libraries'"
24276 eval "$ac_cv_have_x"
24279 if test "$have_x" != yes; then
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24281 $as_echo "$have_x" >&6; }
24284 # If each of the values was on the command line, it overrides each guess.
24285 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24286 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24287 # Update the cache value to reflect the command line values.
24288 ac_cv_have_x="have_x=yes\
24289 ac_x_includes='$x_includes'\
24290 ac_x_libraries='$x_libraries'"
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24292 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24295 if test "$no_x" = yes; then
24296 # Not all programs may use this symbol, but it does not hurt to define it.
24298 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24300 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24302 if test -n "$x_includes"; then
24303 X_CFLAGS="$X_CFLAGS -I$x_includes"
24306 # It would also be nice to do this for all -L options, not just this one.
24307 if test -n "$x_libraries"; then
24308 X_LIBS="$X_LIBS -L$x_libraries"
24309 # For Solaris; some versions of Sun CC require a space after -R and
24310 # others require no space. Words are not sufficient . . . .
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24312 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24313 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24314 ac_xsave_c_werror_flag=$ac_c_werror_flag
24315 ac_c_werror_flag=yes
24316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h. */
24327 if ac_fn_c_try_link "$LINENO"; then :
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24329 $as_echo "no" >&6; }
24330 X_LIBS="$X_LIBS -R$x_libraries"
24332 LIBS="$ac_xsave_LIBS -R $x_libraries"
24333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h. */
24344 if ac_fn_c_try_link "$LINENO"; then :
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24346 $as_echo "yes" >&6; }
24347 X_LIBS="$X_LIBS -R $x_libraries"
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24350 $as_echo "neither works" >&6; }
24352 rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24355 rm -f core conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24357 ac_c_werror_flag=$ac_xsave_c_werror_flag
24358 LIBS=$ac_xsave_LIBS
24361 # Check for system-dependent libraries X programs must link with.
24362 # Do this before checking for the system-independent R6 libraries
24363 # (-lICE), since we may need -lsocket or whatever for X linking.
24365 if test "$ISC" = yes; then
24366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24368 # Martyn Johnson says this is needed for Ultrix, if the X
24369 # libraries were built with DECnet support. And Karl Berry says
24370 # the Alpha needs dnet_stub (dnet does not exist).
24371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
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 XOpenDisplay ();
24385 return XOpenDisplay ();
24390 if ac_fn_c_try_link "$LINENO"; then :
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24394 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24395 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24396 $as_echo_n "(cached) " >&6
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-ldnet $LIBS"
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24403 /* Override any GCC internal prototype to avoid an error.
24404 Use char because int might match the return type of a GCC
24405 builtin and then its argument prototype would still apply. */
24413 return dnet_ntoa ();
24418 if ac_fn_c_try_link "$LINENO"; then :
24419 ac_cv_lib_dnet_dnet_ntoa=yes
24421 ac_cv_lib_dnet_dnet_ntoa=no
24423 rm -f core conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24425 LIBS=$ac_check_lib_save_LIBS
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24428 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24429 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24430 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24433 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24435 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24436 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24437 $as_echo_n "(cached) " >&6
24439 ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-ldnet_stub $LIBS"
24441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442 /* end confdefs.h. */
24444 /* Override any GCC internal prototype to avoid an error.
24445 Use char because int might match the return type of a GCC
24446 builtin and then its argument prototype would still apply. */
24454 return dnet_ntoa ();
24459 if ac_fn_c_try_link "$LINENO"; then :
24460 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24462 ac_cv_lib_dnet_stub_dnet_ntoa=no
24464 rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
24466 LIBS=$ac_check_lib_save_LIBS
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24469 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24470 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24471 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24476 rm -f core conftest.err conftest.$ac_objext \
24477 conftest$ac_exeext conftest.$ac_ext
24478 LIBS="$ac_xsave_LIBS"
24480 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24481 # to get the SysV transport functions.
24482 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24484 # The nsl library prevents programs from opening the X display
24485 # on Irix 5.2, according to T.E. Dickey.
24486 # The functions gethostbyname, getservbyname, and inet_addr are
24487 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24488 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24489 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24493 if test $ac_cv_func_gethostbyname = no; then
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24495 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24496 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24497 $as_echo_n "(cached) " >&6
24499 ac_check_lib_save_LIBS=$LIBS
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502 /* end confdefs.h. */
24504 /* Override any GCC internal prototype to avoid an error.
24505 Use char because int might match the return type of a GCC
24506 builtin and then its argument prototype would still apply. */
24510 char gethostbyname ();
24514 return gethostbyname ();
24519 if ac_fn_c_try_link "$LINENO"; then :
24520 ac_cv_lib_nsl_gethostbyname=yes
24522 ac_cv_lib_nsl_gethostbyname=no
24524 rm -f core conftest.err conftest.$ac_objext \
24525 conftest$ac_exeext conftest.$ac_ext
24526 LIBS=$ac_check_lib_save_LIBS
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24529 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24530 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24534 if test $ac_cv_lib_nsl_gethostbyname = no; then
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24536 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24537 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24538 $as_echo_n "(cached) " >&6
24540 ac_check_lib_save_LIBS=$LIBS
24542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543 /* end confdefs.h. */
24545 /* Override any GCC internal prototype to avoid an error.
24546 Use char because int might match the return type of a GCC
24547 builtin and then its argument prototype would still apply. */
24551 char gethostbyname ();
24555 return gethostbyname ();
24560 if ac_fn_c_try_link "$LINENO"; then :
24561 ac_cv_lib_bsd_gethostbyname=yes
24563 ac_cv_lib_bsd_gethostbyname=no
24565 rm -f core conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567 LIBS=$ac_check_lib_save_LIBS
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24570 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24571 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24578 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24579 # socket/setsockopt and other routines are undefined under SCO ODT
24580 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24581 # on later versions), says Simon Leinen: it contains gethostby*
24582 # variants that don't use the name server (or something). -lsocket
24583 # must be given before -lnsl if both are needed. We assume that
24584 # if connect needs -lnsl, so does gethostbyname.
24585 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24586 if test "x$ac_cv_func_connect" = xyes; then :
24590 if test $ac_cv_func_connect = no; then
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24592 $as_echo_n "checking for connect in -lsocket... " >&6; }
24593 if ${ac_cv_lib_socket_connect+:} false; then :
24594 $as_echo_n "(cached) " >&6
24596 ac_check_lib_save_LIBS=$LIBS
24597 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24601 /* Override any GCC internal prototype to avoid an error.
24602 Use char because int might match the return type of a GCC
24603 builtin and then its argument prototype would still apply. */
24616 if ac_fn_c_try_link "$LINENO"; then :
24617 ac_cv_lib_socket_connect=yes
24619 ac_cv_lib_socket_connect=no
24621 rm -f core conftest.err conftest.$ac_objext \
24622 conftest$ac_exeext conftest.$ac_ext
24623 LIBS=$ac_check_lib_save_LIBS
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24626 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24627 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24633 # Guillermo Gomez says -lposix is necessary on A/UX.
24634 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24635 if test "x$ac_cv_func_remove" = xyes; then :
24639 if test $ac_cv_func_remove = no; then
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24641 $as_echo_n "checking for remove in -lposix... " >&6; }
24642 if ${ac_cv_lib_posix_remove+:} false; then :
24643 $as_echo_n "(cached) " >&6
24645 ac_check_lib_save_LIBS=$LIBS
24646 LIBS="-lposix $LIBS"
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24650 /* Override any GCC internal prototype to avoid an error.
24651 Use char because int might match the return type of a GCC
24652 builtin and then its argument prototype would still apply. */
24665 if ac_fn_c_try_link "$LINENO"; then :
24666 ac_cv_lib_posix_remove=yes
24668 ac_cv_lib_posix_remove=no
24670 rm -f core conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24672 LIBS=$ac_check_lib_save_LIBS
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24675 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24676 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24677 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24682 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24683 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24684 if test "x$ac_cv_func_shmat" = xyes; then :
24688 if test $ac_cv_func_shmat = no; then
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24690 $as_echo_n "checking for shmat in -lipc... " >&6; }
24691 if ${ac_cv_lib_ipc_shmat+:} false; then :
24692 $as_echo_n "(cached) " >&6
24694 ac_check_lib_save_LIBS=$LIBS
24696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h. */
24699 /* Override any GCC internal prototype to avoid an error.
24700 Use char because int might match the return type of a GCC
24701 builtin and then its argument prototype would still apply. */
24714 if ac_fn_c_try_link "$LINENO"; then :
24715 ac_cv_lib_ipc_shmat=yes
24717 ac_cv_lib_ipc_shmat=no
24719 rm -f core conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24724 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24725 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24732 # Check for libraries that X11R6 Xt/Xaw programs need.
24733 ac_save_LDFLAGS=$LDFLAGS
24734 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24735 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24736 # check for ICE first), but we must link in the order -lSM -lICE or
24737 # we get undefined symbols. So assume we have SM if we have ICE.
24738 # These have to be linked with before -lX11, unlike the other
24739 # libraries we check for below, so use a different variable.
24740 # John Interrante, Karl Berry
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24742 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24743 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24744 $as_echo_n "(cached) " >&6
24746 ac_check_lib_save_LIBS=$LIBS
24747 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24749 /* end confdefs.h. */
24751 /* Override any GCC internal prototype to avoid an error.
24752 Use char because int might match the return type of a GCC
24753 builtin and then its argument prototype would still apply. */
24757 char IceConnectionNumber ();
24761 return IceConnectionNumber ();
24766 if ac_fn_c_try_link "$LINENO"; then :
24767 ac_cv_lib_ICE_IceConnectionNumber=yes
24769 ac_cv_lib_ICE_IceConnectionNumber=no
24771 rm -f core conftest.err conftest.$ac_objext \
24772 conftest$ac_exeext conftest.$ac_ext
24773 LIBS=$ac_check_lib_save_LIBS
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24776 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24777 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24778 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24781 LDFLAGS=$ac_save_LDFLAGS
24818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24821 cat >>confdefs.h <<_ACEOF
24822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24830 $as_echo_n "checking for ANSI C header files... " >&6; }
24831 if ${ac_cv_header_stdc+:} false; then :
24832 $as_echo_n "(cached) " >&6
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h. */
24836 #include <stdlib.h>
24837 #include <stdarg.h>
24838 #include <string.h>
24849 if ac_fn_c_try_compile "$LINENO"; then :
24850 ac_cv_header_stdc=yes
24852 ac_cv_header_stdc=no
24854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24856 if test $ac_cv_header_stdc = yes; then
24857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24860 #include <string.h>
24863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24864 $EGREP "memchr" >/dev/null 2>&1; then :
24867 ac_cv_header_stdc=no
24873 if test $ac_cv_header_stdc = yes; then
24874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24876 /* end confdefs.h. */
24877 #include <stdlib.h>
24880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24881 $EGREP "free" >/dev/null 2>&1; then :
24884 ac_cv_header_stdc=no
24890 if test $ac_cv_header_stdc = yes; then
24891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24892 if test "$cross_compiling" = yes; then :
24895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24896 /* end confdefs.h. */
24898 #include <stdlib.h>
24899 #if ((' ' & 0x0FF) == 0x020)
24900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24903 # define ISLOWER(c) \
24904 (('a' <= (c) && (c) <= 'i') \
24905 || ('j' <= (c) && (c) <= 'r') \
24906 || ('s' <= (c) && (c) <= 'z'))
24907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24915 for (i = 0; i < 256; i++)
24916 if (XOR (islower (i), ISLOWER (i))
24917 || toupper (i) != TOUPPER (i))
24922 if ac_fn_c_try_run "$LINENO"; then :
24925 ac_cv_header_stdc=no
24927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24928 conftest.$ac_objext conftest.beam conftest.$ac_ext
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24934 $as_echo "$ac_cv_header_stdc" >&6; }
24935 if test $ac_cv_header_stdc = yes; then
24937 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24942 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24943 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24944 $as_echo_n "(cached) " >&6
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24948 #include <sys/types.h>
24952 return makedev(0, 0);
24957 if ac_fn_c_try_link "$LINENO"; then :
24958 ac_cv_header_sys_types_h_makedev=yes
24960 ac_cv_header_sys_types_h_makedev=no
24962 rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24967 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24969 if test $ac_cv_header_sys_types_h_makedev = no; then
24970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24971 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24973 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24979 if test $ac_cv_header_sys_mkdev_h = no; then
24980 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24981 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24983 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24991 ac_header_dirent=no
24992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24993 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24995 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24996 if eval \${$as_ac_Header+:} false; then :
24997 $as_echo_n "(cached) " >&6
24999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000 /* end confdefs.h. */
25001 #include <sys/types.h>
25013 if ac_fn_c_try_compile "$LINENO"; then :
25014 eval "$as_ac_Header=yes"
25016 eval "$as_ac_Header=no"
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020 eval ac_res=\$$as_ac_Header
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25022 $as_echo "$ac_res" >&6; }
25023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25024 cat >>confdefs.h <<_ACEOF
25025 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25028 ac_header_dirent=$ac_hdr; break
25032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25033 if test $ac_header_dirent = dirent.h; then
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25035 $as_echo_n "checking for library containing opendir... " >&6; }
25036 if ${ac_cv_search_opendir+:} false; then :
25037 $as_echo_n "(cached) " >&6
25039 ac_func_search_save_LIBS=$LIBS
25040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25041 /* end confdefs.h. */
25043 /* Override any GCC internal prototype to avoid an error.
25044 Use char because int might match the return type of a GCC
25045 builtin and then its argument prototype would still apply. */
25058 for ac_lib in '' dir; do
25059 if test -z "$ac_lib"; then
25060 ac_res="none required"
25063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25065 if ac_fn_c_try_link "$LINENO"; then :
25066 ac_cv_search_opendir=$ac_res
25068 rm -f core conftest.err conftest.$ac_objext \
25070 if ${ac_cv_search_opendir+:} false; then :
25074 if ${ac_cv_search_opendir+:} false; then :
25077 ac_cv_search_opendir=no
25079 rm conftest.$ac_ext
25080 LIBS=$ac_func_search_save_LIBS
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25083 $as_echo "$ac_cv_search_opendir" >&6; }
25084 ac_res=$ac_cv_search_opendir
25085 if test "$ac_res" != no; then :
25086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25092 $as_echo_n "checking for library containing opendir... " >&6; }
25093 if ${ac_cv_search_opendir+:} false; then :
25094 $as_echo_n "(cached) " >&6
25096 ac_func_search_save_LIBS=$LIBS
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. */
25115 for ac_lib in '' x; do
25116 if test -z "$ac_lib"; then
25117 ac_res="none required"
25120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25122 if ac_fn_c_try_link "$LINENO"; then :
25123 ac_cv_search_opendir=$ac_res
25125 rm -f core conftest.err conftest.$ac_objext \
25127 if ${ac_cv_search_opendir+:} false; then :
25131 if ${ac_cv_search_opendir+:} false; then :
25134 ac_cv_search_opendir=no
25136 rm conftest.$ac_ext
25137 LIBS=$ac_func_search_save_LIBS
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25140 $as_echo "$ac_cv_search_opendir" >&6; }
25141 ac_res=$ac_cv_search_opendir
25142 if test "$ac_res" != no; then :
25143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25150 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25151 if ${ac_cv_header_stat_broken+:} false; then :
25152 $as_echo_n "(cached) " >&6
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25156 #include <sys/types.h>
25157 #include <sys/stat.h>
25159 #if defined S_ISBLK && defined S_IFDIR
25160 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25163 #if defined S_ISBLK && defined S_IFCHR
25164 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25167 #if defined S_ISLNK && defined S_IFREG
25168 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25171 #if defined S_ISSOCK && defined S_IFREG
25172 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177 ac_cv_header_stat_broken=no
25179 ac_cv_header_stat_broken=yes
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25184 $as_echo "$ac_cv_header_stat_broken" >&6; }
25185 if test $ac_cv_header_stat_broken = yes; then
25187 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25192 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25193 if ${ac_cv_header_sys_wait_h+:} false; then :
25194 $as_echo_n "(cached) " >&6
25196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h. */
25198 #include <sys/types.h>
25199 #include <sys/wait.h>
25200 #ifndef WEXITSTATUS
25201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25217 if ac_fn_c_try_compile "$LINENO"; then :
25218 ac_cv_header_sys_wait_h=yes
25220 ac_cv_header_sys_wait_h=no
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25225 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25226 if test $ac_cv_header_sys_wait_h = yes; then
25228 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25233 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25234 if ${ac_cv_header_time+:} false; then :
25235 $as_echo_n "(cached) " >&6
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25239 #include <sys/types.h>
25240 #include <sys/time.h>
25246 if ((struct tm *) 0)
25252 if ac_fn_c_try_compile "$LINENO"; then :
25253 ac_cv_header_time=yes
25255 ac_cv_header_time=no
25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25260 $as_echo "$ac_cv_header_time" >&6; }
25261 if test $ac_cv_header_time = yes; then
25263 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25267 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25268 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25270 cat >>confdefs.h <<_ACEOF
25271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25275 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25280 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25281 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25283 cat >>confdefs.h <<_ACEOF
25284 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25288 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25291 case " $LIBOBJS " in
25292 *" fileblocks.$ac_objext "* ) ;;
25293 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25301 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25302 if ${ac_cv_struct_tm+:} false; then :
25303 $as_echo_n "(cached) " >&6
25305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h. */
25307 #include <sys/types.h>
25314 int *p = &tm.tm_sec;
25320 if ac_fn_c_try_compile "$LINENO"; then :
25321 ac_cv_struct_tm=time.h
25323 ac_cv_struct_tm=sys/time.h
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25328 $as_echo "$ac_cv_struct_tm" >&6; }
25329 if test $ac_cv_struct_tm = sys/time.h; then
25331 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25335 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25336 #include <$ac_cv_struct_tm>
25339 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25341 cat >>confdefs.h <<_ACEOF
25342 #define HAVE_STRUCT_TM_TM_ZONE 1
25348 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25350 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25353 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25355 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25361 cat >>confdefs.h <<_ACEOF
25362 #define HAVE_DECL_TZNAME $ac_have_decl
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25366 $as_echo_n "checking for tzname... " >&6; }
25367 if ${ac_cv_var_tzname+:} false; then :
25368 $as_echo_n "(cached) " >&6
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25373 #if !HAVE_DECL_TZNAME
25374 extern char *tzname[];
25380 return tzname[0][0];
25385 if ac_fn_c_try_link "$LINENO"; then :
25386 ac_cv_var_tzname=yes
25388 ac_cv_var_tzname=no
25390 rm -f core conftest.err conftest.$ac_objext \
25391 conftest$ac_exeext conftest.$ac_ext
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25394 $as_echo "$ac_cv_var_tzname" >&6; }
25395 if test $ac_cv_var_tzname = yes; then
25397 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25404 $as_echo_n "checking for utime.h... " >&6; }
25405 if ${ba_cv_header_utime_h+:} false; then :
25406 $as_echo_n "(cached) " >&6
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 #include <sys/types.h>
25425 if ac_fn_c_try_compile "$LINENO"; then :
25427 ba_cv_header_utime_h=yes
25431 ba_cv_header_utime_h=no
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25440 $as_echo "$ba_cv_header_utime_h" >&6; }
25441 test $ba_cv_header_utime_h = yes &&
25442 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25446 $as_echo_n "checking for socklen_t... " >&6; }
25447 if ${ba_cv_header_socklen_t+:} false; then :
25448 $as_echo_n "(cached) " >&6
25451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h. */
25454 #include <sys/types.h>
25455 #include <sys/socket.h>
25467 if ac_fn_c_try_compile "$LINENO"; then :
25469 ba_cv_header_socklen_t=yes
25473 ba_cv_header_socklen_t=no
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25482 $as_echo "$ba_cv_header_socklen_t" >&6; }
25483 test $ba_cv_header_socklen_t = yes &&
25484 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25488 ac_cpp='$CXXCPP $CPPFLAGS'
25489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25494 $as_echo_n "checking for ioctl_req_t... " >&6; }
25495 if ${ba_cv_header_ioctl_req_t+:} false; then :
25496 $as_echo_n "(cached) " >&6
25499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25500 /* end confdefs.h. */
25502 #include <unistd.h>
25503 #include <sys/types.h>
25504 #include <sys/ioctl.h>
25510 int (*d_ioctl)(int fd, unsigned long int request, ...);
25517 if ac_fn_cxx_try_compile "$LINENO"; then :
25519 ba_cv_header_ioctl_req_t=yes
25523 ba_cv_header_ioctl_req_t=no
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25532 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25533 test $ba_cv_header_ioctl_req_t = yes &&
25534 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25538 ac_cpp='$CPP $CPPFLAGS'
25539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25545 ac_cpp='$CXXCPP $CPPFLAGS'
25546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25551 $as_echo_n "checking for typeof... " >&6; }
25552 if ${ba_cv_have_typeof+:} false; then :
25553 $as_echo_n "(cached) " >&6
25556 if test "$cross_compiling" = yes; then :
25558 ba_cv_have_typeof=no
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25565 main(){char *a = 0; a = (typeof a)a;}
25568 if ac_fn_cxx_try_run "$LINENO"; then :
25570 ba_cv_have_typeof=yes
25574 ba_cv_have_typeof=no
25577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25578 conftest.$ac_objext conftest.beam conftest.$ac_ext
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25585 $as_echo "$ba_cv_have_typeof" >&6; }
25586 test $ba_cv_have_typeof = yes &&
25587 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25590 ac_cpp='$CPP $CPPFLAGS'
25591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25598 if ${ac_cv_c_const+:} false; then :
25599 $as_echo_n "(cached) " >&6
25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h. */
25607 /* FIXME: Include the comments suggested by Paul. */
25608 #ifndef __cplusplus
25609 /* Ultrix mips cc rejects this. */
25610 typedef int charset[2];
25612 /* SunOS 4.1.1 cc rejects this. */
25613 char const *const *pcpcc;
25615 /* NEC SVR4.0.2 mips cc rejects this. */
25616 struct point {int x, y;};
25617 static struct point const zero = {0,0};
25618 /* AIX XL C 1.02.0.0 rejects this.
25619 It does not let you subtract one const X* pointer from another in
25620 an arm of an if-expression whose if-part is not a constant
25622 const char *g = "string";
25623 pcpcc = &g + (g ? g-g : 0);
25624 /* HPUX 7.0 cc rejects these. */
25626 ppc = (char**) pcpcc;
25627 pcpcc = (char const *const *) ppc;
25628 { /* SCO 3.2v4 cc rejects this. */
25630 char const *s = 0 ? (char *) 0 : (char const *) 0;
25635 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25636 int x[] = {25, 17};
25637 const int *foo = &x[0];
25640 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25641 typedef const int *iptr;
25645 { /* AIX XL C 1.02.0.0 rejects this saying
25646 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25647 struct s { int j; const int *ap[3]; };
25648 struct s *b; b->j = 5;
25650 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25651 const int foo = 10;
25652 if (!foo) return 0;
25654 return !cs[0] && !zero.x;
25661 if ac_fn_c_try_compile "$LINENO"; then :
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25669 $as_echo "$ac_cv_c_const" >&6; }
25670 if test $ac_cv_c_const = no; then
25672 $as_echo "#define const /**/" >>confdefs.h
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25679 if ${ac_cv_c_bigendian+:} false; then :
25680 $as_echo_n "(cached) " >&6
25682 ac_cv_c_bigendian=unknown
25683 # See if we're dealing with a universal compiler.
25684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685 /* end confdefs.h. */
25686 #ifndef __APPLE_CC__
25687 not a universal capable compiler
25692 if ac_fn_c_try_compile "$LINENO"; then :
25694 # Check for potential -arch flags. It is not universal unless
25695 # there are at least two -arch flags with different values.
25698 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25699 if test -n "$ac_prev"; then
25701 i?86 | x86_64 | ppc | ppc64)
25702 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25705 ac_cv_c_bigendian=universal
25711 elif test "x$ac_word" = "x-arch"; then
25716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 if test $ac_cv_c_bigendian = unknown; then
25718 # See if sys/param.h defines the BYTE_ORDER macro.
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25721 #include <sys/types.h>
25722 #include <sys/param.h>
25727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25728 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25730 bogus endian macros
25737 if ac_fn_c_try_compile "$LINENO"; then :
25738 # It does; now see whether it defined to BIG_ENDIAN or not.
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25741 #include <sys/types.h>
25742 #include <sys/param.h>
25747 #if BYTE_ORDER != BIG_ENDIAN
25755 if ac_fn_c_try_compile "$LINENO"; then :
25756 ac_cv_c_bigendian=yes
25758 ac_cv_c_bigendian=no
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764 if test $ac_cv_c_bigendian = unknown; then
25765 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25767 /* end confdefs.h. */
25768 #include <limits.h>
25773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25774 bogus endian macros
25781 if ac_fn_c_try_compile "$LINENO"; then :
25782 # It does; now see whether it defined to _BIG_ENDIAN or not.
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h. */
25785 #include <limits.h>
25790 #ifndef _BIG_ENDIAN
25798 if ac_fn_c_try_compile "$LINENO"; then :
25799 ac_cv_c_bigendian=yes
25801 ac_cv_c_bigendian=no
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 if test $ac_cv_c_bigendian = unknown; then
25808 # Compile a test program.
25809 if test "$cross_compiling" = yes; then :
25810 # Try to guess by grepping values from an object file.
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25813 short int ascii_mm[] =
25814 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25815 short int ascii_ii[] =
25816 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25817 int use_ascii (int i) {
25818 return ascii_mm[i] + ascii_ii[i];
25820 short int ebcdic_ii[] =
25821 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25822 short int ebcdic_mm[] =
25823 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25824 int use_ebcdic (int i) {
25825 return ebcdic_mm[i] + ebcdic_ii[i];
25832 return use_ascii (foo) == use_ebcdic (foo);
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25839 ac_cv_c_bigendian=yes
25841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25842 if test "$ac_cv_c_bigendian" = unknown; then
25843 ac_cv_c_bigendian=no
25845 # finding both strings is unlikely to happen, but who knows?
25846 ac_cv_c_bigendian=unknown
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25854 $ac_includes_default
25859 /* Are we little or big endian? From Harbison&Steele. */
25863 char c[sizeof (long int)];
25866 return u.c[sizeof (long int) - 1] == 1;
25872 if ac_fn_c_try_run "$LINENO"; then :
25873 ac_cv_c_bigendian=no
25875 ac_cv_c_bigendian=yes
25877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25878 conftest.$ac_objext conftest.beam conftest.$ac_ext
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25884 $as_echo "$ac_cv_c_bigendian" >&6; }
25885 case $ac_cv_c_bigendian in #(
25888 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25892 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25896 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25900 as_fn_error $? "unknown endianness
25901 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25906 $as_echo_n "checking how to get filesystem type... " >&6; }
25908 # The order of these tests is important.
25909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25910 /* end confdefs.h. */
25912 #include <sys/statvfs.h>
25913 #include <sys/fstyp.h>
25916 if ac_fn_c_try_cpp "$LINENO"; then :
25917 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25921 rm -f conftest.err conftest.i conftest.$ac_ext
25922 if test $fstype = no; then
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25926 #include <sys/statfs.h>
25927 #include <sys/fstyp.h>
25930 if ac_fn_c_try_cpp "$LINENO"; then :
25931 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25935 rm -f conftest.err conftest.i conftest.$ac_ext
25937 if test $fstype = no; then
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25941 #include <sys/statfs.h>
25942 #include <sys/vmount.h>
25945 if ac_fn_c_try_cpp "$LINENO"; then :
25946 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25950 rm -f conftest.err conftest.i conftest.$ac_ext
25952 if test $fstype = no; then
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25956 #include <mntent.h>
25959 if ac_fn_c_try_cpp "$LINENO"; then :
25960 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25964 rm -f conftest.err conftest.i conftest.$ac_ext
25966 if test $fstype = no; then
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25969 #include <sys/mount.h>
25972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25973 $EGREP "f_type;" >/dev/null 2>&1; then :
25974 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25980 if test $fstype = no; then
25981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982 /* end confdefs.h. */
25984 #include <sys/mount.h>
25985 #include <sys/fs_types.h>
25988 if ac_fn_c_try_cpp "$LINENO"; then :
25989 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25993 rm -f conftest.err conftest.i conftest.$ac_ext
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25996 $as_echo "$fstype" >&6; }
25998 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25999 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26001 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26008 ac_cpp='$CXXCPP $CPPFLAGS'
26009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26014 for ac_header in cxxabi.h execinfo.h
26016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26017 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26019 cat >>confdefs.h <<_ACEOF
26020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26023 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26037 $as_echo_n "checking return type of signal handlers... " >&6; }
26038 if ${ac_cv_type_signal+:} false; then :
26039 $as_echo_n "(cached) " >&6
26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26043 #include <sys/types.h>
26044 #include <signal.h>
26049 return *(signal (0, 0)) (0) == 1;
26054 if ac_fn_c_try_compile "$LINENO"; then :
26055 ac_cv_type_signal=int
26057 ac_cv_type_signal=void
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26062 $as_echo "$ac_cv_type_signal" >&6; }
26064 cat >>confdefs.h <<_ACEOF
26065 #define RETSIGTYPE $ac_cv_type_signal
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26071 $as_echo_n "checking for type of signal functions... " >&6; }
26072 if ${bash_cv_signal_vintage+:} false; then :
26073 $as_echo_n "(cached) " >&6
26076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077 /* end confdefs.h. */
26078 #include <signal.h>
26084 struct sigaction sa;
26085 sigemptyset(&ss); sigsuspend(&ss);
26086 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26087 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26093 if ac_fn_c_try_link "$LINENO"; then :
26094 bash_cv_signal_vintage="posix"
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26099 #include <signal.h>
26104 int mask = sigmask(SIGINT);
26105 sigsetmask(mask); sigblock(mask); sigpause(mask);
26111 if ac_fn_c_try_link "$LINENO"; then :
26112 bash_cv_signal_vintage="4.2bsd"
26115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116 /* end confdefs.h. */
26118 #include <signal.h>
26119 RETSIGTYPE foo() { }
26124 int mask = sigmask(SIGINT);
26125 sigset(SIGINT, foo); sigrelse(SIGINT);
26126 sighold(SIGINT); sigpause(SIGINT);
26132 if ac_fn_c_try_link "$LINENO"; then :
26133 bash_cv_signal_vintage="svr3"
26135 bash_cv_signal_vintage="v7"
26138 rm -f core conftest.err conftest.$ac_objext \
26139 conftest$ac_exeext conftest.$ac_ext
26142 rm -f core conftest.err conftest.$ac_objext \
26143 conftest$ac_exeext conftest.$ac_ext
26146 rm -f core conftest.err conftest.$ac_objext \
26147 conftest$ac_exeext conftest.$ac_ext
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26152 $as_echo "$bash_cv_signal_vintage" >&6; }
26153 if test "$bash_cv_signal_vintage" = "posix"; then
26154 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26156 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26157 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26159 elif test "$bash_cv_signal_vintage" = "svr3"; then
26160 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26164 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26165 if test "x$ac_cv_type_mode_t" = xyes; then :
26169 cat >>confdefs.h <<_ACEOF
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26176 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26177 if ${ac_cv_type_uid_t+:} false; then :
26178 $as_echo_n "(cached) " >&6
26180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26181 /* end confdefs.h. */
26182 #include <sys/types.h>
26185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26186 $EGREP "uid_t" >/dev/null 2>&1; then :
26187 ac_cv_type_uid_t=yes
26189 ac_cv_type_uid_t=no
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26195 $as_echo "$ac_cv_type_uid_t" >&6; }
26196 if test $ac_cv_type_uid_t = no; then
26198 $as_echo "#define uid_t int" >>confdefs.h
26201 $as_echo "#define gid_t int" >>confdefs.h
26205 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26206 if test "x$ac_cv_type_size_t" = xyes; then :
26210 cat >>confdefs.h <<_ACEOF
26211 #define size_t unsigned int
26216 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_pid_t" = xyes; then :
26221 cat >>confdefs.h <<_ACEOF
26227 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26228 if test "x$ac_cv_type_off_t" = xyes; then :
26232 cat >>confdefs.h <<_ACEOF
26233 #define off_t long int
26239 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26240 if test "x$ac_cv_type_intptr_t" = xyes; then :
26242 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26245 for ac_type in 'int' 'long int' 'long long int'; do
26246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26247 /* end confdefs.h. */
26248 $ac_includes_default
26252 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26259 if ac_fn_c_try_compile "$LINENO"; then :
26261 cat >>confdefs.h <<_ACEOF
26262 #define intptr_t $ac_type
26267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268 test -z "$ac_type" && break
26274 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26275 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26277 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26280 for ac_type in 'unsigned int' 'unsigned long int' \
26281 'unsigned long long int'; do
26282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h. */
26284 $ac_includes_default
26288 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26295 if ac_fn_c_try_compile "$LINENO"; then :
26297 cat >>confdefs.h <<_ACEOF
26298 #define uintptr_t $ac_type
26303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26304 test -z "$ac_type" && break
26309 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26310 if test "x$ac_cv_type_ino_t" = xyes; then :
26314 cat >>confdefs.h <<_ACEOF
26315 #define ino_t unsigned long
26320 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26321 if test "x$ac_cv_type_dev_t" = xyes; then :
26325 cat >>confdefs.h <<_ACEOF
26326 #define dev_t unsigned long
26331 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26332 if test "x$ac_cv_type_daddr_t" = xyes; then :
26336 cat >>confdefs.h <<_ACEOF
26337 #define daddr_t long
26342 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26343 if test "x$ac_cv_type_major_t" = xyes; then :
26347 cat >>confdefs.h <<_ACEOF
26348 #define major_t int
26353 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26354 if test "x$ac_cv_type_minor_t" = xyes; then :
26358 cat >>confdefs.h <<_ACEOF
26359 #define minor_t int
26364 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26365 if test "x$ac_cv_type_ssize_t" = xyes; then :
26369 cat >>confdefs.h <<_ACEOF
26370 #define ssize_t int
26375 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26376 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26378 cat >>confdefs.h <<_ACEOF
26379 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26383 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26386 case " $LIBOBJS " in
26387 *" fileblocks.$ac_objext "* ) ;;
26388 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26395 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26396 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_STRUCT_STAT_ST_RDEV 1
26403 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26409 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26410 if ${ac_cv_struct_tm+:} false; then :
26411 $as_echo_n "(cached) " >&6
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h. */
26415 #include <sys/types.h>
26422 int *p = &tm.tm_sec;
26428 if ac_fn_c_try_compile "$LINENO"; then :
26429 ac_cv_struct_tm=time.h
26431 ac_cv_struct_tm=sys/time.h
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26436 $as_echo "$ac_cv_struct_tm" >&6; }
26437 if test $ac_cv_struct_tm = sys/time.h; then
26439 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26444 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26445 if ${ac_cv_c_const+:} false; then :
26446 $as_echo_n "(cached) " >&6
26448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h. */
26454 /* FIXME: Include the comments suggested by Paul. */
26455 #ifndef __cplusplus
26456 /* Ultrix mips cc rejects this. */
26457 typedef int charset[2];
26459 /* SunOS 4.1.1 cc rejects this. */
26460 char const *const *pcpcc;
26462 /* NEC SVR4.0.2 mips cc rejects this. */
26463 struct point {int x, y;};
26464 static struct point const zero = {0,0};
26465 /* AIX XL C 1.02.0.0 rejects this.
26466 It does not let you subtract one const X* pointer from another in
26467 an arm of an if-expression whose if-part is not a constant
26469 const char *g = "string";
26470 pcpcc = &g + (g ? g-g : 0);
26471 /* HPUX 7.0 cc rejects these. */
26473 ppc = (char**) pcpcc;
26474 pcpcc = (char const *const *) ppc;
26475 { /* SCO 3.2v4 cc rejects this. */
26477 char const *s = 0 ? (char *) 0 : (char const *) 0;
26482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26483 int x[] = {25, 17};
26484 const int *foo = &x[0];
26487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26488 typedef const int *iptr;
26492 { /* AIX XL C 1.02.0.0 rejects this saying
26493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26494 struct s { int j; const int *ap[3]; };
26495 struct s *b; b->j = 5;
26497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26498 const int foo = 10;
26499 if (!foo) return 0;
26501 return !cs[0] && !zero.x;
26508 if ac_fn_c_try_compile "$LINENO"; then :
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26516 $as_echo "$ac_cv_c_const" >&6; }
26517 if test $ac_cv_c_const = no; then
26519 $as_echo "#define const /**/" >>confdefs.h
26524 # The cast to long int works around a bug in the HP C Compiler
26525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26527 # This bug is HP SR number 8606223364.
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26529 $as_echo_n "checking size of char... " >&6; }
26530 if ${ac_cv_sizeof_char+:} false; then :
26531 $as_echo_n "(cached) " >&6
26533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26536 if test "$ac_cv_type_char" = yes; then
26537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26539 as_fn_error 77 "cannot compute sizeof (char)
26540 See \`config.log' for more details" "$LINENO" 5; }
26542 ac_cv_sizeof_char=0
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26548 $as_echo "$ac_cv_sizeof_char" >&6; }
26552 cat >>confdefs.h <<_ACEOF
26553 #define SIZEOF_CHAR $ac_cv_sizeof_char
26557 # The cast to long int works around a bug in the HP C Compiler
26558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26560 # This bug is HP SR number 8606223364.
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26562 $as_echo_n "checking size of short int... " >&6; }
26563 if ${ac_cv_sizeof_short_int+:} false; then :
26564 $as_echo_n "(cached) " >&6
26566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26569 if test "$ac_cv_type_short_int" = yes; then
26570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26572 as_fn_error 77 "cannot compute sizeof (short int)
26573 See \`config.log' for more details" "$LINENO" 5; }
26575 ac_cv_sizeof_short_int=0
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26581 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26585 cat >>confdefs.h <<_ACEOF
26586 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26590 # The cast to long int works around a bug in the HP C Compiler
26591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26593 # This bug is HP SR number 8606223364.
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26595 $as_echo_n "checking size of int... " >&6; }
26596 if ${ac_cv_sizeof_int+:} false; then :
26597 $as_echo_n "(cached) " >&6
26599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26602 if test "$ac_cv_type_int" = yes; then
26603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26605 as_fn_error 77 "cannot compute sizeof (int)
26606 See \`config.log' for more details" "$LINENO" 5; }
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26614 $as_echo "$ac_cv_sizeof_int" >&6; }
26618 cat >>confdefs.h <<_ACEOF
26619 #define SIZEOF_INT $ac_cv_sizeof_int
26623 # The cast to long int works around a bug in the HP C Compiler
26624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26626 # This bug is HP SR number 8606223364.
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26628 $as_echo_n "checking size of long int... " >&6; }
26629 if ${ac_cv_sizeof_long_int+:} false; then :
26630 $as_echo_n "(cached) " >&6
26632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26635 if test "$ac_cv_type_long_int" = yes; then
26636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26638 as_fn_error 77 "cannot compute sizeof (long int)
26639 See \`config.log' for more details" "$LINENO" 5; }
26641 ac_cv_sizeof_long_int=0
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26647 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26651 cat >>confdefs.h <<_ACEOF
26652 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26656 # The cast to long int works around a bug in the HP C Compiler
26657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26659 # This bug is HP SR number 8606223364.
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26661 $as_echo_n "checking size of long long int... " >&6; }
26662 if ${ac_cv_sizeof_long_long_int+:} false; then :
26663 $as_echo_n "(cached) " >&6
26665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26668 if test "$ac_cv_type_long_long_int" = yes; then
26669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26671 as_fn_error 77 "cannot compute sizeof (long long int)
26672 See \`config.log' for more details" "$LINENO" 5; }
26674 ac_cv_sizeof_long_long_int=0
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26680 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26684 cat >>confdefs.h <<_ACEOF
26685 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26689 # The cast to long int works around a bug in the HP C Compiler
26690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26692 # This bug is HP SR number 8606223364.
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26694 $as_echo_n "checking size of int *... " >&6; }
26695 if ${ac_cv_sizeof_int_p+:} false; then :
26696 $as_echo_n "(cached) " >&6
26698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26701 if test "$ac_cv_type_int_p" = yes; then
26702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26704 as_fn_error 77 "cannot compute sizeof (int *)
26705 See \`config.log' for more details" "$LINENO" 5; }
26707 ac_cv_sizeof_int_p=0
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26713 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26717 cat >>confdefs.h <<_ACEOF
26718 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26724 $as_echo_n "checking for u_int type... " >&6; }
26725 if ${ac_cv_have_u_int+:} false; then :
26726 $as_echo_n "(cached) " >&6
26729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26730 /* end confdefs.h. */
26732 #include <sys/types.h>
26744 if ac_fn_c_try_compile "$LINENO"; then :
26746 ac_cv_have_u_int="yes"
26750 ac_cv_have_u_int="no"
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26759 $as_echo "$ac_cv_have_u_int" >&6; }
26760 if test "x$ac_cv_have_u_int" = "xyes" ; then
26761 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26767 $as_echo_n "checking for intmax_t type... " >&6; }
26768 if ${ac_cv_have_intmax_t+:} false; then :
26769 $as_echo_n "(cached) " >&6
26772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26773 /* end confdefs.h. */
26775 #include <sys/types.h>
26787 if ac_fn_c_try_compile "$LINENO"; then :
26789 ac_cv_have_intmax_t="yes"
26793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26794 /* end confdefs.h. */
26796 #include <stdint.h>
26808 if ac_fn_c_try_compile "$LINENO"; then :
26810 ac_cv_have_intmax_t="yes"
26814 ac_cv_have_intmax_t="no"
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26827 $as_echo "$ac_cv_have_intmax_t" >&6; }
26828 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26829 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26835 $as_echo_n "checking for u_intmax_t type... " >&6; }
26836 if ${ac_cv_have_u_intmax_t+:} false; then :
26837 $as_echo_n "(cached) " >&6
26840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841 /* end confdefs.h. */
26843 #include <sys/types.h>
26849 u_intmax_t a; a = 1;
26855 if ac_fn_c_try_compile "$LINENO"; then :
26857 ac_cv_have_u_intmax_t="yes"
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26864 #include <stdint.h>
26870 u_intmax_t a; a = 1;
26876 if ac_fn_c_try_compile "$LINENO"; then :
26878 ac_cv_have_u_intmax_t="yes"
26882 ac_cv_have_u_intmax_t="no"
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26895 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26896 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26897 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26903 $as_echo_n "checking for intXX_t types... " >&6; }
26904 if ${ac_cv_have_intxx_t+:} false; then :
26905 $as_echo_n "(cached) " >&6
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h. */
26911 #include <sys/types.h>
26917 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26923 if ac_fn_c_try_compile "$LINENO"; then :
26925 ac_cv_have_intxx_t="yes"
26929 ac_cv_have_intxx_t="no"
26933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26938 $as_echo "$ac_cv_have_intxx_t" >&6; }
26939 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26940 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26946 $as_echo_n "checking for int64_t type... " >&6; }
26947 if ${ac_cv_have_int64_t+:} false; then :
26948 $as_echo_n "(cached) " >&6
26951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h. */
26954 #include <sys/types.h>
26966 if ac_fn_c_try_compile "$LINENO"; then :
26968 ac_cv_have_int64_t="yes"
26972 ac_cv_have_int64_t="no"
26976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26981 $as_echo "$ac_cv_have_int64_t" >&6; }
26982 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26983 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26989 $as_echo_n "checking for u_intXX_t types... " >&6; }
26990 if ${ac_cv_have_u_intxx_t+:} false; then :
26991 $as_echo_n "(cached) " >&6
26994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h. */
26997 #include <sys/types.h>
27003 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27009 if ac_fn_c_try_compile "$LINENO"; then :
27011 ac_cv_have_u_intxx_t="yes"
27015 ac_cv_have_u_intxx_t="no"
27019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27024 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27025 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27026 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27032 $as_echo_n "checking for u_int64_t types... " >&6; }
27033 if ${ac_cv_have_u_int64_t+:} false; then :
27034 $as_echo_n "(cached) " >&6
27037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27038 /* end confdefs.h. */
27040 #include <sys/types.h>
27046 u_int64_t a; a = 1;
27052 if ac_fn_c_try_compile "$LINENO"; then :
27054 ac_cv_have_u_int64_t="yes"
27058 ac_cv_have_u_int64_t="no"
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27067 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27068 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27069 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27074 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27075 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27078 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27080 /* end confdefs.h. */
27082 #include <sys/bitypes.h>
27088 int8_t a; int16_t b; int32_t c;
27089 u_int8_t e; u_int16_t f; u_int32_t g;
27090 a = b = c = e = f = g = 1;
27096 if ac_fn_c_try_compile "$LINENO"; then :
27098 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27100 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27102 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27105 $as_echo "yes" >&6; }
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110 $as_echo "no" >&6; }
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 if test -z "$have_u_intxx_t" ; then
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27119 $as_echo_n "checking for uintXX_t types... " >&6; }
27120 if ${ac_cv_have_uintxx_t+:} false; then :
27121 $as_echo_n "(cached) " >&6
27124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27125 /* end confdefs.h. */
27127 #include <sys/types.h>
27133 uint8_t a; uint16_t b;
27134 uint32_t c; a = b = c = 1;
27140 if ac_fn_c_try_compile "$LINENO"; then :
27142 ac_cv_have_uintxx_t="yes"
27146 ac_cv_have_uintxx_t="no"
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27155 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27156 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27157 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27162 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27163 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27166 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27168 /* end confdefs.h. */
27170 #include <sys/bitypes.h>
27176 int64_t a; u_int64_t b;
27183 if ac_fn_c_try_compile "$LINENO"; then :
27185 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27187 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27190 $as_echo "yes" >&6; }
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27195 $as_echo "no" >&6; }
27199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27202 if (test -z "$have_uintxx_t" && \
27203 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27206 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27210 #include <sys/bitypes.h>
27216 uint8_t a; uint16_t b;
27217 uint32_t c; a = b = c = 1;
27223 if ac_fn_c_try_compile "$LINENO"; then :
27225 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27228 $as_echo "yes" >&6; }
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27233 $as_echo "no" >&6; }
27237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27258 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27259 cat >>confdefs.h <<_ACEOF
27260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27264 echo 'configure: cannot find needed function.'; exit 1
27270 for ac_func in getpagesize
27272 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27273 if test "x$ac_cv_func_getpagesize" = xyes; then :
27274 cat >>confdefs.h <<_ACEOF
27275 #define HAVE_GETPAGESIZE 1
27278 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27283 for ac_func in malloc_trim
27285 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27286 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27287 cat >>confdefs.h <<_ACEOF
27288 #define HAVE_MALLOC_TRIM 1
27291 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27297 for ac_func in fchdir
27299 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27300 if test "x$ac_cv_func_fchdir" = xyes; then :
27301 cat >>confdefs.h <<_ACEOF
27302 #define HAVE_FCHDIR 1
27304 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27309 for ac_func in strtoll
27311 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27312 if test "x$ac_cv_func_strtoll" = xyes; then :
27313 cat >>confdefs.h <<_ACEOF
27314 #define HAVE_STRTOLL 1
27316 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27321 for ac_func in posix_fadvise
27323 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27324 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27325 cat >>confdefs.h <<_ACEOF
27326 #define HAVE_POSIX_FADVISE 1
27332 for ac_func in fdatasync
27334 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27335 if test "x$ac_cv_func_fdatasync" = xyes; then :
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_FDATASYNC 1
27344 for ac_func in chflags
27346 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27347 if test "x$ac_cv_func_chflags" = xyes; then :
27348 cat >>confdefs.h <<_ACEOF
27349 #define HAVE_CHFLAGS 1
27356 for ac_func in snprintf vsnprintf gethostid fseeko
27358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27361 cat >>confdefs.h <<_ACEOF
27362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27370 $as_echo_n "checking for va_copy... " >&6; }
27371 if ${ba_cv_va_copy+:} false; then :
27372 $as_echo_n "(cached) " >&6
27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h. */
27378 #include <stdarg.h>
27379 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27380 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27386 call_use_va_copy(1,2,3)
27392 if ac_fn_c_try_link "$LINENO"; then :
27402 rm -f core conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext conftest.$ac_ext
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27408 $as_echo "$ba_cv_va_copy" >&6; }
27409 test $ba_cv_va_copy = yes &&
27410 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27413 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27418 cat >>confdefs.h <<_ACEOF
27419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426 # If resolver functions are not in libc check for -lnsl or -lresolv.
27427 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27428 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27430 $as_echo "using libc's resolver" >&6; }
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27433 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27434 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27435 $as_echo_n "(cached) " >&6
27437 ac_check_lib_save_LIBS=$LIBS
27439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h. */
27442 /* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27448 char gethostbyname_r ();
27452 return gethostbyname_r ();
27457 if ac_fn_c_try_link "$LINENO"; then :
27458 ac_cv_lib_nsl_gethostbyname_r=yes
27460 ac_cv_lib_nsl_gethostbyname_r=no
27462 rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27467 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27468 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27469 cat >>confdefs.h <<_ACEOF
27470 #define HAVE_LIBNSL 1
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27478 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27479 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27480 $as_echo_n "(cached) " >&6
27482 ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-lresolv $LIBS"
27484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27485 /* end confdefs.h. */
27487 /* Override any GCC internal prototype to avoid an error.
27488 Use char because int might match the return type of a GCC
27489 builtin and then its argument prototype would still apply. */
27493 char gethostbyname_r ();
27497 return gethostbyname_r ();
27502 if ac_fn_c_try_link "$LINENO"; then :
27503 ac_cv_lib_resolv_gethostbyname_r=yes
27505 ac_cv_lib_resolv_gethostbyname_r=no
27507 rm -f core conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
27509 LIBS=$ac_check_lib_save_LIBS
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27512 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27513 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27514 cat >>confdefs.h <<_ACEOF
27515 #define HAVE_LIBRESOLV 1
27518 LIBS="-lresolv $LIBS"
27525 for ac_func in inet_pton
27527 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27528 if test "x$ac_cv_func_inet_pton" = xyes; then :
27529 cat >>confdefs.h <<_ACEOF
27530 #define HAVE_INET_PTON 1
27532 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27537 for ac_func in inet_ntop
27539 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27540 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27541 cat >>confdefs.h <<_ACEOF
27542 #define HAVE_INET_NTOP 1
27544 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27549 for ac_func in gethostbyname2
27551 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27552 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_GETHOSTBYNAME2 1
27556 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27563 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27564 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27565 $as_echo_n "(cached) " >&6
27568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h. */
27571 #include <sys/socket.h>
27577 struct sockaddr s; s.sa_len;
27583 if ac_fn_c_try_compile "$LINENO"; then :
27585 ac_cv_struct_sockaddr_sa_len=yes
27588 ac_cv_struct_sockaddr_sa_len=no
27592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27597 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27599 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27601 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27605 for ac_func in strftime
27607 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27608 if test "x$ac_cv_func_strftime" = xyes; then :
27609 cat >>confdefs.h <<_ACEOF
27610 #define HAVE_STRFTIME 1
27614 # strftime is in -lintl on SCO UNIX.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27616 $as_echo_n "checking for strftime in -lintl... " >&6; }
27617 if ${ac_cv_lib_intl_strftime+:} false; then :
27618 $as_echo_n "(cached) " >&6
27620 ac_check_lib_save_LIBS=$LIBS
27621 LIBS="-lintl $LIBS"
27622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27623 /* end confdefs.h. */
27625 /* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27635 return strftime ();
27640 if ac_fn_c_try_link "$LINENO"; then :
27641 ac_cv_lib_intl_strftime=yes
27643 ac_cv_lib_intl_strftime=no
27645 rm -f core conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27647 LIBS=$ac_check_lib_save_LIBS
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27650 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27651 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27652 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27654 LIBS="-lintl $LIBS"
27660 for ac_func in vprintf
27662 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27663 if test "x$ac_cv_func_vprintf" = xyes; then :
27664 cat >>confdefs.h <<_ACEOF
27665 #define HAVE_VPRINTF 1
27668 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27669 if test "x$ac_cv_func__doprnt" = xyes; then :
27671 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27680 # for constant arguments. Useless!
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27682 $as_echo_n "checking for working alloca.h... " >&6; }
27683 if ${ac_cv_working_alloca_h+:} false; then :
27684 $as_echo_n "(cached) " >&6
27686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h. */
27688 #include <alloca.h>
27692 char *p = (char *) alloca (2 * sizeof (int));
27698 if ac_fn_c_try_link "$LINENO"; then :
27699 ac_cv_working_alloca_h=yes
27701 ac_cv_working_alloca_h=no
27703 rm -f core conftest.err conftest.$ac_objext \
27704 conftest$ac_exeext conftest.$ac_ext
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27707 $as_echo "$ac_cv_working_alloca_h" >&6; }
27708 if test $ac_cv_working_alloca_h = yes; then
27710 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27715 $as_echo_n "checking for alloca... " >&6; }
27716 if ${ac_cv_func_alloca_works+:} false; then :
27717 $as_echo_n "(cached) " >&6
27719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27720 /* end confdefs.h. */
27722 # define alloca __builtin_alloca
27725 # include <malloc.h>
27726 # define alloca _alloca
27728 # ifdef HAVE_ALLOCA_H
27729 # include <alloca.h>
27734 # ifndef alloca /* predefined by HP cc +Olibcalls */
27735 void *alloca (size_t);
27745 char *p = (char *) alloca (1);
27751 if ac_fn_c_try_link "$LINENO"; then :
27752 ac_cv_func_alloca_works=yes
27754 ac_cv_func_alloca_works=no
27756 rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27760 $as_echo "$ac_cv_func_alloca_works" >&6; }
27762 if test $ac_cv_func_alloca_works = yes; then
27764 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27768 # that cause trouble. Some versions do not even contain alloca or
27769 # contain a buggy version. If you still want to use their alloca,
27770 # use ar to extract alloca.o from them instead of compiling alloca.c.
27772 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27774 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27778 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27779 if ${ac_cv_os_cray+:} false; then :
27780 $as_echo_n "(cached) " >&6
27782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27783 /* end confdefs.h. */
27784 #if defined CRAY && ! defined CRAY2
27791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27792 $EGREP "webecray" >/dev/null 2>&1; then :
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27801 $as_echo "$ac_cv_os_cray" >&6; }
27802 if test $ac_cv_os_cray = yes; then
27803 for ac_func in _getb67 GETB67 getb67; do
27804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27808 cat >>confdefs.h <<_ACEOF
27809 #define CRAY_STACKSEG_END $ac_func
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27819 $as_echo_n "checking stack direction for C alloca... " >&6; }
27820 if ${ac_cv_c_stack_direction+:} false; then :
27821 $as_echo_n "(cached) " >&6
27823 if test "$cross_compiling" = yes; then :
27824 ac_cv_c_stack_direction=0
27826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h. */
27828 $ac_includes_default
27830 find_stack_direction ()
27832 static char *addr = 0;
27837 return find_stack_direction ();
27840 return (&dummy > addr) ? 1 : -1;
27846 return find_stack_direction () < 0;
27849 if ac_fn_c_try_run "$LINENO"; then :
27850 ac_cv_c_stack_direction=1
27852 ac_cv_c_stack_direction=-1
27854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27855 conftest.$ac_objext conftest.beam conftest.$ac_ext
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27860 $as_echo "$ac_cv_c_stack_direction" >&6; }
27861 cat >>confdefs.h <<_ACEOF
27862 #define STACK_DIRECTION $ac_cv_c_stack_direction
27868 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27869 # -lseq on Dynix/PTX, -lgen on Unixware.
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27871 $as_echo_n "checking for library containing getmntent... " >&6; }
27872 if ${ac_cv_search_getmntent+:} false; then :
27873 $as_echo_n "(cached) " >&6
27875 ac_func_search_save_LIBS=$LIBS
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h. */
27879 /* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27889 return getmntent ();
27894 for ac_lib in '' sun seq gen; do
27895 if test -z "$ac_lib"; then
27896 ac_res="none required"
27899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27901 if ac_fn_c_try_link "$LINENO"; then :
27902 ac_cv_search_getmntent=$ac_res
27904 rm -f core conftest.err conftest.$ac_objext \
27906 if ${ac_cv_search_getmntent+:} false; then :
27910 if ${ac_cv_search_getmntent+:} false; then :
27913 ac_cv_search_getmntent=no
27915 rm conftest.$ac_ext
27916 LIBS=$ac_func_search_save_LIBS
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27919 $as_echo "$ac_cv_search_getmntent" >&6; }
27920 ac_res=$ac_cv_search_getmntent
27921 if test "$ac_res" != no; then :
27922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27923 ac_cv_func_getmntent=yes
27925 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27928 ac_cv_func_getmntent=no
27932 for ac_func in getmntinfo
27934 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27935 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27936 cat >>confdefs.h <<_ACEOF
27937 #define HAVE_GETMNTINFO 1
27939 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27945 $as_echo_n "checking whether closedir returns void... " >&6; }
27946 if ${ac_cv_func_closedir_void+:} false; then :
27947 $as_echo_n "(cached) " >&6
27949 if test "$cross_compiling" = yes; then :
27950 ac_cv_func_closedir_void=yes
27952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27953 /* end confdefs.h. */
27954 $ac_includes_default
27955 #include <$ac_header_dirent>
27956 #ifndef __cplusplus
27963 return closedir (opendir (".")) != 0;
27968 if ac_fn_c_try_run "$LINENO"; then :
27969 ac_cv_func_closedir_void=no
27971 ac_cv_func_closedir_void=yes
27973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27974 conftest.$ac_objext conftest.beam conftest.$ac_ext
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27979 $as_echo "$ac_cv_func_closedir_void" >&6; }
27980 if test $ac_cv_func_closedir_void = yes; then
27982 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27987 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27988 if ${ac_cv_func_setpgrp_void+:} false; then :
27989 $as_echo_n "(cached) " >&6
27991 if test "$cross_compiling" = yes; then :
27992 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27995 /* end confdefs.h. */
27996 $ac_includes_default
28000 /* If this system has a BSD-style setpgrp which takes arguments,
28001 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28002 exit successfully. */
28003 return setpgrp (1,1) != -1;
28008 if ac_fn_c_try_run "$LINENO"; then :
28009 ac_cv_func_setpgrp_void=no
28011 ac_cv_func_setpgrp_void=yes
28013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28014 conftest.$ac_objext conftest.beam conftest.$ac_ext
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28019 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28020 if test $ac_cv_func_setpgrp_void = yes; then
28022 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28025 # AC_FUNC_FNMATCH dnl use local version
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28028 $as_echo_n "checking for gettext in -lintl... " >&6; }
28029 if ${ac_cv_lib_intl_gettext+:} false; then :
28030 $as_echo_n "(cached) " >&6
28032 ac_check_lib_save_LIBS=$LIBS
28033 LIBS="-lintl $LIBS"
28034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28035 /* end confdefs.h. */
28037 /* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28052 if ac_fn_c_try_link "$LINENO"; then :
28053 ac_cv_lib_intl_gettext=yes
28055 ac_cv_lib_intl_gettext=no
28057 rm -f core conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
28059 LIBS=$ac_check_lib_save_LIBS
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28062 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28063 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28064 LIBS="$LIBS -lintl"
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28069 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28070 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28071 $as_echo_n "(cached) " >&6
28073 ac_check_lib_save_LIBS=$LIBS
28075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28076 /* end confdefs.h. */
28078 /* Override any GCC internal prototype to avoid an error.
28079 Use char because int might match the return type of a GCC
28080 builtin and then its argument prototype would still apply. */
28088 return getpwnam ();
28093 if ac_fn_c_try_link "$LINENO"; then :
28094 ac_cv_lib_sun_getpwnam=yes
28096 ac_cv_lib_sun_getpwnam=no
28098 rm -f core conftest.err conftest.$ac_objext \
28099 conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28103 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28104 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28105 cat >>confdefs.h <<_ACEOF
28106 #define HAVE_LIBSUN 1
28114 for ac_header in zlib.h
28116 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28117 if test "x$ac_cv_header_zlib_h" = xyes; then :
28118 cat >>confdefs.h <<_ACEOF
28119 #define HAVE_ZLIB_H 1
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28127 $as_echo_n "checking for deflate in -lz... " >&6; }
28128 if ${ac_cv_lib_z_deflate+:} false; then :
28129 $as_echo_n "(cached) " >&6
28131 ac_check_lib_save_LIBS=$LIBS
28133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28134 /* end confdefs.h. */
28136 /* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28151 if ac_fn_c_try_link "$LINENO"; then :
28152 ac_cv_lib_z_deflate=yes
28154 ac_cv_lib_z_deflate=no
28156 rm -f core conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28158 LIBS=$ac_check_lib_save_LIBS
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28161 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28162 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28167 if test x$ZLIBS = x-lz; then
28168 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28174 for ac_header in lzo/lzoconf.h
28176 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28177 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28178 cat >>confdefs.h <<_ACEOF
28179 #define HAVE_LZO_LZOCONF_H 1
28186 for ac_header in lzo/lzo1x.h
28188 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28189 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28190 cat >>confdefs.h <<_ACEOF
28191 #define HAVE_LZO_LZO1X_H 1
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28199 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28200 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28201 $as_echo_n "(cached) " >&6
28203 ac_check_lib_save_LIBS=$LIBS
28204 LIBS="-llzo2 $LIBS"
28205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28206 /* end confdefs.h. */
28208 /* Override any GCC internal prototype to avoid an error.
28209 Use char because int might match the return type of a GCC
28210 builtin and then its argument prototype would still apply. */
28214 char lzo1x_1_compress ();
28218 return lzo1x_1_compress ();
28223 if ac_fn_c_try_link "$LINENO"; then :
28224 ac_cv_lib_lzo2_lzo1x_1_compress=yes
28226 ac_cv_lib_lzo2_lzo1x_1_compress=no
28228 rm -f core conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
28230 LIBS=$ac_check_lib_save_LIBS
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28233 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28234 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28239 if test x$LZOLIBS = x-llzo2; then
28240 $as_echo "#define HAVE_LZO 1" >>confdefs.h
28247 # Check whether --enable-acl was given.
28248 if test "${enable_acl+set}" = set; then :
28249 enableval=$enable_acl;
28250 if test x$enableval = xyes; then
28252 elif test x$enableval = xno; then
28261 have_extended_acl=no
28262 if test x$support_acl = xyes -o x$support_acl = xauto; then
28263 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28264 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28266 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28272 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28273 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28281 if test $have_acl = no; then
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28283 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28284 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28285 $as_echo_n "(cached) " >&6
28287 ac_check_lib_save_LIBS=$LIBS
28289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290 /* end confdefs.h. */
28292 /* Override any GCC internal prototype to avoid an error.
28293 Use char because int might match the return type of a GCC
28294 builtin and then its argument prototype would still apply. */
28298 char acl_get_file ();
28302 return acl_get_file ();
28307 if ac_fn_c_try_link "$LINENO"; then :
28308 ac_cv_lib_acl_acl_get_file=yes
28310 ac_cv_lib_acl_acl_get_file=no
28312 rm -f core conftest.err conftest.$ac_objext \
28313 conftest$ac_exeext conftest.$ac_ext
28314 LIBS=$ac_check_lib_save_LIBS
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28317 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28318 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28321 if test x$have_afs = xyes; then
28322 if test -d /usr/lib64/; then
28323 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28325 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28328 FDLIBS="-lacl $FDLIBS"
28336 if test $have_acl = no -a \
28337 x${HAVE_OSF1_OS_TRUE} = x; then
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28339 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28340 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28341 $as_echo_n "(cached) " >&6
28343 ac_check_lib_save_LIBS=$LIBS
28344 LIBS="-lpacl $LIBS"
28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346 /* end confdefs.h. */
28348 /* Override any GCC internal prototype to avoid an error.
28349 Use char because int might match the return type of a GCC
28350 builtin and then its argument prototype would still apply. */
28354 char acl_get_file ();
28358 return acl_get_file ();
28363 if ac_fn_c_try_link "$LINENO"; then :
28364 ac_cv_lib_pacl_acl_get_file=yes
28366 ac_cv_lib_pacl_acl_get_file=no
28368 rm -f core conftest.err conftest.$ac_objext \
28369 conftest$ac_exeext conftest.$ac_ext
28370 LIBS=$ac_check_lib_save_LIBS
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28373 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28374 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28377 FDLIBS="-lpacl $FDLIBS"
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28384 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28385 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28386 if test $? = 0; then
28388 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28391 $as_echo "yes" >&6; }
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28394 $as_echo "no" >&6; }
28398 if test $have_acl = yes -a \
28399 x${HAVE_DARWIN_OS_TRUE} = x; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28401 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28402 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28403 if test $? = 0; then
28405 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28408 $as_echo "yes" >&6; }
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28411 $as_echo "no" >&6; }
28415 if test $have_acl = yes -a \
28416 x${HAVE_FREEBSD_OS_TRUE} = x; then
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28418 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28419 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28420 if test $? = 0; then
28422 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28425 $as_echo "yes" >&6; }
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28428 $as_echo "no" >&6; }
28432 if test $have_acl = no -a \
28433 x${HAVE_SUN_OS_TRUE} = x; then
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28435 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28436 if ${ac_cv_lib_sec_acltotext+:} false; then :
28437 $as_echo_n "(cached) " >&6
28439 ac_check_lib_save_LIBS=$LIBS
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h. */
28444 /* Override any GCC internal prototype to avoid an error.
28445 Use char because int might match the return type of a GCC
28446 builtin and then its argument prototype would still apply. */
28454 return acltotext ();
28459 if ac_fn_c_try_link "$LINENO"; then :
28460 ac_cv_lib_sec_acltotext=yes
28462 ac_cv_lib_sec_acltotext=no
28464 rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
28466 LIBS=$ac_check_lib_save_LIBS
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28469 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28470 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28473 FDLIBS="-lsec $FDLIBS"
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28476 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28477 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28478 $as_echo_n "(cached) " >&6
28480 ac_check_lib_save_LIBS=$LIBS
28482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28483 /* end confdefs.h. */
28485 /* Override any GCC internal prototype to avoid an error.
28486 Use char because int might match the return type of a GCC
28487 builtin and then its argument prototype would still apply. */
28491 char acl_totext ();
28495 return acl_totext ();
28500 if ac_fn_c_try_link "$LINENO"; then :
28501 ac_cv_lib_sec_acl_totext=yes
28503 ac_cv_lib_sec_acl_totext=no
28505 rm -f core conftest.err conftest.$ac_objext \
28506 conftest$ac_exeext conftest.$ac_ext
28507 LIBS=$ac_check_lib_save_LIBS
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28510 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28511 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28513 have_extended_acl=yes
28524 if test $have_acl = no -a \
28525 x${HAVE_AIX_OS_TRUE} = x; then
28526 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28527 if test "x$ac_cv_func_acl_get" = xyes; then :
28531 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28532 if test "x$ac_cv_func_aclx_get" = xyes; then :
28534 have_extended_acl=yes
28545 if test x$support_acl = xyes -a $have_acl != yes; then
28546 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28547 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28549 if test $have_acl = yes; then
28551 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28555 if test $have_extended_acl = yes; then
28557 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28564 # Check whether --enable-xattr was given.
28565 if test "${enable_xattr+set}" = set; then :
28566 enableval=$enable_xattr;
28567 if test x$enableval = xyes; then
28569 elif test x$enableval = xno; then
28578 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28579 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28580 x${HAVE_NETBSD_OS_TRUE} = x -o \
28581 x${HAVE_OPENBSD_OS_TRUE} = x; then
28582 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28583 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28585 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28590 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28591 if test "x$ac_cv_header_libutil_h" = xyes; then :
28593 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28598 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28603 cat >>confdefs.h <<_ACEOF
28604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28609 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28612 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28615 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28623 if test $have_xattr = no; then
28624 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28629 cat >>confdefs.h <<_ACEOF
28630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28635 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28638 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28641 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28650 if test $have_xattr = yes; then
28651 have_extattr_string_in_libc=no
28652 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28657 cat >>confdefs.h <<_ACEOF
28658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28661 have_extattr_string_in_libc=yes
28663 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28666 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28674 if test $have_extattr_string_in_libc = no; then
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28676 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28677 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28678 $as_echo_n "(cached) " >&6
28680 ac_check_lib_save_LIBS=$LIBS
28681 LIBS="-lutil $LIBS"
28682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683 /* end confdefs.h. */
28685 /* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
28691 char extattr_namespace_to_string extattr_string_to_namespace ();
28695 return extattr_namespace_to_string extattr_string_to_namespace ();
28700 if ac_fn_c_try_link "$LINENO"; then :
28701 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28703 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28705 rm -f core conftest.err conftest.$ac_objext \
28706 conftest$ac_exeext conftest.$ac_ext
28707 LIBS=$ac_check_lib_save_LIBS
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28710 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28711 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28714 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28717 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28719 FDLIBS="-lutil $FDLIBS"
28728 if test $have_xattr = no -a \
28729 x${HAVE_AIX_OS_TRUE} = x; then
28730 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28731 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28733 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28738 for ac_func in llistea lgetea lsetea
28740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28743 cat >>confdefs.h <<_ACEOF
28744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28749 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28752 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28755 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28763 if test $have_xattr = no; then
28764 for ac_func in listea getea setea
28766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28769 cat >>confdefs.h <<_ACEOF
28770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28775 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28778 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28781 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28791 if test $have_xattr = no -a \
28792 x${HAVE_OSF1_OS_TRUE} = x; then
28793 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28794 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28796 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28801 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28806 cat >>confdefs.h <<_ACEOF
28807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28812 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28815 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28818 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28821 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28824 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28833 if test $have_xattr = no -a \
28834 x${HAVE_SUN_OS_TRUE} = x; then
28835 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28836 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28838 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28843 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28844 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28846 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28851 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28852 if test "x$ac_cv_header_attr_h" = xyes; then :
28854 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28860 for ac_func in openat fstatat unlinkat fchownat futimesat
28862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28865 cat >>confdefs.h <<_ACEOF
28866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28871 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28874 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28877 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28880 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28883 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28891 if test $have_xattr = yes; then
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28893 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28894 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28895 $as_echo_n "(cached) " >&6
28897 ac_check_lib_save_LIBS=$LIBS
28898 LIBS="-lnvpair $LIBS"
28899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28900 /* end confdefs.h. */
28902 /* Override any GCC internal prototype to avoid an error.
28903 Use char because int might match the return type of a GCC
28904 builtin and then its argument prototype would still apply. */
28908 char nvlist_next_nvpair ();
28912 return nvlist_next_nvpair ();
28917 if ac_fn_c_try_link "$LINENO"; then :
28918 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28920 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28922 rm -f core conftest.err conftest.$ac_objext \
28923 conftest$ac_exeext conftest.$ac_ext
28924 LIBS=$ac_check_lib_save_LIBS
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28927 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28928 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28931 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28933 FDLIBS="-lnvpair $FDLIBS"
28941 if test $have_xattr = no; then
28942 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28943 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28945 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28950 for ac_func in llistxattr lgetxattr lsetxattr
28952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28955 cat >>confdefs.h <<_ACEOF
28956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28961 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28964 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28967 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28975 if test $have_xattr = no; then
28976 for ac_func in listxattr getxattr setxattr
28978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28981 cat >>confdefs.h <<_ACEOF
28982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28987 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28990 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28993 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29003 if test x$support_xattr = xyes -a $have_xattr != yes; then
29004 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29005 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29007 if test $have_xattr = yes; then
29009 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29017 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29018 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29019 $as_echo_n "(cached) " >&6
29021 ac_check_lib_save_LIBS=$LIBS
29022 LIBS="-lpthread $LIBS"
29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29024 /* end confdefs.h. */
29026 /* Override any GCC internal prototype to avoid an error.
29027 Use char because int might match the return type of a GCC
29028 builtin and then its argument prototype would still apply. */
29032 char pthread_create ();
29036 return pthread_create ();
29041 if ac_fn_c_try_link "$LINENO"; then :
29042 ac_cv_lib_pthread_pthread_create=yes
29044 ac_cv_lib_pthread_pthread_create=no
29046 rm -f core conftest.err conftest.$ac_objext \
29047 conftest$ac_exeext conftest.$ac_ext
29048 LIBS=$ac_check_lib_save_LIBS
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29051 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29052 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29053 PTHREAD_LIB="-lpthread"
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29057 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29058 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29059 $as_echo_n "(cached) " >&6
29061 ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lpthreads $LIBS"
29063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h. */
29066 /* Override any GCC internal prototype to avoid an error.
29067 Use char because int might match the return type of a GCC
29068 builtin and then its argument prototype would still apply. */
29072 char pthread_create ();
29076 return pthread_create ();
29081 if ac_fn_c_try_link "$LINENO"; then :
29082 ac_cv_lib_pthreads_pthread_create=yes
29084 ac_cv_lib_pthreads_pthread_create=no
29086 rm -f core conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29088 LIBS=$ac_check_lib_save_LIBS
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29091 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29092 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29093 PTHREAD_LIB="-lpthreads"
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29097 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29098 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29099 $as_echo_n "(cached) " >&6
29101 ac_check_lib_save_LIBS=$LIBS
29103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29112 char pthread_create ();
29116 return pthread_create ();
29121 if ac_fn_c_try_link "$LINENO"; then :
29122 ac_cv_lib_c_r_pthread_create=yes
29124 ac_cv_lib_c_r_pthread_create=no
29126 rm -f core conftest.err conftest.$ac_objext \
29127 conftest$ac_exeext conftest.$ac_ext
29128 LIBS=$ac_check_lib_save_LIBS
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29131 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29132 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29133 PTHREAD_LIB="-lc_r"
29136 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29137 if test "x$ac_cv_func_pthread_create" = xyes; then :
29154 for ac_header in sys/prctl.h sys/capability.h
29156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29157 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29159 cat >>confdefs.h <<_ACEOF
29160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29167 for ac_func in prctl setreuid
29169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29172 cat >>confdefs.h <<_ACEOF
29173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29180 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29181 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29182 $as_echo_n "(cached) " >&6
29184 ac_check_lib_save_LIBS=$LIBS
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h. */
29189 /* Override any GCC internal prototype to avoid an error.
29190 Use char because int might match the return type of a GCC
29191 builtin and then its argument prototype would still apply. */
29195 char cap_set_proc ();
29199 return cap_set_proc ();
29204 if ac_fn_c_try_link "$LINENO"; then :
29205 ac_cv_lib_cap_cap_set_proc=yes
29207 ac_cv_lib_cap_cap_set_proc=no
29209 rm -f core conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29214 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29215 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29221 if test x$CAP_LIBS = x-lcap; then
29223 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29229 $as_echo "#define FDLIBS 1" >>confdefs.h
29232 CFLAGS=${CFLAGS--O}
29234 if test x$have_gcc = xyes ; then
29235 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29236 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29238 LDFLAGS=${LDFLAGS--O}
29239 CPPFLAGS="$CPPFLAGS"
29265 PFILES="platforms/Makefile"
29269 COMPRESS_MANPAGES=yes
29271 hostname=`uname -n | cut -d '.' -f 1`
29272 if test x${hostname} = x ; then
29273 hostname="localhost"
29275 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29276 if test ! $? = 0; then
29277 hostname="localhost"
29280 case "$DISTNAME" in
29283 PSCMD="ps -e -o pid,comm"
29284 PFILES="${PFILES} \
29285 platforms/aix/Makefile"
29286 TAPEDRIVE="/dev/rmt0.1"
29290 PTHREAD_LIB="-lpthread -lexc"
29291 if test "${CC}" = "gcc" ; then
29298 TAPEDRIVE="/dev/nrmt0"
29301 DISTVER=`uname -a |awk '{print $3}'`
29302 TAPEDRIVE="/dev/nrmt0"
29303 PTHREAD_LIB="-pthread"
29304 CFLAGS="${CFLAGS} -pthread"
29305 PSCMD="ps -ax -o pid,command"
29308 PFILES="${PFILES} \
29309 platforms/bsdi/Makefile \
29310 platforms/bsdi/bacula-fd \
29311 platforms/bsdi/bacula-sd \
29312 platforms/bsdi/bacula-dir"
29313 largefile_support="yes"
29316 DISTVER=`uname -a |awk '{print $3}'`
29317 TAPEDRIVE="/dev/nrst0"
29319 WCFLAGS="-mwindows"
29320 WLDFLAGS="-mwindows"
29324 TAPEDRIVE="/dev/nst0"
29325 PSCMD="ps -e -o pid,command"
29327 PFILES="${PFILES} \
29328 platforms/darwin/Makefile"
29332 TAPEDRIVE="/dev/nst0"
29333 PSCMD="ps -e -o pid,command"
29335 PFILES="${PFILES} \
29336 platforms/osx/Makefile"
29339 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29342 DISTVER=`cat /etc/debian_version`
29343 if test -f /etc/lsb-release ; then
29345 if test "x$DISTRIB_ID" != "x" ; then
29346 DISTNAME=$DISTRIB_ID
29348 if test "x$DISTRIB_RELEASE" != "x" ; then
29349 DISTVER=$DISTRIB_RELEASE
29352 if test "$DISTNAME" = "Ubuntu" ; then
29355 TAPEDRIVE="/dev/nst0"
29356 PSCMD="ps -e -o pid,command"
29357 if test "$DISTNAME" = "ubuntu" ; then
29358 PFILES="${PFILES} \
29359 platforms/ubuntu/Makefile \
29360 platforms/ubuntu/bacula-fd \
29361 platforms/ubuntu/bacula-sd \
29362 platforms/ubuntu/bacula-dir"
29364 PFILES="${PFILES} \
29365 platforms/debian/Makefile \
29366 platforms/debian/bacula-fd \
29367 platforms/debian/bacula-sd \
29368 platforms/debian/bacula-dir"
29372 DISTVER=`uname -a |awk '{print $3}'`
29373 VER=`echo $DISTVER | cut -c 1`
29374 if test x$VER = x4 ; then
29375 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29376 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29380 TAPEDRIVE="/dev/nrsa0"
29381 PSCMD="ps -ax -o pid,command"
29382 PFILES="${PFILES} \
29383 platforms/freebsd/Makefile \
29384 platforms/freebsd/bacula-fd \
29385 platforms/freebsd/bacula-sd \
29386 platforms/freebsd/bacula-dir"
29387 largefile_support="yes"
29390 PSCMD="UNIX95=1; ps -e -o pid,comm"
29391 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29393 TAPEDRIVE="/dev/rmt/0hnb"
29394 PTHREAD_LIB="-lpthread"
29395 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29400 TAPEDRIVE="/dev/rmt/0cbn"
29401 PSCMD="ps -e -o pid,comm"
29402 PFILES="${PFILES} \
29403 platforms/irix/Makefile \
29404 platforms/irix/bacula-fd \
29405 platforms/irix/bacula-sd \
29406 platforms/irix/bacula-dir"
29409 DISTVER=`uname -a |awk '{print $3}'`
29412 TAPEDRIVE="/dev/nrst0"
29413 PSCMD="ps -ax -o pid,command"
29414 PTHREAD_LIB="-pthread"
29415 CFLAGS="${CFLAGS} -pthread"
29418 DISTVER=`uname -a |awk '{print $3}'`
29421 TAPEDRIVE="/dev/nrst0"
29422 PSCMD="ps -ax -o pid,command"
29423 PTHREAD_LIB="-pthread"
29424 CFLAGS="${CFLAGS} -pthread"
29425 PFILES="${PFILES} \
29426 platforms/openbsd/Makefile \
29427 platforms/openbsd/bacula-fd \
29428 platforms/openbsd/bacula-sd \
29429 platforms/openbsd/bacula-dir"
29432 if test -f /etc/whitebox-release ; then
29433 f=/etc/whitebox-release
29435 f=/etc/redhat-release
29437 if test `cat $f | grep release |\
29438 cut -f 3 -d ' '`x = "Enterprise"x ; then
29439 DISTVER="Enterprise "`cat $f | grep release |\
29442 DISTVER=`cat /etc/redhat-release | grep release |\
29445 TAPEDRIVE="/dev/nst0"
29446 PSCMD="ps -e -o pid,command"
29447 PFILES="${PFILES} \
29448 platforms/redhat/Makefile \
29449 platforms/redhat/bacula-fd \
29450 platforms/redhat/bacula-sd \
29451 platforms/redhat/bacula-dir
29455 DISTVER=`cat /etc/mandrake-release | grep release |\
29457 TAPEDRIVE="/dev/nst0"
29458 PSCMD="ps -e -o pid,command"
29459 PFILES="${PFILES} \
29460 platforms/mandrake/Makefile \
29461 platforms/mandrake/bacula-fd \
29462 platforms/mandrake/bacula-sd \
29463 platforms/mandrake/bacula-dir \
29467 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29468 TAPEDRIVE="/dev/nst0"
29469 PSCMD="ps -e -o pid,command"
29470 PFILES="${PFILES} \
29471 platforms/gentoo/Makefile \
29472 platforms/gentoo/bacula-init \
29473 platforms/gentoo/bacula-fd \
29474 platforms/gentoo/bacula-sd \
29475 platforms/gentoo/bacula-dir"
29478 DISTVER=`cat /etc/slackware-version`
29479 TAPEDRIVE="/dev/nst0"
29480 PSCMD="ps -e -o pid,command"
29481 PFILES="${PFILES} \
29482 platforms/slackware/Makefile \
29483 platforms/slackware/rc.bacula-fd \
29484 platforms/slackware/rc.bacula-sd \
29485 platforms/slackware/rc.bacula-dir\
29486 platforms/slackware/functions.bacula"
29490 TAPEDRIVE="/dev/rmt/0cbn"
29491 PSCMD="ps -e -o pid,comm"
29492 PFILES="${PFILES} \
29493 platforms/solaris/Makefile \
29494 platforms/solaris/bacula-fd \
29495 platforms/solaris/bacula-sd \
29496 platforms/solaris/bacula-dir"
29500 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29502 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29506 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29512 LIBS="$LIBS -lresolv -lrt"
29515 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29517 TAPEDRIVE="/dev/nst0"
29518 PSCMD="ps -e -o pid,command"
29519 PFILES="${PFILES} \
29520 platforms/suse/Makefile \
29521 platforms/suse/bacula-fd \
29522 platforms/suse/bacula-sd \
29523 platforms/suse/bacula-dir \
29524 platforms/suse/bacula"
29529 TAPEDRIVE="/dev/nst0"
29530 PSCMD="ps -e -o pid,command"
29531 PFILES="${PFILES} \
29532 platforms/suse/Makefile \
29533 platforms/suse/bacula-fd \
29534 platforms/suse/bacula-sd \
29535 platforms/suse/bacula-dir"
29539 TAPEDRIVE="/dev/nst0"
29542 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29548 LIBS="$PTHREAD_LIB $LIBS"
29550 cat >>confdefs.h <<_ACEOF
29554 cat >>confdefs.h <<_ACEOF
29566 MCOMMON=./autoconf/Make.common
29569 if test "x${subsysdir}" = "x${sbindir}" ; then
29572 echo "You have set both --sbindir and --with-subsys-dir"
29573 echo " equal to: ${subsysdir} "
29574 echo "This is not permitted. Please reconfigure."
29576 echo "Aborting configuration ..."
29582 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/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"
29584 ac_config_commands="$ac_config_commands default"
29586 cat >confcache <<\_ACEOF
29587 # This file is a shell script that caches the results of configure
29588 # tests run on this system so they can be shared between configure
29589 # scripts and configure runs, see configure's option --config-cache.
29590 # It is not useful on other systems. If it contains results you don't
29591 # want to keep, you may remove or edit it.
29593 # config.status only pays attention to the cache file if you give it
29594 # the --recheck option to rerun configure.
29596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29598 # following values.
29602 # The following way of writing the cache mishandles newlines in values,
29603 # but we know of no workaround that is simple, portable, and efficient.
29604 # So, we kill variables containing newlines.
29605 # Ultrix sh set writes to stderr and can't be redirected directly,
29606 # and sets the high bit in the cache file unless we assign to the vars.
29608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29609 eval ac_val=\$$ac_var
29613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29617 _ | IFS | as_nl) ;; #(
29618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29619 *) { eval $ac_var=; unset $ac_var;} ;;
29625 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29626 *${as_nl}ac_space=\ *)
29627 # `set' does not quote correctly, so add quotes: double-quote
29628 # substitution turns \\\\ into \\, and sed turns \\ into \.
29631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29634 # `set' quotes correctly as required by POSIX, so do not add quotes.
29635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29648 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29649 if test -w "$cache_file"; then
29650 if test "x$cache_file" != "x/dev/null"; then
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29652 $as_echo "$as_me: updating cache $cache_file" >&6;}
29653 if test ! -f "$cache_file" || test -h "$cache_file"; then
29654 cat confcache >"$cache_file"
29656 case $cache_file in #(
29658 mv -f confcache "$cache_file"$$ &&
29659 mv -f "$cache_file"$$ "$cache_file" ;; #(
29661 mv -f confcache "$cache_file" ;;
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29667 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29673 # Let make expand exec_prefix.
29674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29676 DEFS=-DHAVE_CONFIG_H
29681 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29682 # 1. Remove the extension, and $U if already installed.
29683 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29684 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29685 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29686 # will be set to the directory where LIBOBJS objects are built.
29687 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29688 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29690 LIBOBJS=$ac_libobjs
29692 LTLIBOBJS=$ac_ltlibobjs
29697 : "${CONFIG_STATUS=./config.status}"
29699 ac_clean_files_save=$ac_clean_files
29700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29704 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29706 # Generated by $as_me.
29707 # Run this file to recreate the current configuration.
29708 # Compiler output produced by configure, useful for debugging
29709 # configure, is in config.log if it exists.
29712 ac_cs_recheck=false
29715 SHELL=\${CONFIG_SHELL-$SHELL}
29718 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29719 ## -------------------- ##
29720 ## M4sh Initialization. ##
29721 ## -------------------- ##
29723 # Be more Bourne compatible
29724 DUALCASE=1; export DUALCASE # for MKS sh
29725 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29729 # is contrary to our usage. Disable this feature.
29730 alias -g '${1+"$@"}'='"$@"'
29731 setopt NO_GLOB_SUBST
29733 case `(set -o) 2>/dev/null` in #(
29745 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29746 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29749 # Prefer a ksh shell builtin over an external printf program on Solaris,
29750 # but without wasting forks for bash or zsh.
29751 if test -z "$BASH_VERSION$ZSH_VERSION" \
29752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29753 as_echo='print -r --'
29754 as_echo_n='print -rn --'
29755 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29756 as_echo='printf %s\n'
29757 as_echo_n='printf %s'
29759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29761 as_echo_n='/usr/ucb/echo -n'
29763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29764 as_echo_n_body='eval
29768 expr "X$arg" : "X\\(.*\\)$as_nl";
29769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29773 export as_echo_n_body
29774 as_echo_n='sh -c $as_echo_n_body as_echo'
29776 export as_echo_body
29777 as_echo='sh -c $as_echo_body as_echo'
29780 # The user is always right.
29781 if test "${PATH_SEPARATOR+set}" != set; then
29783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29791 # We need space, tab and new line, in precisely that order. Quoting is
29792 # there to prevent editors from complaining about space-tab.
29793 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29794 # splitting by setting IFS to empty value.)
29797 # Find who we are. Look in the path if we contain no directory separator.
29800 *[\\/]* ) as_myself=$0 ;;
29801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29802 for as_dir in $PATH
29805 test -z "$as_dir" && as_dir=.
29806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29812 # We did not find ourselves, most probably we were run as `sh COMMAND'
29813 # in which case we are not to be found in the path.
29814 if test "x$as_myself" = x; then
29817 if test ! -f "$as_myself"; then
29818 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29822 # Unset variables that we do not need and which cause bugs (e.g. in
29823 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29824 # suppresses any "Segmentation fault" message there. '((' could
29825 # trigger a bug in pdksh 5.2.14.
29826 for as_var in BASH_ENV ENV MAIL MAILPATH
29827 do eval test x\${$as_var+set} = xset \
29828 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29844 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29845 # ----------------------------------------
29846 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29847 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29848 # script with STATUS, using 1 if that was 0.
29851 as_status=$1; test $as_status -eq 0 && as_status=1
29853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29854 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29856 $as_echo "$as_me: error: $2" >&2
29857 as_fn_exit $as_status
29861 # as_fn_set_status STATUS
29862 # -----------------------
29863 # Set $? to STATUS, without forking.
29864 as_fn_set_status ()
29867 } # as_fn_set_status
29869 # as_fn_exit STATUS
29870 # -----------------
29871 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29875 as_fn_set_status $1
29881 # Portably unset VAR.
29884 { eval $1=; unset $1;}
29886 as_unset=as_fn_unset
29887 # as_fn_append VAR VALUE
29888 # ----------------------
29889 # Append the text in VALUE to the end of the definition contained in VAR. Take
29890 # advantage of any shell optimizations that allow amortized linear growth over
29891 # repeated appends, instead of the typical quadratic growth present in naive
29893 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29894 eval 'as_fn_append ()
29905 # as_fn_arith ARG...
29906 # ------------------
29907 # Perform arithmetic evaluation on the ARGs, and store the result in the
29908 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29909 # must be portable across $(()) and expr.
29910 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29911 eval 'as_fn_arith ()
29918 as_val=`expr "$@" || test $? -eq 1`
29923 if expr a : '\(a\)' >/dev/null 2>&1 &&
29924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29931 as_basename=basename
29936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29942 as_me=`$as_basename -- "$0" ||
29943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29944 X"$0" : 'X\(//\)$' \| \
29945 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29947 sed '/^.*\/\([^/][^/]*\)\/*$/{
29961 # Avoid depending upon Character Ranges.
29962 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29965 as_cr_digits='0123456789'
29966 as_cr_alnum=$as_cr_Letters$as_cr_digits
29968 ECHO_C= ECHO_N= ECHO_T=
29969 case `echo -n x` in #(((((
29971 case `echo 'xy\c'` in
29972 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29974 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29981 rm -f conf$$ conf$$.exe conf$$.file
29982 if test -d conf$$.dir; then
29983 rm -f conf$$.dir/conf$$.file
29986 mkdir conf$$.dir 2>/dev/null
29988 if (echo >conf$$.file) 2>/dev/null; then
29989 if ln -s conf$$.file conf$$ 2>/dev/null; then
29991 # ... but there are two gotchas:
29992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29994 # In both cases, we have to default to `cp -p'.
29995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29997 elif ln conf$$.file conf$$ 2>/dev/null; then
30005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30006 rmdir conf$$.dir 2>/dev/null
30011 # Create "$as_dir" as a directory, including parents if necessary.
30016 -*) as_dir=./$as_dir;;
30018 test -d "$as_dir" || eval $as_mkdir_p || {
30022 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30023 *) as_qdir=$as_dir;;
30025 as_dirs="'$as_qdir' $as_dirs"
30026 as_dir=`$as_dirname -- "$as_dir" ||
30027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30028 X"$as_dir" : 'X\(//\)[^/]' \| \
30029 X"$as_dir" : 'X\(//\)$' \| \
30030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30031 $as_echo X"$as_dir" |
30032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30036 /^X\(\/\/\)[^/].*/{
30049 test -d "$as_dir" && break
30051 test -z "$as_dirs" || eval "mkdir $as_dirs"
30052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30056 if mkdir -p . 2>/dev/null; then
30057 as_mkdir_p='mkdir -p "$as_dir"'
30059 test -d ./-p && rmdir ./-p
30063 if test -x / >/dev/null 2>&1; then
30064 as_test_x='test -x'
30066 if ls -dL / >/dev/null 2>&1; then
30073 if test -d "$1"; then
30079 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30080 ???[sx]*):;;*)false;;esac;fi
30084 as_executable_p=$as_test_x
30086 # Sed expression to map a string onto a valid CPP name.
30087 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30089 # Sed expression to map a string onto a valid variable name.
30090 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30094 ## ----------------------------------- ##
30095 ## Main body of $CONFIG_STATUS script. ##
30096 ## ----------------------------------- ##
30098 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101 # Save the log message, to keep $0 and so on meaningful, and to
30102 # report actual input values of CONFIG_FILES etc. instead of their
30103 # values after options handling.
30105 This file was extended by bacula $as_me 5.1.15, which was
30106 generated by GNU Autoconf 2.68. Invocation command line was
30108 CONFIG_FILES = $CONFIG_FILES
30109 CONFIG_HEADERS = $CONFIG_HEADERS
30110 CONFIG_LINKS = $CONFIG_LINKS
30111 CONFIG_COMMANDS = $CONFIG_COMMANDS
30114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30119 case $ac_config_files in *"
30120 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30123 case $ac_config_headers in *"
30124 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30129 # Files that config.status was made for.
30130 config_files="$ac_config_files"
30131 config_headers="$ac_config_headers"
30132 config_commands="$ac_config_commands"
30136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30138 \`$as_me' instantiates files and other configuration actions
30139 from templates according to the current configuration. Unless the files
30140 and actions are specified as TAGs, all are instantiated by default.
30142 Usage: $0 [OPTION]... [TAG]...
30144 -h, --help print this help, then exit
30145 -V, --version print version number and configuration settings, then exit
30146 --config print configuration, then exit
30147 -q, --quiet, --silent
30148 do not print progress messages
30149 -d, --debug don't remove temporary files
30150 --recheck update $as_me by reconfiguring in the same conditions
30151 --file=FILE[:TEMPLATE]
30152 instantiate the configuration file FILE
30153 --header=FILE[:TEMPLATE]
30154 instantiate the configuration header FILE
30156 Configuration files:
30159 Configuration headers:
30162 Configuration commands:
30165 Report bugs to the package provider."
30168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30169 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30171 bacula config.status 5.1.15
30172 configured by $0, generated by GNU Autoconf 2.68,
30173 with options \\"\$ac_cs_config\\"
30175 Copyright (C) 2010 Free Software Foundation, Inc.
30176 This config.status script is free software; the Free Software Foundation
30177 gives unlimited permission to copy, distribute and modify it."
30183 test -n "\$AWK" || AWK=awk
30186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30187 # The default lists apply if the user does not specify any file.
30193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30210 # Handling of the options.
30211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30214 $as_echo "$ac_cs_version"; exit ;;
30215 --config | --confi | --conf | --con | --co | --c )
30216 $as_echo "$ac_cs_config"; exit ;;
30217 --debug | --debu | --deb | --de | --d | -d )
30219 --file | --fil | --fi | --f )
30222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30223 '') as_fn_error $? "missing file argument" ;;
30225 as_fn_append CONFIG_FILES " '$ac_optarg'"
30226 ac_need_defaults=false;;
30227 --header | --heade | --head | --hea )
30230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30233 ac_need_defaults=false;;
30235 # Conflict between --help and --header
30236 as_fn_error $? "ambiguous option: \`$1'
30237 Try \`$0 --help' for more information.";;
30238 --help | --hel | -h )
30239 $as_echo "$ac_cs_usage"; exit ;;
30240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30244 # This is an error.
30245 -*) as_fn_error $? "unrecognized option: \`$1'
30246 Try \`$0 --help' for more information." ;;
30248 *) as_fn_append ac_config_targets " $1"
30249 ac_need_defaults=false ;;
30255 ac_configure_extra_args=
30257 if $ac_cs_silent; then
30259 ac_configure_extra_args="$ac_configure_extra_args --silent"
30263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30264 if \$ac_cs_recheck; then
30265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30268 CONFIG_SHELL='$SHELL'
30269 export CONFIG_SHELL
30274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30279 ## Running $as_me. ##
30285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30291 # The HP-UX ksh and POSIX shell print the target directory to stdout
30292 # if CDPATH is set.
30293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30295 sed_quote_subst='$sed_quote_subst'
30296 double_quote_subst='$double_quote_subst'
30297 delay_variable_subst='$delay_variable_subst'
30298 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30299 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30300 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30301 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30302 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30303 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30304 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30305 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30306 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30307 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30308 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30309 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30310 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30311 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30312 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30313 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30314 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30315 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30316 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30317 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30318 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30319 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30320 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30321 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30322 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30323 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30324 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30325 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30326 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30327 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30328 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30329 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30330 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30331 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30332 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30333 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30334 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30335 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30336 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30337 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30338 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30339 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30340 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30341 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30342 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30344 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30345 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30346 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30347 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30348 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30349 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30350 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30351 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30352 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30353 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30354 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30355 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30356 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30357 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30358 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30359 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30360 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30361 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30362 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30363 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30364 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30365 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30366 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30367 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30368 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30369 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30370 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30371 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30372 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30373 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30374 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30375 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30376 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30377 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30379 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30380 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30381 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30382 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30383 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30384 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30385 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30386 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30387 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30388 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30389 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30390 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30391 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30392 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30393 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30394 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30395 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30396 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30397 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30398 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30399 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30400 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30401 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30402 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30403 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30404 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30405 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30406 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30407 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30408 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30409 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30410 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30411 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30412 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30413 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30414 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30415 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30416 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30417 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30418 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30419 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30420 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30421 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30422 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30423 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30424 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30425 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30426 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30427 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30428 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30429 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30430 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30431 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30432 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30433 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30434 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30435 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30436 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30437 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30438 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30439 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30440 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30441 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30442 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30443 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30444 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30445 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30446 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30447 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30448 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30449 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30450 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30451 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30452 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30453 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30454 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30455 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30456 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30457 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30458 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30459 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30460 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30461 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30462 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30463 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30464 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30465 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30466 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30467 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30468 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30471 LTCFLAGS='$LTCFLAGS'
30472 compiler='$compiler_DEFAULT'
30474 # Quote evaled strings.
30486 deplibs_check_method \
30495 lt_cv_sys_global_symbol_pipe \
30496 lt_cv_sys_global_symbol_to_cdecl \
30497 lt_cv_sys_global_symbol_to_c_name_address \
30498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30501 lt_prog_compiler_no_builtin_flag \
30502 lt_prog_compiler_wl \
30503 lt_prog_compiler_pic \
30504 lt_prog_compiler_static \
30505 lt_cv_prog_compiler_c_o \
30513 export_dynamic_flag_spec \
30514 whole_archive_flag_spec \
30515 compiler_needs_object \
30517 allow_undefined_flag \
30518 no_undefined_flag \
30519 hardcode_libdir_flag_spec \
30520 hardcode_libdir_flag_spec_ld \
30521 hardcode_libdir_separator \
30526 variables_saved_for_relink \
30528 library_names_spec \
30533 compiler_lib_search_dirs \
30538 compiler_lib_search_path \
30541 lt_prog_compiler_no_builtin_flag_CXX \
30542 lt_prog_compiler_wl_CXX \
30543 lt_prog_compiler_pic_CXX \
30544 lt_prog_compiler_static_CXX \
30545 lt_cv_prog_compiler_c_o_CXX \
30546 export_dynamic_flag_spec_CXX \
30547 whole_archive_flag_spec_CXX \
30548 compiler_needs_object_CXX \
30550 allow_undefined_flag_CXX \
30551 no_undefined_flag_CXX \
30552 hardcode_libdir_flag_spec_CXX \
30553 hardcode_libdir_flag_spec_ld_CXX \
30554 hardcode_libdir_separator_CXX \
30555 fix_srcfile_path_CXX \
30556 exclude_expsyms_CXX \
30557 include_expsyms_CXX \
30558 file_list_spec_CXX \
30559 compiler_lib_search_dirs_CXX \
30560 predep_objects_CXX \
30561 postdep_objects_CXX \
30564 compiler_lib_search_path_CXX; do
30565 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30566 *[\\\\\\\`\\"\\\$]*)
30567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30575 # Double-quote double-evaled strings.
30576 for var in reload_cmds \
30577 old_postinstall_cmds \
30578 old_postuninstall_cmds \
30580 extract_expsyms_cmds \
30581 old_archive_from_new_cmds \
30582 old_archive_from_expsyms_cmds \
30584 archive_expsym_cmds \
30586 module_expsym_cmds \
30587 export_symbols_cmds \
30590 postuninstall_cmds \
30592 sys_lib_search_path_spec \
30593 sys_lib_dlsearch_path_spec \
30594 old_archive_cmds_CXX \
30595 old_archive_from_new_cmds_CXX \
30596 old_archive_from_expsyms_cmds_CXX \
30598 archive_expsym_cmds_CXX \
30600 module_expsym_cmds_CXX \
30601 export_symbols_cmds_CXX \
30602 prelink_cmds_CXX; do
30603 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30604 *[\\\\\\\`\\"\\\$]*)
30605 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30608 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30613 # Fix-up fallback echo if it was mangled by the above quoting rules.
30615 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30619 ac_aux_dir='$ac_aux_dir'
30620 xsi_shell='$xsi_shell'
30621 lt_shell_append='$lt_shell_append'
30623 # See if we are running on zsh, and set the options which allow our
30624 # commands through without removal of \ escapes INIT.
30625 if test -n "\${ZSH_VERSION+set}" ; then
30626 setopt NO_GLOB_SUBST
30632 TIMESTAMP='$TIMESTAMP'
30640 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30641 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30643 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30644 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30645 LINGUAS="${LINGUAS-%UNSET%}"
30650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30652 # Handling of arguments.
30653 for ac_config_target in $ac_config_targets
30655 case $ac_config_target in
30656 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30658 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30659 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30661 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30662 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30663 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30664 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30665 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30666 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30667 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30668 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30669 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30670 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30671 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30672 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30673 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30674 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30675 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30676 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30677 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30678 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30679 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30680 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30681 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30682 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30683 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30684 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30685 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30686 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30687 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30688 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30689 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30690 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30691 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30692 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30693 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30694 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30695 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30696 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30697 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30698 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30699 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30700 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30701 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30702 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30703 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30704 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30705 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30706 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30707 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30708 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30709 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30710 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30711 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30712 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30713 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30714 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30715 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30716 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30717 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30718 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30719 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30720 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30721 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30722 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30723 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30724 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30725 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30726 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30727 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30728 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30729 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30730 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30731 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30732 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30733 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30734 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30735 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30736 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30737 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30738 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30739 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30740 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30741 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30742 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30743 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30744 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30745 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30746 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30747 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30748 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30749 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30750 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30751 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30752 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30753 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30754 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30755 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30756 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30757 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30758 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30759 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30760 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30761 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30763 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30768 # If the user did not use the arguments to specify the items to instantiate,
30769 # then the envvar interface is used. Set only those that are not.
30770 # We use the long form for the default assignment because of an extremely
30771 # bizarre bug on SunOS 4.1.3.
30772 if $ac_need_defaults; then
30773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30778 # Have a temporary directory for convenience. Make it in the build tree
30779 # simply because there is no reason against having it here, and in addition,
30780 # creating and moving files from /tmp can sometimes cause problems.
30781 # Hook for its removal unless debugging.
30782 # Note that there is a small window in which the directory will not be cleaned:
30783 # after its creation but before its name has been assigned to `$tmp'.
30787 trap 'exit_status=$?
30788 : "${ac_tmp:=$tmp}"
30789 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30791 trap 'as_fn_exit 1' 1 2 13 15
30793 # Create a (secure) tmp directory for tmp files.
30796 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30800 tmp=./conf$$-$RANDOM
30801 (umask 077 && mkdir "$tmp")
30802 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30805 # Set up the scripts for CONFIG_FILES section.
30806 # No need to generate them if there are no CONFIG_FILES.
30807 # This happens for instance with `./config.status config.h'.
30808 if test -n "$CONFIG_FILES"; then
30810 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30811 ac_cs_awk_getline=:
30812 ac_cs_awk_pipe_init=
30813 ac_cs_awk_read_file='
30814 while ((getline aline < (F[key])) > 0)
30817 ac_cs_awk_pipe_fini=
30819 ac_cs_awk_getline=false
30820 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30821 ac_cs_awk_read_file='
30823 print "cat " F[key] " &&"
30824 '$ac_cs_awk_pipe_init
30825 # The final `:' finishes the AND list.
30826 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30828 ac_cr=`echo X | tr X '\015'`
30829 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30830 # But we know of no other shell where ac_cr would be empty at this
30831 # point, so we can use a bashism as a fallback.
30832 if test "x$ac_cr" = x; then
30833 eval ac_cr=\$\'\\r\'
30835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30839 ac_cs_awk_cr=$ac_cr
30842 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30845 # Create commands to substitute file output variables.
30847 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30848 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30849 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30852 } >conf$$files.sh &&
30853 . ./conf$$files.sh ||
30854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30855 rm -f conf$$files.sh
30858 echo "cat >conf$$subs.awk <<_ACEOF" &&
30859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30861 } >conf$$subs.sh ||
30862 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30863 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30865 for ac_last_try in false false false false false :; do
30866 . ./conf$$subs.sh ||
30867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30870 if test $ac_delim_n = $ac_delim_num; then
30872 elif $ac_last_try; then
30873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30878 rm -f conf$$subs.sh
30880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30881 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30885 s/^/S["/; s/!.*/"]=/
30895 s/\(.\{148\}\)..*/\1/
30897 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30909 s/\(.\{148\}\)..*/\1/
30911 s/["\\]/\\&/g; s/^/"/; s/$/"/
30915 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30920 ' <conf$$subs.awk | sed '
30925 ' >>$CONFIG_STATUS || ac_write_fail=1
30926 rm -f conf$$subs.awk
30927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30929 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30930 for (key in S) S_is_set[key] = 1
30932 \$ac_cs_awk_pipe_init
30936 nfields = split(line, field, "@")
30938 len = length(field[1])
30939 for (i = 2; i < nfields; i++) {
30941 keylen = length(key)
30942 if (S_is_set[key]) {
30944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30945 len += length(value) + length(field[++i])
30950 if (nfields == 3 && !substed) {
30952 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30953 \$ac_cs_awk_read_file
30959 \$ac_cs_awk_pipe_fini
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30963 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30967 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30968 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30971 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30972 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30973 # trailing colons and then remove the whole line if VPATH becomes empty
30974 # (actually we leave an empty line to preserve line numbers).
30975 if test "x$srcdir" = x.; then
30976 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30995 fi # test -n "$CONFIG_FILES"
30997 # Set up the scripts for CONFIG_HEADERS section.
30998 # No need to generate them if there are no CONFIG_HEADERS.
30999 # This happens for instance with `./config.status Makefile'.
31000 if test -n "$CONFIG_HEADERS"; then
31001 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31005 # Transform confdefs.h into an awk script `defines.awk', embedded as
31006 # here-document in config.status, that substitutes the proper values into
31007 # config.h.in to produce config.h.
31009 # Create a delimiter string that does not exist in confdefs.h, to ease
31010 # handling of long lines.
31012 for ac_last_try in false false :; do
31013 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31014 if test -z "$ac_tt"; then
31016 elif $ac_last_try; then
31017 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31023 # For the awk script, D is an array of macro values keyed by name,
31024 # likewise P contains macro parameters if any. Preserve backslash
31025 # newline sequences.
31027 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31029 s/.\{148\}/&'"$ac_delim"'/g
31032 s/^[ ]*#[ ]*define[ ][ ]*/ /
31039 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31041 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31046 D["\1"]=" \3\\\\\\n"\\/p
31048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31053 s/.\{148\}/&'"$ac_delim"'/g
31058 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31061 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31063 ' <confdefs.h | sed '
31064 s/'"$ac_delim"'/"\\\
31065 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31068 for (key in D) D_is_set[key] = 1
31071 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31073 split(line, arg, " ")
31074 if (arg[1] == "#") {
31078 defundef = substr(arg[1], 2)
31081 split(mac1, mac2, "(") #)
31083 prefix = substr(line, 1, index(line, defundef) - 1)
31084 if (D_is_set[macro]) {
31085 # Preserve the white space surrounding the "#".
31086 print prefix "define", macro P[macro] D[macro]
31089 # Replace #undef with comments. This is necessary, for example,
31090 # in the case of _POSIX_SOURCE, which is predefined and required
31091 # on some systems where configure will not decide to define it.
31092 if (defundef == "undef") {
31093 print "/*", prefix defundef, macro, "*/"
31101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31102 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31103 fi # test -n "$CONFIG_HEADERS"
31106 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31111 :[FHLC]) ac_mode=$ac_tag; continue;;
31113 case $ac_mode$ac_tag in
31115 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31116 :[FH]-) ac_tag=-:-;;
31117 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31134 -) ac_f="$ac_tmp/stdin";;
31135 *) # Look for the file first in the build tree, then in the source tree
31136 # (if the path is not absolute). The absolute path cannot be DOS-style,
31137 # because $ac_f cannot contain `:'.
31141 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31143 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31145 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31146 as_fn_append ac_file_inputs " '$ac_f'"
31149 # Let's still pretend it is `configure' which instantiates (i.e., don't
31150 # use $as_me), people would be surprised to read:
31151 # /* config.h. Generated by config.status. */
31152 configure_input='Generated from '`
31153 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31155 if test x"$ac_file" != x-; then
31156 configure_input="$ac_file. $configure_input"
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31158 $as_echo "$as_me: creating $ac_file" >&6;}
31160 # Neutralize special characters interpreted by sed in replacement strings.
31161 case $configure_input in #(
31162 *\&* | *\|* | *\\* )
31163 ac_sed_conf_input=`$as_echo "$configure_input" |
31164 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31165 *) ac_sed_conf_input=$configure_input;;
31169 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31175 ac_dir=`$as_dirname -- "$ac_file" ||
31176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31177 X"$ac_file" : 'X\(//\)[^/]' \| \
31178 X"$ac_file" : 'X\(//\)$' \| \
31179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31180 $as_echo X"$ac_file" |
31181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31185 /^X\(\/\/\)[^/].*/{
31198 as_dir="$ac_dir"; as_fn_mkdir_p
31202 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31204 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31205 # A ".." for each directory in $ac_dir_suffix.
31206 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31207 case $ac_top_builddir_sub in
31208 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31209 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31212 ac_abs_top_builddir=$ac_pwd
31213 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31214 # for backward compatibility:
31215 ac_top_builddir=$ac_top_build_prefix
31218 .) # We are building in place.
31220 ac_top_srcdir=$ac_top_builddir_sub
31221 ac_abs_top_srcdir=$ac_pwd ;;
31222 [\\/]* | ?:[\\/]* ) # Absolute name.
31223 ac_srcdir=$srcdir$ac_dir_suffix;
31224 ac_top_srcdir=$srcdir
31225 ac_abs_top_srcdir=$srcdir ;;
31226 *) # Relative name.
31227 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31228 ac_top_srcdir=$ac_top_build_prefix$srcdir
31229 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31231 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31242 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31247 # If the template does not know about datarootdir, expand it.
31248 # FIXME: This hack should be removed a few years after 2.60.
31249 ac_datarootdir_hack=; ac_datarootdir_seen=
31260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31261 *datarootdir*) ac_datarootdir_seen=yes;;
31262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31267 ac_datarootdir_hack='
31268 s&@datadir@&$datadir&g
31269 s&@docdir@&$docdir&g
31270 s&@infodir@&$infodir&g
31271 s&@localedir@&$localedir&g
31272 s&@mandir@&$mandir&g
31273 s&\\\${datarootdir}&$datarootdir&g' ;;
31277 # Neutralize VPATH when `$srcdir' = `.'.
31278 # Shell code in configure.ac might set extrasub.
31279 # FIXME: do we really want to maintain this feature?
31280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31281 ac_sed_extra="$ac_vpsub
31284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31287 s|@configure_input@|$ac_sed_conf_input|;t t
31288 s&@top_builddir@&$ac_top_builddir_sub&;t t
31289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31290 s&@srcdir@&$ac_srcdir&;t t
31291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31292 s&@top_srcdir@&$ac_top_srcdir&;t t
31293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31294 s&@builddir@&$ac_builddir&;t t
31295 s&@abs_builddir@&$ac_abs_builddir&;t t
31296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31297 s&@INSTALL@&$ac_INSTALL&;t t
31298 $ac_datarootdir_hack
31300 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31301 if $ac_cs_awk_getline; then
31302 $AWK -f "$ac_tmp/subs.awk"
31304 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31306 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31309 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31311 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31313 which seems to be undefined. Please make sure it is defined" >&5
31314 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31315 which seems to be undefined. Please make sure it is defined" >&2;}
31317 rm -f "$ac_tmp/stdin"
31319 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31320 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31328 if test x"$ac_file" != x-; then
31330 $as_echo "/* $configure_input */" \
31331 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31332 } >"$ac_tmp/config.h" \
31333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31334 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31336 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31339 mv "$ac_tmp/config.h" "$ac_file" \
31340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31343 $as_echo "/* $configure_input */" \
31344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31345 || as_fn_error $? "could not create -" "$LINENO" 5
31349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31350 $as_echo "$as_me: executing $ac_file commands" >&6;}
31355 case $ac_file$ac_mode in
31358 # See if we are running on zsh, and set the options which allow our
31359 # commands through without removal of \ escapes.
31360 if test -n "${ZSH_VERSION+set}" ; then
31361 setopt NO_GLOB_SUBST
31364 cfgfile="${ofile}T"
31365 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31368 cat <<_LT_EOF >> "$cfgfile"
31371 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31372 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31377 # 2006, 2007, 2008 Free Software Foundation, Inc.
31378 # Written by Gordon Matzigkeit, 1996
31380 # This file is part of GNU Libtool.
31382 # GNU Libtool is free software; you can redistribute it and/or
31383 # modify it under the terms of the GNU General Public License as
31384 # published by the Free Software Foundation; either version 2 of
31385 # the License, or (at your option) any later version.
31387 # As a special exception to the GNU General Public License,
31388 # if you distribute this file as part of a program or library that
31389 # is built using GNU Libtool, you may include this file under the
31390 # same distribution terms that you use for the rest of that program.
31392 # GNU Libtool is distributed in the hope that it will be useful,
31393 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31395 # GNU General Public License for more details.
31397 # You should have received a copy of the GNU General Public License
31398 # along with GNU Libtool; see the file COPYING. If not, a copy
31399 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31400 # obtained by writing to the Free Software Foundation, Inc.,
31401 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31404 # The names of the tagged configurations supported by this script.
31405 available_tags="CXX "
31407 # ### BEGIN LIBTOOL CONFIG
31409 # Which release of libtool.m4 was used?
31410 macro_version=$macro_version
31411 macro_revision=$macro_revision
31413 # Whether or not to build shared libraries.
31414 build_libtool_libs=$enable_shared
31416 # Whether or not to build static libraries.
31417 build_old_libs=$enable_static
31419 # What type of objects to build.
31422 # Whether or not to optimize for fast installation.
31423 fast_install=$enable_fast_install
31426 host_alias=$host_alias
31430 # The build system.
31431 build_alias=$build_alias
31435 # A sed program that does not truncate output.
31438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31439 Xsed="\$SED -e 1s/^X//"
31441 # A grep program that handles long lines.
31447 # A literal string matcher.
31450 # A BSD- or MS-compatible name lister.
31453 # Whether we need soft or hard links.
31456 # What is the maximum length of a command?
31457 max_cmd_len=$max_cmd_len
31459 # Object file suffix (normally "o").
31462 # Executable file suffix (normally "").
31465 # whether the shell understands "unset".
31468 # turn spaces into newlines.
31471 # turn newlines into spaces.
31474 # How to create reloadable object files.
31475 reload_flag=$lt_reload_flag
31476 reload_cmds=$lt_reload_cmds
31478 # An object symbol dumper.
31479 OBJDUMP=$lt_OBJDUMP
31481 # Method to check whether dependent libraries are shared objects.
31482 deplibs_check_method=$lt_deplibs_check_method
31484 # Command to use when deplibs_check_method == "file_magic".
31485 file_magic_cmd=$lt_file_magic_cmd
31489 AR_FLAGS=$lt_AR_FLAGS
31491 # A symbol stripping program.
31494 # Commands used to install an old-style archive.
31496 old_postinstall_cmds=$lt_old_postinstall_cmds
31497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31502 # LTCC compiler flags.
31503 LTCFLAGS=$lt_CFLAGS
31505 # Take the output of nm and produce a listing of raw symbols and C names.
31506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31508 # Transform the output of nm in a proper C declaration.
31509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31511 # Transform the output of nm in a C name address pair.
31512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31514 # Transform the output of nm in a C name address pair when lib prefix is needed.
31515 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31517 # The name of the directory that contains temporary libtool files.
31520 # Shell to use when invoking shell scripts.
31523 # An echo program that does not interpret backslashes.
31526 # Used to examine libraries when file_magic_cmd begins with "file".
31527 MAGIC_CMD=$MAGIC_CMD
31529 # Must we lock files when doing compilation?
31530 need_locks=$lt_need_locks
31532 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31533 DSYMUTIL=$lt_DSYMUTIL
31535 # Tool to change global to local symbols on Mac OS X.
31538 # Tool to manipulate fat objects and archives on Mac OS X.
31541 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31544 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31545 OTOOL64=$lt_OTOOL64
31547 # Old archive suffix (normally "a").
31550 # Shared library suffix (normally ".so").
31551 shrext_cmds=$lt_shrext_cmds
31553 # The commands to extract the exported symbol list from a shared archive.
31554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31556 # Variables whose values should be saved in libtool wrapper scripts and
31557 # restored at link time.
31558 variables_saved_for_relink=$lt_variables_saved_for_relink
31560 # Do we need the "lib" prefix for modules?
31561 need_lib_prefix=$need_lib_prefix
31563 # Do we need a version for libraries?
31564 need_version=$need_version
31566 # Library versioning type.
31567 version_type=$version_type
31569 # Shared library runtime path variable.
31570 runpath_var=$runpath_var
31572 # Shared library path variable.
31573 shlibpath_var=$shlibpath_var
31575 # Is shlibpath searched before the hard-coded library search path?
31576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31578 # Format of library name prefix.
31579 libname_spec=$lt_libname_spec
31581 # List of archive names. First name is the real one, the rest are links.
31582 # The last name is the one that the linker finds with -lNAME
31583 library_names_spec=$lt_library_names_spec
31585 # The coded name of the library, if different from the real name.
31586 soname_spec=$lt_soname_spec
31588 # Command to use after installation of a shared archive.
31589 postinstall_cmds=$lt_postinstall_cmds
31591 # Command to use after uninstallation of a shared archive.
31592 postuninstall_cmds=$lt_postuninstall_cmds
31594 # Commands used to finish a libtool library installation in a directory.
31595 finish_cmds=$lt_finish_cmds
31597 # As "finish_cmds", except a single script fragment to be evaled but
31599 finish_eval=$lt_finish_eval
31601 # Whether we should hardcode library paths into libraries.
31602 hardcode_into_libs=$hardcode_into_libs
31604 # Compile-time system search path for libraries.
31605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31607 # Run-time system search path for libraries.
31608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31610 # Whether dlopen is supported.
31611 dlopen_support=$enable_dlopen
31613 # Whether dlopen of programs is supported.
31614 dlopen_self=$enable_dlopen_self
31616 # Whether dlopen of statically linked programs is supported.
31617 dlopen_self_static=$enable_dlopen_self_static
31619 # Commands to strip libraries.
31620 old_striplib=$lt_old_striplib
31621 striplib=$lt_striplib
31624 # The linker used to build libraries.
31627 # Commands used to build an old-style archive.
31628 old_archive_cmds=$lt_old_archive_cmds
31630 # A language specific compiler.
31633 # Is the compiler the GNU compiler?
31636 # Compiler flag to turn off builtin functions.
31637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31639 # How to pass a linker flag through the compiler.
31640 wl=$lt_lt_prog_compiler_wl
31642 # Additional compiler flags for building library objects.
31643 pic_flag=$lt_lt_prog_compiler_pic
31645 # Compiler flag to prevent dynamic linking.
31646 link_static_flag=$lt_lt_prog_compiler_static
31648 # Does compiler simultaneously support -c and -o options?
31649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31651 # Whether or not to add -lc for building shared libraries.
31652 build_libtool_need_lc=$archive_cmds_need_lc
31654 # Whether or not to disallow shared libs when runtime libs are static.
31655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31657 # Compiler flag to allow reflexive dlopens.
31658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31660 # Compiler flag to generate shared objects directly from archives.
31661 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31663 # Whether the compiler copes with passing no objects directly.
31664 compiler_needs_object=$lt_compiler_needs_object
31666 # Create an old-style archive from a shared archive.
31667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31669 # Create a temporary old-style archive to link instead of a shared archive.
31670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31672 # Commands used to build a shared archive.
31673 archive_cmds=$lt_archive_cmds
31674 archive_expsym_cmds=$lt_archive_expsym_cmds
31676 # Commands used to build a loadable module if different from building
31677 # a shared archive.
31678 module_cmds=$lt_module_cmds
31679 module_expsym_cmds=$lt_module_expsym_cmds
31681 # Whether we are building with GNU ld or not.
31682 with_gnu_ld=$lt_with_gnu_ld
31684 # Flag that allows shared libraries with undefined symbols to be built.
31685 allow_undefined_flag=$lt_allow_undefined_flag
31687 # Flag that enforces no undefined symbols.
31688 no_undefined_flag=$lt_no_undefined_flag
31690 # Flag to hardcode \$libdir into a binary during linking.
31691 # This must work even if \$libdir does not exist
31692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31694 # If ld is used when linking, flag to hardcode \$libdir into a binary
31695 # during linking. This must work even if \$libdir does not exist.
31696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31698 # Whether we need a single "-rpath" flag with a separated argument.
31699 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31702 # DIR into the resulting binary.
31703 hardcode_direct=$hardcode_direct
31705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31706 # DIR into the resulting binary and the resulting library dependency is
31707 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31708 # library is relocated.
31709 hardcode_direct_absolute=$hardcode_direct_absolute
31711 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31712 # into the resulting binary.
31713 hardcode_minus_L=$hardcode_minus_L
31715 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31716 # into the resulting binary.
31717 hardcode_shlibpath_var=$hardcode_shlibpath_var
31719 # Set to "yes" if building a shared library automatically hardcodes DIR
31720 # into the library and all subsequent libraries and executables linked
31722 hardcode_automatic=$hardcode_automatic
31724 # Set to yes if linker adds runtime paths of dependent libraries
31725 # to runtime path list.
31726 inherit_rpath=$inherit_rpath
31728 # Whether libtool must link a program against all its dependency libraries.
31729 link_all_deplibs=$link_all_deplibs
31731 # Fix the shell variable \$srcfile for the compiler.
31732 fix_srcfile_path=$lt_fix_srcfile_path
31734 # Set to "yes" if exported symbols are required.
31735 always_export_symbols=$always_export_symbols
31737 # The commands to list exported symbols.
31738 export_symbols_cmds=$lt_export_symbols_cmds
31740 # Symbols that should not be listed in the preloaded symbols.
31741 exclude_expsyms=$lt_exclude_expsyms
31743 # Symbols that must always be exported.
31744 include_expsyms=$lt_include_expsyms
31746 # Commands necessary for linking programs (against libraries) with templates.
31747 prelink_cmds=$lt_prelink_cmds
31749 # Specify filename containing input files.
31750 file_list_spec=$lt_file_list_spec
31752 # How to hardcode a shared library path into an executable.
31753 hardcode_action=$hardcode_action
31755 # The directories searched by this compiler when creating a shared library.
31756 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31758 # Dependencies to place before and after the objects being linked to
31759 # create a shared library.
31760 predep_objects=$lt_predep_objects
31761 postdep_objects=$lt_postdep_objects
31762 predeps=$lt_predeps
31763 postdeps=$lt_postdeps
31765 # The library search path used internally by the compiler when linking
31766 # a shared library.
31767 compiler_lib_search_path=$lt_compiler_lib_search_path
31769 # ### END LIBTOOL CONFIG
31775 cat <<\_LT_EOF >> "$cfgfile"
31776 # AIX sometimes has problems with the GCC collect2 program. For some
31777 # reason, if we set the COLLECT_NAMES environment variable, the problems
31778 # vanish in a puff of smoke.
31779 if test "X${COLLECT_NAMES+set}" != Xset; then
31781 export COLLECT_NAMES
31788 ltmain="$ac_aux_dir/ltmain.sh"
31791 # We use sed instead of cat because bash on DJGPP gets confused if
31792 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31793 # text mode, it properly converts lines to CR/LF. This bash problem
31794 # is reportedly fixed, but why not run on old versions too?
31795 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31796 || (rm -f "$cfgfile"; exit 1)
31800 cat << \_LT_EOF >> "$cfgfile"
31802 # func_dirname file append nondir_replacement
31803 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31804 # otherwise set result to NONDIR_REPLACEMENT.
31808 */*) func_dirname_result="${1%/*}${2}" ;;
31809 * ) func_dirname_result="${3}" ;;
31813 # func_basename file
31816 func_basename_result="${1##*/}"
31819 # func_dirname_and_basename file append nondir_replacement
31820 # perform func_basename and func_dirname in a single function
31822 # dirname: Compute the dirname of FILE. If nonempty,
31823 # add APPEND to the result, otherwise set result
31824 # to NONDIR_REPLACEMENT.
31825 # value returned in "$func_dirname_result"
31826 # basename: Compute filename of FILE.
31827 # value retuned in "$func_basename_result"
31828 # Implementation must be kept synchronized with func_dirname
31829 # and func_basename. For efficiency, we do not delegate to
31830 # those functions but instead duplicate the functionality here.
31831 func_dirname_and_basename ()
31834 */*) func_dirname_result="${1%/*}${2}" ;;
31835 * ) func_dirname_result="${3}" ;;
31837 func_basename_result="${1##*/}"
31840 # func_stripname prefix suffix name
31841 # strip PREFIX and SUFFIX off of NAME.
31842 # PREFIX and SUFFIX must not contain globbing or regex special
31843 # characters, hashes, percent signs, but SUFFIX may contain a leading
31844 # dot (in which case that matches only a dot).
31847 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31848 # positional parameters, so assign one to ordinary parameter first.
31849 func_stripname_result=${3}
31850 func_stripname_result=${func_stripname_result#"${1}"}
31851 func_stripname_result=${func_stripname_result%"${2}"}
31857 func_opt_split_opt=${1%%=*}
31858 func_opt_split_arg=${1#*=}
31865 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31866 *) func_lo2o_result=${1} ;;
31870 # func_xform libobj-or-source
31873 func_xform_result=${1%.*}.lo
31876 # func_arith arithmetic-term...
31879 func_arith_result=$(( $* ))
31883 # STRING may not start with a hyphen.
31886 func_len_result=${#1}
31891 *) # Bourne compatible functions.
31892 cat << \_LT_EOF >> "$cfgfile"
31894 # func_dirname file append nondir_replacement
31895 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31896 # otherwise set result to NONDIR_REPLACEMENT.
31899 # Extract subdirectory from the argument.
31900 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31901 if test "X$func_dirname_result" = "X${1}"; then
31902 func_dirname_result="${3}"
31904 func_dirname_result="$func_dirname_result${2}"
31908 # func_basename file
31911 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31915 # func_stripname prefix suffix name
31916 # strip PREFIX and SUFFIX off of NAME.
31917 # PREFIX and SUFFIX must not contain globbing or regex special
31918 # characters, hashes, percent signs, but SUFFIX may contain a leading
31919 # dot (in which case that matches only a dot).
31920 # func_strip_suffix prefix name
31924 .*) func_stripname_result=`$ECHO "X${3}" \
31925 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31926 *) func_stripname_result=`$ECHO "X${3}" \
31927 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31932 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31933 my_sed_long_arg='1s/^-[^=]*=//'
31938 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31939 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31945 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31948 # func_xform libobj-or-source
31951 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31954 # func_arith arithmetic-term...
31957 func_arith_result=`expr "$@"`
31961 # STRING may not start with a hyphen.
31964 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31970 case $lt_shell_append in
31972 cat << \_LT_EOF >> "$cfgfile"
31974 # func_append var value
31975 # Append VALUE to the end of shell variable VAR.
31983 cat << \_LT_EOF >> "$cfgfile"
31985 # func_append var value
31986 # Append VALUE to the end of shell variable VAR.
31997 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31998 || (rm -f "$cfgfile"; exit 1)
32000 mv -f "$cfgfile" "$ofile" ||
32001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32005 cat <<_LT_EOF >> "$ofile"
32007 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32009 # The linker used to build libraries.
32012 # Commands used to build an old-style archive.
32013 old_archive_cmds=$lt_old_archive_cmds_CXX
32015 # A language specific compiler.
32016 CC=$lt_compiler_CXX
32018 # Is the compiler the GNU compiler?
32021 # Compiler flag to turn off builtin functions.
32022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32024 # How to pass a linker flag through the compiler.
32025 wl=$lt_lt_prog_compiler_wl_CXX
32027 # Additional compiler flags for building library objects.
32028 pic_flag=$lt_lt_prog_compiler_pic_CXX
32030 # Compiler flag to prevent dynamic linking.
32031 link_static_flag=$lt_lt_prog_compiler_static_CXX
32033 # Does compiler simultaneously support -c and -o options?
32034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32036 # Whether or not to add -lc for building shared libraries.
32037 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32039 # Whether or not to disallow shared libs when runtime libs are static.
32040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32042 # Compiler flag to allow reflexive dlopens.
32043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32045 # Compiler flag to generate shared objects directly from archives.
32046 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32048 # Whether the compiler copes with passing no objects directly.
32049 compiler_needs_object=$lt_compiler_needs_object_CXX
32051 # Create an old-style archive from a shared archive.
32052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32054 # Create a temporary old-style archive to link instead of a shared archive.
32055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32057 # Commands used to build a shared archive.
32058 archive_cmds=$lt_archive_cmds_CXX
32059 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32061 # Commands used to build a loadable module if different from building
32062 # a shared archive.
32063 module_cmds=$lt_module_cmds_CXX
32064 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32066 # Whether we are building with GNU ld or not.
32067 with_gnu_ld=$lt_with_gnu_ld_CXX
32069 # Flag that allows shared libraries with undefined symbols to be built.
32070 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32072 # Flag that enforces no undefined symbols.
32073 no_undefined_flag=$lt_no_undefined_flag_CXX
32075 # Flag to hardcode \$libdir into a binary during linking.
32076 # This must work even if \$libdir does not exist
32077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32079 # If ld is used when linking, flag to hardcode \$libdir into a binary
32080 # during linking. This must work even if \$libdir does not exist.
32081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32083 # Whether we need a single "-rpath" flag with a separated argument.
32084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32087 # DIR into the resulting binary.
32088 hardcode_direct=$hardcode_direct_CXX
32090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32091 # DIR into the resulting binary and the resulting library dependency is
32092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32093 # library is relocated.
32094 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32097 # into the resulting binary.
32098 hardcode_minus_L=$hardcode_minus_L_CXX
32100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32101 # into the resulting binary.
32102 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32104 # Set to "yes" if building a shared library automatically hardcodes DIR
32105 # into the library and all subsequent libraries and executables linked
32107 hardcode_automatic=$hardcode_automatic_CXX
32109 # Set to yes if linker adds runtime paths of dependent libraries
32110 # to runtime path list.
32111 inherit_rpath=$inherit_rpath_CXX
32113 # Whether libtool must link a program against all its dependency libraries.
32114 link_all_deplibs=$link_all_deplibs_CXX
32116 # Fix the shell variable \$srcfile for the compiler.
32117 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32119 # Set to "yes" if exported symbols are required.
32120 always_export_symbols=$always_export_symbols_CXX
32122 # The commands to list exported symbols.
32123 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32125 # Symbols that should not be listed in the preloaded symbols.
32126 exclude_expsyms=$lt_exclude_expsyms_CXX
32128 # Symbols that must always be exported.
32129 include_expsyms=$lt_include_expsyms_CXX
32131 # Commands necessary for linking programs (against libraries) with templates.
32132 prelink_cmds=$lt_prelink_cmds_CXX
32134 # Specify filename containing input files.
32135 file_list_spec=$lt_file_list_spec_CXX
32137 # How to hardcode a shared library path into an executable.
32138 hardcode_action=$hardcode_action_CXX
32140 # The directories searched by this compiler when creating a shared library.
32141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32143 # Dependencies to place before and after the objects being linked to
32144 # create a shared library.
32145 predep_objects=$lt_predep_objects_CXX
32146 postdep_objects=$lt_postdep_objects_CXX
32147 predeps=$lt_predeps_CXX
32148 postdeps=$lt_postdeps_CXX
32150 # The library search path used internally by the compiler when linking
32151 # a shared library.
32152 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32154 # ### END LIBTOOL TAG CONFIG: CXX
32159 for ac_file in $CONFIG_FILES; do
32160 # Support "outfile[:infile[:infile...]]"
32162 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32164 # PO directories have a Makefile.in generated from Makefile.in.in.
32165 case "$ac_file" in */Makefile.in)
32166 # Adjust a relative srcdir.
32167 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32168 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32169 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32170 # In autoconf-2.13 it is called $ac_given_srcdir.
32171 # In autoconf-2.50 it is called $srcdir.
32172 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32173 case "$ac_given_srcdir" in
32174 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32175 /*) top_srcdir="$ac_given_srcdir" ;;
32176 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32178 # Treat a directory as a PO directory if and only if it has a
32179 # POTFILES.in file. This allows packages to have multiple PO
32180 # directories under different names or in different locations.
32181 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32182 rm -f "$ac_dir/POTFILES"
32183 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32184 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32185 POMAKEFILEDEPS="POTFILES.in"
32186 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32187 # on $ac_dir but don't depend on user-specified configuration
32189 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32190 # The LINGUAS file contains the set of available languages.
32191 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32192 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32194 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32195 # Hide the ALL_LINGUAS assigment from automake.
32196 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32197 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32199 # The set of available languages was given in configure.in.
32200 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32203 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32204 # Compute UPDATEPOFILES
32205 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32206 # Compute DUMMYPOFILES
32207 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32209 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32210 case "$ac_given_srcdir" in
32212 *) srcdirpre='$(srcdir)/' ;;
32218 for lang in $ALL_LINGUAS; do
32219 POFILES="$POFILES $srcdirpre$lang.po"
32220 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32221 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32222 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32224 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32225 # environment variable.
32227 if test -n "$ALL_LINGUAS"; then
32228 for presentlang in $ALL_LINGUAS; do
32230 if test "%UNSET%" != "$LINGUAS"; then
32231 desiredlanguages="$LINGUAS"
32233 desiredlanguages="$ALL_LINGUAS"
32235 for desiredlang in $desiredlanguages; do
32236 # Use the presentlang catalog if desiredlang is
32237 # a. equal to presentlang, or
32238 # b. a variant of presentlang (because in this case,
32239 # presentlang can be used as a fallback for messages
32240 # which are not translated in the desiredlang catalog).
32241 case "$desiredlang" in
32242 "$presentlang"*) useit=yes;;
32245 if test $useit = yes; then
32246 INST_LINGUAS="$INST_LINGUAS $presentlang"
32251 if test -n "$INST_LINGUAS"; then
32252 for lang in $INST_LINGUAS; do
32253 CATALOGS="$CATALOGS $lang.gmo"
32256 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32257 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"
32258 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32259 if test -f "$f"; then
32261 *.orig | *.bak | *~) ;;
32262 *) cat "$f" >> "$ac_dir/Makefile" ;;
32279 ac_clean_files=$ac_clean_files_save
32281 test $ac_write_fail = 0 ||
32282 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32285 # configure is writing to config.log, and then calls config.status.
32286 # config.status does its own redirection, appending to config.log.
32287 # Unfortunately, on DOS this fails, as config.log is still kept open
32288 # by configure, so config.status won't be able to write to it; its
32289 # output is simply discarded. So we exec the FD to /dev/null,
32290 # effectively closing config.log, so it can be properly (re)opened and
32291 # appended to by config.status. When coming back to configure, we
32292 # need to make the FD available again.
32293 if test "$no_create" != yes; then
32295 ac_config_status_args=
32296 test "$silent" = yes &&
32297 ac_config_status_args="$ac_config_status_args --quiet"
32299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32302 # would make configure fail if this is the last instruction.
32303 $ac_cs_success || as_fn_exit 1
32305 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32307 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32311 if test "${support_bat}" = "yes" ; then
32312 if test "x$QMAKE" = "xnone"; then
32313 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32317 echo "Creating bat Makefile"
32322 ${MAKE:-make} clean
32326 if test X"$GCC" = "Xyes" ; then
32327 echo "Doing make of dependencies"
32328 ${MAKE:-make} depend
32332 chmod 755 install_conf_file build-depkgs-qt-console
32336 chmod 755 bacula btraceback mtx-changer
32337 chmod 755 dvd-handler dvd-simulator
32338 chmod 755 bconsole mtx-changer devel_bacula logrotate
32342 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32343 chmod 755 $c/update_postgresql_tables_10_to_11
32344 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32345 chmod 755 $c/update_postgresql_tables_11_to_12
32350 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32351 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32353 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32354 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32356 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32357 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32359 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32360 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32362 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32363 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32366 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32367 chmod 755 $c/sqlite
32370 chmod 755 src/win32/build-depkgs-mingw32
32372 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32373 largefile_support="yes"
32376 if test X"$GCC" = "Xyes" ; then
32377 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32378 if test "x${CCVERSION}" = "x" ; then
32379 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32381 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32382 if test x"${CXXVERSION}" = x ; then
32383 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32387 # clean up any old junk
32391 ${MAKE:-make} clean
32394 Configuration on `date`:
32396 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32397 Bacula version: ${BACULA} ${VERSION} (${DATE})
32398 Source code location: ${srcdir}
32399 Install binaries: ${sbindir}
32400 Install libraries: ${libdir}
32401 Install config files: ${sysconfdir}
32402 Scripts directory: ${scriptdir}
32403 Archive directory: ${archivedir}
32404 Working directory: ${working_dir}
32405 PID directory: ${piddir}
32406 Subsys directory: ${subsysdir}
32407 Man directory: ${mandir}
32408 Data directory: ${datarootdir}
32409 Plugin directory: ${plugindir}
32410 C Compiler: ${CC} ${CCVERSION}
32411 C++ Compiler: ${CXX} ${CXXVERSION}
32412 Compiler flags: ${WCFLAGS} ${CFLAGS}
32413 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32415 Statically Linked Tools: ${support_static_tools}
32416 Statically Linked FD: ${support_static_fd}
32417 Statically Linked SD: ${support_static_sd}
32418 Statically Linked DIR: ${support_static_dir}
32419 Statically Linked CONS: ${support_static_cons}
32420 Database backends: ${db_backends}
32421 Database port: ${db_port}
32422 Database name: ${db_name}
32423 Database user: ${db_user}
32425 Job Output Email: ${job_email}
32426 Traceback Email: ${dump_email}
32427 SMTP Host Address: ${smtp_host}
32429 Director Port: ${dir_port}
32430 File daemon Port: ${fd_port}
32431 Storage daemon Port: ${sd_port}
32433 Director User: ${dir_user}
32434 Director Group: ${dir_group}
32435 Storage Daemon User: ${sd_user}
32436 Storage DaemonGroup: ${sd_group}
32437 File Daemon User: ${fd_user}
32438 File Daemon Group: ${fd_group}
32440 Large file support: $largefile_support
32441 Bacula conio support: ${got_conio} ${CONS_LIBS}
32442 readline support: ${got_readline} ${PRTREADLINE_SRC}
32443 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32444 TLS support: ${support_tls}
32445 Encryption support: ${support_crypto}
32446 ZLIB support: ${have_zlib}
32447 LZO support: ${have_lzo}
32448 enable-smartalloc: ${support_smartalloc}
32449 enable-lockmgr: ${support_lockmgr}
32450 bat support: ${support_bat}
32451 enable-gnome: ${support_gnome} ${gnome_version}
32452 enable-bwx-console: ${support_wx_console} ${wx_version}
32453 enable-tray-monitor: ${support_tray_monitor}
32454 client-only: ${build_client_only}
32455 build-dird: ${build_dird}
32456 build-stored: ${build_stored}
32457 Plugin support: ${have_plugins}
32458 AFS support: ${have_afs}
32459 ACL support: ${have_acl}
32460 XATTR support: ${have_xattr}
32461 Python support: ${support_python} ${PYTHON_LIBS}
32462 Batch insert enabled: ${support_batch_insert}
32466 # create a small shell script useful for support with
32467 # configure options and config.out info
32468 cat > scripts/bacula_config << EOF
32471 $ $0 $ac_configure_args
32473 cat config.out >> scripts/bacula_config
32474 echo __EOC__ >> scripts/bacula_config
32475 chmod 755 scripts/bacula_config