2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.14.
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.14'
710 PACKAGE_STRING='bacula 5.1.14'
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
778 SHARED_CATALOG_TARGETS
848 TRAY_MONITOR_CPPFLAGS
857 INTL_LIBTOOL_SUFFIX_PREFIX
864 BUILD_INCLUDED_LIBINTL
895 HAVE_OPENBSD_OS_FALSE
899 HAVE_FREEBSD_OS_FALSE
911 INCLUDE_UNINSTALL_TARGET
912 INCLUDE_INSTALL_TARGET
916 LIBTOOL_UNINSTALL_TARGET
917 LIBTOOL_INSTALL_TARGET
918 DEFAULT_SHARED_OBJECT_TYPE
992 LIBBACFIND_LT_RELEASE
993 LIBBACCATS_LT_RELEASE
1038 program_transform_name
1049 ac_subst_files='MCOMMON'
1051 enable_option_checking
1062 with_libiconv_prefix
1064 with_included_gettext
1103 with_mon_dir_password
1104 with_mon_fd_password
1105 with_mon_sd_password
1127 ac_precious_vars='build_alias
1145 # Initialize some variables set by options.
1147 ac_init_version=false
1148 ac_unrecognized_opts=
1149 ac_unrecognized_sep=
1150 # The variables have the same names as the options, with
1151 # dashes changed to underlines.
1152 cache_file=/dev/null
1159 program_transform_name=s,x,x,
1167 # Installation directory options.
1168 # These are left unexpanded so users can "make install exec_prefix=/foo"
1169 # and all the variables that are supposed to be based on exec_prefix
1170 # by default will actually change.
1171 # Use braces instead of parens because sh, perl, etc. also accept them.
1172 # (The list follows the same order as the GNU Coding Standards.)
1173 bindir='${exec_prefix}/bin'
1174 sbindir='${exec_prefix}/sbin'
1175 libexecdir='${exec_prefix}/libexec'
1176 datarootdir='${prefix}/share'
1177 datadir='${datarootdir}'
1178 sysconfdir='${prefix}/etc'
1179 sharedstatedir='${prefix}/com'
1180 localstatedir='${prefix}/var'
1181 includedir='${prefix}/include'
1182 oldincludedir='/usr/include'
1183 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1184 infodir='${datarootdir}/info'
1189 libdir='${exec_prefix}/lib'
1190 localedir='${datarootdir}/locale'
1191 mandir='${datarootdir}/man'
1197 # If the previous option needs an argument, assign it.
1198 if test -n "$ac_prev"; then
1199 eval $ac_prev=\$ac_option
1205 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1210 # Accept the important Cygnus configure options, so we can diagnose typos.
1212 case $ac_dashdash$ac_option in
1216 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1218 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1219 bindir=$ac_optarg ;;
1221 -build | --build | --buil | --bui | --bu)
1222 ac_prev=build_alias ;;
1223 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1224 build_alias=$ac_optarg ;;
1226 -cache-file | --cache-file | --cache-fil | --cache-fi \
1227 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1228 ac_prev=cache_file ;;
1229 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1230 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1231 cache_file=$ac_optarg ;;
1233 --config-cache | -C)
1234 cache_file=config.cache ;;
1236 -datadir | --datadir | --datadi | --datad)
1238 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1239 datadir=$ac_optarg ;;
1241 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1242 | --dataroo | --dataro | --datar)
1243 ac_prev=datarootdir ;;
1244 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1245 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1246 datarootdir=$ac_optarg ;;
1248 -disable-* | --disable-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid feature name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "enable_$ac_useropt"
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1262 eval enable_$ac_useropt=no ;;
1264 -docdir | --docdir | --docdi | --doc | --do)
1266 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1267 docdir=$ac_optarg ;;
1269 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1271 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1272 dvidir=$ac_optarg ;;
1274 -enable-* | --enable-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid feature name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "enable_$ac_useropt"
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval enable_$ac_useropt=\$ac_optarg ;;
1290 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1291 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1292 | --exec | --exe | --ex)
1293 ac_prev=exec_prefix ;;
1294 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1295 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1296 | --exec=* | --exe=* | --ex=*)
1297 exec_prefix=$ac_optarg ;;
1299 -gas | --gas | --ga | --g)
1300 # Obsolete; use --with-gas.
1303 -help | --help | --hel | --he | -h)
1304 ac_init_help=long ;;
1305 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1306 ac_init_help=recursive ;;
1307 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1308 ac_init_help=short ;;
1310 -host | --host | --hos | --ho)
1311 ac_prev=host_alias ;;
1312 -host=* | --host=* | --hos=* | --ho=*)
1313 host_alias=$ac_optarg ;;
1315 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1317 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1319 htmldir=$ac_optarg ;;
1321 -includedir | --includedir | --includedi | --included | --include \
1322 | --includ | --inclu | --incl | --inc)
1323 ac_prev=includedir ;;
1324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1325 | --includ=* | --inclu=* | --incl=* | --inc=*)
1326 includedir=$ac_optarg ;;
1328 -infodir | --infodir | --infodi | --infod | --info | --inf)
1330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1331 infodir=$ac_optarg ;;
1333 -libdir | --libdir | --libdi | --libd)
1335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1336 libdir=$ac_optarg ;;
1338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1339 | --libexe | --libex | --libe)
1340 ac_prev=libexecdir ;;
1341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1342 | --libexe=* | --libex=* | --libe=*)
1343 libexecdir=$ac_optarg ;;
1345 -localedir | --localedir | --localedi | --localed | --locale)
1346 ac_prev=localedir ;;
1347 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1348 localedir=$ac_optarg ;;
1350 -localstatedir | --localstatedir | --localstatedi | --localstated \
1351 | --localstate | --localstat | --localsta | --localst | --locals)
1352 ac_prev=localstatedir ;;
1353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1354 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1355 localstatedir=$ac_optarg ;;
1357 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1359 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1360 mandir=$ac_optarg ;;
1362 -nfp | --nfp | --nf)
1363 # Obsolete; use --without-fp.
1366 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1367 | --no-cr | --no-c | -n)
1370 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1371 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1374 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1375 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1376 | --oldin | --oldi | --old | --ol | --o)
1377 ac_prev=oldincludedir ;;
1378 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1379 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1380 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1381 oldincludedir=$ac_optarg ;;
1383 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1385 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1386 prefix=$ac_optarg ;;
1388 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1389 | --program-pre | --program-pr | --program-p)
1390 ac_prev=program_prefix ;;
1391 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1392 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1393 program_prefix=$ac_optarg ;;
1395 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1396 | --program-suf | --program-su | --program-s)
1397 ac_prev=program_suffix ;;
1398 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1399 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1400 program_suffix=$ac_optarg ;;
1402 -program-transform-name | --program-transform-name \
1403 | --program-transform-nam | --program-transform-na \
1404 | --program-transform-n | --program-transform- \
1405 | --program-transform | --program-transfor \
1406 | --program-transfo | --program-transf \
1407 | --program-trans | --program-tran \
1408 | --progr-tra | --program-tr | --program-t)
1409 ac_prev=program_transform_name ;;
1410 -program-transform-name=* | --program-transform-name=* \
1411 | --program-transform-nam=* | --program-transform-na=* \
1412 | --program-transform-n=* | --program-transform-=* \
1413 | --program-transform=* | --program-transfor=* \
1414 | --program-transfo=* | --program-transf=* \
1415 | --program-trans=* | --program-tran=* \
1416 | --progr-tra=* | --program-tr=* | --program-t=*)
1417 program_transform_name=$ac_optarg ;;
1419 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1421 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1422 pdfdir=$ac_optarg ;;
1424 -psdir | --psdir | --psdi | --psd | --ps)
1426 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1430 | -silent | --silent | --silen | --sile | --sil)
1433 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1435 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1437 sbindir=$ac_optarg ;;
1439 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1440 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1441 | --sharedst | --shareds | --shared | --share | --shar \
1443 ac_prev=sharedstatedir ;;
1444 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1445 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1446 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1448 sharedstatedir=$ac_optarg ;;
1450 -site | --site | --sit)
1452 -site=* | --site=* | --sit=*)
1455 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1457 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1458 srcdir=$ac_optarg ;;
1460 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1461 | --syscon | --sysco | --sysc | --sys | --sy)
1462 ac_prev=sysconfdir ;;
1463 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1464 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1465 sysconfdir=$ac_optarg ;;
1467 -target | --target | --targe | --targ | --tar | --ta | --t)
1468 ac_prev=target_alias ;;
1469 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1470 target_alias=$ac_optarg ;;
1472 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1475 -version | --version | --versio | --versi | --vers | -V)
1476 ac_init_version=: ;;
1479 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482 as_fn_error $? "invalid package name: $ac_useropt"
1483 ac_useropt_orig=$ac_useropt
1484 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1489 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1490 ac_unrecognized_sep=', ';;
1492 eval with_$ac_useropt=\$ac_optarg ;;
1494 -without-* | --without-*)
1495 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1496 # Reject names that are not valid shell variable names.
1497 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1498 as_fn_error $? "invalid package name: $ac_useropt"
1499 ac_useropt_orig=$ac_useropt
1500 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501 case $ac_user_opts in
1505 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1506 ac_unrecognized_sep=', ';;
1508 eval with_$ac_useropt=no ;;
1511 # Obsolete; use --with-x.
1514 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1515 | --x-incl | --x-inc | --x-in | --x-i)
1516 ac_prev=x_includes ;;
1517 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1518 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1519 x_includes=$ac_optarg ;;
1521 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1522 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1523 ac_prev=x_libraries ;;
1524 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1525 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1526 x_libraries=$ac_optarg ;;
1528 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1529 Try \`$0 --help' for more information"
1533 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1534 # Reject names that are not valid shell variable names.
1535 case $ac_envvar in #(
1536 '' | [0-9]* | *[!_$as_cr_alnum]* )
1537 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1539 eval $ac_envvar=\$ac_optarg
1540 export $ac_envvar ;;
1543 # FIXME: should be removed in autoconf 3.0.
1544 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1545 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1546 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1547 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1553 if test -n "$ac_prev"; then
1554 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1555 as_fn_error $? "missing argument to $ac_option"
1558 if test -n "$ac_unrecognized_opts"; then
1559 case $enable_option_checking in
1561 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1562 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1566 # Check all directory arguments for consistency.
1567 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1568 datadir sysconfdir sharedstatedir localstatedir includedir \
1569 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1570 libdir localedir mandir
1572 eval ac_val=\$$ac_var
1573 # Remove trailing slashes.
1576 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1577 eval $ac_var=\$ac_val;;
1579 # Be sure to have absolute directory names.
1581 [\\/$]* | ?:[\\/]* ) continue;;
1582 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1584 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1587 # There might be people who depend on the old broken behavior: `$host'
1588 # used to hold the argument of --host etc.
1589 # FIXME: To remove some day.
1592 target=$target_alias
1594 # FIXME: To remove some day.
1595 if test "x$host_alias" != x; then
1596 if test "x$build_alias" = x; then
1597 cross_compiling=maybe
1598 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1599 If a cross compiler is detected then cross compile mode will be used" >&2
1600 elif test "x$build_alias" != "x$host_alias"; then
1606 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1608 test "$silent" = yes && exec 6>/dev/null
1611 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1612 ac_ls_di=`ls -di .` &&
1613 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1614 as_fn_error $? "working directory cannot be determined"
1615 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1616 as_fn_error $? "pwd does not report name of working directory"
1619 # Find the source files, if location was not specified.
1620 if test -z "$srcdir"; then
1621 ac_srcdir_defaulted=yes
1622 # Try the directory containing this script, then the parent directory.
1623 ac_confdir=`$as_dirname -- "$as_myself" ||
1624 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1625 X"$as_myself" : 'X\(//\)[^/]' \| \
1626 X"$as_myself" : 'X\(//\)$' \| \
1627 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1628 $as_echo X"$as_myself" |
1629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1647 if test ! -r "$srcdir/$ac_unique_file"; then
1651 ac_srcdir_defaulted=no
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1654 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1655 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1657 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1659 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1661 # When building in place, set srcdir=.
1662 if test "$ac_abs_confdir" = "$ac_pwd"; then
1665 # Remove unnecessary trailing slashes from srcdir.
1666 # Double slashes in file names in object file debugging info
1667 # mess up M-x gdb in Emacs.
1669 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1671 for ac_var in $ac_precious_vars; do
1672 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1673 eval ac_env_${ac_var}_value=\$${ac_var}
1674 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1675 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1679 # Report the --help message.
1681 if test "$ac_init_help" = "long"; then
1682 # Omit some internal or obsolete options to make the list less imposing.
1683 # This message is too long to be a string in the A/UX 3.1 sh.
1685 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1687 Usage: $0 [OPTION]... [VAR=VALUE]...
1689 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1690 VAR=VALUE. See below for descriptions of some of the useful variables.
1692 Defaults for the options are specified in brackets.
1695 -h, --help display this help and exit
1696 --help=short display options specific to this package
1697 --help=recursive display the short help of all the included packages
1698 -V, --version display version information and exit
1699 -q, --quiet, --silent do not print \`checking ...' messages
1700 --cache-file=FILE cache test results in FILE [disabled]
1701 -C, --config-cache alias for \`--cache-file=config.cache'
1702 -n, --no-create do not create output files
1703 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1705 Installation directories:
1706 --prefix=PREFIX install architecture-independent files in PREFIX
1707 [$ac_default_prefix]
1708 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1711 By default, \`make install' will install all the files in
1712 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1713 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1714 for instance \`--prefix=\$HOME'.
1716 For better control, use the options below.
1718 Fine tuning of the installation directories:
1719 --bindir=DIR user executables [EPREFIX/bin]
1720 --sbindir=DIR system admin executables [EPREFIX/sbin]
1721 --libexecdir=DIR program executables [EPREFIX/libexec]
1722 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1723 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1724 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1725 --libdir=DIR object code libraries [EPREFIX/lib]
1726 --includedir=DIR C header files [PREFIX/include]
1727 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1728 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1729 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1730 --infodir=DIR info documentation [DATAROOTDIR/info]
1731 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1732 --mandir=DIR man documentation [DATAROOTDIR/man]
1733 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1734 --htmldir=DIR html documentation [DOCDIR]
1735 --dvidir=DIR dvi documentation [DOCDIR]
1736 --pdfdir=DIR pdf documentation [DOCDIR]
1737 --psdir=DIR ps documentation [DOCDIR]
1743 --x-includes=DIR X include files are in DIR
1744 --x-libraries=DIR X library files are in DIR
1747 --build=BUILD configure for building on BUILD [guessed]
1748 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1752 if test -n "$ac_init_help"; then
1753 case $ac_init_help in
1754 short | recursive ) echo "Configuration of bacula 5.1.14:";;
1759 --disable-option-checking ignore unrecognized --enable/--with options
1760 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1761 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1762 --enable-libtool enable building using GNU libtool [default=yes]
1763 --enable-shared[=PKGS] build shared libraries [default=yes]
1764 --enable-static[=PKGS] build static libraries [default=no]
1765 --enable-fast-install[=PKGS]
1766 optimize for fast installation [default=yes]
1767 --disable-libtool-lock avoid locking (might break parallel builds)
1768 --enable-includes enable installing of include files [default=no]
1769 --disable-nls do not use Native Language Support
1770 --disable-rpath do not hardcode runtime library paths
1771 --enable-gnome enable build of bgnome-console GUI [default=no]
1772 --enable-bat enable build of bat Qt4 GUI [default=no]
1773 --enable-bwx-console enable build of wxWidgets console [default=no]
1774 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1776 --enable-smartalloc enable smartalloc debugging support [default=no]
1777 --enable-lockmgr enable lock manager support [default=no]
1778 --enable-static-tools enable static tape tools [default=no]
1779 --enable-static-fd enable static File daemon [default=no]
1780 --enable-static-sd enable static Storage daemon [default=no]
1781 --enable-static-dir enable static Director [default=no]
1782 --enable-static-cons enable static Console [default=no]
1783 --enable-client-only build client (File daemon) only [default=no]
1784 --enable-build-dird enable building of dird (Director) [default=yes]
1785 --enable-build-stored enable building of stored (Storage daemon)
1787 --disable-conio disable conio support [default=no]
1788 --enable-ipv6 enable ipv6 support [default=yes]
1789 --disable-readline disable readline support [default=yes]
1790 --enable-batch-insert enable the DB batch insert code [default=yes]
1791 --disable-largefile omit support for large files
1792 --disable-acl disable acl support [default=auto]
1793 --disable-xattr disable xattr support [default=auto]
1796 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1797 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1798 --with-pic try to use only PIC/non-PIC objects [default=use
1800 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1801 --with-gnu-ld assume the C compiler uses GNU ld default=no
1802 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1803 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1804 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1805 --without-libintl-prefix don't search for libintl in includedir and libdir
1806 --with-included-gettext use the GNU gettext library included here
1807 --with-readline[=DIR] specify readline library directory
1808 --with-python[=DIR] Include Python support. DIR is the Python base
1809 install directory, default is to search through a
1810 number of common places for the Python files.
1811 --with-tcp-wrappers[=DIR]
1812 enable tcpwrappers support
1813 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1814 --with-working-dir=PATH specify path of Bacula working directory
1815 --with-archivedir=PATH specify path of SD archive directory
1816 --with-basename=RESNAME specify base resource name for daemons
1817 --with-hostname=RESNAME specify host name for daemons
1818 --with-scriptdir=PATH specify path of Bacula scripts directory
1819 --with-bsrdir=PATH specify path of Bacula bsrs directory
1820 --with-logdir=PATH specify path of Bacula logs directory
1821 --with-plugindir=PATH specify path of Bacula plugins directory
1822 --with-dump-email=EMAIL dump email address
1823 --with-job-email=EMAIL job output email address
1824 --with-smtp-host=HOST SMTP mail host address
1825 --with-pid-dir=PATH specify location of Bacula pid files
1826 --with-subsys-dir=PATH specify location of Bacula subsys file
1827 --with-baseport=PORT specify base port address for daemons
1828 --with-dir-password=PASSWORD
1829 specify Director's password
1830 --with-fd-password=PASSWORD
1831 specify Client's password
1832 --with-sd-password=PASSWORD
1833 specify Storage daemon's password
1834 --with-mon-dir-password=PASSWORD
1835 specify Director's password used by the monitor
1836 --with-mon-fd-password=PASSWORD
1837 specify Client's password used by the monitor
1838 --with-mon-sd-password=PASSWORD
1839 specify Storage daemon's password used by the
1841 --with-db-name=DBNAME specify database name [default=bacula]
1842 --with-db-user=UNAME specify database user [default=bacula]
1843 --with-db-password=PWD specify database password [default=*none*]
1844 --with-db-port=DBPORT specify a database port [default=null]
1845 --with-dir-user=USER specify user for Director daemon
1846 --with-dir-group=GROUP specify group for Director daemon
1847 --with-sd-user=USER specify user for Storage daemon
1848 --with-sd-group=GROUP specify group for Storage daemon
1849 --with-fd-user=USER specify user for File daemon
1850 --with-fd-group=GROUP specify group for File daemon
1851 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1852 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1853 base install directory, [default=/usr/local/pgsql]
1854 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1855 directory, default is to search through a number of
1856 common places for the MySQL files.
1857 --with-embedded-mysql[=DIR]
1858 Include MySQL support. DIR is the MySQL base install
1859 directory, default is to search through a number of
1860 common places for the MySQL files.
1861 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1862 install directory, default is to search through a
1863 number of common places for the SQLite3 files.
1864 --with-x use the X Window System
1866 Some influential environment variables:
1867 CC C compiler command
1868 CFLAGS C compiler flags
1869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1870 nonstandard directory <lib dir>
1871 LIBS libraries to pass to the linker, e.g. -l<library>
1872 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1873 you have headers in a nonstandard directory <include dir>
1874 CXX C++ compiler command
1875 CXXFLAGS C++ compiler flags
1877 WXCONFIG wx-config command. On some systems, you must set it to
1878 wx-config-2.6 to use wxWidgets 2.6.
1879 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1880 CXXCPP C++ preprocessor
1881 XMKMF Path to xmkmf, Makefile generator for X Window System
1883 Use these variables to override the choices made by `configure' or to help
1884 it to find libraries and programs with nonstandard names/locations.
1886 Report bugs to the package provider.
1891 if test "$ac_init_help" = "recursive"; then
1892 # If there are subdirs, report their specific --help.
1893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1894 test -d "$ac_dir" ||
1895 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1903 # A ".." for each directory in $ac_dir_suffix.
1904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1905 case $ac_top_builddir_sub in
1906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1910 ac_abs_top_builddir=$ac_pwd
1911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1912 # for backward compatibility:
1913 ac_top_builddir=$ac_top_build_prefix
1916 .) # We are building in place.
1918 ac_top_srcdir=$ac_top_builddir_sub
1919 ac_abs_top_srcdir=$ac_pwd ;;
1920 [\\/]* | ?:[\\/]* ) # Absolute name.
1921 ac_srcdir=$srcdir$ac_dir_suffix;
1922 ac_top_srcdir=$srcdir
1923 ac_abs_top_srcdir=$srcdir ;;
1925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1926 ac_top_srcdir=$ac_top_build_prefix$srcdir
1927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1931 cd "$ac_dir" || { ac_status=$?; continue; }
1932 # Check for guested configure.
1933 if test -f "$ac_srcdir/configure.gnu"; then
1935 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1936 elif test -f "$ac_srcdir/configure"; then
1938 $SHELL "$ac_srcdir/configure" --help=recursive
1940 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1942 cd "$ac_pwd" || { ac_status=$?; break; }
1946 test -n "$ac_init_help" && exit $ac_status
1947 if $ac_init_version; then
1949 bacula configure 5.1.14
1950 generated by GNU Autoconf 2.68
1952 Copyright (C) 2010 Free Software Foundation, Inc.
1953 This configure script is free software; the Free Software Foundation
1954 gives unlimited permission to copy, distribute and modify it.
1959 ## ------------------------ ##
1960 ## Autoconf initialization. ##
1961 ## ------------------------ ##
1963 # ac_fn_c_try_compile LINENO
1964 # --------------------------
1965 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_compile ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext
1970 if { { ac_try="$ac_compile"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_compile") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest.$ac_objext; then :
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_c_try_compile
2001 # ac_fn_cxx_try_compile LINENO
2002 # ----------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext
2008 if { { ac_try="$ac_compile"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_compile") 2>conftest.err
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest.$ac_objext; then :
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_cxx_try_compile
2039 # ac_fn_c_try_cpp LINENO
2040 # ----------------------
2041 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } > conftest.i && {
2061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2076 # ac_fn_c_try_link LINENO
2077 # -----------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 $as_test_x conftest$ac_exeext
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2120 } # ac_fn_c_try_link
2122 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2123 # -------------------------------------------------------
2124 # Tests whether HEADER exists and can be compiled using the include files in
2125 # INCLUDES, setting the cache variable VAR accordingly.
2126 ac_fn_c_check_header_compile ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_header_compile
2153 # ac_fn_c_try_run LINENO
2154 # ----------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 ac_retval=$ac_status
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
2195 # ac_fn_c_check_func LINENO FUNC VAR
2196 # ----------------------------------
2197 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2198 ac_fn_c_check_func ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2210 #define $2 innocuous_$2
2212 /* System header to define __stub macros and hopefully few prototypes,
2213 which can conflict with char $2 (); below.
2214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2215 <limits.h> exists even on freestanding compilers. */
2218 # include <limits.h>
2220 # include <assert.h>
2225 /* Override any GCC internal prototype to avoid an error.
2226 Use char because int might match the return type of a GCC
2227 builtin and then its argument prototype would still apply. */
2232 /* The GNU C library defines this for functions which it implements
2233 to always fail with ENOSYS. Some functions are actually named
2234 something starting with __ and the normal name is an alias. */
2235 #if defined __stub_$2 || defined __stub___$2
2247 if ac_fn_c_try_link "$LINENO"; then :
2252 rm -f core conftest.err conftest.$ac_objext \
2253 conftest$ac_exeext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_func
2262 # ac_fn_cxx_try_cpp LINENO
2263 # ------------------------
2264 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2265 ac_fn_cxx_try_cpp ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { { ac_try="$ac_cpp conftest.$ac_ext"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2277 if test -s conftest.err; then
2278 grep -v '^ *+' conftest.err >conftest.er1
2279 cat conftest.er1 >&5
2280 mv -f conftest.er1 conftest.err
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; } > conftest.i && {
2284 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2285 test ! -s conftest.err
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 as_fn_set_status $ac_retval
2297 } # ac_fn_cxx_try_cpp
2299 # ac_fn_cxx_try_link LINENO
2300 # -------------------------
2301 # Try to link conftest.$ac_ext, and return whether this succeeded.
2302 ac_fn_cxx_try_link ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 rm -f conftest.$ac_objext conftest$ac_exeext
2306 if { { ac_try="$ac_link"
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 $as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_link") 2>conftest.err
2315 if test -s conftest.err; then
2316 grep -v '^ *+' conftest.err >conftest.er1
2317 cat conftest.er1 >&5
2318 mv -f conftest.er1 conftest.err
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } && {
2322 test -z "$ac_cxx_werror_flag" ||
2323 test ! -s conftest.err
2324 } && test -s conftest$ac_exeext && {
2325 test "$cross_compiling" = yes ||
2326 $as_test_x conftest$ac_exeext
2330 $as_echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2335 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2336 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2337 # interfere with the next link command; also delete a directory that is
2338 # left behind by Apple's compiler. We do this before executing the actions.
2339 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 as_fn_set_status $ac_retval
2343 } # ac_fn_cxx_try_link
2345 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2346 # -------------------------------------------
2347 # Tests whether TYPE exists after having included INCLUDES, setting cache
2348 # variable VAR accordingly.
2349 ac_fn_c_check_type ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2353 $as_echo_n "checking for $2... " >&6; }
2354 if eval \${$3+:} false; then :
2355 $as_echo_n "(cached) " >&6
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2383 if ac_fn_c_try_compile "$LINENO"; then :
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397 } # ac_fn_c_check_type
2399 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2400 # -------------------------------------------------------
2401 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2402 # the include files in INCLUDES and setting the cache variable VAR
2404 ac_fn_c_check_header_mongrel ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 if eval \${$3+:} false; then :
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411 $as_echo_n "(cached) " >&6
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2417 # Is the header compilable?
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2419 $as_echo_n "checking $2 usability... " >&6; }
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_header_compiler=yes
2428 ac_header_compiler=no
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2432 $as_echo "$ac_header_compiler" >&6; }
2434 # Is the header present?
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2436 $as_echo_n "checking $2 presence... " >&6; }
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2441 if ac_fn_c_try_cpp "$LINENO"; then :
2442 ac_header_preproc=yes
2444 ac_header_preproc=no
2446 rm -f conftest.err conftest.i conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2448 $as_echo "$ac_header_preproc" >&6; }
2450 # So? What about this header?
2451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2454 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2456 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2460 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2462 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2464 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2466 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2468 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if eval \${$3+:} false; then :
2474 $as_echo_n "(cached) " >&6
2476 eval "$3=\$ac_header_compiler"
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2484 } # ac_fn_c_check_header_mongrel
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2491 ac_fn_c_compute_int ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2544 static int test_array [1 - 2 * !(($2) < 0)];
2551 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 if ac_fn_c_try_compile "$LINENO"; then :
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2624 FILE *f = fopen ("conftest.val", "w");
2629 long int i = longval ();
2632 fprintf (f, "%ld", i);
2636 unsigned long int i = ulongval ();
2639 fprintf (f, "%lu", i);
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660 as_fn_set_status $ac_retval
2662 } # ac_fn_c_compute_int
2664 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2665 # ----------------------------------------------------
2666 # Tries to find if the field MEMBER exists in type AGGR, after including
2667 # INCLUDES, setting cache variable VAR accordingly.
2668 ac_fn_c_check_member ()
2670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2672 $as_echo_n "checking for $2.$3... " >&6; }
2673 if eval \${$4+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2689 if ac_fn_c_try_compile "$LINENO"; then :
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2699 if (sizeof ac_aggr.$3)
2705 if ac_fn_c_try_compile "$LINENO"; then :
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 } # ac_fn_c_check_member
2721 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2722 # ---------------------------------------------
2723 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2725 ac_fn_c_check_decl ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 as_decl_name=`echo $2|sed 's/ *(.*//'`
2729 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2731 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2732 if eval \${$3+:} false; then :
2733 $as_echo_n "(cached) " >&6
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2741 #ifndef $as_decl_name
2743 (void) $as_decl_use;
2745 (void) $as_decl_name;
2753 if ac_fn_c_try_compile "$LINENO"; then :
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765 } # ac_fn_c_check_decl
2767 # ac_fn_cxx_try_run LINENO
2768 # ------------------------
2769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2770 # that executables *can* be run.
2771 ac_fn_cxx_try_run ()
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 if { { ac_try="$ac_link"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780 $as_echo "$ac_try_echo"; } >&5
2781 (eval "$ac_link") 2>&5
2783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2785 { { case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_try") 2>&5
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; }; }; then :
2797 $as_echo "$as_me: program exited with status $ac_status" >&5
2798 $as_echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 ac_retval=$ac_status
2803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 as_fn_set_status $ac_retval
2807 } # ac_fn_cxx_try_run
2809 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2810 # ---------------------------------------------------------
2811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2812 # the include files in INCLUDES and setting the cache variable VAR
2814 ac_fn_cxx_check_header_mongrel ()
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 if eval \${$3+:} false; then :
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2819 $as_echo_n "checking for $2... " >&6; }
2820 if eval \${$3+:} false; then :
2821 $as_echo_n "(cached) " >&6
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2827 # Is the header compilable?
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2829 $as_echo_n "checking $2 usability... " >&6; }
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2835 if ac_fn_cxx_try_compile "$LINENO"; then :
2836 ac_header_compiler=yes
2838 ac_header_compiler=no
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2842 $as_echo "$ac_header_compiler" >&6; }
2844 # Is the header present?
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2846 $as_echo_n "checking $2 presence... " >&6; }
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2851 if ac_fn_cxx_try_cpp "$LINENO"; then :
2852 ac_header_preproc=yes
2854 ac_header_preproc=no
2856 rm -f conftest.err conftest.i conftest.$ac_ext
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2858 $as_echo "$ac_header_preproc" >&6; }
2860 # So? What about this header?
2861 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2872 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2876 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2882 $as_echo_n "checking for $2... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 eval "$3=\$ac_header_compiler"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2890 $as_echo "$ac_res" >&6; }
2892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2894 } # ac_fn_cxx_check_header_mongrel
2895 cat >config.log <<_ACEOF
2896 This file contains any messages produced by compilers while
2897 running configure, to aid debugging if configure makes a mistake.
2899 It was created by bacula $as_me 5.1.14, which was
2900 generated by GNU Autoconf 2.68. Invocation command line was
2912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 $as_echo "PATH: $as_dir"
2952 # Keep a trace of the command line.
2953 # Strip out --no-create and --no-recursion so they do not pile up.
2954 # Strip out --silent because we don't want to record it for future runs.
2955 # Also quote any args containing shell meta-characters.
2956 # Make two passes to allow for proper duplicate-argument suppression.
2960 ac_must_keep_next=false
2966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2968 | -silent | --silent | --silen | --sile | --sil)
2971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2976 as_fn_append ac_configure_args1 " '$ac_arg'"
2977 if test $ac_must_keep_next = true; then
2978 ac_must_keep_next=false # Got value, back to normal.
2981 *=* | --config-cache | -C | -disable-* | --disable-* \
2982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2984 | -with-* | --with-* | -without-* | --without-* | --x)
2985 case "$ac_configure_args0 " in
2986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2989 -* ) ac_must_keep_next=true ;;
2992 as_fn_append ac_configure_args " '$ac_arg'"
2997 { ac_configure_args0=; unset ac_configure_args0;}
2998 { ac_configure_args1=; unset ac_configure_args1;}
3000 # When interrupted or exit'd, cleanup temporary files, and complete
3001 # config.log. We remove comments because anyway the quotes in there
3002 # would cause problems or look ugly.
3003 # WARNING: Use '\'' to represent an apostrophe within the trap.
3004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3005 trap 'exit_status=$?
3006 # Save into config.log some information that might help in debugging.
3010 $as_echo "## ---------------- ##
3011 ## Cache variables. ##
3012 ## ---------------- ##"
3014 # The following way of writing the cache mishandles newlines in values,
3016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3017 eval ac_val=\$$ac_var
3021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3025 _ | IFS | as_nl) ;; #(
3026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3027 *) { eval $ac_var=; unset $ac_var;} ;;
3032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3033 *${as_nl}ac_space=\ *)
3035 "s/'\''/'\''\\\\'\'''\''/g;
3036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3046 $as_echo "## ----------------- ##
3047 ## Output variables. ##
3048 ## ----------------- ##"
3050 for ac_var in $ac_subst_vars
3052 eval ac_val=\$$ac_var
3054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3056 $as_echo "$ac_var='\''$ac_val'\''"
3060 if test -n "$ac_subst_files"; then
3061 $as_echo "## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##"
3065 for ac_var in $ac_subst_files
3067 eval ac_val=\$$ac_var
3069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3071 $as_echo "$ac_var='\''$ac_val'\''"
3076 if test -s confdefs.h; then
3077 $as_echo "## ----------- ##
3084 test "$ac_signal" != 0 &&
3085 $as_echo "$as_me: caught signal $ac_signal"
3086 $as_echo "$as_me: exit $exit_status"
3088 rm -f core *.core core.conftest.* &&
3089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3092 for ac_signal in 1 2 13 15; do
3093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3098 rm -f -r conftest* confdefs.h
3100 $as_echo "/* confdefs.h */" > confdefs.h
3102 # Predefined preprocessor variables.
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_NAME "$PACKAGE_NAME"
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_STRING "$PACKAGE_STRING"
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_URL "$PACKAGE_URL"
3129 # Let the site file select an alternate cache file if it wants to.
3130 # Prefer an explicitly selected file to automatically selected ones.
3133 if test -n "$CONFIG_SITE"; then
3134 # We do not want a PATH search for config.site.
3135 case $CONFIG_SITE in #((
3136 -*) ac_site_file1=./$CONFIG_SITE;;
3137 */*) ac_site_file1=$CONFIG_SITE;;
3138 *) ac_site_file1=./$CONFIG_SITE;;
3140 elif test "x$prefix" != xNONE; then
3141 ac_site_file1=$prefix/share/config.site
3142 ac_site_file2=$prefix/etc/config.site
3144 ac_site_file1=$ac_default_prefix/share/config.site
3145 ac_site_file2=$ac_default_prefix/etc/config.site
3147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3149 test "x$ac_site_file" = xNONE && continue
3150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3153 sed 's/^/| /' "$ac_site_file" >&5
3155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "failed to load site script $ac_site_file
3158 See \`config.log' for more details" "$LINENO" 5; }
3162 if test -r "$cache_file"; then
3163 # Some versions of bash will fail to source /dev/null (special files
3164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170 *) . "./$cache_file";;
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3179 as_fn_append ac_header_list " stdlib.h"
3180 as_fn_append ac_header_list " unistd.h"
3181 as_fn_append ac_header_list " sys/param.h"
3182 # Check that the precious variables saved in the cache have kept the same
3184 ac_cache_corrupted=false
3185 for ac_var in $ac_precious_vars; do
3186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3187 eval ac_new_set=\$ac_env_${ac_var}_set
3188 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3189 eval ac_new_val=\$ac_env_${ac_var}_value
3190 case $ac_old_set,$ac_new_set in
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3193 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3194 ac_cache_corrupted=: ;;
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3197 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3198 ac_cache_corrupted=: ;;
3201 if test "x$ac_old_val" != "x$ac_new_val"; then
3202 # differences in whitespace do not lead to failure.
3203 ac_old_val_w=`echo x $ac_old_val`
3204 ac_new_val_w=`echo x $ac_new_val`
3205 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3207 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3208 ac_cache_corrupted=:
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3211 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3212 eval $ac_var=\$ac_old_val
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3215 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3217 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3220 # Pass precious variables to config.status.
3221 if test "$ac_new_set" = set; then
3223 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3224 *) ac_arg=$ac_var=$ac_new_val ;;
3226 case " $ac_configure_args " in
3227 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3228 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3232 if $ac_cache_corrupted; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3236 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3237 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3239 ## -------------------- ##
3240 ## Main body of script. ##
3241 ## -------------------- ##
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3260 if test -f "$ac_dir/install-sh"; then
3262 ac_install_sh="$ac_aux_dir/install-sh -c"
3264 elif test -f "$ac_dir/install.sh"; then
3266 ac_install_sh="$ac_aux_dir/install.sh -c"
3268 elif test -f "$ac_dir/shtool"; then
3270 ac_install_sh="$ac_aux_dir/shtool install -c"
3274 if test -z "$ac_aux_dir"; then
3275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3278 # These three variables are undocumented and unsupported,
3279 # and are intended to be withdrawn in a future Autoconf release.
3280 # They can cause serious problems if a builder's source tree is in a directory
3281 # whose full name contains unusual characters.
3282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3287 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3290 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3291 WIN32MAINDIR=${BUILD_DIR}
3292 WIN32TOPDIR=${TOP_DIR}
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_path_TRUEPRG+:} false; then :
3304 $as_echo_n "(cached) " >&6
3308 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 TRUEPRG=$ac_cv_path_TRUEPRG
3330 if test -n "$TRUEPRG"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3332 $as_echo "$TRUEPRG" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$TRUEPRG" && break
3341 test -n "$TRUEPRG" || TRUEPRG=":"
3343 for ac_prog in false
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_path_FALSEPRG+:} false; then :
3350 $as_echo_n "(cached) " >&6
3354 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 FALSEPRG=$ac_cv_path_FALSEPRG
3376 if test -n "$FALSEPRG"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3378 $as_echo "$FALSEPRG" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$FALSEPRG" && break
3387 test -n "$FALSEPRG" || FALSEPRG=":"
3392 if test "x$BACULA" != x; then
3393 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3395 BACULA=${BACULA:-Bacula}
3396 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3397 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3399 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3401 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3402 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3403 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3405 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3406 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3407 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3410 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3411 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3413 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3414 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3417 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3419 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3422 echo "configuring for ${BACULA} $VERSION ($DATE)"
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3470 if test -z "$ac_cv_prog_CC"; then
3472 # Extract the first word of "gcc", so it can be a program name with args.
3473 set dummy gcc; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_ac_ct_CC="gcc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3508 if test "x$ac_ct_CC" = x; then
3511 case $cross_compiling:$ac_tool_warned in
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned=yes ;;
3523 if test -z "$CC"; then
3524 if test -n "$ac_tool_prefix"; then
3525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}cc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3542 ac_cv_prog_CC="${ac_tool_prefix}cc"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3564 if test -z "$CC"; then
3565 # Extract the first word of "cc", so it can be a program name with args.
3566 set dummy cc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_CC+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CC"; then
3573 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3584 ac_prog_rejected=yes
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 if test $ac_prog_rejected = yes; then
3596 # We found a bogon in the path, so make sure we never use it.
3597 set dummy $ac_cv_prog_CC
3599 if test $# != 0; then
3600 # We chose a different compiler from the bogus one.
3601 # However, it has the same basename, so the bogon will be chosen
3602 # first if we set CC to just the basename; use the full file name.
3604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3620 if test -z "$CC"; then
3621 if test -n "$ac_tool_prefix"; then
3622 for ac_prog in cl.exe
3624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test -n "$CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3661 test -n "$CC" && break
3664 if test -z "$CC"; then
3666 for ac_prog in cl.exe
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy $ac_prog; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$ac_ct_CC"; then
3676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_ac_ct_CC="$ac_prog"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696 if test -n "$ac_ct_CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3698 $as_echo "$ac_ct_CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3705 test -n "$ac_ct_CC" && break
3708 if test "x$ac_ct_CC" = x; then
3711 case $cross_compiling:$ac_tool_warned in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3715 ac_tool_warned=yes ;;
3724 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "no acceptable C compiler found in \$PATH
3727 See \`config.log' for more details" "$LINENO" 5; }
3729 # Provide some information about the compiler.
3730 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3733 for ac_option in --version -v -V -qversion; do
3734 { { ac_try="$ac_compiler $ac_option >&5"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3743 if test -s conftest.err; then
3745 ... rest of stderr output deleted ...
3746 10q' conftest.err >conftest.er1
3747 cat conftest.er1 >&5
3749 rm -f conftest.er1 conftest.err
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 ac_clean_files_save=$ac_clean_files
3766 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3767 # Try to create an executable without -o first, disregard a.out.
3768 # It will help us diagnose broken compilers, and finding out an intuition
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3771 $as_echo_n "checking whether the C compiler works... " >&6; }
3772 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774 # The possible output files:
3775 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3778 for ac_file in $ac_files
3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3787 if { { ac_try="$ac_link_default"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link_default") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
3798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3799 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3800 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3801 # so that the user can short-circuit this test for compilers unknown to
3803 for ac_file in $ac_files ''
3805 test -f "$ac_file" || continue
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3810 # We found the default executable, but exeext='' is most
3814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818 # We set ac_cv_exeext here because the later test for it is not
3819 # safe: cross compilers may not add the suffix if given an `-o'
3820 # argument, so we may need to know it at that point already.
3821 # Even if this section looks crufty: it has the advantage of
3828 test "$ac_cv_exeext" = no && ac_cv_exeext=
3833 if test -z "$ac_file"; then :
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error 77 "C compiler cannot create executables
3842 See \`config.log' for more details" "$LINENO" 5; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845 $as_echo "yes" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3848 $as_echo_n "checking for C compiler default output file name... " >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3850 $as_echo "$ac_file" >&6; }
3851 ac_exeext=$ac_cv_exeext
3853 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3854 ac_clean_files=$ac_clean_files_save
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3856 $as_echo_n "checking for suffix of executables... " >&6; }
3857 if { { ac_try="$ac_link"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link") 2>&5
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; then :
3868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3869 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3870 # work properly (i.e., refer to `conftest.exe'), while it won't with
3872 for ac_file in conftest.exe conftest conftest.*; do
3873 test -f "$ac_file" || continue
3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3885 See \`config.log' for more details" "$LINENO" 5; }
3887 rm -f conftest conftest$ac_cv_exeext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3889 $as_echo "$ac_cv_exeext" >&6; }
3891 rm -f conftest.$ac_ext
3892 EXEEXT=$ac_cv_exeext
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3900 FILE *f = fopen ("conftest.out", "w");
3901 return ferror (f) || fclose (f) != 0;
3907 ac_clean_files="$ac_clean_files conftest.out"
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 if test "$cross_compiling" != yes; then
3913 { { ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }
3924 if { ac_try='./conftest$ac_cv_exeext'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe; then
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error $? "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details" "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3954 $as_echo_n "checking for suffix of object files... " >&6; }
3955 if ${ac_cv_objext+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 rm -f conftest.o conftest.obj
3970 if { { ac_try="$ac_compile"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_compile") 2>&5
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 for ac_file in conftest.o conftest.obj conftest.*; do
3982 test -f "$ac_file" || continue;
3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "cannot compute suffix of object files: cannot compile
3996 See \`config.log' for more details" "$LINENO" 5; }
3998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4001 $as_echo "$ac_cv_objext" >&6; }
4002 OBJEXT=$ac_cv_objext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4006 if ${ac_cv_c_compiler_gnu+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4034 if test $ac_compiler_gnu = yes; then
4039 ac_test_CFLAGS=${CFLAGS+set}
4040 ac_save_CFLAGS=$CFLAGS
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4043 if ${ac_cv_prog_cc_g+:} false; then :
4044 $as_echo_n "(cached) " >&6
4046 ac_save_c_werror_flag=$ac_c_werror_flag
4047 ac_c_werror_flag=yes
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_c_werror_flag=$ac_save_c_werror_flag
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4103 $as_echo "$ac_cv_prog_cc_g" >&6; }
4104 if test "$ac_test_CFLAGS" = set; then
4105 CFLAGS=$ac_save_CFLAGS
4106 elif test $ac_cv_prog_cc_g = yes; then
4107 if test "$GCC" = yes; then
4113 if test "$GCC" = yes; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4120 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4121 if ${ac_cv_prog_cc_c89+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_cv_prog_cc_c89=no
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 #include <sys/types.h>
4131 #include <sys/stat.h>
4132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4133 struct buf { int x; };
4134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4135 static char *e (p, i)
4141 static char *f (char * (*g) (char **, int), char **p, ...)
4146 s = g (p, va_arg (v,int));
4151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4152 function prototypes and stuff, but not '\xHH' hex character constants.
4153 These don't provoke an error unfortunately, instead are silently treated
4154 as 'x'. The following induces an error, until -std is added to get
4155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4156 array size at least. It's necessary to write '\x00'==0 to get something
4157 that's true only with -std. */
4158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4161 inside strings and character constants. */
4163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165 int test (int i, double x);
4166 struct s1 {int (*f) (int a);};
4167 struct s2 {int (*f) (double a);};
4168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 CC="$ac_save_CC $ac_arg"
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_prog_cc_c89=$ac_arg
4186 rm -f core conftest.err conftest.$ac_objext
4187 test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 rm -f conftest.$ac_ext
4194 case "x$ac_cv_prog_cc_c89" in
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4197 $as_echo "none needed" >&6; } ;;
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4200 $as_echo "unsupported" >&6; } ;;
4202 CC="$CC $ac_cv_prog_cc_c89"
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4204 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 ac_cpp='$CXXCPP $CPPFLAGS'
4218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4221 if test -z "$CXX"; then
4222 if test -n "$CCC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_CXX+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 if test -n "$CXX"; then
4236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 if test -n "$CXX"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4258 $as_echo "$CXX" >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4265 test -n "$CXX" && break
4268 if test -z "$CXX"; then
4270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -n "$ac_ct_CXX"; then
4280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_ac_ct_CXX="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4300 if test -n "$ac_ct_CXX"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4302 $as_echo "$ac_ct_CXX" >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$ac_ct_CXX" && break
4312 if test "x$ac_ct_CXX" = x; then
4315 case $cross_compiling:$ac_tool_warned in
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319 ac_tool_warned=yes ;;
4327 # Provide some information about the compiler.
4328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4331 for ac_option in --version -v -V -qversion; do
4332 { { ac_try="$ac_compiler $ac_option >&5"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4341 if test -s conftest.err; then
4343 ... rest of stderr output deleted ...
4344 10q' conftest.err >conftest.er1
4345 cat conftest.er1 >&5
4347 rm -f conftest.er1 conftest.err
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4353 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4354 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4355 $as_echo_n "(cached) " >&6
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4371 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4381 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4382 if test $ac_compiler_gnu = yes; then
4387 ac_test_CXXFLAGS=${CXXFLAGS+set}
4388 ac_save_CXXFLAGS=$CXXFLAGS
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4390 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4391 if ${ac_cv_prog_cxx_g+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4395 ac_cxx_werror_flag=yes
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4410 ac_cv_prog_cxx_g=yes
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4424 if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4440 if ac_fn_cxx_try_compile "$LINENO"; then :
4441 ac_cv_prog_cxx_g=yes
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4451 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4452 if test "$ac_test_CXXFLAGS" = set; then
4453 CXXFLAGS=$ac_save_CXXFLAGS
4454 elif test $ac_cv_prog_cxx_g = yes; then
4455 if test "$GXX" = yes; then
4461 if test "$GXX" = yes; then
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 if test "x$CC" != xcc; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4475 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4478 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4480 set dummy $CC; ac_cc=`$as_echo "$2" |
4481 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4496 # Make sure it works both with $CC and with simple cc.
4497 # We do the test twice because some compilers refuse to overwrite an
4498 # existing .o file with -o, though they will create one.
4499 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4501 if { { case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507 (eval "$ac_try") 2>&5
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; } &&
4511 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_try") 2>&5
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; };
4522 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4523 if test "x$CC" != xcc; then
4524 # Test first that cc exists at all.
4525 if { ac_try='cc -c conftest.$ac_ext >&5'
4526 { { case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_try") 2>&5
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; }; then
4536 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4538 if { { case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_try") 2>&5
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; } &&
4548 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_try") 2>&5
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; };
4562 # cc exists but doesn't like -o.
4563 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4568 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4570 rm -f core conftest*
4573 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575 $as_echo "yes" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4580 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4590 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4591 # On Suns, sometimes $CPP names a directory.
4592 if test -n "$CPP" && test -d "$CPP"; then
4595 if test -z "$CPP"; then
4596 if ${ac_cv_prog_CPP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 # Double quotes because CPP needs to be expanded
4600 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4603 for ac_c_preproc_warn_flag in '' yes
4605 # Use a header file that comes with gcc, so configuring glibc
4606 # with a fresh cross-compiler works.
4607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 # <limits.h> exists even on freestanding compilers.
4609 # On the NeXT, cc -E runs the code through the compiler's parser,
4610 # not just through cpp. "Syntax error" is here to catch this case.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4614 # include <limits.h>
4616 # include <assert.h>
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4623 # Broken: fails on valid input.
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4628 # OK, works on sane cases. Now check whether nonexistent headers
4629 # can be detected and how.
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #include <ac_nonexistent.h>
4634 if ac_fn_c_try_cpp "$LINENO"; then :
4635 # Broken: success on invalid input.
4638 # Passes both tests.
4642 rm -f conftest.err conftest.i conftest.$ac_ext
4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646 rm -f conftest.i conftest.err conftest.$ac_ext
4647 if $ac_preproc_ok; then :
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4660 $as_echo "$CPP" >&6; }
4662 for ac_c_preproc_warn_flag in '' yes
4664 # Use a header file that comes with gcc, so configuring glibc
4665 # with a fresh cross-compiler works.
4666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667 # <limits.h> exists even on freestanding compilers.
4668 # On the NeXT, cc -E runs the code through the compiler's parser,
4669 # not just through cpp. "Syntax error" is here to catch this case.
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4673 # include <limits.h>
4675 # include <assert.h>
4679 if ac_fn_c_try_cpp "$LINENO"; then :
4682 # Broken: fails on valid input.
4685 rm -f conftest.err conftest.i conftest.$ac_ext
4687 # OK, works on sane cases. Now check whether nonexistent headers
4688 # can be detected and how.
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #include <ac_nonexistent.h>
4693 if ac_fn_c_try_cpp "$LINENO"; then :
4694 # Broken: success on invalid input.
4697 # Passes both tests.
4701 rm -f conftest.err conftest.i conftest.$ac_ext
4704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4705 rm -f conftest.i conftest.err conftest.$ac_ext
4706 if $ac_preproc_ok; then :
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4712 See \`config.log' for more details" "$LINENO" 5; }
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 if ${ac_cv_path_GREP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -z "$GREP"; then
4728 ac_path_GREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in grep ggrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4739 # Check for GNU ac_path_GREP and select it if it is found.
4740 # Check for GNU $ac_path_GREP
4741 case `"$ac_path_GREP" --version 2>&1` in
4743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4746 $as_echo_n 0123456789 >"conftest.in"
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'GREP' >> "conftest.nl"
4753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_GREP="$ac_path_GREP"
4759 ac_path_GREP_max=$ac_count
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 $ac_path_GREP_found && break 3
4772 if test -z "$ac_cv_path_GREP"; then
4773 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776 ac_cv_path_GREP=$GREP
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781 $as_echo "$ac_cv_path_GREP" >&6; }
4782 GREP="$ac_cv_path_GREP"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786 $as_echo_n "checking for egrep... " >&6; }
4787 if ${ac_cv_path_EGREP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791 then ac_cv_path_EGREP="$GREP -E"
4793 if test -z "$EGREP"; then
4794 ac_path_EGREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in egrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4805 # Check for GNU ac_path_EGREP and select it if it is found.
4806 # Check for GNU $ac_path_EGREP
4807 case `"$ac_path_EGREP" --version 2>&1` in
4809 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4812 $as_echo_n 0123456789 >"conftest.in"
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'EGREP' >> "conftest.nl"
4819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_EGREP="$ac_path_EGREP"
4825 ac_path_EGREP_max=$ac_count
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 $ac_path_EGREP_found && break 3
4838 if test -z "$ac_cv_path_EGREP"; then
4839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 ac_cv_path_EGREP=$EGREP
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848 $as_echo "$ac_cv_path_EGREP" >&6; }
4849 EGREP="$ac_cv_path_EGREP"
4852 if test $ac_cv_c_compiler_gnu = yes; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4854 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4855 if ${ac_cv_prog_gcc_traditional+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 ac_pattern="Autoconf.*'x'"
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4866 ac_cv_prog_gcc_traditional=yes
4868 ac_cv_prog_gcc_traditional=no
4873 if test $ac_cv_prog_gcc_traditional = no; then
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4881 ac_cv_prog_gcc_traditional=yes
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4888 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4889 if test $ac_cv_prog_gcc_traditional = yes; then
4890 CC="$CC -traditional"
4894 BASECC=`basename $CC`
4896 if test "x$BASECC" = xgcc; then
4897 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4901 # Extract the first word of "$CXX", so it can be a program name with args.
4902 set dummy $CXX; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_path_CXX+:} false; then :
4906 $as_echo_n "(cached) " >&6
4910 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4933 if test -n "$CXX"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4935 $as_echo "$CXX" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 if test ! -e $CXX; then
4943 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4946 # Find a good install program. We prefer a C program (faster),
4947 # so one script is as good as another. But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 # Reject install programs that cannot install multiple files.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4962 if test -z "$INSTALL"; then
4963 if ${ac_cv_path_install+:} false; then :
4964 $as_echo_n "(cached) " >&6
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in #((
4973 ./ | .// | /[cC]/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4981 for ac_prog in ginstall scoinst install; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4993 rm -rf conftest.one conftest.two conftest.dir
4994 echo one > conftest.one
4995 echo two > conftest.two
4997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4998 test -s conftest.one && test -s conftest.two &&
4999 test -s conftest.dir/conftest.one &&
5000 test -s conftest.dir/conftest.two
5002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5015 rm -rf conftest.one conftest.two conftest.dir
5018 if test "${ac_cv_path_install+set}" = set; then
5019 INSTALL=$ac_cv_path_install
5021 # As a last resort, use the slow shell script. Don't cache a
5022 # value for INSTALL within a source directory, because that will
5023 # break other packages using the cache if that directory is
5024 # removed, or if the value is a relative name.
5025 INSTALL=$ac_install_sh
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5029 $as_echo "$INSTALL" >&6; }
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5039 # Extract the first word of "mv", so it can be a program name with args.
5040 set dummy mv; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_path_MV+:} false; then :
5044 $as_echo_n "(cached) " >&6
5048 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5071 if test -n "$MV"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5073 $as_echo "$MV" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5080 # Extract the first word of "rm", so it can be a program name with args.
5081 set dummy rm; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_path_REMOVE+:} false; then :
5085 $as_echo_n "(cached) " >&6
5089 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5111 REMOVE=$ac_cv_path_REMOVE
5112 if test -n "$REMOVE"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5114 $as_echo "$REMOVE" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 # Extract the first word of "cp", so it can be a program name with args.
5122 set dummy cp; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_path_CP+:} false; then :
5126 $as_echo_n "(cached) " >&6
5130 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5153 if test -n "$CP"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5155 $as_echo "$CP" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 # Extract the first word of "sed", so it can be a program name with args.
5163 set dummy sed; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_path_SED+:} false; then :
5167 $as_echo_n "(cached) " >&6
5171 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5194 if test -n "$SED"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5196 $as_echo "$SED" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 # Extract the first word of "echo", so it can be a program name with args.
5204 set dummy echo; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_path_ECHO+:} false; then :
5208 $as_echo_n "(cached) " >&6
5212 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5234 ECHO=$ac_cv_path_ECHO
5235 if test -n "$ECHO"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5237 $as_echo "$ECHO" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 # Extract the first word of "cmp", so it can be a program name with args.
5245 set dummy cmp; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_CMP+:} false; then :
5249 $as_echo_n "(cached) " >&6
5253 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5276 if test -n "$CMP"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5278 $as_echo "$CMP" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5285 # Extract the first word of "tbl", so it can be a program name with args.
5286 set dummy tbl; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_TBL+:} false; then :
5290 $as_echo_n "(cached) " >&6
5294 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5317 if test -n "$TBL"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5319 $as_echo "$TBL" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 # Extract the first word of "ar", so it can be a program name with args.
5327 set dummy ar; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_path_AR+:} false; then :
5331 $as_echo_n "(cached) " >&6
5335 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5358 if test -n "$AR"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5360 $as_echo "$AR" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 # Extract the first word of "openssl", so it can be a program name with args.
5368 set dummy openssl; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_path_OPENSSL+:} false; then :
5372 $as_echo_n "(cached) " >&6
5376 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5398 OPENSSL=$ac_cv_path_OPENSSL
5399 if test -n "$OPENSSL"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5401 $as_echo "$OPENSSL" >&6; }
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5408 # Extract the first word of "mtx", so it can be a program name with args.
5409 set dummy mtx; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_path_MTX+:} false; then :
5413 $as_echo_n "(cached) " >&6
5417 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5440 if test -n "$MTX"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5442 $as_echo "$MTX" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 # Extract the first word of "dd", so it can be a program name with args.
5450 set dummy dd; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_path_DD+:} false; then :
5454 $as_echo_n "(cached) " >&6
5458 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5481 if test -n "$DD"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5483 $as_echo "$DD" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5490 # Extract the first word of "mkisofs", so it can be a program name with args.
5491 set dummy mkisofs; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_path_MKISOFS+:} false; then :
5495 $as_echo_n "(cached) " >&6
5499 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5521 MKISOFS=$ac_cv_path_MKISOFS
5522 if test -n "$MKISOFS"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5524 $as_echo "$MKISOFS" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 # Extract the first word of "python", so it can be a program name with args.
5532 set dummy python; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_PYTHON+:} false; then :
5536 $as_echo_n "(cached) " >&6
5540 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5562 PYTHON=$ac_cv_path_PYTHON
5563 if test -n "$PYTHON"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5565 $as_echo "$PYTHON" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5572 # Extract the first word of "growisofs", so it can be a program name with args.
5573 set dummy growisofs; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_path_GROWISOFS+:} false; then :
5577 $as_echo_n "(cached) " >&6
5581 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5603 GROWISOFS=$ac_cv_path_GROWISOFS
5604 if test -n "$GROWISOFS"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5606 $as_echo "$GROWISOFS" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5614 set dummy dvd+rw-mediainfo; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5618 $as_echo_n "(cached) " >&6
5620 case $DVDRWMEDIAINFO in
5622 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5644 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5645 if test -n "$DVDRWMEDIAINFO"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5647 $as_echo "$DVDRWMEDIAINFO" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5654 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5655 set dummy dvd+rw-format; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 case $DVDRWFORMAT in
5663 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5685 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5686 if test -n "$DVDRWFORMAT"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5688 $as_echo "$DVDRWFORMAT" >&6; }
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5695 # Extract the first word of "pkg-config", so it can be a program name with args.
5696 set dummy pkg-config; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_path_PKGCONFIG+:} false; then :
5700 $as_echo_n "(cached) " >&6
5704 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5726 PKGCONFIG=$ac_cv_path_PKGCONFIG
5727 if test -n "$PKGCONFIG"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5729 $as_echo "$PKGCONFIG" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5736 # Extract the first word of "qmake", so it can be a program name with args.
5737 set dummy qmake; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_path_QMAKE+:} false; then :
5741 $as_echo_n "(cached) " >&6
5745 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5767 QMAKE=$ac_cv_path_QMAKE
5768 if test -n "$QMAKE"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5770 $as_echo "$QMAKE" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5777 # Extract the first word of "gmake", so it can be a program name with args.
5778 set dummy gmake; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_GMAKE+:} false; then :
5782 $as_echo_n "(cached) " >&6
5786 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5808 GMAKE=$ac_cv_path_GMAKE
5809 if test -n "$GMAKE"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5811 $as_echo "$GMAKE" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5819 if test "x$WXCONFIG" = x; then
5822 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5823 set dummy ${WXCONFIG}; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_path_WXCONFIG+:} false; then :
5827 $as_echo_n "(cached) " >&6
5831 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5853 WXCONFIG=$ac_cv_path_WXCONFIG
5854 if test -n "$WXCONFIG"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5856 $as_echo "$WXCONFIG" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5864 # Extract the first word of "cdrecord", so it can be a program name with args.
5865 set dummy cdrecord; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_CDRECORD+:} false; then :
5869 $as_echo_n "(cached) " >&6
5873 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5895 CDRECORD=$ac_cv_path_CDRECORD
5896 if test -n "$CDRECORD"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5898 $as_echo "$CDRECORD" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 # Extract the first word of "pidof", so it can be a program name with args.
5906 set dummy pidof; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_PIDOF+:} false; then :
5910 $as_echo_n "(cached) " >&6
5914 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5936 PIDOF=$ac_cv_path_PIDOF
5937 if test -n "$PIDOF"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5939 $as_echo "$PIDOF" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5946 for ac_prog in gawk mawk nawk awk
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_AWK+:} false; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -n "$AWK"; then
5956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_AWK="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 if test -n "$AWK"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5978 $as_echo "$AWK" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$AWK" && break
5988 # Some AWK programs fail, so test it and warn the user
5989 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5990 { if ((prog == $2) || (("(" prog ")") == $2) ||
5991 (("" prog "") == $2) ||
5992 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5994 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5995 The regex engine of $AWK is too broken to be used you
5996 might want to install GNU AWK.
5997 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
6000 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6001 set dummy $THE_AWK; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_path_AWK+:} false; then :
6005 $as_echo_n "(cached) " >&6
6009 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6032 if test -n "$AWK"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6034 $as_echo "$AWK" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6043 test -n "$ARFLAG" || ARFLAGS="cr"
6055 # Check whether --enable-libtool was given.
6056 if test "${enable_libtool+set}" = set; then :
6057 enableval=$enable_libtool;
6058 if test x$enableval = xno; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6073 macro_version='2.2.6'
6074 macro_revision='1.3012'
6088 ltmain="$ac_aux_dir/ltmain.sh"
6090 # Make sure we can run config.sub.
6091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6092 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6095 $as_echo_n "checking build system type... " >&6; }
6096 if ${ac_cv_build+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 ac_build_alias=$build_alias
6100 test "x$ac_build_alias" = x &&
6101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6102 test "x$ac_build_alias" = x &&
6103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6109 $as_echo "$ac_cv_build" >&6; }
6110 case $ac_cv_build in
6112 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6115 ac_save_IFS=$IFS; IFS='-'
6121 # Remember, the first character of IFS is used to create $*,
6122 # except with old shells:
6125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6129 $as_echo_n "checking host system type... " >&6; }
6130 if ${ac_cv_host+:} false; then :
6131 $as_echo_n "(cached) " >&6
6133 if test "x$host_alias" = x; then
6134 ac_cv_host=$ac_cv_build
6136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6142 $as_echo "$ac_cv_host" >&6; }
6145 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6148 ac_save_IFS=$IFS; IFS='-'
6154 # Remember, the first character of IFS is used to create $*,
6155 # except with old shells:
6158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6162 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6163 if ${ac_cv_path_SED+:} false; then :
6164 $as_echo_n "(cached) " >&6
6166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6167 for ac_i in 1 2 3 4 5 6 7; do
6168 ac_script="$ac_script$as_nl$ac_script"
6170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6171 { ac_script=; unset ac_script;}
6172 if test -z "$SED"; then
6173 ac_path_SED_found=false
6174 # Loop through the user's path and test for each of PROGNAME-LIST
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_prog in sed gsed; do
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6183 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6184 # Check for GNU ac_path_SED and select it if it is found.
6185 # Check for GNU $ac_path_SED
6186 case `"$ac_path_SED" --version 2>&1` in
6188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6191 $as_echo_n 0123456789 >"conftest.in"
6194 cat "conftest.in" "conftest.in" >"conftest.tmp"
6195 mv "conftest.tmp" "conftest.in"
6196 cp "conftest.in" "conftest.nl"
6197 $as_echo '' >> "conftest.nl"
6198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6200 as_fn_arith $ac_count + 1 && ac_count=$as_val
6201 if test $ac_count -gt ${ac_path_SED_max-0}; then
6202 # Best one so far, save it but keep looking for a better one
6203 ac_cv_path_SED="$ac_path_SED"
6204 ac_path_SED_max=$ac_count
6206 # 10*(2^10) chars as input seems more than enough
6207 test $ac_count -gt 10 && break
6209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6212 $ac_path_SED_found && break 3
6217 if test -z "$ac_cv_path_SED"; then
6218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6226 $as_echo "$ac_cv_path_SED" >&6; }
6227 SED="$ac_cv_path_SED"
6230 test -z "$SED" && SED=sed
6231 Xsed="$SED -e 1s/^X//"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6244 $as_echo_n "checking for fgrep... " >&6; }
6245 if ${ac_cv_path_FGREP+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6249 then ac_cv_path_FGREP="$GREP -F"
6251 if test -z "$FGREP"; then
6252 ac_path_FGREP_found=false
6253 # Loop through the user's path and test for each of PROGNAME-LIST
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6258 test -z "$as_dir" && as_dir=.
6259 for ac_prog in fgrep; do
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6262 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6263 # Check for GNU ac_path_FGREP and select it if it is found.
6264 # Check for GNU $ac_path_FGREP
6265 case `"$ac_path_FGREP" --version 2>&1` in
6267 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6270 $as_echo_n 0123456789 >"conftest.in"
6273 cat "conftest.in" "conftest.in" >"conftest.tmp"
6274 mv "conftest.tmp" "conftest.in"
6275 cp "conftest.in" "conftest.nl"
6276 $as_echo 'FGREP' >> "conftest.nl"
6277 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6279 as_fn_arith $ac_count + 1 && ac_count=$as_val
6280 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6281 # Best one so far, save it but keep looking for a better one
6282 ac_cv_path_FGREP="$ac_path_FGREP"
6283 ac_path_FGREP_max=$ac_count
6285 # 10*(2^10) chars as input seems more than enough
6286 test $ac_count -gt 10 && break
6288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6291 $ac_path_FGREP_found && break 3
6296 if test -z "$ac_cv_path_FGREP"; then
6297 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6300 ac_cv_path_FGREP=$FGREP
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6306 $as_echo "$ac_cv_path_FGREP" >&6; }
6307 FGREP="$ac_cv_path_FGREP"
6310 test -z "$GREP" && GREP=grep
6330 # Check whether --with-gnu-ld was given.
6331 if test "${with_gnu_ld+set}" = set; then :
6332 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6338 if test "$GCC" = yes; then
6339 # Check if gcc -print-prog-name=ld gives a path.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6341 $as_echo_n "checking for ld used by $CC... " >&6; }
6344 # gcc leaves a trailing carriage return which upsets mingw
6345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6350 # Accept absolute paths.
6352 re_direlt='/[^/][^/]*/\.\./'
6353 # Canonicalize the pathname of ld
6354 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6355 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6356 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6358 test -z "$LD" && LD="$ac_prog"
6361 # If it fails, then pretend we aren't using GCC.
6365 # If it is relative, then search for the first ld in PATH.
6369 elif test "$with_gnu_ld" = yes; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6371 $as_echo_n "checking for GNU ld... " >&6; }
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6374 $as_echo_n "checking for non-GNU ld... " >&6; }
6376 if ${lt_cv_path_LD+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -z "$LD"; then
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH; do
6383 test -z "$ac_dir" && ac_dir=.
6384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6385 lt_cv_path_LD="$ac_dir/$ac_prog"
6386 # Check to see if the program is GNU ld. I'd rather use --version,
6387 # but apparently some variants of GNU ld only accept -v.
6388 # Break only if it was the GNU/non-GNU ld that we prefer.
6389 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6390 *GNU* | *'with BFD'*)
6391 test "$with_gnu_ld" != no && break
6394 test "$with_gnu_ld" != yes && break
6401 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6406 if test -n "$LD"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6408 $as_echo "$LD" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6416 if ${lt_cv_prog_gnu_ld+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6420 case `$LD -v 2>&1 </dev/null` in
6421 *GNU* | *'with BFD'*)
6422 lt_cv_prog_gnu_ld=yes
6425 lt_cv_prog_gnu_ld=no
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6430 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6431 with_gnu_ld=$lt_cv_prog_gnu_ld
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6442 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6443 if ${lt_cv_path_NM+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$NM"; then
6447 # Let the user override the test.
6450 lt_nm_to_check="${ac_tool_prefix}nm"
6451 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6452 lt_nm_to_check="$lt_nm_to_check nm"
6454 for lt_tmp_nm in $lt_nm_to_check; do
6455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6458 test -z "$ac_dir" && ac_dir=.
6459 tmp_nm="$ac_dir/$lt_tmp_nm"
6460 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6461 # Check to see if the nm accepts a BSD-compat flag.
6462 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6463 # nm: unknown option "B" ignored
6464 # Tru64's nm complains that /dev/null is an invalid object file
6465 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6466 */dev/null* | *'Invalid file or object type'*)
6467 lt_cv_path_NM="$tmp_nm -B"
6471 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6473 lt_cv_path_NM="$tmp_nm -p"
6477 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6478 continue # so that we can try to find one that supports BSD flags
6487 : ${lt_cv_path_NM=no}
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6491 $as_echo "$lt_cv_path_NM" >&6; }
6492 if test "$lt_cv_path_NM" != "no"; then
6495 # Didn't find any BSD compatible name lister, look for dumpbin.
6496 if test -n "$ac_tool_prefix"; then
6497 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_DUMPBIN+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$DUMPBIN"; then
6507 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 DUMPBIN=$ac_cv_prog_DUMPBIN
6527 if test -n "$DUMPBIN"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6529 $as_echo "$DUMPBIN" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6536 test -n "$DUMPBIN" && break
6539 if test -z "$DUMPBIN"; then
6540 ac_ct_DUMPBIN=$DUMPBIN
6541 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6543 # Extract the first word of "$ac_prog", so it can be a program name with args.
6544 set dummy $ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$ac_ct_DUMPBIN"; then
6551 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6571 if test -n "$ac_ct_DUMPBIN"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6573 $as_echo "$ac_ct_DUMPBIN" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6580 test -n "$ac_ct_DUMPBIN" && break
6583 if test "x$ac_ct_DUMPBIN" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6592 DUMPBIN=$ac_ct_DUMPBIN
6597 if test "$DUMPBIN" != ":"; then
6601 test -z "$NM" && NM=nm
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6609 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6610 if ${lt_cv_nm_interface+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 lt_cv_nm_interface="BSD nm"
6614 echo "int some_variable = 0;" > conftest.$ac_ext
6615 (eval echo "\"\$as_me:6615: $ac_compile\"" >&5)
6616 (eval "$ac_compile" 2>conftest.err)
6617 cat conftest.err >&5
6618 (eval echo "\"\$as_me:6618: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6619 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6620 cat conftest.err >&5
6621 (eval echo "\"\$as_me:6621: output\"" >&5)
6622 cat conftest.out >&5
6623 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6624 lt_cv_nm_interface="MS dumpbin"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6629 $as_echo "$lt_cv_nm_interface" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6632 $as_echo_n "checking whether ln -s works... " >&6; }
6634 if test "$LN_S" = "ln -s"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6639 $as_echo "no, using $LN_S" >&6; }
6642 # find the maximum length of command line arguments
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6644 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6645 if ${lt_cv_sys_max_cmd_len+:} false; then :
6646 $as_echo_n "(cached) " >&6
6653 # On DJGPP, this test can blow up pretty badly due to problems in libc
6654 # (any single argument exceeding 2000 bytes causes a buffer overrun
6655 # during glob expansion). Even if it were fixed, the result of this
6656 # check would be larger than it should be.
6657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6661 # Under GNU Hurd, this test is not required because there is
6662 # no limit to the length of command line arguments.
6663 # Libtool will interpret -1 as no limit whatsoever
6664 lt_cv_sys_max_cmd_len=-1;
6667 cygwin* | mingw* | cegcc*)
6668 # On Win9x/ME, this test blows up -- it succeeds, but takes
6669 # about 5 minutes as the teststring grows exponentially.
6670 # Worse, since 9x/ME are not pre-emptively multitasking,
6671 # you end up with a "frozen" computer, even though with patience
6672 # the test eventually succeeds (with a max line length of 256k).
6673 # Instead, let's just punt: use the minimum linelength reported by
6674 # all of the supported platforms: 8192 (on NT/2K/XP).
6675 lt_cv_sys_max_cmd_len=8192;
6679 # On AmigaOS with pdksh, this test takes hours, literally.
6680 # So we just punt and use a minimum line length of 8192.
6681 lt_cv_sys_max_cmd_len=8192;
6684 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6685 # This has been around since 386BSD, at least. Likely further.
6686 if test -x /sbin/sysctl; then
6687 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6688 elif test -x /usr/sbin/sysctl; then
6689 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6691 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6693 # And add a safety zone
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6699 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6700 lt_cv_sys_max_cmd_len=196608
6704 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6705 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6706 # nice to cause kernel panics so lets avoid the loop below.
6707 # First set a reasonable default.
6708 lt_cv_sys_max_cmd_len=16384
6710 if test -x /sbin/sysconfig; then
6711 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6712 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6717 lt_cv_sys_max_cmd_len=102400
6719 sysv5* | sco5v6* | sysv4.2uw2*)
6720 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6721 if test -n "$kargmax"; then
6722 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6724 lt_cv_sys_max_cmd_len=32768
6728 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6729 if test -n "$lt_cv_sys_max_cmd_len"; then
6730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6733 # Make teststring a little bigger before we do anything with it.
6734 # a 1K string should be a reasonable start.
6735 for i in 1 2 3 4 5 6 7 8 ; do
6736 teststring=$teststring$teststring
6738 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6739 # If test is not a shell built-in, we'll probably end up computing a
6740 # maximum length that is only half of the actual maximum length, but
6742 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6743 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6744 test $i != 17 # 1/2 MB should be enough
6747 teststring=$teststring$teststring
6749 # Only check the string length outside the loop.
6750 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6752 # Add a significant safety factor because C++ compilers can tack on
6753 # massive amounts of additional arguments before passing them to the
6754 # linker. It appears as though 1/2 is a usable value.
6755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6762 if test -n $lt_cv_sys_max_cmd_len ; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6764 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6767 $as_echo "none" >&6; }
6769 max_cmd_len=$lt_cv_sys_max_cmd_len
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6781 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6782 # Try some XSI features
6785 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6787 && eval 'test $(( 1 + 1 )) -eq 2 \
6788 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6791 $as_echo "$xsi_shell" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6795 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6797 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6799 && lt_shell_append=yes
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6801 $as_echo "$lt_shell_append" >&6; }
6804 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6814 # test EBCDIC or ASCII
6815 case `echo X|tr X '\101'` in
6816 A) # ASCII based system
6817 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6818 lt_SP2NL='tr \040 \012'
6819 lt_NL2SP='tr \015\012 \040\040'
6821 *) # EBCDIC based system
6822 lt_SP2NL='tr \100 \n'
6823 lt_NL2SP='tr \r\n \100\100'
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6836 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6837 if ${lt_cv_ld_reload_flag+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 lt_cv_ld_reload_flag='-r'
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6843 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6844 reload_flag=$lt_cv_ld_reload_flag
6845 case $reload_flag in
6847 *) reload_flag=" $reload_flag" ;;
6849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6852 if test "$GCC" = yes; then
6853 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_OBJDUMP+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 if test -n "$OBJDUMP"; then
6877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 OBJDUMP=$ac_cv_prog_OBJDUMP
6897 if test -n "$OBJDUMP"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6899 $as_echo "$OBJDUMP" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6907 if test -z "$ac_cv_prog_OBJDUMP"; then
6908 ac_ct_OBJDUMP=$OBJDUMP
6909 # Extract the first word of "objdump", so it can be a program name with args.
6910 set dummy objdump; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 if test -n "$ac_ct_OBJDUMP"; then
6917 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6937 if test -n "$ac_ct_OBJDUMP"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6939 $as_echo "$ac_ct_OBJDUMP" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_ct_OBJDUMP" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6954 OBJDUMP=$ac_ct_OBJDUMP
6957 OBJDUMP="$ac_cv_prog_OBJDUMP"
6960 test -z "$OBJDUMP" && OBJDUMP=objdump
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6971 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6972 if ${lt_cv_deplibs_check_method+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 lt_cv_file_magic_cmd='$MAGIC_CMD'
6976 lt_cv_file_magic_test_file=
6977 lt_cv_deplibs_check_method='unknown'
6978 # Need to set the preceding variable on all platforms that support
6979 # interlibrary dependencies.
6980 # 'none' -- dependencies not supported.
6981 # `unknown' -- same as none, but documents that we really don't know.
6982 # 'pass_all' -- all dependencies passed with no checks.
6983 # 'test_compile' -- check by making test program.
6984 # 'file_magic [[regex]]' -- check by looking for files in library path
6985 # which responds to the $file_magic_cmd with a given extended regex.
6986 # If you have `file' or equivalent on your system and you're not sure
6987 # whether `pass_all' will *always* work, you probably want this one.
6991 lt_cv_deplibs_check_method=pass_all
6995 lt_cv_deplibs_check_method=pass_all
6999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7000 lt_cv_file_magic_cmd='/usr/bin/file -L'
7001 lt_cv_file_magic_test_file=/shlib/libc.so
7005 # func_win32_libid is a shell function defined in ltmain.sh
7006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007 lt_cv_file_magic_cmd='func_win32_libid'
7011 # Base MSYS/MinGW do not provide the 'file' command needed by
7012 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7013 # unless we find 'file', for example because we are cross-compiling.
7014 if ( file / ) >/dev/null 2>&1; then
7015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7016 lt_cv_file_magic_cmd='func_win32_libid'
7018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7019 lt_cv_file_magic_cmd='$OBJDUMP -f'
7024 # use the weaker test based on 'objdump'. See mingw*.
7025 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7026 lt_cv_file_magic_cmd='$OBJDUMP -f'
7029 darwin* | rhapsody*)
7030 lt_cv_deplibs_check_method=pass_all
7033 freebsd* | dragonfly*)
7034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7037 # Not sure whether the presence of OpenBSD here was a mistake.
7038 # Let's accept both of them until this is cleared up.
7039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7040 lt_cv_file_magic_cmd=/usr/bin/file
7041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7045 lt_cv_deplibs_check_method=pass_all
7050 lt_cv_deplibs_check_method=pass_all
7053 hpux10.20* | hpux11*)
7054 lt_cv_file_magic_cmd=/usr/bin/file
7057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7061 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]'
7062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7076 irix5* | irix6* | nonstopux*)
7078 *-32|*"-32 ") libmagic=32-bit;;
7079 *-n32|*"-n32 ") libmagic=N32;;
7080 *-64|*"-64 ") libmagic=64-bit;;
7081 *) libmagic=never-match;;
7083 lt_cv_deplibs_check_method=pass_all
7086 # This must be Linux ELF.
7087 linux* | k*bsd*-gnu)
7088 lt_cv_deplibs_check_method=pass_all
7092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7101 lt_cv_file_magic_cmd=/usr/bin/file
7102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7106 lt_cv_deplibs_check_method=pass_all
7110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7117 osf3* | osf4* | osf5*)
7118 lt_cv_deplibs_check_method=pass_all
7122 lt_cv_deplibs_check_method=pass_all
7126 lt_cv_deplibs_check_method=pass_all
7129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7130 lt_cv_deplibs_check_method=pass_all
7134 case $host_vendor in
7136 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]'
7137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7140 lt_cv_deplibs_check_method=pass_all
7143 lt_cv_file_magic_cmd='/bin/file'
7144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7147 lt_cv_file_magic_cmd='/bin/file'
7148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7149 lt_cv_file_magic_test_file=/lib/libc.so
7152 lt_cv_deplibs_check_method=pass_all
7155 lt_cv_deplibs_check_method=pass_all
7161 lt_cv_deplibs_check_method=pass_all
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7168 file_magic_cmd=$lt_cv_file_magic_cmd
7169 deplibs_check_method=$lt_cv_deplibs_check_method
7170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}ar; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_AR+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$AR"; then
7192 ac_cv_prog_AR="$AR" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_AR="${ac_tool_prefix}ar"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 if test -n "$AR"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7214 $as_echo "$AR" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7222 if test -z "$ac_cv_prog_AR"; then
7224 # Extract the first word of "ar", so it can be a program name with args.
7225 set dummy ar; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 if test -n "$ac_ct_AR"; then
7232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_prog_ac_ct_AR="ar"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7252 if test -n "$ac_ct_AR"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7254 $as_echo "$ac_ct_AR" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7260 if test "x$ac_ct_AR" = x; then
7263 case $cross_compiling:$ac_tool_warned in
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7275 test -z "$AR" && AR=ar
7276 test -z "$AR_FLAGS" && AR_FLAGS=cru
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}strip; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_STRIP+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 STRIP=$ac_cv_prog_STRIP
7317 if test -n "$STRIP"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7319 $as_echo "$STRIP" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7327 if test -z "$ac_cv_prog_STRIP"; then
7329 # Extract the first word of "strip", so it can be a program name with args.
7330 set dummy strip; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 if test -n "$ac_ct_STRIP"; then
7337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_prog_ac_ct_STRIP="strip"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7357 if test -n "$ac_ct_STRIP"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7359 $as_echo "$ac_ct_STRIP" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7365 if test "x$ac_ct_STRIP" = x; then
7368 case $cross_compiling:$ac_tool_warned in
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7377 STRIP="$ac_cv_prog_STRIP"
7380 test -z "$STRIP" && STRIP=:
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_RANLIB+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$RANLIB"; then
7396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 RANLIB=$ac_cv_prog_RANLIB
7416 if test -n "$RANLIB"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7418 $as_echo "$RANLIB" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7426 if test -z "$ac_cv_prog_RANLIB"; then
7427 ac_ct_RANLIB=$RANLIB
7428 # Extract the first word of "ranlib", so it can be a program name with args.
7429 set dummy ranlib; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 if test -n "$ac_ct_RANLIB"; then
7436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445 ac_cv_prog_ac_ct_RANLIB="ranlib"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7456 if test -n "$ac_ct_RANLIB"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7458 $as_echo "$ac_ct_RANLIB" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7464 if test "x$ac_ct_RANLIB" = x; then
7467 case $cross_compiling:$ac_tool_warned in
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7473 RANLIB=$ac_ct_RANLIB
7476 RANLIB="$ac_cv_prog_RANLIB"
7479 test -z "$RANLIB" && RANLIB=:
7486 # Determine commands to create old-style static archives.
7487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7488 old_postinstall_cmds='chmod 644 $oldlib'
7489 old_postuninstall_cmds=
7491 if test -n "$RANLIB"; then
7494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7536 # If no C compiler was specified, use CC.
7539 # If no C compiler flags were specified, use CFLAGS.
7540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542 # Allow CC to be a program name with arguments.
7546 # Check for command to grab the raw symbol name followed by C symbol from nm.
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7550 $as_echo_n "(cached) " >&6
7553 # These are sane defaults that work on at least a few old systems.
7554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7556 # Character class describing NM global symbol codes.
7557 symcode='[BCDEGRST]'
7559 # Regexp to match symbols that can be accessed directly from C.
7560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7562 # Define system-specific variables.
7567 cygwin* | mingw* | pw32* | cegcc*)
7568 symcode='[ABCDGISTW]'
7571 if test "$host_cpu" = ia64; then
7572 symcode='[ABCDEGRST]'
7576 symcode='[BCDEGRST]'
7579 symcode='[BCDEGQRST]'
7590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7598 # If we're using GNU nm, then use its standard symbol codes.
7599 case `$NM -V 2>&1` in
7600 *GNU* | *'with BFD'*)
7601 symcode='[ABCDGIRSTW]' ;;
7604 # Transform an extracted symbol line into a proper C declaration.
7605 # Some systems (esp. on ia64) link data and code symbols differently,
7606 # so use this general approach.
7607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7609 # Transform an extracted symbol line into symbol name and symbol address
7610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7611 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'"
7613 # Handle CRLF in mingw tool chain
7617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7621 # Try without a prefix underscore, then with it.
7622 for ac_symprfx in "" "_"; do
7624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7625 symxfrm="\\1 $ac_symprfx\\2 \\2"
7627 # Write the raw and C identifiers.
7628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7629 # Fake it for dumpbin and say T for any non-static function
7630 # and D for any global variable.
7631 # Also find C++ and __fastcall symbols from MSVC++,
7632 # which start with @ or ?.
7633 lt_cv_sys_global_symbol_pipe="$AWK '"\
7634 " {last_section=section; section=\$ 3};"\
7635 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7636 " \$ 0!~/External *\|/{next};"\
7637 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7638 " {if(hide[section]) next};"\
7639 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7640 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7641 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7642 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7643 " ' prfx=^$ac_symprfx"
7645 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7648 # Check to see that the pipe works correctly.
7652 cat > conftest.$ac_ext <<_LT_EOF
7657 void nm_test_func(void);
7658 void nm_test_func(void){}
7662 int main(){nm_test_var='a';nm_test_func();return(0);}
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7666 (eval $ac_compile) 2>&5
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }; then
7670 # Now try to grab the symbols.
7672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7673 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676 test $ac_status = 0; } && test -s "$nlist"; then
7677 # Try sorting and uniquifying the output.
7678 if sort "$nlist" | uniq > "$nlist"T; then
7679 mv -f "$nlist"T "$nlist"
7684 # Make sure that we snagged all the symbols we need.
7685 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7686 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7687 cat <<_LT_EOF > conftest.$ac_ext
7693 # Now generate the symbol file.
7694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7696 cat <<_LT_EOF >> conftest.$ac_ext
7698 /* The mapping between symbol names and symbols. */
7703 lt__PROGRAM__LTX_preloaded_symbols[] =
7705 { "@PROGRAM@", (void *) 0 },
7707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7708 cat <<\_LT_EOF >> conftest.$ac_ext
7712 /* This works around a problem in FreeBSD linker */
7713 #ifdef FREEBSD_WORKAROUND
7714 static const void *lt_preloaded_setup() {
7715 return lt__PROGRAM__LTX_preloaded_symbols;
7723 # Now try linking the two files.
7724 mv conftest.$ac_objext conftstm.$ac_objext
7725 lt_save_LIBS="$LIBS"
7726 lt_save_CFLAGS="$CFLAGS"
7727 LIBS="conftstm.$ac_objext"
7728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7730 (eval $ac_link) 2>&5
7732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7736 LIBS="$lt_save_LIBS"
7737 CFLAGS="$lt_save_CFLAGS"
7739 echo "cannot find nm_test_func in $nlist" >&5
7742 echo "cannot find nm_test_var in $nlist" >&5
7745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7748 echo "$progname: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7751 rm -rf conftest* conftst*
7753 # Do not use the global_symbol_pipe unless it works.
7754 if test "$pipe_works" = yes; then
7757 lt_cv_sys_global_symbol_pipe=
7763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7764 lt_cv_sys_global_symbol_to_cdecl=
7766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7768 $as_echo "failed" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7771 $as_echo "ok" >&6; }
7795 # Check whether --enable-libtool-lock was given.
7796 if test "${enable_libtool_lock+set}" = set; then :
7797 enableval=$enable_libtool_lock;
7800 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7802 # Some flags need to be propagated to the compiler or linker for good
7806 # Find out which ABI we are using.
7807 echo 'int i;' > conftest.$ac_ext
7808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7809 (eval $ac_compile) 2>&5
7811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812 test $ac_status = 0; }; then
7813 case `/usr/bin/file conftest.$ac_objext` in
7825 # Find out which ABI we are using.
7826 echo '#line 7826 "configure"' > conftest.$ac_ext
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828 (eval $ac_compile) 2>&5
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 if test "$lt_cv_prog_gnu_ld" = yes; then
7833 case `/usr/bin/file conftest.$ac_objext` in
7835 LD="${LD-ld} -melf32bsmip"
7838 LD="${LD-ld} -melf32bmipn32"
7841 LD="${LD-ld} -melf64bmip"
7845 case `/usr/bin/file conftest.$ac_objext` in
7861 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7862 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7863 # Find out which ABI we are using.
7864 echo 'int i;' > conftest.$ac_ext
7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7866 (eval $ac_compile) 2>&5
7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }; then
7870 case `/usr/bin/file conftest.o` in
7873 x86_64-*kfreebsd*-gnu)
7874 LD="${LD-ld} -m elf_i386_fbsd"
7877 LD="${LD-ld} -m elf_i386"
7879 ppc64-*linux*|powerpc64-*linux*)
7880 LD="${LD-ld} -m elf32ppclinux"
7883 LD="${LD-ld} -m elf_s390"
7886 LD="${LD-ld} -m elf32_sparc"
7892 x86_64-*kfreebsd*-gnu)
7893 LD="${LD-ld} -m elf_x86_64_fbsd"
7896 LD="${LD-ld} -m elf_x86_64"
7898 ppc*-*linux*|powerpc*-*linux*)
7899 LD="${LD-ld} -m elf64ppc"
7901 s390*-*linux*|s390*-*tpf*)
7902 LD="${LD-ld} -m elf64_s390"
7905 LD="${LD-ld} -m elf64_sparc"
7915 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7916 SAVE_CFLAGS="$CFLAGS"
7917 CFLAGS="$CFLAGS -belf"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7919 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7920 if ${lt_cv_cc_needs_belf+:} false; then :
7921 $as_echo_n "(cached) " >&6
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 lt_cv_cc_needs_belf=yes
7943 lt_cv_cc_needs_belf=no
7945 rm -f core conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7955 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7958 CFLAGS="$SAVE_CFLAGS"
7962 # Find out which ABI we are using.
7963 echo 'int i;' > conftest.$ac_ext
7964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7965 (eval $ac_compile) 2>&5
7967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968 test $ac_status = 0; }; then
7969 case `/usr/bin/file conftest.o` in
7971 case $lt_cv_prog_gnu_ld in
7972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7986 need_locks="$enable_libtool_lock"
7990 rhapsody* | darwin*)
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 if test -n "$DSYMUTIL"; then
8000 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8020 if test -n "$DSYMUTIL"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8022 $as_echo "$DSYMUTIL" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_DSYMUTIL"; then
8031 ac_ct_DSYMUTIL=$DSYMUTIL
8032 # Extract the first word of "dsymutil", so it can be a program name with args.
8033 set dummy dsymutil; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$ac_ct_DSYMUTIL"; then
8040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8060 if test -n "$ac_ct_DSYMUTIL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8062 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_DSYMUTIL" = x; then
8071 case $cross_compiling:$ac_tool_warned in
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8077 DSYMUTIL=$ac_ct_DSYMUTIL
8080 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_NMEDIT+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$NMEDIT"; then
8092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 NMEDIT=$ac_cv_prog_NMEDIT
8112 if test -n "$NMEDIT"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8114 $as_echo "$NMEDIT" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_NMEDIT"; then
8123 ac_ct_NMEDIT=$NMEDIT
8124 # Extract the first word of "nmedit", so it can be a program name with args.
8125 set dummy nmedit; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$ac_ct_NMEDIT"; then
8132 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8152 if test -n "$ac_ct_NMEDIT"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8154 $as_echo "$ac_ct_NMEDIT" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_NMEDIT" = x; then
8163 case $cross_compiling:$ac_tool_warned in
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8169 NMEDIT=$ac_ct_NMEDIT
8172 NMEDIT="$ac_cv_prog_NMEDIT"
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_LIPO+:} false; then :
8181 $as_echo_n "(cached) " >&6
8183 if test -n "$LIPO"; then
8184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 LIPO=$ac_cv_prog_LIPO
8204 if test -n "$LIPO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8206 $as_echo "$LIPO" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8214 if test -z "$ac_cv_prog_LIPO"; then
8216 # Extract the first word of "lipo", so it can be a program name with args.
8217 set dummy lipo; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$ac_ct_LIPO"; then
8224 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_ac_ct_LIPO="lipo"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8244 if test -n "$ac_ct_LIPO"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8246 $as_echo "$ac_ct_LIPO" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8252 if test "x$ac_ct_LIPO" = x; then
8255 case $cross_compiling:$ac_tool_warned in
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8264 LIPO="$ac_cv_prog_LIPO"
8267 if test -n "$ac_tool_prefix"; then
8268 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}otool; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_OTOOL+:} false; then :
8273 $as_echo_n "(cached) " >&6
8275 if test -n "$OTOOL"; then
8276 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 OTOOL=$ac_cv_prog_OTOOL
8296 if test -n "$OTOOL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8298 $as_echo "$OTOOL" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8306 if test -z "$ac_cv_prog_OTOOL"; then
8308 # Extract the first word of "otool", so it can be a program name with args.
8309 set dummy otool; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 if test -n "$ac_ct_OTOOL"; then
8316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_ac_ct_OTOOL="otool"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8336 if test -n "$ac_ct_OTOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8338 $as_echo "$ac_ct_OTOOL" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8344 if test "x$ac_ct_OTOOL" = x; then
8347 case $cross_compiling:$ac_tool_warned in
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8356 OTOOL="$ac_cv_prog_OTOOL"
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_OTOOL64+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 if test -n "$OTOOL64"; then
8368 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 OTOOL64=$ac_cv_prog_OTOOL64
8388 if test -n "$OTOOL64"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8390 $as_echo "$OTOOL64" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8398 if test -z "$ac_cv_prog_OTOOL64"; then
8399 ac_ct_OTOOL64=$OTOOL64
8400 # Extract the first word of "otool64", so it can be a program name with args.
8401 set dummy otool64; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8405 $as_echo_n "(cached) " >&6
8407 if test -n "$ac_ct_OTOOL64"; then
8408 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_OTOOL64="otool64"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8428 if test -n "$ac_ct_OTOOL64"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8430 $as_echo "$ac_ct_OTOOL64" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8436 if test "x$ac_ct_OTOOL64" = x; then
8439 case $cross_compiling:$ac_tool_warned in
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8445 OTOOL64=$ac_ct_OTOOL64
8448 OTOOL64="$ac_cv_prog_OTOOL64"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8478 $as_echo_n "checking for -single_module linker flag... " >&6; }
8479 if ${lt_cv_apple_cc_single_mod+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 lt_cv_apple_cc_single_mod=no
8483 if test -z "${LT_MULTI_MODULE}"; then
8484 # By default we will add the -single_module flag. You can override
8485 # by either setting the environment variable LT_MULTI_MODULE
8486 # non-empty at configure time, or by adding -multi_module to the
8488 rm -rf libconftest.dylib*
8489 echo "int foo(void){return 1;}" > conftest.c
8490 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8491 -dynamiclib -Wl,-single_module conftest.c" >&5
8492 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8493 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8495 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8496 lt_cv_apple_cc_single_mod=yes
8498 cat conftest.err >&5
8500 rm -rf libconftest.dylib*
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8505 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8508 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 lt_cv_ld_exported_symbols_list=no
8512 save_LDFLAGS=$LDFLAGS
8513 echo "_main" > conftest.sym
8514 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8526 if ac_fn_c_try_link "$LINENO"; then :
8527 lt_cv_ld_exported_symbols_list=yes
8529 lt_cv_ld_exported_symbols_list=no
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LDFLAGS="$save_LDFLAGS"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8539 rhapsody* | darwin1.[012])
8540 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8542 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543 darwin*) # darwin 5.x on
8544 # if running on 10.5 or later, the deployment target defaults
8545 # to the OS version, if on x86, and 10.4, the deployment
8546 # target defaults to 10.4. Don't you love it?
8547 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8548 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8553 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8557 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8558 _lt_dar_single_mod='$single_module'
8560 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8561 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8563 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8565 if test "$DSYMUTIL" != ":"; then
8566 _lt_dsymutil='~$DSYMUTIL $lib || :'
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8574 $as_echo_n "checking for ANSI C header files... " >&6; }
8575 if ${ac_cv_header_stdc+:} false; then :
8576 $as_echo_n "(cached) " >&6
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594 ac_cv_header_stdc=yes
8596 ac_cv_header_stdc=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 if test $ac_cv_header_stdc = yes; then
8601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 $EGREP "memchr" >/dev/null 2>&1; then :
8611 ac_cv_header_stdc=no
8617 if test $ac_cv_header_stdc = yes; then
8618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625 $EGREP "free" >/dev/null 2>&1; then :
8628 ac_cv_header_stdc=no
8634 if test $ac_cv_header_stdc = yes; then
8635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8636 if test "$cross_compiling" = yes; then :
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8643 #if ((' ' & 0x0FF) == 0x020)
8644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8647 # define ISLOWER(c) \
8648 (('a' <= (c) && (c) <= 'i') \
8649 || ('j' <= (c) && (c) <= 'r') \
8650 || ('s' <= (c) && (c) <= 'z'))
8651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8659 for (i = 0; i < 256; i++)
8660 if (XOR (islower (i), ISLOWER (i))
8661 || toupper (i) != TOUPPER (i))
8666 if ac_fn_c_try_run "$LINENO"; then :
8669 ac_cv_header_stdc=no
8671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8672 conftest.$ac_objext conftest.beam conftest.$ac_ext
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8678 $as_echo "$ac_cv_header_stdc" >&6; }
8679 if test $ac_cv_header_stdc = yes; then
8681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8687 inttypes.h stdint.h unistd.h
8689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8693 cat >>confdefs.h <<_ACEOF
8694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702 for ac_header in dlfcn.h
8704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8706 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_DLFCN_H 1
8718 ac_cpp='$CXXCPP $CPPFLAGS'
8719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8722 if test -z "$CXX"; then
8723 if test -n "$CCC"; then
8726 if test -n "$ac_tool_prefix"; then
8727 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_CXX+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$CXX"; then
8737 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 if test -n "$CXX"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8759 $as_echo "$CXX" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8766 test -n "$CXX" && break
8769 if test -z "$CXX"; then
8771 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8773 # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8778 $as_echo_n "(cached) " >&6
8780 if test -n "$ac_ct_CXX"; then
8781 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_prog_ac_ct_CXX="$ac_prog"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8801 if test -n "$ac_ct_CXX"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8803 $as_echo "$ac_ct_CXX" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8810 test -n "$ac_ct_CXX" && break
8813 if test "x$ac_ct_CXX" = x; then
8816 case $cross_compiling:$ac_tool_warned in
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8820 ac_tool_warned=yes ;;
8828 # Provide some information about the compiler.
8829 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8832 for ac_option in --version -v -V -qversion; do
8833 { { ac_try="$ac_compiler $ac_option >&5"
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8839 $as_echo "$ac_try_echo"; } >&5
8840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8842 if test -s conftest.err; then
8844 ... rest of stderr output deleted ...
8845 10q' conftest.err >conftest.er1
8846 cat conftest.er1 >&5
8848 rm -f conftest.er1 conftest.err
8849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850 test $ac_status = 0; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8854 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8855 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8856 $as_echo_n "(cached) " >&6
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8872 if ac_fn_cxx_try_compile "$LINENO"; then :
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8882 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8883 if test $ac_compiler_gnu = yes; then
8888 ac_test_CXXFLAGS=${CXXFLAGS+set}
8889 ac_save_CXXFLAGS=$CXXFLAGS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8891 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8892 if ${ac_cv_prog_cxx_g+:} false; then :
8893 $as_echo_n "(cached) " >&6
8895 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8896 ac_cxx_werror_flag=yes
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8910 if ac_fn_cxx_try_compile "$LINENO"; then :
8911 ac_cv_prog_cxx_g=yes
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8925 if ac_fn_cxx_try_compile "$LINENO"; then :
8928 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8941 if ac_fn_cxx_try_compile "$LINENO"; then :
8942 ac_cv_prog_cxx_g=yes
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8952 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8953 if test "$ac_test_CXXFLAGS" = set; then
8954 CXXFLAGS=$ac_save_CXXFLAGS
8955 elif test $ac_cv_prog_cxx_g = yes; then
8956 if test "$GXX" = yes; then
8962 if test "$GXX" = yes; then
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8976 (test "X$CXX" != "Xg++"))) ; then
8978 ac_cpp='$CXXCPP $CPPFLAGS'
8979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8983 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8984 if test -z "$CXXCPP"; then
8985 if ${ac_cv_prog_CXXCPP+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 # Double quotes because CXXCPP needs to be expanded
8989 for CXXCPP in "$CXX -E" "/lib/cpp"
8992 for ac_cxx_preproc_warn_flag in '' yes
8994 # Use a header file that comes with gcc, so configuring glibc
8995 # with a fresh cross-compiler works.
8996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8997 # <limits.h> exists even on freestanding compilers.
8998 # On the NeXT, cc -E runs the code through the compiler's parser,
8999 # not just through cpp. "Syntax error" is here to catch this case.
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 # include <limits.h>
9005 # include <assert.h>
9009 if ac_fn_cxx_try_cpp "$LINENO"; then :
9012 # Broken: fails on valid input.
9015 rm -f conftest.err conftest.i conftest.$ac_ext
9017 # OK, works on sane cases. Now check whether nonexistent headers
9018 # can be detected and how.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <ac_nonexistent.h>
9023 if ac_fn_cxx_try_cpp "$LINENO"; then :
9024 # Broken: success on invalid input.
9027 # Passes both tests.
9031 rm -f conftest.err conftest.i conftest.$ac_ext
9034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9035 rm -f conftest.i conftest.err conftest.$ac_ext
9036 if $ac_preproc_ok; then :
9041 ac_cv_prog_CXXCPP=$CXXCPP
9044 CXXCPP=$ac_cv_prog_CXXCPP
9046 ac_cv_prog_CXXCPP=$CXXCPP
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9049 $as_echo "$CXXCPP" >&6; }
9051 for ac_cxx_preproc_warn_flag in '' yes
9053 # Use a header file that comes with gcc, so configuring glibc
9054 # with a fresh cross-compiler works.
9055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056 # <limits.h> exists even on freestanding compilers.
9057 # On the NeXT, cc -E runs the code through the compiler's parser,
9058 # not just through cpp. "Syntax error" is here to catch this case.
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9062 # include <limits.h>
9064 # include <assert.h>
9068 if ac_fn_cxx_try_cpp "$LINENO"; then :
9071 # Broken: fails on valid input.
9074 rm -f conftest.err conftest.i conftest.$ac_ext
9076 # OK, works on sane cases. Now check whether nonexistent headers
9077 # can be detected and how.
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #include <ac_nonexistent.h>
9082 if ac_fn_cxx_try_cpp "$LINENO"; then :
9083 # Broken: success on invalid input.
9086 # Passes both tests.
9090 rm -f conftest.err conftest.i conftest.$ac_ext
9093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9094 rm -f conftest.i conftest.err conftest.$ac_ext
9095 if $ac_preproc_ok; then :
9098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9100 _lt_caught_CXX_error=yes; }
9104 ac_cpp='$CPP $CPPFLAGS'
9105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9110 _lt_caught_CXX_error=yes
9118 # Check whether --enable-shared was given.
9119 if test "${enable_shared+set}" = set; then :
9120 enableval=$enable_shared; p=${PACKAGE-default}
9122 yes) enable_shared=yes ;;
9123 no) enable_shared=no ;;
9126 # Look at the argument we got. We use all the common list separators.
9127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9128 for pkg in $enableval; do
9130 if test "X$pkg" = "X$p"; then
9147 # Check whether --enable-static was given.
9148 if test "${enable_static+set}" = set; then :
9149 enableval=$enable_static; p=${PACKAGE-default}
9151 yes) enable_static=yes ;;
9152 no) enable_static=no ;;
9155 # Look at the argument we got. We use all the common list separators.
9156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9157 for pkg in $enableval; do
9159 if test "X$pkg" = "X$p"; then
9188 # Check whether --with-pic was given.
9189 if test "${with_pic+set}" = set; then :
9190 withval=$with_pic; pic_mode="$withval"
9196 test -z "$pic_mode" && pic_mode=default
9204 # Check whether --enable-fast-install was given.
9205 if test "${enable_fast_install+set}" = set; then :
9206 enableval=$enable_fast_install; p=${PACKAGE-default}
9208 yes) enable_fast_install=yes ;;
9209 no) enable_fast_install=no ;;
9211 enable_fast_install=no
9212 # Look at the argument we got. We use all the common list separators.
9213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9214 for pkg in $enableval; do
9216 if test "X$pkg" = "X$p"; then
9217 enable_fast_install=yes
9224 enable_fast_install=yes
9237 # This can be used to rebuild libtool when needed
9238 LIBTOOL_DEPS="$ltmain"
9240 # Always use our own libtool.
9241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9267 test -z "$LN_S" && LN_S="ln -s"
9282 if test -n "${ZSH_VERSION+set}" ; then
9283 setopt NO_GLOB_SUBST
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9287 $as_echo_n "checking for objdir... " >&6; }
9288 if ${lt_cv_objdir+:} false; then :
9289 $as_echo_n "(cached) " >&6
9291 rm -f .libs 2>/dev/null
9292 mkdir .libs 2>/dev/null
9293 if test -d .libs; then
9296 # MS-DOS does not allow filenames that begin with a dot.
9299 rmdir .libs 2>/dev/null
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9302 $as_echo "$lt_cv_objdir" >&6; }
9303 objdir=$lt_cv_objdir
9309 cat >>confdefs.h <<_ACEOF
9310 #define LT_OBJDIR "$lt_cv_objdir/"
9331 # AIX sometimes has problems with the GCC collect2 program. For some
9332 # reason, if we set the COLLECT_NAMES environment variable, the problems
9333 # vanish in a puff of smoke.
9334 if test "X${COLLECT_NAMES+set}" != Xset; then
9336 export COLLECT_NAMES
9341 # Sed substitution that helps us do robust quoting. It backslashifies
9342 # metacharacters that are still active within double-quoted strings.
9343 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9345 # Same as above, but do not quote variable references.
9346 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9348 # Sed substitution to delay expansion of an escaped shell variable in a
9349 # double_quote_subst'ed string.
9350 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9352 # Sed substitution to delay expansion of an escaped single quote.
9353 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9355 # Sed substitution to avoid accidental globbing in evaled expressions
9356 no_glob_subst='s/\*/\\\*/g'
9360 can_build_shared=yes
9362 # All known linkers require a `.a' archive for static linking (except MSVC,
9363 # which needs '.lib').
9366 with_gnu_ld="$lt_cv_prog_gnu_ld"
9369 old_CFLAGS="$CFLAGS"
9371 # Set sane defaults for various variables
9372 test -z "$CC" && CC=cc
9373 test -z "$LTCC" && LTCC=$CC
9374 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9375 test -z "$LD" && LD=ld
9376 test -z "$ac_objext" && ac_objext=o
9378 for cc_temp in $compiler""; do
9380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9386 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9389 # Only perform the check for file, if the check method requires it
9390 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9391 case $deplibs_check_method in
9393 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9395 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9396 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9397 $as_echo_n "(cached) " >&6
9401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9404 lt_save_MAGIC_CMD="$MAGIC_CMD"
9405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9407 for ac_dir in $ac_dummy; do
9409 test -z "$ac_dir" && ac_dir=.
9410 if test -f $ac_dir/${ac_tool_prefix}file; then
9411 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9412 if test -n "$file_magic_test_file"; then
9413 case $deplibs_check_method in
9415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9418 $EGREP "$file_magic_regex" > /dev/null; then
9423 *** Warning: the command libtool uses to detect shared libraries,
9424 *** $file_magic_cmd, produces output that libtool cannot recognize.
9425 *** The result is that libtool may fail to recognize shared libraries
9426 *** as such. This will affect the creation of libtool libraries that
9427 *** depend on shared libraries, but programs linked with such libtool
9428 *** libraries will work regardless of this problem. Nevertheless, you
9429 *** may want to report the problem to your system manager and/or to
9430 *** bug-libtool@gnu.org
9440 MAGIC_CMD="$lt_save_MAGIC_CMD"
9445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9446 if test -n "$MAGIC_CMD"; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9448 $as_echo "$MAGIC_CMD" >&6; }
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9458 if test -z "$lt_cv_path_MAGIC_CMD"; then
9459 if test -n "$ac_tool_prefix"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9461 $as_echo_n "checking for file... " >&6; }
9462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9463 $as_echo_n "(cached) " >&6
9467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9470 lt_save_MAGIC_CMD="$MAGIC_CMD"
9471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9473 for ac_dir in $ac_dummy; do
9475 test -z "$ac_dir" && ac_dir=.
9476 if test -f $ac_dir/file; then
9477 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9478 if test -n "$file_magic_test_file"; then
9479 case $deplibs_check_method in
9481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9484 $EGREP "$file_magic_regex" > /dev/null; then
9489 *** Warning: the command libtool uses to detect shared libraries,
9490 *** $file_magic_cmd, produces output that libtool cannot recognize.
9491 *** The result is that libtool may fail to recognize shared libraries
9492 *** as such. This will affect the creation of libtool libraries that
9493 *** depend on shared libraries, but programs linked with such libtool
9494 *** libraries will work regardless of this problem. Nevertheless, you
9495 *** may want to report the problem to your system manager and/or to
9496 *** bug-libtool@gnu.org
9506 MAGIC_CMD="$lt_save_MAGIC_CMD"
9511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9512 if test -n "$MAGIC_CMD"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9514 $as_echo "$MAGIC_CMD" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9530 # Use C for the default configuration in the libtool script
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9540 # Source file extension for C test sources.
9543 # Object file extension for compiled C test sources.
9547 # Code to be used in simple compile tests
9548 lt_simple_compile_test_code="int some_variable = 0;"
9550 # Code to be used in simple link tests
9551 lt_simple_link_test_code='int main(){return(0);}'
9559 # If no C compiler was specified, use CC.
9562 # If no C compiler flags were specified, use CFLAGS.
9563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9565 # Allow CC to be a program name with arguments.
9568 # Save the default compiler, since it gets overwritten when the other
9569 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9570 compiler_DEFAULT=$CC
9572 # save warnings/boilerplate of simple test code
9573 ac_outfile=conftest.$ac_objext
9574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9576 _lt_compiler_boilerplate=`cat conftest.err`
9579 ac_outfile=conftest.$ac_objext
9580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9582 _lt_linker_boilerplate=`cat conftest.err`
9587 ## There is no encapsulation within the following macros, do not change
9588 ## the running order or otherwise move them around unless you know exactly
9589 ## what you are doing...
9590 if test -n "$compiler"; then
9592 lt_prog_compiler_no_builtin_flag=
9594 if test "$GCC" = yes; then
9595 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9598 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9599 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9600 $as_echo_n "(cached) " >&6
9602 lt_cv_prog_compiler_rtti_exceptions=no
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605 lt_compiler_flag="-fno-rtti -fno-exceptions"
9606 # Insert the option either (1) after the last *FLAGS variable, or
9607 # (2) before a word containing "conftest.", or (3) at the end.
9608 # Note that $ac_compile itself does not contain backslashes and begins
9609 # with a dollar sign (not a hyphen), so the echo should work correctly.
9610 # The option is referenced via a variable to avoid confusing sed.
9611 lt_compile=`echo "$ac_compile" | $SED \
9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614 -e 's:$: $lt_compiler_flag:'`
9615 (eval echo "\"\$as_me:9615: $lt_compile\"" >&5)
9616 (eval "$lt_compile" 2>conftest.err)
9618 cat conftest.err >&5
9619 echo "$as_me:9619: \$? = $ac_status" >&5
9620 if (exit $ac_status) && test -s "$ac_outfile"; then
9621 # The compiler can only warn and ignore the option if not recognized
9622 # So say no if there are warnings other than the usual output.
9623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9626 lt_cv_prog_compiler_rtti_exceptions=yes
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9633 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9635 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9636 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9648 lt_prog_compiler_wl=
9649 lt_prog_compiler_pic=
9650 lt_prog_compiler_static=
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9653 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9655 if test "$GCC" = yes; then
9656 lt_prog_compiler_wl='-Wl,'
9657 lt_prog_compiler_static='-static'
9661 # All AIX code is PIC.
9662 if test "$host_cpu" = ia64; then
9663 # AIX 5 now supports IA64 processor
9664 lt_prog_compiler_static='-Bstatic'
9671 # see comment about AmigaOS4 .so support
9672 lt_prog_compiler_pic='-fPIC'
9675 # FIXME: we need at least 68020 code to build shared libraries, but
9676 # adding the `-m68020' flag to GCC prevents building anything better,
9678 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9684 # PIC is the default for these OSes.
9687 mingw* | cygwin* | pw32* | os2* | cegcc*)
9688 # This hack is so that the source file can tell whether it is being
9689 # built for inclusion in a dll (and should export symbols for example).
9690 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9691 # (--disable-auto-import) libraries
9692 lt_prog_compiler_pic='-DDLL_EXPORT'
9695 darwin* | rhapsody*)
9696 # PIC is the default on this platform
9697 # Common symbols not allowed in MH_DYLIB files
9698 lt_prog_compiler_pic='-fno-common'
9702 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9703 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9704 # sets the default TLS model and affects inlining.
9710 lt_prog_compiler_pic='-fPIC'
9716 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9717 # Instead, we relocate shared libraries at runtime.
9721 # Just because we use GCC doesn't mean we suddenly get shared libraries
9722 # on systems that don't support them.
9723 lt_prog_compiler_can_build_shared=no
9728 # QNX uses GNU C++, but need to define -shared option too, otherwise
9730 lt_prog_compiler_pic='-fPIC -shared'
9734 if test -d /usr/nec; then
9735 lt_prog_compiler_pic=-Kconform_pic
9740 lt_prog_compiler_pic='-fPIC'
9744 # PORTME Check for flag to pass linker flags through the system compiler.
9747 lt_prog_compiler_wl='-Wl,'
9748 if test "$host_cpu" = ia64; then
9749 # AIX 5 now supports IA64 processor
9750 lt_prog_compiler_static='-Bstatic'
9752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9756 mingw* | cygwin* | pw32* | os2* | cegcc*)
9757 # This hack is so that the source file can tell whether it is being
9758 # built for inclusion in a dll (and should export symbols for example).
9759 lt_prog_compiler_pic='-DDLL_EXPORT'
9762 hpux9* | hpux10* | hpux11*)
9763 lt_prog_compiler_wl='-Wl,'
9764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9771 lt_prog_compiler_pic='+Z'
9774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9775 lt_prog_compiler_static='${wl}-a ${wl}archive'
9778 irix5* | irix6* | nonstopux*)
9779 lt_prog_compiler_wl='-Wl,'
9780 # PIC (with -KPIC) is the default.
9781 lt_prog_compiler_static='-non_shared'
9784 linux* | k*bsd*-gnu)
9785 case $cc_basename in
9786 # old Intel for x86_64 which still supported -KPIC.
9788 lt_prog_compiler_wl='-Wl,'
9789 lt_prog_compiler_pic='-KPIC'
9790 lt_prog_compiler_static='-static'
9792 # icc used to be incompatible with GCC.
9793 # ICC 10 doesn't accept -KPIC any more.
9795 lt_prog_compiler_wl='-Wl,'
9796 lt_prog_compiler_pic='-fPIC'
9797 lt_prog_compiler_static='-static'
9799 # Lahey Fortran 8.1.
9801 lt_prog_compiler_wl='-Wl,'
9802 lt_prog_compiler_pic='--shared'
9803 lt_prog_compiler_static='--static'
9805 pgcc* | pgf77* | pgf90* | pgf95*)
9806 # Portland Group compilers (*not* the Pentium gcc compiler,
9807 # which looks to be a dead project)
9808 lt_prog_compiler_wl='-Wl,'
9809 lt_prog_compiler_pic='-fpic'
9810 lt_prog_compiler_static='-Bstatic'
9813 lt_prog_compiler_wl='-Wl,'
9814 # All Alpha code is PIC.
9815 lt_prog_compiler_static='-non_shared'
9818 # IBM XL C 8.0/Fortran 10.1 on PPC
9819 lt_prog_compiler_wl='-Wl,'
9820 lt_prog_compiler_pic='-qpic'
9821 lt_prog_compiler_static='-qstaticlink'
9824 case `$CC -V 2>&1 | sed 5q` in
9827 lt_prog_compiler_pic='-KPIC'
9828 lt_prog_compiler_static='-Bstatic'
9829 lt_prog_compiler_wl='-Wl,'
9832 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9833 lt_prog_compiler_pic='-KPIC'
9834 lt_prog_compiler_static='-Bstatic'
9835 lt_prog_compiler_wl=''
9843 lt_prog_compiler_pic='-KPIC'
9844 lt_prog_compiler_static='-Bstatic'
9848 # QNX uses GNU C++, but need to define -shared option too, otherwise
9850 lt_prog_compiler_pic='-fPIC -shared'
9853 osf3* | osf4* | osf5*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # All OSF/1 code is PIC.
9856 lt_prog_compiler_static='-non_shared'
9860 lt_prog_compiler_static='-non_shared'
9864 lt_prog_compiler_pic='-KPIC'
9865 lt_prog_compiler_static='-Bstatic'
9866 case $cc_basename in
9868 lt_prog_compiler_wl='-Qoption ld ';;
9870 lt_prog_compiler_wl='-Wl,';;
9875 lt_prog_compiler_wl='-Qoption ld '
9876 lt_prog_compiler_pic='-PIC'
9877 lt_prog_compiler_static='-Bstatic'
9880 sysv4 | sysv4.2uw2* | sysv4.3*)
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-KPIC'
9883 lt_prog_compiler_static='-Bstatic'
9887 if test -d /usr/nec ;then
9888 lt_prog_compiler_pic='-Kconform_pic'
9889 lt_prog_compiler_static='-Bstatic'
9893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-KPIC'
9896 lt_prog_compiler_static='-Bstatic'
9900 lt_prog_compiler_wl='-Wl,'
9901 lt_prog_compiler_can_build_shared=no
9905 lt_prog_compiler_pic='-pic'
9906 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_can_build_shared=no
9916 # For platforms which do not support PIC, -DPIC is meaningless:
9918 lt_prog_compiler_pic=
9921 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9925 $as_echo "$lt_prog_compiler_pic" >&6; }
9933 # Check to make sure the PIC flag actually works.
9935 if test -n "$lt_prog_compiler_pic"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9938 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 lt_cv_prog_compiler_pic_works=no
9942 ac_outfile=conftest.$ac_objext
9943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9945 # Insert the option either (1) after the last *FLAGS variable, or
9946 # (2) before a word containing "conftest.", or (3) at the end.
9947 # Note that $ac_compile itself does not contain backslashes and begins
9948 # with a dollar sign (not a hyphen), so the echo should work correctly.
9949 # The option is referenced via a variable to avoid confusing sed.
9950 lt_compile=`echo "$ac_compile" | $SED \
9951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9953 -e 's:$: $lt_compiler_flag:'`
9954 (eval echo "\"\$as_me:9954: $lt_compile\"" >&5)
9955 (eval "$lt_compile" 2>conftest.err)
9957 cat conftest.err >&5
9958 echo "$as_me:9958: \$? = $ac_status" >&5
9959 if (exit $ac_status) && test -s "$ac_outfile"; then
9960 # The compiler can only warn and ignore the option if not recognized
9961 # So say no if there are warnings other than the usual output.
9962 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9965 lt_cv_prog_compiler_pic_works=yes
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9972 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9974 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9975 case $lt_prog_compiler_pic in
9977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9980 lt_prog_compiler_pic=
9981 lt_prog_compiler_can_build_shared=no
9992 # Check to make sure the static flag actually works.
9994 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9996 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9997 if ${lt_cv_prog_compiler_static_works+:} false; then :
9998 $as_echo_n "(cached) " >&6
10000 lt_cv_prog_compiler_static_works=no
10001 save_LDFLAGS="$LDFLAGS"
10002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10005 # The linker can only warn and ignore the option if not recognized
10006 # So say no if there are warnings
10007 if test -s conftest.err; then
10008 # Append any errors to the config.log.
10009 cat conftest.err 1>&5
10010 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10012 if diff conftest.exp conftest.er2 >/dev/null; then
10013 lt_cv_prog_compiler_static_works=yes
10016 lt_cv_prog_compiler_static_works=yes
10020 LDFLAGS="$save_LDFLAGS"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10024 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10026 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10029 lt_prog_compiler_static=
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10040 if ${lt_cv_prog_compiler_c_o+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 lt_cv_prog_compiler_c_o=no
10044 $RM -r conftest 2>/dev/null
10048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10050 lt_compiler_flag="-o out/conftest2.$ac_objext"
10051 # Insert the option either (1) after the last *FLAGS variable, or
10052 # (2) before a word containing "conftest.", or (3) at the end.
10053 # Note that $ac_compile itself does not contain backslashes and begins
10054 # with a dollar sign (not a hyphen), so the echo should work correctly.
10055 lt_compile=`echo "$ac_compile" | $SED \
10056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10058 -e 's:$: $lt_compiler_flag:'`
10059 (eval echo "\"\$as_me:10059: $lt_compile\"" >&5)
10060 (eval "$lt_compile" 2>out/conftest.err)
10062 cat out/conftest.err >&5
10063 echo "$as_me:10063: \$? = $ac_status" >&5
10064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10066 # The compiler can only warn and ignore the option if not recognized
10067 # So say no if there are warnings
10068 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10071 lt_cv_prog_compiler_c_o=yes
10076 # SGI C++ compiler will create directory out/ii_files/ for
10077 # template instantiation
10078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10079 $RM out/* && rmdir out
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10095 if ${lt_cv_prog_compiler_c_o+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 lt_cv_prog_compiler_c_o=no
10099 $RM -r conftest 2>/dev/null
10103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10105 lt_compiler_flag="-o out/conftest2.$ac_objext"
10106 # Insert the option either (1) after the last *FLAGS variable, or
10107 # (2) before a word containing "conftest.", or (3) at the end.
10108 # Note that $ac_compile itself does not contain backslashes and begins
10109 # with a dollar sign (not a hyphen), so the echo should work correctly.
10110 lt_compile=`echo "$ac_compile" | $SED \
10111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10113 -e 's:$: $lt_compiler_flag:'`
10114 (eval echo "\"\$as_me:10114: $lt_compile\"" >&5)
10115 (eval "$lt_compile" 2>out/conftest.err)
10117 cat out/conftest.err >&5
10118 echo "$as_me:10118: \$? = $ac_status" >&5
10119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10121 # The compiler can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler_c_o=yes
10131 # SGI C++ compiler will create directory out/ii_files/ for
10132 # template instantiation
10133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10134 $RM out/* && rmdir out
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10146 hard_links="nottested"
10147 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10148 # do not overwrite the value of need_locks provided by the user
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10150 $as_echo_n "checking if we can lock with hard links... " >&6; }
10153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10155 ln conftest.a conftest.b 2>&5 || hard_links=no
10156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10158 $as_echo "$hard_links" >&6; }
10159 if test "$hard_links" = no; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10161 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10174 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10177 allow_undefined_flag=
10178 always_export_symbols=no
10180 archive_expsym_cmds=
10181 compiler_needs_object=no
10182 enable_shared_with_static_runtimes=no
10183 export_dynamic_flag_spec=
10184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10185 hardcode_automatic=no
10187 hardcode_direct_absolute=no
10188 hardcode_libdir_flag_spec=
10189 hardcode_libdir_flag_spec_ld=
10190 hardcode_libdir_separator=
10191 hardcode_minus_L=no
10192 hardcode_shlibpath_var=unsupported
10194 link_all_deplibs=unknown
10196 module_expsym_cmds=
10197 old_archive_from_new_cmds=
10198 old_archive_from_expsyms_cmds=
10199 thread_safe_flag_spec=
10200 whole_archive_flag_spec=
10201 # include_expsyms should be a list of space-separated symbols to be *always*
10202 # included in the symbol list
10204 # exclude_expsyms can be an extended regexp of symbols to exclude
10205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10207 # as well as any symbol that contains `d'.
10208 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10210 # platforms (ab)use it in PIC code, but their linkers get confused if
10211 # the symbol is explicitly referenced. Since portable code cannot
10212 # rely on this symbol name, it's probably fine to never include it in
10213 # preloaded symbol tables.
10214 # Exclude shared library initialization/finalization symbols.
10215 extract_expsyms_cmds=
10218 cygwin* | mingw* | pw32* | cegcc*)
10219 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10220 # When not using gcc, we currently assume that we are using
10221 # Microsoft Visual C++.
10222 if test "$GCC" != yes; then
10227 # we just hope/assume this is gcc and not c89 (= MSVC++)
10236 if test "$with_gnu_ld" = yes; then
10237 # If archive_cmds runs LD, not CC, wlarc should be empty
10240 # Set some defaults for GNU ld with shared library support. These
10241 # are reset later if shared libraries are not supported. Putting them
10242 # here allows them to be overridden if necessary.
10243 runpath_var=LD_RUN_PATH
10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245 export_dynamic_flag_spec='${wl}--export-dynamic'
10246 # ancient GNU ld didn't support --whole-archive et. al.
10247 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10248 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10250 whole_archive_flag_spec=
10252 supports_anon_versioning=no
10253 case `$LD -v 2>&1` in
10254 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10255 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10256 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10257 *\ 2.11.*) ;; # other 2.11 versions
10258 *) supports_anon_versioning=yes ;;
10261 # See if GNU ld supports shared libraries.
10264 # On AIX/PPC, the GNU linker is very broken
10265 if test "$host_cpu" != ia64; then
10269 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10270 *** to be unable to reliably create shared libraries on AIX.
10271 *** Therefore, libtool is disabling shared libraries support. If you
10272 *** really care for shared libraries, you may want to modify your PATH
10273 *** so that a non-GNU linker is found, and then restart.
10282 # see comment about AmigaOS4 .so support
10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284 archive_expsym_cmds=''
10287 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)'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_minus_L=yes
10295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296 allow_undefined_flag=unsupported
10297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10298 # support --undefined. This deserves some investigation. FIXME
10299 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 cygwin* | mingw* | pw32* | cegcc*)
10306 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10307 # as there is no search path for DLLs.
10308 hardcode_libdir_flag_spec='-L$libdir'
10309 allow_undefined_flag=unsupported
10310 always_export_symbols=no
10311 enable_shared_with_static_runtimes=yes
10312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10314 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10316 # If the export-symbols file already is a .def file (1st line
10317 # is EXPORTS), use it as is; otherwise, prepend...
10318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10319 cp $export_symbols $output_objdir/$soname.def;
10321 echo EXPORTS > $output_objdir/$soname.def;
10322 cat $export_symbols >> $output_objdir/$soname.def;
10324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10332 hardcode_shlibpath_var=no
10333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10334 export_dynamic_flag_spec='${wl}-E'
10335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10336 # Instead, shared libraries are loaded at an image base (0x10000000 by
10337 # default) and relocated if they conflict, which is a slow very memory
10338 # consuming and fragmenting process. To avoid this, we pick a random,
10339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10342 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'
10345 gnu* | linux* | tpf* | k*bsd*-gnu)
10347 if test "$host_os" = linux-dietlibc; then
10348 case $cc_basename in
10349 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10352 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10353 && test "$tmp_diet" = no
10356 tmp_sharedflag='-shared'
10357 case $cc_basename,$host_cpu in
10358 pgcc*) # Portland Group C compiler
10359 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'
10360 tmp_addflag=' $pic_flag'
10362 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10363 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'
10364 tmp_addflag=' $pic_flag -Mnomain' ;;
10365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10366 tmp_addflag=' -i_dynamic' ;;
10367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10368 tmp_addflag=' -i_dynamic -nofor_main' ;;
10369 ifc* | ifort*) # Intel Fortran compiler
10370 tmp_addflag=' -nofor_main' ;;
10371 lf95*) # Lahey Fortran 8.1
10372 whole_archive_flag_spec=
10373 tmp_sharedflag='--shared' ;;
10374 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10375 tmp_sharedflag='-qmkshrobj'
10378 case `$CC -V 2>&1 | sed 5q` in
10379 *Sun\ C*) # Sun C 5.9
10380 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'
10381 compiler_needs_object=yes
10382 tmp_sharedflag='-G' ;;
10383 *Sun\ F*) # Sun Fortran 8.3
10384 tmp_sharedflag='-G' ;;
10386 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388 if test "x$supports_anon_versioning" = xyes; then
10389 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10391 echo "local: *; };" >> $output_objdir/$libname.ver~
10392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10395 case $cc_basename in
10397 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10398 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10399 hardcode_libdir_flag_spec=
10400 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10401 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10402 if test "x$supports_anon_versioning" = xyes; then
10403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10405 echo "local: *; };" >> $output_objdir/$libname.ver~
10406 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10417 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10426 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10431 *** create shared libraries on Solaris systems. Therefore, libtool
10432 *** is disabling shared libraries support. We urge you to upgrade GNU
10433 *** binutils to release 2.9.1 or newer. Another option is to modify
10434 *** your PATH or compiler configuration so that the native linker is
10435 *** used, and then restart.
10438 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10447 case `$LD -v 2>&1` in
10448 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10453 *** reliably create shared libraries on SCO systems. Therefore, libtool
10454 *** is disabling shared libraries support. We urge you to upgrade GNU
10455 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10456 *** your PATH or compiler configuration so that the native linker is
10457 *** used, and then restart.
10462 # For security reasons, it is highly recommended that you always
10463 # use absolute paths for naming shared libraries, and exclude the
10464 # DT_RUNPATH tag from executables and libraries. But doing so
10465 # requires that you compile everything twice, which is a pain.
10466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10478 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10494 if test "$ld_shlibs" = no; then
10496 hardcode_libdir_flag_spec=
10497 export_dynamic_flag_spec=
10498 whole_archive_flag_spec=
10501 # PORTME fill in a description of your system's linker (not GNU ld)
10504 allow_undefined_flag=unsupported
10505 always_export_symbols=yes
10506 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'
10507 # Note: this linker hardcodes the directories in LIBPATH if there
10508 # are no directories specified by -L.
10509 hardcode_minus_L=yes
10510 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10511 # Neither direct hardcoding nor static linking is supported with a
10513 hardcode_direct=unsupported
10518 if test "$host_cpu" = ia64; then
10519 # On IA64, the linker does run time linking by default, so we don't
10520 # have to do anything special.
10521 aix_use_runtimelinking=no
10522 exp_sym_flag='-Bexport'
10525 # If we're using GNU nm, then we don't want the "-C" option.
10526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10528 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'
10530 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'
10532 aix_use_runtimelinking=no
10534 # Test if we are trying to use run time linking or normal
10535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10536 # need to do runtime linking.
10537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10538 for ld_flag in $LDFLAGS; do
10539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10540 aix_use_runtimelinking=yes
10547 exp_sym_flag='-bexport'
10548 no_entry_flag='-bnoentry'
10551 # When large executables or shared objects are built, AIX ld can
10552 # have problems creating the table of contents. If linking a library
10553 # or program results in "error TOC overflow" add -mminimal-toc to
10554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10558 hardcode_direct=yes
10559 hardcode_direct_absolute=yes
10560 hardcode_libdir_separator=':'
10561 link_all_deplibs=yes
10562 file_list_spec='${wl}-f,'
10564 if test "$GCC" = yes; then
10565 case $host_os in aix4.[012]|aix4.[012].*)
10566 # We only want to do this on AIX 4.2 and lower, the check
10567 # below for broken collect2 doesn't work under 4.3+
10568 collect2name=`${CC} -print-prog-name=collect2`
10569 if test -f "$collect2name" &&
10570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10572 # We have reworked collect2
10575 # We have old collect2
10576 hardcode_direct=unsupported
10577 # It fails to find uninstalled libraries when the uninstalled
10578 # path is not listed in the libpath. Setting hardcode_minus_L
10579 # to unsupported forces relinking
10580 hardcode_minus_L=yes
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_libdir_separator=
10586 shared_flag='-shared'
10587 if test "$aix_use_runtimelinking" = yes; then
10588 shared_flag="$shared_flag "'${wl}-G'
10592 if test "$host_cpu" = ia64; then
10593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10594 # chokes on -Wl,-G. The following line is correct:
10597 if test "$aix_use_runtimelinking" = yes; then
10598 shared_flag='${wl}-G'
10600 shared_flag='${wl}-bM:SRE'
10605 export_dynamic_flag_spec='${wl}-bexpall'
10606 # It seems that -bexpall does not export symbols beginning with
10607 # underscore (_), so it is better to generate a list of symbols to export.
10608 always_export_symbols=yes
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # Warning - without using the other runtime loading flags (-brtl),
10611 # -berok will link without error, but may produce a broken library.
10612 allow_undefined_flag='-berok'
10613 # Determine the default libpath from the value encoded in an
10614 # empty executable.
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10626 if ac_fn_c_try_link "$LINENO"; then :
10628 lt_aix_libpath_sed='
10629 /Import File Strings/,/^$/ {
10635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10636 # Check for a 64-bit object if we didn't find anything.
10637 if test -z "$aix_libpath"; then
10638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10645 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10646 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"
10648 if test "$host_cpu" = ia64; then
10649 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10650 allow_undefined_flag="-z nodefs"
10651 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"
10653 # Determine the default libpath from the value encoded in an
10654 # empty executable.
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10666 if ac_fn_c_try_link "$LINENO"; then :
10668 lt_aix_libpath_sed='
10669 /Import File Strings/,/^$/ {
10675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10676 # Check for a 64-bit object if we didn't find anything.
10677 if test -z "$aix_libpath"; then
10678 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 rm -f core conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10686 # Warning - without using the other run time loading flags,
10687 # -berok will link without error, but may produce a broken library.
10688 no_undefined_flag=' ${wl}-bernotok'
10689 allow_undefined_flag=' ${wl}-berok'
10690 # Exported symbols can be pulled into shared objects from archives
10691 whole_archive_flag_spec='$convenience'
10692 archive_cmds_need_lc=yes
10693 # This is similar to how AIX traditionally builds its shared libraries.
10694 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'
10702 # see comment about AmigaOS4 .so support
10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704 archive_expsym_cmds=''
10707 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)'
10708 hardcode_libdir_flag_spec='-L$libdir'
10709 hardcode_minus_L=yes
10715 export_dynamic_flag_spec=-rdynamic
10718 cygwin* | mingw* | pw32* | cegcc*)
10719 # When not using gcc, we currently assume that we are using
10720 # Microsoft Visual C++.
10721 # hardcode_libdir_flag_spec is actually meaningless, as there is
10722 # no search path for DLLs.
10723 hardcode_libdir_flag_spec=' '
10724 allow_undefined_flag=unsupported
10725 # Tell ltmain to make .lib files, not .a files.
10727 # Tell ltmain to make .dll files, not .so files.
10729 # FIXME: Setting linknames here is a bad hack.
10730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10731 # The linker will automatically build a .lib file if we build a DLL.
10732 old_archive_from_new_cmds='true'
10733 # FIXME: Should let the user specify the lib program.
10734 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10735 fix_srcfile_path='`cygpath -w "$srcfile"`'
10736 enable_shared_with_static_runtimes=yes
10739 darwin* | rhapsody*)
10742 archive_cmds_need_lc=no
10744 hardcode_automatic=yes
10745 hardcode_shlibpath_var=unsupported
10746 whole_archive_flag_spec=''
10747 link_all_deplibs=yes
10748 allow_undefined_flag="$_lt_dar_allow_undefined"
10749 case $cc_basename in
10750 ifort*) _lt_dar_can_shared=yes ;;
10751 *) _lt_dar_can_shared=$GCC ;;
10753 if test "$_lt_dar_can_shared" = "yes"; then
10754 output_verbose_link_cmd=echo
10755 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10756 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10757 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}"
10758 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}"
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_shlibpath_var=no
10776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10777 # support. Future versions do this automatically, but an explicit c++rt0.o
10778 # does not break anything, and helps significantly (at the cost of a little
10781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10782 hardcode_libdir_flag_spec='-R$libdir'
10783 hardcode_direct=yes
10784 hardcode_shlibpath_var=no
10787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10790 hardcode_direct=yes
10791 hardcode_minus_L=yes
10792 hardcode_shlibpath_var=no
10795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10796 freebsd* | dragonfly*)
10797 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10798 hardcode_libdir_flag_spec='-R$libdir'
10799 hardcode_direct=yes
10800 hardcode_shlibpath_var=no
10804 if test "$GCC" = yes; then
10805 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'
10807 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'
10809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10810 hardcode_libdir_separator=:
10811 hardcode_direct=yes
10813 # hardcode_minus_L: Not really in the search PATH,
10814 # but as the default location of the library.
10815 hardcode_minus_L=yes
10816 export_dynamic_flag_spec='${wl}-E'
10820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10825 if test "$with_gnu_ld" = no; then
10826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10827 hardcode_libdir_flag_spec_ld='+b $libdir'
10828 hardcode_libdir_separator=:
10829 hardcode_direct=yes
10830 hardcode_direct_absolute=yes
10831 export_dynamic_flag_spec='${wl}-E'
10832 # hardcode_minus_L: Not really in the search PATH,
10833 # but as the default location of the library.
10834 hardcode_minus_L=yes
10839 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10864 if test "$with_gnu_ld" = no; then
10865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10866 hardcode_libdir_separator=:
10871 hardcode_shlibpath_var=no
10874 hardcode_direct=yes
10875 hardcode_direct_absolute=yes
10876 export_dynamic_flag_spec='${wl}-E'
10878 # hardcode_minus_L: Not really in the search PATH,
10879 # but as the default location of the library.
10880 hardcode_minus_L=yes
10886 irix5* | irix6* | nonstopux*)
10887 if test "$GCC" = yes; then
10888 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'
10889 # Try to use the -exported_symbol ld option, if it does not
10890 # work, assume that -exports_file does not work either and
10891 # implicitly export all symbols.
10892 save_LDFLAGS="$LDFLAGS"
10893 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 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'
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LDFLAGS="$save_LDFLAGS"
10906 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'
10907 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'
10909 archive_cmds_need_lc='no'
10910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10911 hardcode_libdir_separator=:
10913 link_all_deplibs=yes
10917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10920 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10922 hardcode_libdir_flag_spec='-R$libdir'
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_direct=yes
10930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator=:
10932 hardcode_shlibpath_var=no
10939 if test -f /usr/libexec/ld.so; then
10940 hardcode_direct=yes
10941 hardcode_shlibpath_var=no
10942 hardcode_direct_absolute=yes
10943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10947 export_dynamic_flag_spec='${wl}-E'
10950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_libdir_flag_spec='-R$libdir'
10955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10966 hardcode_libdir_flag_spec='-L$libdir'
10967 hardcode_minus_L=yes
10968 allow_undefined_flag=unsupported
10969 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'
10970 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10974 if test "$GCC" = yes; then
10975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10976 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'
10978 allow_undefined_flag=' -expect_unresolved \*'
10979 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'
10981 archive_cmds_need_lc='no'
10982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10983 hardcode_libdir_separator=:
10986 osf4* | osf5*) # as osf3* with the addition of -msym flag
10987 if test "$GCC" = yes; then
10988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10989 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'
10990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10992 allow_undefined_flag=' -expect_unresolved \*'
10993 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'
10994 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~
10995 $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'
10997 # Both c and cxx compiler support -rpath directly
10998 hardcode_libdir_flag_spec='-rpath $libdir'
11000 archive_cmds_need_lc='no'
11001 hardcode_libdir_separator=:
11005 no_undefined_flag=' -z defs'
11006 if test "$GCC" = yes; then
11008 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11010 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11012 case `$CC -V 2>&1` in
11015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11021 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11023 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11027 hardcode_libdir_flag_spec='-R$libdir'
11028 hardcode_shlibpath_var=no
11030 solaris2.[0-5] | solaris2.[0-5].*) ;;
11032 # The compiler driver will combine and reorder linker options,
11033 # but understands `-z linker_flag'. GCC discards it without `$wl',
11034 # but is careful enough not to reorder.
11035 # Supported since Solaris 2.6 (maybe 2.5.1?)
11036 if test "$GCC" = yes; then
11037 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11043 link_all_deplibs=yes
11047 if test "x$host_vendor" = xsequent; then
11048 # Use $CC to link under sequent, because it throws in some extra .o
11049 # files that make .init and .fini sections work.
11050 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 hardcode_direct=yes
11056 hardcode_minus_L=yes
11057 hardcode_shlibpath_var=no
11061 case $host_vendor in
11063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064 hardcode_direct=yes # is this really true???
11067 ## LD is ld it makes a PLAMLIB
11068 ## CC just makes a GrossModule.
11069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11070 reload_cmds='$CC -r -o $output$reload_objs'
11074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11078 runpath_var='LD_RUN_PATH'
11079 hardcode_shlibpath_var=no
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_shlibpath_var=no
11085 export_dynamic_flag_spec='-Bexport'
11089 if test -d /usr/nec; then
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_shlibpath_var=no
11092 runpath_var=LD_RUN_PATH
11093 hardcode_runpath_var=yes
11098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11099 no_undefined_flag='${wl}-z,text'
11100 archive_cmds_need_lc=no
11101 hardcode_shlibpath_var=no
11102 runpath_var='LD_RUN_PATH'
11104 if test "$GCC" = yes; then
11105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 sysv5* | sco3.2v5* | sco5v6*)
11114 # Note: We can NOT use -z defs as we might desire, because we do not
11115 # link with -lc, and that would cause any symbols used from libc to
11116 # always be unresolved, which means just about no library would
11117 # ever link correctly. If we're not using GNU ld we use -z text
11118 # though, which does catch some bad symbols but isn't as heavy-handed
11120 no_undefined_flag='${wl}-z,text'
11121 allow_undefined_flag='${wl}-z,nodefs'
11122 archive_cmds_need_lc=no
11123 hardcode_shlibpath_var=no
11124 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11125 hardcode_libdir_separator=':'
11126 link_all_deplibs=yes
11127 export_dynamic_flag_spec='${wl}-Bexport'
11128 runpath_var='LD_RUN_PATH'
11130 if test "$GCC" = yes; then
11131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141 hardcode_libdir_flag_spec='-L$libdir'
11142 hardcode_shlibpath_var=no
11150 if test x$host_vendor = xsni; then
11152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11153 export_dynamic_flag_spec='${wl}-Blargedynsym'
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11160 $as_echo "$ld_shlibs" >&6; }
11161 test "$ld_shlibs" = no && can_build_shared=no
11163 with_gnu_ld=$with_gnu_ld
11180 # Do we need to explicitly link libc?
11182 case "x$archive_cmds_need_lc" in
11184 # Assume -lc should be added
11185 archive_cmds_need_lc=yes
11187 if test "$enable_shared" = yes && test "$GCC" = yes; then
11188 case $archive_cmds in
11190 # FIXME: we may have to deal with multi-command sequences.
11193 # Test whether the compiler implicitly links with -lc since on some
11194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11195 # to ld, don't add -lc before -lgcc.
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11197 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11202 (eval $ac_compile) 2>&5
11204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11205 test $ac_status = 0; } 2>conftest.err; then
11208 libobjs=conftest.$ac_objext
11210 wl=$lt_prog_compiler_wl
11211 pic_flag=$lt_prog_compiler_pic
11217 lt_save_allow_undefined_flag=$allow_undefined_flag
11218 allow_undefined_flag=
11219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11220 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223 test $ac_status = 0; }
11225 archive_cmds_need_lc=no
11227 archive_cmds_need_lc=yes
11229 allow_undefined_flag=$lt_save_allow_undefined_flag
11231 cat conftest.err 1>&5
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11235 $as_echo "$archive_cmds_need_lc" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11401 if test "$GCC" = yes; then
11403 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11404 *) lt_awk_arg="/^libraries:/" ;;
11406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11407 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11408 # if the path contains ";" then we assume it to be the separator
11409 # otherwise default to the standard path separator (i.e. ":") - it is
11410 # assumed that no part of a normal pathname contains ";" but that should
11411 # okay in the real world where ";" in dirpaths is itself problematic.
11412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11416 # Ok, now we have the path, separated by spaces, we can step through it
11417 # and add multilib dir if necessary.
11418 lt_tmp_lt_search_path_spec=
11419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420 for lt_sys_path in $lt_search_path_spec; do
11421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11424 test -d "$lt_sys_path" && \
11425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11428 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11429 BEGIN {RS=" "; FS="/|\n";} {
11432 for (lt_i = NF; lt_i > 0; lt_i--) {
11433 if ($lt_i != "" && $lt_i != ".") {
11434 if ($lt_i == "..") {
11437 if (lt_count == 0) {
11438 lt_foo="/" $lt_i lt_foo;
11445 if (lt_foo != "") { lt_freq[lt_foo]++; }
11446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11448 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11452 library_names_spec=
11453 libname_spec='lib$name'
11457 postuninstall_cmds=
11461 shlibpath_overrides_runpath=unknown
11463 dynamic_linker="$host_os ld.so"
11464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11465 need_lib_prefix=unknown
11466 hardcode_into_libs=no
11468 # when you set need_version to no, make sure it does not cause -set_version
11469 # flags to be left without arguments
11470 need_version=unknown
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11476 shlibpath_var=LIBPATH
11478 # AIX 3 has no versioning support, so we append a major version to the name.
11479 soname_spec='${libname}${release}${shared_ext}$major'
11486 hardcode_into_libs=yes
11487 if test "$host_cpu" = ia64; then
11488 # AIX 5 supports IA64
11489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11492 # With GCC up to 2.95.x, collect2 would create an import file
11493 # for dependence libraries. The import file would start with
11494 # the line `#! .'. This would cause the generated library to
11495 # depend on `.', always an invalid library. This was fixed in
11496 # development snapshots of GCC prior to 3.0.
11498 aix4 | aix4.[01] | aix4.[01].*)
11499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11504 can_build_shared=no
11508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11509 # soname into executable. Probably we can add versioning support to
11510 # collect2, so additional links can be useful in future.
11511 if test "$aix_use_runtimelinking" = yes; then
11512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11513 # instead of lib<name>.a to let people know that these are not
11514 # typical AIX shared libraries.
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 # We preserve .a as extension for shared libraries through AIX4.2
11518 # and later when we are not doing run time linking.
11519 library_names_spec='${libname}${release}.a $libname.a'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LIBPATH
11529 # Since July 2007 AmigaOS4 officially supports .so libraries.
11530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 library_names_spec='$libname.ixlibrary $libname.a'
11535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11536 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'
11542 library_names_spec='${libname}${shared_ext}'
11543 dynamic_linker="$host_os ld.so"
11544 shlibpath_var=LIBRARY_PATH
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556 # the default ld.so.conf also contains /usr/contrib/lib and
11557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558 # libtool to hard-code these into programs
11561 cygwin* | mingw* | pw32* | cegcc*)
11562 version_type=windows
11567 case $GCC,$host_os in
11568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11569 library_names_spec='$libname.dll.a'
11570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11571 postinstall_cmds='base_file=`basename \${file}`~
11572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11573 dldir=$destdir/`dirname \$dlpath`~
11574 test -d \$dldir || mkdir -p \$dldir~
11575 $install_prog $dir/$dlname \$dldir/$dlname~
11576 chmod a+x \$dldir/$dlname~
11577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11581 dlpath=$dir/\$dldll~
11583 shlibpath_overrides_runpath=yes
11587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11589 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11594 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11595 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11596 # It is most probably a Windows format PATH printed by
11597 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11598 # path with ; separators, and with drive letters. We can handle the
11599 # drive letters (cygwin fileutils understands them), so leave them,
11600 # especially as we might pass files found there to a mingw objdump,
11601 # which wouldn't understand a cygwinified path. Ahh.
11602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11608 # pw32 DLLs use 'pw' prefix rather than 'lib'
11609 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11615 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11618 dynamic_linker='Win32 ld.exe'
11619 # FIXME: first we should search . and the directory the executable is in
11623 darwin* | rhapsody*)
11624 dynamic_linker="$host_os dyld"
11625 version_type=darwin
11628 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11629 soname_spec='${libname}${release}${major}$shared_ext'
11630 shlibpath_overrides_runpath=yes
11631 shlibpath_var=DYLD_LIBRARY_PATH
11632 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11651 freebsd* | dragonfly*)
11652 # DragonFly does not have aout. When/if they implement a new
11653 # versioning mechanism, adjust this.
11654 if test -x /usr/bin/objformat; then
11655 objformat=`/usr/bin/objformat`
11658 freebsd[123]*) objformat=aout ;;
11659 *) objformat=elf ;;
11662 version_type=freebsd-$objformat
11663 case $version_type in
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11674 shlibpath_var=LD_LIBRARY_PATH
11677 shlibpath_overrides_runpath=yes
11679 freebsd3.[01]* | freebsdelf3.[01]*)
11680 shlibpath_overrides_runpath=yes
11681 hardcode_into_libs=yes
11683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11685 shlibpath_overrides_runpath=no
11686 hardcode_into_libs=yes
11688 *) # from 4.6 on, and DragonFly
11689 shlibpath_overrides_runpath=yes
11690 hardcode_into_libs=yes
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 hardcode_into_libs=yes
11705 hpux9* | hpux10* | hpux11*)
11706 # Give a soname corresponding to the major version so that dld.sl refuses to
11707 # link against other versions.
11714 hardcode_into_libs=yes
11715 dynamic_linker="$host_os dld.so"
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 if test "X$HPUX_IA64_MODE" = X32; then
11721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11729 hardcode_into_libs=yes
11730 dynamic_linker="$host_os dld.sl"
11731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740 dynamic_linker="$host_os dld.sl"
11741 shlibpath_var=SHLIB_PATH
11742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11747 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11748 postinstall_cmds='chmod 555 $lib'
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=no
11760 hardcode_into_libs=yes
11763 irix5* | irix6* | nonstopux*)
11765 nonstopux*) version_type=nonstopux ;;
11767 if test "$lt_cv_prog_gnu_ld" = yes; then
11775 soname_spec='${libname}${release}${shared_ext}$major'
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11778 irix5* | nonstopux*)
11779 libsuff= shlibsuff=
11782 case $LD in # libtool.m4 will add one of these switches to LD
11783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11784 libsuff= shlibsuff= libmagic=32-bit;;
11785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11786 libsuff=32 shlibsuff=N32 libmagic=N32;;
11787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11789 *) libsuff= shlibsuff= libmagic=never-match;;
11793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11794 shlibpath_overrides_runpath=no
11795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11797 hardcode_into_libs=yes
11800 # No shared lib support for Linux oldld, aout, or coff.
11801 linux*oldld* | linux*aout* | linux*coff*)
11805 # This must be Linux ELF.
11806 linux* | k*bsd*-gnu)
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=no
11815 # Some binutils ld are patched to set DT_RUNPATH
11816 save_LDFLAGS=$LDFLAGS
11817 save_libdir=$libdir
11818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11833 shlibpath_overrides_runpath=yes
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LDFLAGS=$save_LDFLAGS
11839 libdir=$save_libdir
11841 # This implies no fast_install, which is unacceptable.
11842 # Some rework will be needed to allow for fast_install
11843 # before this can be enabled.
11844 hardcode_into_libs=yes
11846 # Append ld.so.conf contents to the search path
11847 if test -f /etc/ld.so.conf; then
11848 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' ' '`
11849 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11852 # We used to test for /lib/ld.so.1 and disable shared libraries on
11853 # powerpc, because MkLinux only supported shared libraries with the
11854 # GNU dynamic linker. Since this was broken with cross compilers,
11855 # most powerpc-linux boxes support dynamic linking these days and
11856 # people can always --disable-shared, the test was removed, and we
11857 # assume the GNU/Linux dynamic linker is in use.
11858 dynamic_linker='GNU/Linux ld.so'
11865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11868 dynamic_linker='NetBSD (a.out) ld.so'
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 dynamic_linker='NetBSD ld.elf_so'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=no
11894 hardcode_into_libs=yes
11895 dynamic_linker='ldqnx.so'
11900 sys_lib_dlsearch_path_spec="/usr/lib"
11902 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11904 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11905 *) need_version=no ;;
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11912 openbsd2.[89] | openbsd2.[89].*)
11913 shlibpath_overrides_runpath=no
11916 shlibpath_overrides_runpath=yes
11920 shlibpath_overrides_runpath=yes
11925 libname_spec='$name'
11928 library_names_spec='$libname${shared_ext} $libname.a'
11929 dynamic_linker='OS/2 ld.exe'
11930 shlibpath_var=LIBPATH
11933 osf3* | osf4* | osf5*)
11937 soname_spec='${libname}${release}${shared_ext}$major'
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11941 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11956 hardcode_into_libs=yes
11957 # ldd complains unless libraries are executable
11958 postinstall_cmds='chmod +x $lib'
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11964 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11967 if test "$with_gnu_ld" = yes; then
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 case $host_vendor in
11980 shlibpath_overrides_runpath=no
11982 runpath_var=LD_RUN_PATH
11990 shlibpath_overrides_runpath=no
11991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11997 if test -d /usr/nec ;then
11999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12000 soname_spec='$libname${shared_ext}.$major'
12001 shlibpath_var=LD_LIBRARY_PATH
12005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12006 version_type=freebsd-elf
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12014 if test "$with_gnu_ld" = yes; then
12015 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12020 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12024 sys_lib_dlsearch_path_spec='/usr/lib'
12028 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 shlibpath_overrides_runpath=no
12035 hardcode_into_libs=yes
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 soname_spec='${libname}${release}${shared_ext}$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12050 $as_echo "$dynamic_linker" >&6; }
12051 test "$dynamic_linker" = no && can_build_shared=no
12053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12054 if test "$GCC" = yes; then
12055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12059 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12062 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12154 if test -n "$hardcode_libdir_flag_spec" ||
12155 test -n "$runpath_var" ||
12156 test "X$hardcode_automatic" = "Xyes" ; then
12158 # We can hardcode non-existent directories.
12159 if test "$hardcode_direct" != no &&
12160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12161 # have to relink, otherwise we might link with an installed library
12162 # when we should be linking with a yet-to-be-installed one
12163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12164 test "$hardcode_minus_L" != no; then
12165 # Linking always hardcodes the temporary library directory.
12166 hardcode_action=relink
12168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12169 hardcode_action=immediate
12172 # We cannot hardcode anything, or else we can only hardcode existing
12174 hardcode_action=unsupported
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12177 $as_echo "$hardcode_action" >&6; }
12179 if test "$hardcode_action" = relink ||
12180 test "$inherit_rpath" = yes; then
12181 # Fast installation is not supported
12182 enable_fast_install=no
12183 elif test "$shlibpath_overrides_runpath" = yes ||
12184 test "$enable_shared" = no; then
12185 # Fast installation is not necessary
12186 enable_fast_install=needless
12194 if test "x$enable_dlopen" != xyes; then
12195 enable_dlopen=unknown
12196 enable_dlopen_self=unknown
12197 enable_dlopen_self_static=unknown
12204 lt_cv_dlopen="load_add_on"
12206 lt_cv_dlopen_self=yes
12209 mingw* | pw32* | cegcc*)
12210 lt_cv_dlopen="LoadLibrary"
12215 lt_cv_dlopen="dlopen"
12220 # if libdl is installed we need to link against it
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12222 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12223 if ${ac_cv_lib_dl_dlopen+:} false; then :
12224 $as_echo_n "(cached) " >&6
12226 ac_check_lib_save_LIBS=$LIBS
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12246 if ac_fn_c_try_link "$LINENO"; then :
12247 ac_cv_lib_dl_dlopen=yes
12249 ac_cv_lib_dl_dlopen=no
12251 rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253 LIBS=$ac_check_lib_save_LIBS
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12256 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12257 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12261 lt_cv_dlopen="dyld"
12263 lt_cv_dlopen_self=yes
12270 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12271 if test "x$ac_cv_func_shl_load" = xyes; then :
12272 lt_cv_dlopen="shl_load"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12275 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12276 if ${ac_cv_lib_dld_shl_load+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 ac_check_lib_save_LIBS=$LIBS
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12294 return shl_load ();
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_dld_shl_load=yes
12302 ac_cv_lib_dld_shl_load=no
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12309 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12310 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12313 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12314 if test "x$ac_cv_func_dlopen" = xyes; then :
12315 lt_cv_dlopen="dlopen"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12318 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12319 if ${ac_cv_lib_dl_dlopen+:} false; then :
12320 $as_echo_n "(cached) " >&6
12322 ac_check_lib_save_LIBS=$LIBS
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12342 if ac_fn_c_try_link "$LINENO"; then :
12343 ac_cv_lib_dl_dlopen=yes
12345 ac_cv_lib_dl_dlopen=no
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12353 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12357 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12358 if ${ac_cv_lib_svld_dlopen+:} false; then :
12359 $as_echo_n "(cached) " >&6
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lsvld $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_svld_dlopen=yes
12384 ac_cv_lib_svld_dlopen=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12391 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12392 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12396 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12397 if ${ac_cv_lib_dld_dld_link+:} false; then :
12398 $as_echo_n "(cached) " >&6
12400 ac_check_lib_save_LIBS=$LIBS
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12415 return dld_link ();
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_dld_dld_link=yes
12423 ac_cv_lib_dld_dld_link=no
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12430 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12431 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12453 if test "x$lt_cv_dlopen" != xno; then
12459 case $lt_cv_dlopen in
12461 save_CPPFLAGS="$CPPFLAGS"
12462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12464 save_LDFLAGS="$LDFLAGS"
12465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12468 LIBS="$lt_cv_dlopen_libs $LIBS"
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12471 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12472 if ${lt_cv_dlopen_self+:} false; then :
12473 $as_echo_n "(cached) " >&6
12475 if test "$cross_compiling" = yes; then :
12476 lt_cv_dlopen_self=cross
12478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12479 lt_status=$lt_dlunknown
12480 cat > conftest.$ac_ext <<_LT_EOF
12481 #line 12481 "configure"
12482 #include "confdefs.h"
12491 # define LT_DLGLOBAL RTLD_GLOBAL
12494 # define LT_DLGLOBAL DL_GLOBAL
12496 # define LT_DLGLOBAL 0
12500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12501 find out it does not work in some platform. */
12502 #ifndef LT_DLLAZY_OR_NOW
12504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12507 # define LT_DLLAZY_OR_NOW DL_LAZY
12510 # define LT_DLLAZY_OR_NOW RTLD_NOW
12513 # define LT_DLLAZY_OR_NOW DL_NOW
12515 # define LT_DLLAZY_OR_NOW 0
12522 void fnord() { int i=42;}
12525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12526 int status = $lt_dlunknown;
12530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12532 /* dlclose (self); */
12540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12541 (eval $ac_link) 2>&5
12543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12544 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12545 (./conftest; exit; ) >&5 2>/dev/null
12547 case x$lt_status in
12548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12550 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12553 # compilation failed
12554 lt_cv_dlopen_self=no
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12562 $as_echo "$lt_cv_dlopen_self" >&6; }
12564 if test "x$lt_cv_dlopen_self" = xyes; then
12565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12567 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12568 if ${lt_cv_dlopen_self_static+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 if test "$cross_compiling" = yes; then :
12572 lt_cv_dlopen_self_static=cross
12574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12575 lt_status=$lt_dlunknown
12576 cat > conftest.$ac_ext <<_LT_EOF
12577 #line 12577 "configure"
12578 #include "confdefs.h"
12587 # define LT_DLGLOBAL RTLD_GLOBAL
12590 # define LT_DLGLOBAL DL_GLOBAL
12592 # define LT_DLGLOBAL 0
12596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12597 find out it does not work in some platform. */
12598 #ifndef LT_DLLAZY_OR_NOW
12600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12603 # define LT_DLLAZY_OR_NOW DL_LAZY
12606 # define LT_DLLAZY_OR_NOW RTLD_NOW
12609 # define LT_DLLAZY_OR_NOW DL_NOW
12611 # define LT_DLLAZY_OR_NOW 0
12618 void fnord() { int i=42;}
12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622 int status = $lt_dlunknown;
12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12628 /* dlclose (self); */
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12637 (eval $ac_link) 2>&5
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12641 (./conftest; exit; ) >&5 2>/dev/null
12643 case x$lt_status in
12644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12649 # compilation failed
12650 lt_cv_dlopen_self_static=no
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12661 CPPFLAGS="$save_CPPFLAGS"
12662 LDFLAGS="$save_LDFLAGS"
12667 case $lt_cv_dlopen_self in
12668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12669 *) enable_dlopen_self=unknown ;;
12672 case $lt_cv_dlopen_self_static in
12673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12674 *) enable_dlopen_self_static=unknown ;;
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12697 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 $as_echo "yes" >&6; }
12704 # FIXME - insert some real tests, host_os isn't really good enough
12707 if test -n "$STRIP" ; then
12708 striplib="$STRIP -x"
12709 old_striplib="$STRIP -S"
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 $as_echo "yes" >&6; }
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12735 # Report which library types will actually be built
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12737 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12739 $as_echo "$can_build_shared" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12742 $as_echo_n "checking whether to build shared libraries... " >&6; }
12743 test "$can_build_shared" = "no" && enable_shared=no
12745 # On AIX, shared libraries and static libraries use the same namespace, and
12746 # are all built from PIC.
12749 test "$enable_shared" = yes && enable_static=no
12750 if test -n "$RANLIB"; then
12751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12752 postinstall_cmds='$RANLIB $lib'
12757 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12758 test "$enable_shared" = yes && enable_static=no
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12763 $as_echo "$enable_shared" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12766 $as_echo_n "checking whether to build static libraries... " >&6; }
12767 # Make sure either enable_shared or enable_static is yes.
12768 test "$enable_shared" = yes || enable_static=yes
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12770 $as_echo "$enable_static" >&6; }
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786 ac_cpp='$CXXCPP $CPPFLAGS'
12787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12791 archive_cmds_need_lc_CXX=no
12792 allow_undefined_flag_CXX=
12793 always_export_symbols_CXX=no
12794 archive_expsym_cmds_CXX=
12795 compiler_needs_object_CXX=no
12796 export_dynamic_flag_spec_CXX=
12797 hardcode_direct_CXX=no
12798 hardcode_direct_absolute_CXX=no
12799 hardcode_libdir_flag_spec_CXX=
12800 hardcode_libdir_flag_spec_ld_CXX=
12801 hardcode_libdir_separator_CXX=
12802 hardcode_minus_L_CXX=no
12803 hardcode_shlibpath_var_CXX=unsupported
12804 hardcode_automatic_CXX=no
12805 inherit_rpath_CXX=no
12807 module_expsym_cmds_CXX=
12808 link_all_deplibs_CXX=unknown
12809 old_archive_cmds_CXX=$old_archive_cmds
12810 no_undefined_flag_CXX=
12811 whole_archive_flag_spec_CXX=
12812 enable_shared_with_static_runtimes_CXX=no
12814 # Source file extension for C++ test sources.
12817 # Object file extension for compiled C++ test sources.
12821 # No sense in running all these tests if we already determined that
12822 # the CXX compiler isn't working. Some variables (like enable_shared)
12823 # are currently assumed to apply to all compilers on this platform,
12824 # and will be corrupted by setting them based on a non-working compiler.
12825 if test "$_lt_caught_CXX_error" != yes; then
12826 # Code to be used in simple compile tests
12827 lt_simple_compile_test_code="int some_variable = 0;"
12829 # Code to be used in simple link tests
12830 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12832 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12839 # If no C compiler was specified, use CC.
12842 # If no C compiler flags were specified, use CFLAGS.
12843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12845 # Allow CC to be a program name with arguments.
12849 # save warnings/boilerplate of simple test code
12850 ac_outfile=conftest.$ac_objext
12851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12853 _lt_compiler_boilerplate=`cat conftest.err`
12856 ac_outfile=conftest.$ac_objext
12857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12859 _lt_linker_boilerplate=`cat conftest.err`
12863 # Allow CC to be a program name with arguments.
12868 lt_save_with_gnu_ld=$with_gnu_ld
12869 lt_save_path_LD=$lt_cv_path_LD
12870 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12871 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12873 $as_unset lt_cv_prog_gnu_ld
12875 if test -n "${lt_cv_path_LDCXX+set}"; then
12876 lt_cv_path_LD=$lt_cv_path_LDCXX
12878 $as_unset lt_cv_path_LD
12880 test -z "${LDCXX+set}" || LD=$LDCXX
12884 for cc_temp in $compiler""; do
12886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12892 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12895 if test -n "$compiler"; then
12896 # We don't want -fno-exception when compiling C++ code, so set the
12897 # no_builtin_flag separately
12898 if test "$GXX" = yes; then
12899 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12901 lt_prog_compiler_no_builtin_flag_CXX=
12904 if test "$GXX" = yes; then
12905 # Set up default GNU C++ configuration
12909 # Check whether --with-gnu-ld was given.
12910 if test "${with_gnu_ld+set}" = set; then :
12911 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12917 if test "$GCC" = yes; then
12918 # Check if gcc -print-prog-name=ld gives a path.
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12920 $as_echo_n "checking for ld used by $CC... " >&6; }
12923 # gcc leaves a trailing carriage return which upsets mingw
12924 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12926 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12929 # Accept absolute paths.
12931 re_direlt='/[^/][^/]*/\.\./'
12932 # Canonicalize the pathname of ld
12933 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12934 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12935 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12937 test -z "$LD" && LD="$ac_prog"
12940 # If it fails, then pretend we aren't using GCC.
12944 # If it is relative, then search for the first ld in PATH.
12945 with_gnu_ld=unknown
12948 elif test "$with_gnu_ld" = yes; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12950 $as_echo_n "checking for GNU ld... " >&6; }
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12953 $as_echo_n "checking for non-GNU ld... " >&6; }
12955 if ${lt_cv_path_LD+:} false; then :
12956 $as_echo_n "(cached) " >&6
12958 if test -z "$LD"; then
12959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12960 for ac_dir in $PATH; do
12962 test -z "$ac_dir" && ac_dir=.
12963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12964 lt_cv_path_LD="$ac_dir/$ac_prog"
12965 # Check to see if the program is GNU ld. I'd rather use --version,
12966 # but apparently some variants of GNU ld only accept -v.
12967 # Break only if it was the GNU/non-GNU ld that we prefer.
12968 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12969 *GNU* | *'with BFD'*)
12970 test "$with_gnu_ld" != no && break
12973 test "$with_gnu_ld" != yes && break
12980 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12984 LD="$lt_cv_path_LD"
12985 if test -n "$LD"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12987 $as_echo "$LD" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12995 if ${lt_cv_prog_gnu_ld+:} false; then :
12996 $as_echo_n "(cached) " >&6
12998 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12999 case `$LD -v 2>&1 </dev/null` in
13000 *GNU* | *'with BFD'*)
13001 lt_cv_prog_gnu_ld=yes
13004 lt_cv_prog_gnu_ld=no
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13009 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13010 with_gnu_ld=$lt_cv_prog_gnu_ld
13018 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13019 # archiving commands below assume that GNU ld is being used.
13020 if test "$with_gnu_ld" = yes; then
13021 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 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'
13024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13027 # If archive_cmds runs LD, not CC, wlarc should be empty
13028 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13029 # investigate it a little bit more. (MM)
13032 # ancient GNU ld didn't support --whole-archive et. al.
13033 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13034 $GREP 'no-whole-archive' > /dev/null; then
13035 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13037 whole_archive_flag_spec_CXX=
13043 # A generic and very simple default shared library creation
13044 # command for GNU C++ for the case where it uses the native
13045 # linker, instead of GNU ld. If possible, this setting should
13046 # overridden to take advantage of the native linker features on
13047 # the platform it is being used on.
13048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13051 # Commands to make compiler produce verbose output that lists
13052 # what "hidden" libraries, object files and flags are used when
13053 # linking a shared library.
13054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13062 # PORTME: fill in a description of your system's C++ link characteristics
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13068 # FIXME: insert proper C++ library support
13072 if test "$host_cpu" = ia64; then
13073 # On IA64, the linker does run time linking by default, so we don't
13074 # have to do anything special.
13075 aix_use_runtimelinking=no
13076 exp_sym_flag='-Bexport'
13079 aix_use_runtimelinking=no
13081 # Test if we are trying to use run time linking or normal
13082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13083 # need to do runtime linking.
13084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13085 for ld_flag in $LDFLAGS; do
13088 aix_use_runtimelinking=yes
13096 exp_sym_flag='-bexport'
13097 no_entry_flag='-bnoentry'
13100 # When large executables or shared objects are built, AIX ld can
13101 # have problems creating the table of contents. If linking a library
13102 # or program results in "error TOC overflow" add -mminimal-toc to
13103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13106 archive_cmds_CXX=''
13107 hardcode_direct_CXX=yes
13108 hardcode_direct_absolute_CXX=yes
13109 hardcode_libdir_separator_CXX=':'
13110 link_all_deplibs_CXX=yes
13111 file_list_spec_CXX='${wl}-f,'
13113 if test "$GXX" = yes; then
13114 case $host_os in aix4.[012]|aix4.[012].*)
13115 # We only want to do this on AIX 4.2 and lower, the check
13116 # below for broken collect2 doesn't work under 4.3+
13117 collect2name=`${CC} -print-prog-name=collect2`
13118 if test -f "$collect2name" &&
13119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13121 # We have reworked collect2
13124 # We have old collect2
13125 hardcode_direct_CXX=unsupported
13126 # It fails to find uninstalled libraries when the uninstalled
13127 # path is not listed in the libpath. Setting hardcode_minus_L
13128 # to unsupported forces relinking
13129 hardcode_minus_L_CXX=yes
13130 hardcode_libdir_flag_spec_CXX='-L$libdir'
13131 hardcode_libdir_separator_CXX=
13134 shared_flag='-shared'
13135 if test "$aix_use_runtimelinking" = yes; then
13136 shared_flag="$shared_flag "'${wl}-G'
13140 if test "$host_cpu" = ia64; then
13141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13142 # chokes on -Wl,-G. The following line is correct:
13145 if test "$aix_use_runtimelinking" = yes; then
13146 shared_flag='${wl}-G'
13148 shared_flag='${wl}-bM:SRE'
13153 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13154 # It seems that -bexpall does not export symbols beginning with
13155 # underscore (_), so it is better to generate a list of symbols to
13157 always_export_symbols_CXX=yes
13158 if test "$aix_use_runtimelinking" = yes; then
13159 # Warning - without using the other runtime loading flags (-brtl),
13160 # -berok will link without error, but may produce a broken library.
13161 allow_undefined_flag_CXX='-berok'
13162 # Determine the default libpath from the value encoded in an empty
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13175 if ac_fn_cxx_try_link "$LINENO"; then :
13177 lt_aix_libpath_sed='
13178 /Import File Strings/,/^$/ {
13184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185 # Check for a 64-bit object if we didn't find anything.
13186 if test -z "$aix_libpath"; then
13187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13196 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"
13198 if test "$host_cpu" = ia64; then
13199 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13200 allow_undefined_flag_CXX="-z nodefs"
13201 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"
13203 # Determine the default libpath from the value encoded in an
13204 # empty executable.
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13216 if ac_fn_cxx_try_link "$LINENO"; then :
13218 lt_aix_libpath_sed='
13219 /Import File Strings/,/^$/ {
13225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13226 # Check for a 64-bit object if we didn't find anything.
13227 if test -z "$aix_libpath"; then
13228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13231 rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13235 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13236 # Warning - without using the other run time loading flags,
13237 # -berok will link without error, but may produce a broken library.
13238 no_undefined_flag_CXX=' ${wl}-bernotok'
13239 allow_undefined_flag_CXX=' ${wl}-berok'
13240 # Exported symbols can be pulled into shared objects from archives
13241 whole_archive_flag_spec_CXX='$convenience'
13242 archive_cmds_need_lc_CXX=yes
13243 # This is similar to how AIX traditionally builds its shared
13245 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'
13251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13252 allow_undefined_flag_CXX=unsupported
13253 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13254 # support --undefined. This deserves some investigation. FIXME
13255 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262 case $cc_basename in
13264 # FIXME: insert proper C++ library support
13270 cygwin* | mingw* | pw32* | cegcc*)
13271 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13272 # as there is no search path for DLLs.
13273 hardcode_libdir_flag_spec_CXX='-L$libdir'
13274 allow_undefined_flag_CXX=unsupported
13275 always_export_symbols_CXX=no
13276 enable_shared_with_static_runtimes_CXX=yes
13278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13279 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'
13280 # If the export-symbols file already is a .def file (1st line
13281 # is EXPORTS), use it as is; otherwise, prepend...
13282 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13283 cp $export_symbols $output_objdir/$soname.def;
13285 echo EXPORTS > $output_objdir/$soname.def;
13286 cat $export_symbols >> $output_objdir/$soname.def;
13288 $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'
13293 darwin* | rhapsody*)
13296 archive_cmds_need_lc_CXX=no
13297 hardcode_direct_CXX=no
13298 hardcode_automatic_CXX=yes
13299 hardcode_shlibpath_var_CXX=unsupported
13300 whole_archive_flag_spec_CXX=''
13301 link_all_deplibs_CXX=yes
13302 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13303 case $cc_basename in
13304 ifort*) _lt_dar_can_shared=yes ;;
13305 *) _lt_dar_can_shared=$GCC ;;
13307 if test "$_lt_dar_can_shared" = "yes"; then
13308 output_verbose_link_cmd=echo
13309 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}"
13310 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13311 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}"
13312 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}"
13313 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13314 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}"
13315 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}"
13325 case $cc_basename in
13327 # FIXME: insert proper C++ library support
13331 # Green Hills C++ Compiler
13332 # FIXME: insert proper C++ library support
13336 # FIXME: insert proper C++ library support
13343 # C++ shared libraries reported to be fairly broken before
13349 archive_cmds_need_lc_CXX=no
13352 freebsd* | dragonfly*)
13353 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13362 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13363 hardcode_libdir_separator_CXX=:
13364 export_dynamic_flag_spec_CXX='${wl}-E'
13365 hardcode_direct_CXX=yes
13366 hardcode_minus_L_CXX=yes # Not in the search PATH,
13367 # but as the default
13368 # location of the library.
13370 case $cc_basename in
13372 # FIXME: insert proper C++ library support
13376 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'
13377 # Commands to make compiler produce verbose output that lists
13378 # what "hidden" libraries, object files and flags are used when
13379 # linking a shared library.
13381 # There doesn't appear to be a way to prevent this compiler from
13382 # explicitly linking system object files so we need to strip them
13383 # from the output so that they don't get included in the library
13385 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'
13388 if test "$GXX" = yes; then
13389 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'
13391 # FIXME: insert proper C++ library support
13399 if test $with_gnu_ld = no; then
13400 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13401 hardcode_libdir_separator_CXX=:
13407 export_dynamic_flag_spec_CXX='${wl}-E'
13413 hardcode_direct_CXX=no
13414 hardcode_shlibpath_var_CXX=no
13417 hardcode_direct_CXX=yes
13418 hardcode_direct_absolute_CXX=yes
13419 hardcode_minus_L_CXX=yes # Not in the search PATH,
13420 # but as the default
13421 # location of the library.
13425 case $cc_basename in
13427 # FIXME: insert proper C++ library support
13433 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13450 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'
13453 if test "$GXX" = yes; then
13454 if test $with_gnu_ld = no; then
13457 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13460 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463 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'
13468 # FIXME: insert proper C++ library support
13476 hardcode_direct_CXX=no
13477 hardcode_shlibpath_var_CXX=no
13478 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13479 export_dynamic_flag_spec_CXX='${wl}-E'
13480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13481 # Instead, shared libraries are loaded at an image base (0x10000000 by
13482 # default) and relocated if they conflict, which is a slow very memory
13483 # consuming and fragmenting process. To avoid this, we pick a random,
13484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13486 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'
13487 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'
13490 case $cc_basename in
13493 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'
13495 # Archives containing C++ object files must be created using
13496 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13497 # necessary to make sure instantiated templates are included
13499 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13502 if test "$GXX" = yes; then
13503 if test "$with_gnu_ld" = no; then
13504 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'
13506 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'
13509 link_all_deplibs_CXX=yes
13512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513 hardcode_libdir_separator_CXX=:
13514 inherit_rpath_CXX=yes
13517 linux* | k*bsd*-gnu)
13518 case $cc_basename in
13520 # Kuck and Associates, Inc. (KAI) C++ Compiler
13522 # KCC will only create a shared library if the output file
13523 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13524 # to its proper name (with version) after linking.
13525 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'
13526 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'
13527 # Commands to make compiler produce verbose output that lists
13528 # what "hidden" libraries, object files and flags are used when
13529 # linking a shared library.
13531 # There doesn't appear to be a way to prevent this compiler from
13532 # explicitly linking system object files so we need to strip them
13533 # from the output so that they don't get included in the library
13535 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'
13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13540 # Archives containing C++ object files must be created using
13541 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13542 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13547 # version 8.0 and above of icpc choke on multiply defined symbols
13548 # if we add $predep_objects and $postdep_objects, however 7.1 and
13549 # earlier do not add the objects themselves.
13550 case `$CC -V 2>&1` in
13552 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553 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'
13555 *) # Version 8.0 or newer
13558 ia64*) tmp_idyn=' -i_dynamic';;
13560 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 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'
13564 archive_cmds_need_lc_CXX=no
13565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13567 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13570 # Portland Group C++ compiler
13572 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13573 prelink_cmds_CXX='tpldir=Template.dir~
13575 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13576 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13577 old_archive_cmds_CXX='tpldir=Template.dir~
13579 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13580 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13582 archive_cmds_CXX='tpldir=Template.dir~
13584 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13585 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13586 archive_expsym_cmds_CXX='tpldir=Template.dir~
13588 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13589 $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'
13591 *) # Version 6 will use weak symbols
13592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13593 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'
13597 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13598 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13599 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'
13603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604 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'
13606 runpath_var=LD_RUN_PATH
13607 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13608 hardcode_libdir_separator_CXX=:
13610 # Commands to make compiler produce verbose output that lists
13611 # what "hidden" libraries, object files and flags are used when
13612 # linking a shared library.
13614 # There doesn't appear to be a way to prevent this compiler from
13615 # explicitly linking system object files so we need to strip them
13616 # from the output so that they don't get included in the library
13618 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'
13621 # IBM XL 8.0 on PPC, with GNU ld
13622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13624 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13625 if test "x$supports_anon_versioning" = xyes; then
13626 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13628 echo "local: *; };" >> $output_objdir/$libname.ver~
13629 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13633 case `$CC -V 2>&1 | sed 5q` in
13636 no_undefined_flag_CXX=' -zdefs'
13637 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13638 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'
13639 hardcode_libdir_flag_spec_CXX='-R$libdir'
13640 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'
13641 compiler_needs_object_CXX=yes
13643 # Not sure whether something based on
13644 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13646 output_verbose_link_cmd='echo'
13648 # Archives containing C++ object files must be created using
13649 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13650 # necessary to make sure instantiated templates are included
13652 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13660 # FIXME: insert proper C++ library support
13665 # FIXME: insert proper C++ library support
13670 case $cc_basename in
13672 # FIXME: insert proper C++ library support
13676 # FIXME: insert proper C++ library support
13683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13684 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13686 hardcode_libdir_flag_spec_CXX='-R$libdir'
13687 hardcode_direct_CXX=yes
13688 hardcode_shlibpath_var_CXX=no
13690 # Workaround some broken pre-1.5 toolchains
13691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13699 # C++ shared libraries are fairly broken
13704 if test -f /usr/libexec/ld.so; then
13705 hardcode_direct_CXX=yes
13706 hardcode_shlibpath_var_CXX=no
13707 hardcode_direct_absolute_CXX=yes
13708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13711 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13712 export_dynamic_flag_spec_CXX='${wl}-E'
13713 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715 output_verbose_link_cmd=echo
13721 osf3* | osf4* | osf5*)
13722 case $cc_basename in
13724 # Kuck and Associates, Inc. (KAI) C++ Compiler
13726 # KCC will only create a shared library if the output file
13727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13728 # to its proper name (with version) after linking.
13729 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'
13731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13732 hardcode_libdir_separator_CXX=:
13734 # Archives containing C++ object files must be created using
13735 # the KAI C++ compiler.
13737 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13738 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13742 # Rational C++ 2.4.1
13743 # FIXME: insert proper C++ library support
13749 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13750 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'
13751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13754 allow_undefined_flag_CXX=' -expect_unresolved \*'
13755 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'
13756 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13757 echo "-hidden">> $lib.exp~
13758 $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~
13760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13764 hardcode_libdir_separator_CXX=:
13766 # Commands to make compiler produce verbose output that lists
13767 # what "hidden" libraries, object files and flags are used when
13768 # linking a shared library.
13770 # There doesn't appear to be a way to prevent this compiler from
13771 # explicitly linking system object files so we need to strip them
13772 # from the output so that they don't get included in the library
13774 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'
13777 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13778 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13781 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'
13784 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'
13788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13789 hardcode_libdir_separator_CXX=:
13791 # Commands to make compiler produce verbose output that lists
13792 # what "hidden" libraries, object files and flags are used when
13793 # linking a shared library.
13794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13797 # FIXME: insert proper C++ library support
13805 # FIXME: insert proper C++ library support
13810 case $cc_basename in
13813 # FIXME: insert proper C++ library support
13818 # FIXME: insert proper C++ library support
13822 # FIXME: insert proper C++ library support
13829 case $cc_basename in
13831 # Sun C++ 4.2, 5.x and Centerline C++
13832 archive_cmds_need_lc_CXX=yes
13833 no_undefined_flag_CXX=' -zdefs'
13834 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836 $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'
13838 hardcode_libdir_flag_spec_CXX='-R$libdir'
13839 hardcode_shlibpath_var_CXX=no
13841 solaris2.[0-5] | solaris2.[0-5].*) ;;
13843 # The compiler driver will combine and reorder linker options,
13844 # but understands `-z linker_flag'.
13845 # Supported since Solaris 2.6 (maybe 2.5.1?)
13846 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13849 link_all_deplibs_CXX=yes
13851 output_verbose_link_cmd='echo'
13853 # Archives containing C++ object files must be created using
13854 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13855 # necessary to make sure instantiated templates are included
13857 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13860 # Green Hills C++ Compiler
13861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13863 # The C++ compiler must be used to create the archive.
13864 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13867 # GNU C++ compiler with Solaris linker
13868 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13869 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13870 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13871 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13872 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13873 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13875 # Commands to make compiler produce verbose output that lists
13876 # what "hidden" libraries, object files and flags are used when
13877 # linking a shared library.
13878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13880 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13882 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13883 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13884 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13886 # Commands to make compiler produce verbose output that lists
13887 # what "hidden" libraries, object files and flags are used when
13888 # linking a shared library.
13889 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13892 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13894 solaris2.[0-5] | solaris2.[0-5].*) ;;
13896 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13905 no_undefined_flag_CXX='${wl}-z,text'
13906 archive_cmds_need_lc_CXX=no
13907 hardcode_shlibpath_var_CXX=no
13908 runpath_var='LD_RUN_PATH'
13910 case $cc_basename in
13912 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13916 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 sysv5* | sco3.2v5* | sco5v6*)
13923 # Note: We can NOT use -z defs as we might desire, because we do not
13924 # link with -lc, and that would cause any symbols used from libc to
13925 # always be unresolved, which means just about no library would
13926 # ever link correctly. If we're not using GNU ld we use -z text
13927 # though, which does catch some bad symbols but isn't as heavy-handed
13929 no_undefined_flag_CXX='${wl}-z,text'
13930 allow_undefined_flag_CXX='${wl}-z,nodefs'
13931 archive_cmds_need_lc_CXX=no
13932 hardcode_shlibpath_var_CXX=no
13933 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13934 hardcode_libdir_separator_CXX=':'
13935 link_all_deplibs_CXX=yes
13936 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13937 runpath_var='LD_RUN_PATH'
13939 case $cc_basename in
13941 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13942 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 case $cc_basename in
13954 # NonStop-UX NCC 3.20
13955 # FIXME: insert proper C++ library support
13959 # FIXME: insert proper C++ library support
13966 # FIXME: insert proper C++ library support
13971 # FIXME: insert proper C++ library support
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13977 $as_echo "$ld_shlibs_CXX" >&6; }
13978 test "$ld_shlibs_CXX" = no && can_build_shared=no
13984 ## There is no encapsulation within the following macros, do not change
13985 ## the running order or otherwise move them around unless you know exactly
13986 ## what you are doing...
13987 # Dependencies to place before and after the object being linked:
13988 predep_objects_CXX=
13989 postdep_objects_CXX=
13992 compiler_lib_search_path_CXX=
13994 cat > conftest.$ac_ext <<_LT_EOF
13998 Foo (void) { a = 0; }
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005 (eval $ac_compile) 2>&5
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; then
14009 # Parse the compiler output and extract the necessary
14010 # objects, libraries and library flags.
14012 # Sentinel used to keep track of whether or not we are before
14013 # the conftest object file.
14014 pre_test_object_deps_done=no
14016 for p in `eval "$output_verbose_link_cmd"`; do
14020 # Some compilers place space between "-{L,R}" and the path.
14021 # Remove the space.
14022 if test $p = "-L" ||
14023 test $p = "-R"; then
14030 if test "$pre_test_object_deps_done" = no; then
14033 # Internal compiler library paths should come after those
14034 # provided the user. The postdeps already come after the
14035 # user supplied libs so there is no need to process them.
14036 if test -z "$compiler_lib_search_path_CXX"; then
14037 compiler_lib_search_path_CXX="${prev}${p}"
14039 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14042 # The "-l" case would never come before the object being
14043 # linked, so don't bother handling this case.
14046 if test -z "$postdeps_CXX"; then
14047 postdeps_CXX="${prev}${p}"
14049 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14055 # This assumes that the test object file only shows up
14056 # once in the compiler output.
14057 if test "$p" = "conftest.$objext"; then
14058 pre_test_object_deps_done=yes
14062 if test "$pre_test_object_deps_done" = no; then
14063 if test -z "$predep_objects_CXX"; then
14064 predep_objects_CXX="$p"
14066 predep_objects_CXX="$predep_objects_CXX $p"
14069 if test -z "$postdep_objects_CXX"; then
14070 postdep_objects_CXX="$p"
14072 postdep_objects_CXX="$postdep_objects_CXX $p"
14077 *) ;; # Ignore the rest.
14085 echo "libtool.m4: error: problem compiling CXX test program"
14088 $RM -f confest.$objext
14090 # PORTME: override above test on systems where it is broken
14093 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14094 # hack all around it, let's just trust "g++" to DTRT.
14095 predep_objects_CXX=
14096 postdep_objects_CXX=
14101 case `$CC -V 2>&1 | sed 5q` in
14105 # The more standards-conforming stlport4 library is
14106 # incompatible with the Cstd library. Avoid specifying
14107 # it if it's in CXXFLAGS. Ignore libCrun as
14108 # -library=stlport4 depends on it.
14109 case " $CXX $CXXFLAGS " in
14110 *" -library=stlport4 "*)
14111 solaris_use_stlport4=yes
14115 if test "$solaris_use_stlport4" != yes; then
14116 postdeps_CXX='-library=Cstd -library=Crun'
14123 case $cc_basename in
14125 # The more standards-conforming stlport4 library is
14126 # incompatible with the Cstd library. Avoid specifying
14127 # it if it's in CXXFLAGS. Ignore libCrun as
14128 # -library=stlport4 depends on it.
14129 case " $CXX $CXXFLAGS " in
14130 *" -library=stlport4 "*)
14131 solaris_use_stlport4=yes
14135 # Adding this requires a known-good setup of shared libraries for
14136 # Sun compiler versions before 5.6, else PIC objects from an old
14137 # archive will be linked into the output, leading to subtle bugs.
14138 if test "$solaris_use_stlport4" != yes; then
14139 postdeps_CXX='-library=Cstd -library=Crun'
14147 case " $postdeps_CXX " in
14148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14150 compiler_lib_search_dirs_CXX=
14151 if test -n "${compiler_lib_search_path_CXX}"; then
14152 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14185 lt_prog_compiler_wl_CXX=
14186 lt_prog_compiler_pic_CXX=
14187 lt_prog_compiler_static_CXX=
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14192 # C++ specific cases for pic, static, wl, etc.
14193 if test "$GXX" = yes; then
14194 lt_prog_compiler_wl_CXX='-Wl,'
14195 lt_prog_compiler_static_CXX='-static'
14199 # All AIX code is PIC.
14200 if test "$host_cpu" = ia64; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static_CXX='-Bstatic'
14209 # see comment about AmigaOS4 .so support
14210 lt_prog_compiler_pic_CXX='-fPIC'
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14216 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14222 # PIC is the default for these OSes.
14224 mingw* | cygwin* | os2* | pw32* | cegcc*)
14225 # This hack is so that the source file can tell whether it is being
14226 # built for inclusion in a dll (and should export symbols for example).
14227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14228 # (--disable-auto-import) libraries
14229 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14231 darwin* | rhapsody*)
14232 # PIC is the default on this platform
14233 # Common symbols not allowed in MH_DYLIB files
14234 lt_prog_compiler_pic_CXX='-fno-common'
14237 # DJGPP does not support shared libraries at all
14238 lt_prog_compiler_pic_CXX=
14241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14242 # Instead, we relocate shared libraries at runtime.
14245 if test -d /usr/nec; then
14246 lt_prog_compiler_pic_CXX=-Kconform_pic
14250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14252 # sets the default TLS model and affects inlining.
14257 lt_prog_compiler_pic_CXX='-fPIC'
14262 # QNX uses GNU C++, but need to define -shared option too, otherwise
14263 # it will coredump.
14264 lt_prog_compiler_pic_CXX='-fPIC -shared'
14267 lt_prog_compiler_pic_CXX='-fPIC'
14273 # All AIX code is PIC.
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static_CXX='-Bstatic'
14278 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14282 case $cc_basename in
14284 # Green Hills C++ Compiler
14285 # _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"
14290 case $cc_basename in
14292 lt_prog_compiler_pic_CXX='-KPIC'
14295 # Green Hills C++ Compiler
14296 lt_prog_compiler_pic_CXX='-pic'
14302 freebsd* | dragonfly*)
14303 # FreeBSD uses GNU C++
14305 hpux9* | hpux10* | hpux11*)
14306 case $cc_basename in
14308 lt_prog_compiler_wl_CXX='-Wl,'
14309 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14310 if test "$host_cpu" != ia64; then
14311 lt_prog_compiler_pic_CXX='+Z'
14315 lt_prog_compiler_wl_CXX='-Wl,'
14316 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14322 lt_prog_compiler_pic_CXX='+Z'
14331 # This is c89, which is MS Visual C++ (no shared libs)
14332 # Anyone wants to do a port?
14334 irix5* | irix6* | nonstopux*)
14335 case $cc_basename in
14337 lt_prog_compiler_wl_CXX='-Wl,'
14338 lt_prog_compiler_static_CXX='-non_shared'
14339 # CC pic flag -KPIC is the default.
14345 linux* | k*bsd*-gnu)
14346 case $cc_basename in
14349 lt_prog_compiler_wl_CXX='--backend -Wl,'
14350 lt_prog_compiler_pic_CXX='-fPIC'
14353 # old Intel C++ for x86_64 which still supported -KPIC.
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_pic_CXX='-KPIC'
14356 lt_prog_compiler_static_CXX='-static'
14359 # Intel C++, used to be incompatible with GCC.
14360 # ICC 10 doesn't accept -KPIC any more.
14361 lt_prog_compiler_wl_CXX='-Wl,'
14362 lt_prog_compiler_pic_CXX='-fPIC'
14363 lt_prog_compiler_static_CXX='-static'
14366 # Portland Group C++ compiler
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_pic_CXX='-fpic'
14369 lt_prog_compiler_static_CXX='-Bstatic'
14373 # Make sure the PIC flag is empty. It appears that all Alpha
14374 # Linux and Compaq Tru64 Unix objects are PIC.
14375 lt_prog_compiler_pic_CXX=
14376 lt_prog_compiler_static_CXX='-non_shared'
14379 # IBM XL 8.0 on PPC
14380 lt_prog_compiler_wl_CXX='-Wl,'
14381 lt_prog_compiler_pic_CXX='-qpic'
14382 lt_prog_compiler_static_CXX='-qstaticlink'
14385 case `$CC -V 2>&1 | sed 5q` in
14388 lt_prog_compiler_pic_CXX='-KPIC'
14389 lt_prog_compiler_static_CXX='-Bstatic'
14390 lt_prog_compiler_wl_CXX='-Qoption ld '
14401 case $cc_basename in
14403 lt_prog_compiler_pic_CXX='-W c,exportall'
14412 # QNX uses GNU C++, but need to define -shared option too, otherwise
14413 # it will coredump.
14414 lt_prog_compiler_pic_CXX='-fPIC -shared'
14416 osf3* | osf4* | osf5*)
14417 case $cc_basename in
14419 lt_prog_compiler_wl_CXX='--backend -Wl,'
14422 # Rational C++ 2.4.1
14423 lt_prog_compiler_pic_CXX='-pic'
14426 # Digital/Compaq C++
14427 lt_prog_compiler_wl_CXX='-Wl,'
14428 # Make sure the PIC flag is empty. It appears that all Alpha
14429 # Linux and Compaq Tru64 Unix objects are PIC.
14430 lt_prog_compiler_pic_CXX=
14431 lt_prog_compiler_static_CXX='-non_shared'
14440 case $cc_basename in
14442 # Sun C++ 4.2, 5.x and Centerline C++
14443 lt_prog_compiler_pic_CXX='-KPIC'
14444 lt_prog_compiler_static_CXX='-Bstatic'
14445 lt_prog_compiler_wl_CXX='-Qoption ld '
14448 # Green Hills C++ Compiler
14449 lt_prog_compiler_pic_CXX='-PIC'
14456 case $cc_basename in
14459 lt_prog_compiler_pic_CXX='-pic'
14460 lt_prog_compiler_static_CXX='-Bstatic'
14464 lt_prog_compiler_pic_CXX='-pic'
14470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14471 case $cc_basename in
14473 lt_prog_compiler_wl_CXX='-Wl,'
14474 lt_prog_compiler_pic_CXX='-KPIC'
14475 lt_prog_compiler_static_CXX='-Bstatic'
14480 case $cc_basename in
14482 # NonStop-UX NCC 3.20
14483 lt_prog_compiler_pic_CXX='-KPIC'
14492 lt_prog_compiler_can_build_shared_CXX=no
14498 # For platforms which do not support PIC, -DPIC is meaningless:
14500 lt_prog_compiler_pic_CXX=
14503 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14507 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14512 # Check to make sure the PIC flag actually works.
14514 if test -n "$lt_prog_compiler_pic_CXX"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14516 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14517 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14518 $as_echo_n "(cached) " >&6
14520 lt_cv_prog_compiler_pic_works_CXX=no
14521 ac_outfile=conftest.$ac_objext
14522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14524 # Insert the option either (1) after the last *FLAGS variable, or
14525 # (2) before a word containing "conftest.", or (3) at the end.
14526 # Note that $ac_compile itself does not contain backslashes and begins
14527 # with a dollar sign (not a hyphen), so the echo should work correctly.
14528 # The option is referenced via a variable to avoid confusing sed.
14529 lt_compile=`echo "$ac_compile" | $SED \
14530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532 -e 's:$: $lt_compiler_flag:'`
14533 (eval echo "\"\$as_me:14533: $lt_compile\"" >&5)
14534 (eval "$lt_compile" 2>conftest.err)
14536 cat conftest.err >&5
14537 echo "$as_me:14537: \$? = $ac_status" >&5
14538 if (exit $ac_status) && test -s "$ac_outfile"; then
14539 # The compiler can only warn and ignore the option if not recognized
14540 # So say no if there are warnings other than the usual output.
14541 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14544 lt_cv_prog_compiler_pic_works_CXX=yes
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14551 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14553 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14554 case $lt_prog_compiler_pic_CXX in
14556 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14559 lt_prog_compiler_pic_CXX=
14560 lt_prog_compiler_can_build_shared_CXX=no
14568 # Check to make sure the static flag actually works.
14570 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14572 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14573 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14574 $as_echo_n "(cached) " >&6
14576 lt_cv_prog_compiler_static_works_CXX=no
14577 save_LDFLAGS="$LDFLAGS"
14578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14581 # The linker can only warn and ignore the option if not recognized
14582 # So say no if there are warnings
14583 if test -s conftest.err; then
14584 # Append any errors to the config.log.
14585 cat conftest.err 1>&5
14586 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14588 if diff conftest.exp conftest.er2 >/dev/null; then
14589 lt_cv_prog_compiler_static_works_CXX=yes
14592 lt_cv_prog_compiler_static_works_CXX=yes
14596 LDFLAGS="$save_LDFLAGS"
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14600 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14602 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14605 lt_prog_compiler_static_CXX=
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14613 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14614 $as_echo_n "(cached) " >&6
14616 lt_cv_prog_compiler_c_o_CXX=no
14617 $RM -r conftest 2>/dev/null
14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623 lt_compiler_flag="-o out/conftest2.$ac_objext"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>out/conftest.err)
14635 cat out/conftest.err >&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_c_o_CXX=yes
14649 # SGI C++ compiler will create directory out/ii_files/ for
14650 # template instantiation
14651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14652 $RM out/* && rmdir out
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14659 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14665 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14666 $as_echo_n "(cached) " >&6
14668 lt_cv_prog_compiler_c_o_CXX=no
14669 $RM -r conftest 2>/dev/null
14673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675 lt_compiler_flag="-o out/conftest2.$ac_objext"
14676 # Insert the option either (1) after the last *FLAGS variable, or
14677 # (2) before a word containing "conftest.", or (3) at the end.
14678 # Note that $ac_compile itself does not contain backslashes and begins
14679 # with a dollar sign (not a hyphen), so the echo should work correctly.
14680 lt_compile=`echo "$ac_compile" | $SED \
14681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683 -e 's:$: $lt_compiler_flag:'`
14684 (eval echo "\"\$as_me:14684: $lt_compile\"" >&5)
14685 (eval "$lt_compile" 2>out/conftest.err)
14687 cat out/conftest.err >&5
14688 echo "$as_me:14688: \$? = $ac_status" >&5
14689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691 # The compiler can only warn and ignore the option if not recognized
14692 # So say no if there are warnings
14693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14696 lt_cv_prog_compiler_c_o_CXX=yes
14701 # SGI C++ compiler will create directory out/ii_files/ for
14702 # template instantiation
14703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14704 $RM out/* && rmdir out
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14716 hard_links="nottested"
14717 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14718 # do not overwrite the value of need_locks provided by the user
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14720 $as_echo_n "checking if we can lock with hard links... " >&6; }
14723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725 ln conftest.a conftest.b 2>&5 || hard_links=no
14726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14728 $as_echo "$hard_links" >&6; }
14729 if test "$hard_links" = no; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14731 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14746 # If we're using GNU nm, then we don't want the "-C" option.
14747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14748 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14749 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'
14751 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'
14755 export_symbols_cmds_CXX="$ltdll_cmds"
14757 cygwin* | mingw* | cegcc*)
14758 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'
14761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14764 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14767 $as_echo "$ld_shlibs_CXX" >&6; }
14768 test "$ld_shlibs_CXX" = no && can_build_shared=no
14770 with_gnu_ld_CXX=$with_gnu_ld
14778 # Do we need to explicitly link libc?
14780 case "x$archive_cmds_need_lc_CXX" in
14782 # Assume -lc should be added
14783 archive_cmds_need_lc_CXX=yes
14785 if test "$enable_shared" = yes && test "$GCC" = yes; then
14786 case $archive_cmds_CXX in
14788 # FIXME: we may have to deal with multi-command sequences.
14791 # Test whether the compiler implicitly links with -lc since on some
14792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14793 # to ld, don't add -lc before -lgcc.
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14795 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14800 (eval $ac_compile) 2>&5
14802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14803 test $ac_status = 0; } 2>conftest.err; then
14806 libobjs=conftest.$ac_objext
14808 wl=$lt_prog_compiler_wl_CXX
14809 pic_flag=$lt_prog_compiler_pic_CXX
14815 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14816 allow_undefined_flag_CXX=
14817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14818 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14821 test $ac_status = 0; }
14823 archive_cmds_need_lc_CXX=no
14825 archive_cmds_need_lc_CXX=yes
14827 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14829 cat conftest.err 1>&5
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14833 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14906 library_names_spec=
14907 libname_spec='lib$name'
14911 postuninstall_cmds=
14915 shlibpath_overrides_runpath=unknown
14917 dynamic_linker="$host_os ld.so"
14918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919 need_lib_prefix=unknown
14920 hardcode_into_libs=no
14922 # when you set need_version to no, make sure it does not cause -set_version
14923 # flags to be left without arguments
14924 need_version=unknown
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14930 shlibpath_var=LIBPATH
14932 # AIX 3 has no versioning support, so we append a major version to the name.
14933 soname_spec='${libname}${release}${shared_ext}$major'
14940 hardcode_into_libs=yes
14941 if test "$host_cpu" = ia64; then
14942 # AIX 5 supports IA64
14943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14944 shlibpath_var=LD_LIBRARY_PATH
14946 # With GCC up to 2.95.x, collect2 would create an import file
14947 # for dependence libraries. The import file would start with
14948 # the line `#! .'. This would cause the generated library to
14949 # depend on `.', always an invalid library. This was fixed in
14950 # development snapshots of GCC prior to 3.0.
14952 aix4 | aix4.[01] | aix4.[01].*)
14953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14955 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14958 can_build_shared=no
14962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963 # soname into executable. Probably we can add versioning support to
14964 # collect2, so additional links can be useful in future.
14965 if test "$aix_use_runtimelinking" = yes; then
14966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967 # instead of lib<name>.a to let people know that these are not
14968 # typical AIX shared libraries.
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 # We preserve .a as extension for shared libraries through AIX4.2
14972 # and later when we are not doing run time linking.
14973 library_names_spec='${libname}${release}.a $libname.a'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14976 shlibpath_var=LIBPATH
14983 # Since July 2007 AmigaOS4 officially supports .so libraries.
14984 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 library_names_spec='$libname.ixlibrary $libname.a'
14989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14990 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'
14996 library_names_spec='${libname}${shared_ext}'
14997 dynamic_linker="$host_os ld.so"
14998 shlibpath_var=LIBRARY_PATH
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15009 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15010 # the default ld.so.conf also contains /usr/contrib/lib and
15011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15012 # libtool to hard-code these into programs
15015 cygwin* | mingw* | pw32* | cegcc*)
15016 version_type=windows
15021 case $GCC,$host_os in
15022 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15023 library_names_spec='$libname.dll.a'
15024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15025 postinstall_cmds='base_file=`basename \${file}`~
15026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15027 dldir=$destdir/`dirname \$dlpath`~
15028 test -d \$dldir || mkdir -p \$dldir~
15029 $install_prog $dir/$dlname \$dldir/$dlname~
15030 chmod a+x \$dldir/$dlname~
15031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15035 dlpath=$dir/\$dldll~
15037 shlibpath_overrides_runpath=yes
15041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15043 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15046 # MinGW DLLs use traditional 'lib' prefix
15047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15048 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15049 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15050 # It is most probably a Windows format PATH printed by
15051 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15052 # path with ; separators, and with drive letters. We can handle the
15053 # drive letters (cygwin fileutils understands them), so leave them,
15054 # especially as we might pass files found there to a mingw objdump,
15055 # which wouldn't understand a cygwinified path. Ahh.
15056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15062 # pw32 DLLs use 'pw' prefix rather than 'lib'
15063 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15072 dynamic_linker='Win32 ld.exe'
15073 # FIXME: first we should search . and the directory the executable is in
15077 darwin* | rhapsody*)
15078 dynamic_linker="$host_os dyld"
15079 version_type=darwin
15082 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15083 soname_spec='${libname}${release}${major}$shared_ext'
15084 shlibpath_overrides_runpath=yes
15085 shlibpath_var=DYLD_LIBRARY_PATH
15086 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15104 freebsd* | dragonfly*)
15105 # DragonFly does not have aout. When/if they implement a new
15106 # versioning mechanism, adjust this.
15107 if test -x /usr/bin/objformat; then
15108 objformat=`/usr/bin/objformat`
15111 freebsd[123]*) objformat=aout ;;
15112 *) objformat=elf ;;
15115 version_type=freebsd-$objformat
15116 case $version_type in
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15127 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15132 freebsd3.[01]* | freebsdelf3.[01]*)
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15138 shlibpath_overrides_runpath=no
15139 hardcode_into_libs=yes
15141 *) # from 4.6 on, and DragonFly
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 hardcode_into_libs=yes
15158 hpux9* | hpux10* | hpux11*)
15159 # Give a soname corresponding to the major version so that dld.sl refuses to
15160 # link against other versions.
15167 hardcode_into_libs=yes
15168 dynamic_linker="$host_os dld.so"
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 if test "X$HPUX_IA64_MODE" = X32; then
15174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15182 hardcode_into_libs=yes
15183 dynamic_linker="$host_os dld.sl"
15184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15193 dynamic_linker="$host_os dld.sl"
15194 shlibpath_var=SHLIB_PATH
15195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15201 postinstall_cmds='chmod 555 $lib'
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213 hardcode_into_libs=yes
15216 irix5* | irix6* | nonstopux*)
15218 nonstopux*) version_type=nonstopux ;;
15220 if test "$lt_cv_prog_gnu_ld" = yes; then
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 irix5* | nonstopux*)
15232 libsuff= shlibsuff=
15235 case $LD in # libtool.m4 will add one of these switches to LD
15236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15237 libsuff= shlibsuff= libmagic=32-bit;;
15238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15239 libsuff=32 shlibsuff=N32 libmagic=N32;;
15240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15242 *) libsuff= shlibsuff= libmagic=never-match;;
15246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15247 shlibpath_overrides_runpath=no
15248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15250 hardcode_into_libs=yes
15253 # No shared lib support for Linux oldld, aout, or coff.
15254 linux*oldld* | linux*aout* | linux*coff*)
15258 # This must be Linux ELF.
15259 linux* | k*bsd*-gnu)
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15268 # Some binutils ld are patched to set DT_RUNPATH
15269 save_LDFLAGS=$LDFLAGS
15270 save_libdir=$libdir
15271 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15272 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15284 if ac_fn_cxx_try_link "$LINENO"; then :
15285 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15286 shlibpath_overrides_runpath=yes
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15291 LDFLAGS=$save_LDFLAGS
15292 libdir=$save_libdir
15294 # This implies no fast_install, which is unacceptable.
15295 # Some rework will be needed to allow for fast_install
15296 # before this can be enabled.
15297 hardcode_into_libs=yes
15299 # Append ld.so.conf contents to the search path
15300 if test -f /etc/ld.so.conf; then
15301 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' ' '`
15302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15305 # We used to test for /lib/ld.so.1 and disable shared libraries on
15306 # powerpc, because MkLinux only supported shared libraries with the
15307 # GNU dynamic linker. Since this was broken with cross compilers,
15308 # most powerpc-linux boxes support dynamic linking these days and
15309 # people can always --disable-shared, the test was removed, and we
15310 # assume the GNU/Linux dynamic linker is in use.
15311 dynamic_linker='GNU/Linux ld.so'
15318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15321 dynamic_linker='NetBSD (a.out) ld.so'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 dynamic_linker='NetBSD ld.elf_so'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 hardcode_into_libs=yes
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15348 dynamic_linker='ldqnx.so'
15353 sys_lib_dlsearch_path_spec="/usr/lib"
15355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15358 *) need_version=no ;;
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15365 openbsd2.[89] | openbsd2.[89].*)
15366 shlibpath_overrides_runpath=no
15369 shlibpath_overrides_runpath=yes
15373 shlibpath_overrides_runpath=yes
15378 libname_spec='$name'
15381 library_names_spec='$libname${shared_ext} $libname.a'
15382 dynamic_linker='OS/2 ld.exe'
15383 shlibpath_var=LIBPATH
15386 osf3* | osf4* | osf5*)
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 hardcode_into_libs=yes
15410 # ldd complains unless libraries are executable
15411 postinstall_cmds='chmod +x $lib'
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 if test "$with_gnu_ld" = yes; then
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 case $host_vendor in
15433 shlibpath_overrides_runpath=no
15435 runpath_var=LD_RUN_PATH
15443 shlibpath_overrides_runpath=no
15444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15450 if test -d /usr/nec ;then
15452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15453 soname_spec='$libname${shared_ext}.$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15459 version_type=freebsd-elf
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15466 hardcode_into_libs=yes
15467 if test "$with_gnu_ld" = yes; then
15468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15477 sys_lib_dlsearch_path_spec='/usr/lib'
15481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=no
15488 hardcode_into_libs=yes
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15503 $as_echo "$dynamic_linker" >&6; }
15504 test "$dynamic_linker" = no && can_build_shared=no
15506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15507 if test "$GCC" = yes; then
15508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15511 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15512 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15514 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15515 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15554 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15555 hardcode_action_CXX=
15556 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15557 test -n "$runpath_var_CXX" ||
15558 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15560 # We can hardcode non-existent directories.
15561 if test "$hardcode_direct_CXX" != no &&
15562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15563 # have to relink, otherwise we might link with an installed library
15564 # when we should be linking with a yet-to-be-installed one
15565 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15566 test "$hardcode_minus_L_CXX" != no; then
15567 # Linking always hardcodes the temporary library directory.
15568 hardcode_action_CXX=relink
15570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15571 hardcode_action_CXX=immediate
15574 # We cannot hardcode anything, or else we can only hardcode existing
15576 hardcode_action_CXX=unsupported
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15579 $as_echo "$hardcode_action_CXX" >&6; }
15581 if test "$hardcode_action_CXX" = relink ||
15582 test "$inherit_rpath_CXX" = yes; then
15583 # Fast installation is not supported
15584 enable_fast_install=no
15585 elif test "$shlibpath_overrides_runpath" = yes ||
15586 test "$enable_shared" = no; then
15587 # Fast installation is not necessary
15588 enable_fast_install=needless
15597 fi # test -n "$compiler"
15603 with_gnu_ld=$lt_save_with_gnu_ld
15604 lt_cv_path_LDCXX=$lt_cv_path_LD
15605 lt_cv_path_LD=$lt_save_path_LD
15606 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15607 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15608 fi # test "$_lt_caught_CXX_error" != yes
15611 ac_cpp='$CPP $CPPFLAGS'
15612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15628 ac_config_commands="$ac_config_commands libtool"
15633 # Only expand once:
15638 if test x$use_libtool != xno; then
15639 DEFAULT_OBJECT_TYPE=".lo"
15640 DEFAULT_ARCHIVE_TYPE=".la"
15641 DEFAULT_SHARED_OBJECT_TYPE=".la"
15642 LIBTOOL="\$(LIBTOOL)"
15643 LIBTOOL_INSTALL_TARGET="libtool-install"
15644 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15645 LIBTOOL_CLEAN_TARGET="libtool-clean"
15646 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15647 FD_PLUGIN_DIR="src/plugins/fd"
15650 DEFAULT_OBJECT_TYPE=".o"
15651 DEFAULT_ARCHIVE_TYPE=".a"
15652 DEFAULT_SHARED_OBJECT_TYPE=".so"
15653 LIBTOOL="# \$(LIBTOOL)"
15654 LIBTOOL_INSTALL_TARGET=""
15655 LIBTOOL_UNINSTALL_TARGET=""
15656 LIBTOOL_CLEAN_TARGET=""
15657 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15672 # Check whether --enable-includes was given.
15673 if test "${enable_includes+set}" = set; then :
15674 enableval=$enable_includes;
15675 if test x$enableval = xyes; then
15676 install_includes=yes
15684 if test x$use_libtool != xno -a x$install_includes = xyes; then
15685 INCLUDE_INSTALL_TARGET="install-includes"
15686 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15688 INCLUDE_INSTALL_TARGET=""
15689 INCLUDE_UNINSTALL_TARGET=""
15697 *cygwin* ) CYGWIN=yes;;
15701 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15707 HAVE_SUN_OS_FALSE='#'
15709 HAVE_SUN_OS_TRUE='#'
15712 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15719 HAVE_SUN_OS_FALSE='#'
15721 HAVE_SUN_OS_TRUE='#'
15726 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15732 HAVE_OSF1_OS_FALSE='#'
15734 HAVE_OSF1_OS_TRUE='#'
15735 HAVE_OSF1_OS_FALSE=
15737 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15744 HAVE_OSF1_OS_FALSE='#'
15746 HAVE_OSF1_OS_TRUE='#'
15747 HAVE_OSF1_OS_FALSE=
15751 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15757 HAVE_AIX_OS_FALSE='#'
15759 HAVE_AIX_OS_TRUE='#'
15762 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15769 HAVE_AIX_OS_FALSE='#'
15771 HAVE_AIX_OS_TRUE='#'
15776 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15782 HAVE_HPUX_OS_FALSE='#'
15784 HAVE_HPUX_OS_TRUE='#'
15785 HAVE_HPUX_OS_FALSE=
15787 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15794 HAVE_HPUX_OS_FALSE='#'
15796 HAVE_HPUX_OS_TRUE='#'
15797 HAVE_HPUX_OS_FALSE=
15801 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15806 HAVE_LINUX_OS_TRUE=
15807 HAVE_LINUX_OS_FALSE='#'
15809 HAVE_LINUX_OS_TRUE='#'
15810 HAVE_LINUX_OS_FALSE=
15812 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15818 HAVE_LINUX_OS_TRUE=
15819 HAVE_LINUX_OS_FALSE='#'
15821 HAVE_LINUX_OS_TRUE='#'
15822 HAVE_LINUX_OS_FALSE=
15826 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15831 HAVE_FREEBSD_OS_TRUE=
15832 HAVE_FREEBSD_OS_FALSE='#'
15834 HAVE_FREEBSD_OS_TRUE='#'
15835 HAVE_FREEBSD_OS_FALSE=
15837 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15843 HAVE_FREEBSD_OS_TRUE=
15844 HAVE_FREEBSD_OS_FALSE='#'
15846 HAVE_FREEBSD_OS_TRUE='#'
15847 HAVE_FREEBSD_OS_FALSE=
15851 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15856 HAVE_NETBSD_OS_TRUE=
15857 HAVE_NETBSD_OS_FALSE='#'
15859 HAVE_NETBSD_OS_TRUE='#'
15860 HAVE_NETBSD_OS_FALSE=
15862 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15868 HAVE_NETBSD_OS_TRUE=
15869 HAVE_NETBSD_OS_FALSE='#'
15871 HAVE_NETBSD_OS_TRUE='#'
15872 HAVE_NETBSD_OS_FALSE=
15876 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15881 HAVE_OPENBSD_OS_TRUE=
15882 HAVE_OPENBSD_OS_FALSE='#'
15884 HAVE_OPENBSD_OS_TRUE='#'
15885 HAVE_OPENBSD_OS_FALSE=
15887 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15893 HAVE_OPENBSD_OS_TRUE=
15894 HAVE_OPENBSD_OS_FALSE='#'
15896 HAVE_OPENBSD_OS_TRUE='#'
15897 HAVE_OPENBSD_OS_FALSE=
15901 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15907 HAVE_BSDI_OS_FALSE='#'
15909 HAVE_BSDI_OS_TRUE='#'
15910 HAVE_BSDI_OS_FALSE=
15912 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15919 HAVE_BSDI_OS_FALSE='#'
15921 HAVE_BSDI_OS_TRUE='#'
15922 HAVE_BSDI_OS_FALSE=
15926 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15932 HAVE_SGI_OS_FALSE='#'
15934 HAVE_SGI_OS_TRUE='#'
15937 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15944 HAVE_SGI_OS_FALSE='#'
15946 HAVE_SGI_OS_TRUE='#'
15951 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15957 HAVE_IRIX_OS_FALSE='#'
15959 HAVE_IRIX_OS_TRUE='#'
15960 HAVE_IRIX_OS_FALSE=
15962 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15969 HAVE_IRIX_OS_FALSE='#'
15971 HAVE_IRIX_OS_TRUE='#'
15972 HAVE_IRIX_OS_FALSE=
15976 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15981 HAVE_DARWIN_OS_TRUE=
15982 HAVE_DARWIN_OS_FALSE='#'
15984 HAVE_DARWIN_OS_TRUE='#'
15985 HAVE_DARWIN_OS_FALSE=
15987 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15993 HAVE_DARWIN_OS_TRUE=
15994 HAVE_DARWIN_OS_FALSE='#'
15996 HAVE_DARWIN_OS_TRUE='#'
15997 HAVE_DARWIN_OS_FALSE=
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16003 $as_echo_n "checking for Operating System Distribution... " >&6; }
16004 if test "x$DISTNAME" != "x"
16006 echo "distname set to $DISTNAME"
16007 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16010 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16013 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16016 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16019 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16022 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16025 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16028 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16031 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16034 elif test -f /etc/SuSE-release
16037 elif test -d /etc/SuSEconfig
16040 elif test -f /etc/mandrake-release
16043 elif test -f /etc/whitebox-release
16046 elif test -f /etc/redhat-release
16049 elif test -f /etc/gentoo-release
16052 elif test -f /etc/debian_version
16055 elif test -f /etc/slackware-version
16058 elif test x$host_vendor = xapple
16061 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16064 elif test -f /etc/engarde-version
16067 elif test -f /etc/arch-release
16070 elif test "$CYGWIN" = yes
16073 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16079 $as_echo "done" >&6; }
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16083 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16085 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16086 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16087 $as_echo_n "(cached) " >&6
16089 cat >conftest.make <<\_ACEOF
16092 @echo '@@@%%%=$(MAKE)=@@@%%%'
16094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16096 *@@@%%%=?*=@@@%%%*)
16097 eval ac_cv_prog_make_${ac_make}_set=yes;;
16099 eval ac_cv_prog_make_${ac_make}_set=no;;
16101 rm -f conftest.make
16103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110 SET_MAKE="MAKE=${MAKE-make}"
16116 if test -n "$ac_aux_dir"; then
16117 case "$ac_aux_dir" in
16118 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16119 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16122 if test -z "$MKINSTALLDIRS"; then
16123 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16129 $as_echo_n "checking whether NLS is requested... " >&6; }
16130 # Check whether --enable-nls was given.
16131 if test "${enable_nls+set}" = set; then :
16132 enableval=$enable_nls; USE_NLS=$enableval
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16138 $as_echo "$USE_NLS" >&6; }
16145 # Prepare PATH_SEPARATOR.
16146 # The user is always right.
16147 if test "${PATH_SEPARATOR+set}" != set; then
16148 echo "#! /bin/sh" >conf$$.sh
16149 echo "exit 0" >>conf$$.sh
16151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16159 # Find out how to test for executable files. Don't use a zero-byte file,
16160 # as systems may use methods other than mode bits to determine executability.
16161 cat >conf$$.file <<_ASEOF
16165 chmod +x conf$$.file
16166 if test -x conf$$.file >/dev/null 2>&1; then
16167 ac_executable_p="test -x"
16169 ac_executable_p="test -f"
16173 # Extract the first word of "msgfmt", so it can be a program name with args.
16174 set dummy msgfmt; ac_word=$2
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176 $as_echo_n "checking for $ac_word... " >&6; }
16177 if ${ac_cv_path_MSGFMT+:} false; then :
16178 $as_echo_n "(cached) " >&6
16182 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16185 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16186 for ac_dir in $PATH; do
16188 test -z "$ac_dir" && ac_dir=.
16189 for ac_exec_ext in '' $ac_executable_extensions; do
16190 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16191 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16192 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16193 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16194 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16201 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16205 MSGFMT="$ac_cv_path_MSGFMT"
16206 if test "$MSGFMT" != ":"; then
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16208 $as_echo "$MSGFMT" >&6; }
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16215 set dummy gmsgfmt; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_path_GMSGFMT+:} false; then :
16219 $as_echo_n "(cached) " >&6
16223 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16227 for as_dir in $PATH
16230 test -z "$as_dir" && as_dir=.
16231 for ac_exec_ext in '' $ac_executable_extensions; do
16232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16233 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16241 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16245 GMSGFMT=$ac_cv_path_GMSGFMT
16246 if test -n "$GMSGFMT"; then
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16248 $as_echo "$GMSGFMT" >&6; }
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16257 # Prepare PATH_SEPARATOR.
16258 # The user is always right.
16259 if test "${PATH_SEPARATOR+set}" != set; then
16260 echo "#! /bin/sh" >conf$$.sh
16261 echo "exit 0" >>conf$$.sh
16263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16271 # Find out how to test for executable files. Don't use a zero-byte file,
16272 # as systems may use methods other than mode bits to determine executability.
16273 cat >conf$$.file <<_ASEOF
16277 chmod +x conf$$.file
16278 if test -x conf$$.file >/dev/null 2>&1; then
16279 ac_executable_p="test -x"
16281 ac_executable_p="test -f"
16285 # Extract the first word of "xgettext", so it can be a program name with args.
16286 set dummy xgettext; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288 $as_echo_n "checking for $ac_word... " >&6; }
16289 if ${ac_cv_path_XGETTEXT+:} false; then :
16290 $as_echo_n "(cached) " >&6
16292 case "$XGETTEXT" in
16294 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16298 for ac_dir in $PATH; do
16300 test -z "$ac_dir" && ac_dir=.
16301 for ac_exec_ext in '' $ac_executable_extensions; do
16302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16303 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16304 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16305 (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
16306 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16313 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16317 XGETTEXT="$ac_cv_path_XGETTEXT"
16318 if test "$XGETTEXT" != ":"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16320 $as_echo "$XGETTEXT" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16329 # Prepare PATH_SEPARATOR.
16330 # The user is always right.
16331 if test "${PATH_SEPARATOR+set}" != set; then
16332 echo "#! /bin/sh" >conf$$.sh
16333 echo "exit 0" >>conf$$.sh
16335 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16343 # Find out how to test for executable files. Don't use a zero-byte file,
16344 # as systems may use methods other than mode bits to determine executability.
16345 cat >conf$$.file <<_ASEOF
16349 chmod +x conf$$.file
16350 if test -x conf$$.file >/dev/null 2>&1; then
16351 ac_executable_p="test -x"
16353 ac_executable_p="test -f"
16357 # Extract the first word of "msgmerge", so it can be a program name with args.
16358 set dummy msgmerge; ac_word=$2
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16360 $as_echo_n "checking for $ac_word... " >&6; }
16361 if ${ac_cv_path_MSGMERGE+:} false; then :
16362 $as_echo_n "(cached) " >&6
16364 case "$MSGMERGE" in
16366 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16369 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16370 for ac_dir in $PATH; do
16372 test -z "$ac_dir" && ac_dir=.
16373 for ac_exec_ext in '' $ac_executable_extensions; do
16374 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16375 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16376 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16377 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16384 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16388 MSGMERGE="$ac_cv_path_MSGMERGE"
16389 if test "$MSGMERGE" != ":"; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16391 $as_echo "$MSGMERGE" >&6; }
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394 $as_echo "no" >&6; }
16398 if test "$GMSGFMT" != ":"; then
16399 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16400 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16403 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16405 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16410 if test "$XGETTEXT" != ":"; then
16411 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16412 (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
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16416 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16422 ac_config_commands="$ac_config_commands default-1"
16426 if test "X$prefix" = "XNONE"; then
16427 acl_final_prefix="$ac_default_prefix"
16429 acl_final_prefix="$prefix"
16431 if test "X$exec_prefix" = "XNONE"; then
16432 acl_final_exec_prefix='${prefix}'
16434 acl_final_exec_prefix="$exec_prefix"
16436 acl_save_prefix="$prefix"
16437 prefix="$acl_final_prefix"
16438 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16439 prefix="$acl_save_prefix"
16442 # Check whether --with-gnu-ld was given.
16443 if test "${with_gnu_ld+set}" = set; then :
16444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16449 # Prepare PATH_SEPARATOR.
16450 # The user is always right.
16451 if test "${PATH_SEPARATOR+set}" != set; then
16452 echo "#! /bin/sh" >conf$$.sh
16453 echo "exit 0" >>conf$$.sh
16455 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16463 if test "$GCC" = yes; then
16464 # Check if gcc -print-prog-name=ld gives a path.
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16466 $as_echo_n "checking for ld used by GCC... " >&6; }
16469 # gcc leaves a trailing carriage return which upsets mingw
16470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16475 # Accept absolute paths.
16476 [\\/]* | [A-Za-z]:[\\/]*)
16477 re_direlt='/[^/][^/]*/\.\./'
16478 # Canonicalize the path of ld
16479 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16481 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16483 test -z "$LD" && LD="$ac_prog"
16486 # If it fails, then pretend we aren't using GCC.
16490 # If it is relative, then search for the first ld in PATH.
16491 with_gnu_ld=unknown
16494 elif test "$with_gnu_ld" = yes; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16496 $as_echo_n "checking for GNU ld... " >&6; }
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16499 $as_echo_n "checking for non-GNU ld... " >&6; }
16501 if ${acl_cv_path_LD+:} false; then :
16502 $as_echo_n "(cached) " >&6
16504 if test -z "$LD"; then
16505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16506 for ac_dir in $PATH; do
16507 test -z "$ac_dir" && ac_dir=.
16508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16509 acl_cv_path_LD="$ac_dir/$ac_prog"
16510 # Check to see if the program is GNU ld. I'd rather use --version,
16511 # but apparently some GNU ld's only accept -v.
16512 # Break only if it was the GNU/non-GNU ld that we prefer.
16513 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16514 *GNU* | *'with BFD'*)
16515 test "$with_gnu_ld" != no && break ;;
16517 test "$with_gnu_ld" != yes && break ;;
16523 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16527 LD="$acl_cv_path_LD"
16528 if test -n "$LD"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16530 $as_echo "$LD" >&6; }
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16538 if ${acl_cv_prog_gnu_ld+:} false; then :
16539 $as_echo_n "(cached) " >&6
16541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16542 case `$LD -v 2>&1 </dev/null` in
16543 *GNU* | *'with BFD'*)
16544 acl_cv_prog_gnu_ld=yes ;;
16546 acl_cv_prog_gnu_ld=no ;;
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16550 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16551 with_gnu_ld=$acl_cv_prog_gnu_ld
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16557 $as_echo_n "checking for shared library run path origin... " >&6; }
16558 if ${acl_cv_rpath+:} false; then :
16559 $as_echo_n "(cached) " >&6
16562 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16563 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16565 rm -f ./conftest.sh
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16570 $as_echo "$acl_cv_rpath" >&6; }
16572 libext="$acl_cv_libext"
16573 shlibext="$acl_cv_shlibext"
16574 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16575 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16576 hardcode_direct="$acl_cv_hardcode_direct"
16577 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16578 # Check whether --enable-rpath was given.
16579 if test "${enable_rpath+set}" = set; then :
16580 enableval=$enable_rpath; :
16594 acl_save_prefix="$prefix"
16595 prefix="$acl_final_prefix"
16596 acl_save_exec_prefix="$exec_prefix"
16597 exec_prefix="$acl_final_exec_prefix"
16599 eval additional_includedir=\"$includedir\"
16600 eval additional_libdir=\"$libdir\"
16602 exec_prefix="$acl_save_exec_prefix"
16603 prefix="$acl_save_prefix"
16606 # Check whether --with-libiconv-prefix was given.
16607 if test "${with_libiconv_prefix+set}" = set; then :
16608 withval=$with_libiconv_prefix;
16609 if test "X$withval" = "Xno"; then
16612 if test "X$withval" = "X"; then
16614 acl_save_prefix="$prefix"
16615 prefix="$acl_final_prefix"
16616 acl_save_exec_prefix="$exec_prefix"
16617 exec_prefix="$acl_final_exec_prefix"
16619 eval additional_includedir=\"$includedir\"
16620 eval additional_libdir=\"$libdir\"
16622 exec_prefix="$acl_save_exec_prefix"
16623 prefix="$acl_save_prefix"
16626 additional_includedir="$withval/include"
16627 additional_libdir="$withval/lib"
16638 names_already_handled=
16639 names_next_round='iconv '
16640 while test -n "$names_next_round"; do
16641 names_this_round="$names_next_round"
16643 for name in $names_this_round; do
16645 for n in $names_already_handled; do
16646 if test "$n" = "$name"; then
16647 already_handled=yes
16651 if test -z "$already_handled"; then
16652 names_already_handled="$names_already_handled $name"
16653 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16654 eval value=\"\$HAVE_LIB$uppername\"
16655 if test -n "$value"; then
16656 if test "$value" = yes; then
16657 eval value=\"\$LIB$uppername\"
16658 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16659 eval value=\"\$LTLIB$uppername\"
16660 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16669 if test $use_additional = yes; then
16670 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16671 found_dir="$additional_libdir"
16672 found_so="$additional_libdir/lib$name.$shlibext"
16673 if test -f "$additional_libdir/lib$name.la"; then
16674 found_la="$additional_libdir/lib$name.la"
16677 if test -f "$additional_libdir/lib$name.$libext"; then
16678 found_dir="$additional_libdir"
16679 found_a="$additional_libdir/lib$name.$libext"
16680 if test -f "$additional_libdir/lib$name.la"; then
16681 found_la="$additional_libdir/lib$name.la"
16686 if test "X$found_dir" = "X"; then
16687 for x in $LDFLAGS $LTLIBICONV; do
16689 acl_save_prefix="$prefix"
16690 prefix="$acl_final_prefix"
16691 acl_save_exec_prefix="$exec_prefix"
16692 exec_prefix="$acl_final_exec_prefix"
16694 exec_prefix="$acl_save_exec_prefix"
16695 prefix="$acl_save_prefix"
16699 dir=`echo "X$x" | sed -e 's/^X-L//'`
16700 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16702 found_so="$dir/lib$name.$shlibext"
16703 if test -f "$dir/lib$name.la"; then
16704 found_la="$dir/lib$name.la"
16707 if test -f "$dir/lib$name.$libext"; then
16709 found_a="$dir/lib$name.$libext"
16710 if test -f "$dir/lib$name.la"; then
16711 found_la="$dir/lib$name.la"
16717 if test "X$found_dir" != "X"; then
16722 if test "X$found_dir" != "X"; then
16723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16724 if test "X$found_so" != "X"; then
16725 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16726 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16729 for x in $ltrpathdirs; do
16730 if test "X$x" = "X$found_dir"; then
16735 if test -z "$haveit"; then
16736 ltrpathdirs="$ltrpathdirs $found_dir"
16738 if test "$hardcode_direct" = yes; then
16739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16741 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16744 for x in $rpathdirs; do
16745 if test "X$x" = "X$found_dir"; then
16750 if test -z "$haveit"; then
16751 rpathdirs="$rpathdirs $found_dir"
16755 for x in $LDFLAGS $LIBICONV; do
16757 acl_save_prefix="$prefix"
16758 prefix="$acl_final_prefix"
16759 acl_save_exec_prefix="$exec_prefix"
16760 exec_prefix="$acl_final_exec_prefix"
16762 exec_prefix="$acl_save_exec_prefix"
16763 prefix="$acl_save_prefix"
16765 if test "X$x" = "X-L$found_dir"; then
16770 if test -z "$haveit"; then
16771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16773 if test "$hardcode_minus_L" != no; then
16774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16776 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16782 if test "X$found_a" != "X"; then
16783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16785 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16788 additional_includedir=
16789 case "$found_dir" in
16791 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16792 additional_includedir="$basedir/include"
16795 if test "X$additional_includedir" != "X"; then
16796 if test "X$additional_includedir" != "X/usr/include"; then
16798 if test "X$additional_includedir" = "X/usr/local/include"; then
16799 if test -n "$GCC"; then
16801 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16805 if test -z "$haveit"; then
16806 for x in $CPPFLAGS $INCICONV; do
16808 acl_save_prefix="$prefix"
16809 prefix="$acl_final_prefix"
16810 acl_save_exec_prefix="$exec_prefix"
16811 exec_prefix="$acl_final_exec_prefix"
16813 exec_prefix="$acl_save_exec_prefix"
16814 prefix="$acl_save_prefix"
16816 if test "X$x" = "X-I$additional_includedir"; then
16821 if test -z "$haveit"; then
16822 if test -d "$additional_includedir"; then
16823 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16829 if test -n "$found_la"; then
16830 save_libdir="$libdir"
16831 case "$found_la" in
16832 */* | *\\*) . "$found_la" ;;
16833 *) . "./$found_la" ;;
16835 libdir="$save_libdir"
16836 for dep in $dependency_libs; do
16839 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16840 if test "X$additional_libdir" != "X/usr/lib"; then
16842 if test "X$additional_libdir" = "X/usr/local/lib"; then
16843 if test -n "$GCC"; then
16845 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16849 if test -z "$haveit"; then
16851 for x in $LDFLAGS $LIBICONV; do
16853 acl_save_prefix="$prefix"
16854 prefix="$acl_final_prefix"
16855 acl_save_exec_prefix="$exec_prefix"
16856 exec_prefix="$acl_final_exec_prefix"
16858 exec_prefix="$acl_save_exec_prefix"
16859 prefix="$acl_save_prefix"
16861 if test "X$x" = "X-L$additional_libdir"; then
16866 if test -z "$haveit"; then
16867 if test -d "$additional_libdir"; then
16868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16872 for x in $LDFLAGS $LTLIBICONV; do
16874 acl_save_prefix="$prefix"
16875 prefix="$acl_final_prefix"
16876 acl_save_exec_prefix="$exec_prefix"
16877 exec_prefix="$acl_final_exec_prefix"
16879 exec_prefix="$acl_save_exec_prefix"
16880 prefix="$acl_save_prefix"
16882 if test "X$x" = "X-L$additional_libdir"; then
16887 if test -z "$haveit"; then
16888 if test -d "$additional_libdir"; then
16889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16896 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16897 if test "$enable_rpath" != no; then
16899 for x in $rpathdirs; do
16900 if test "X$x" = "X$dir"; then
16905 if test -z "$haveit"; then
16906 rpathdirs="$rpathdirs $dir"
16909 for x in $ltrpathdirs; do
16910 if test "X$x" = "X$dir"; then
16915 if test -z "$haveit"; then
16916 ltrpathdirs="$ltrpathdirs $dir"
16921 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16924 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16927 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16934 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16941 if test "X$rpathdirs" != "X"; then
16942 if test -n "$hardcode_libdir_separator"; then
16944 for found_dir in $rpathdirs; do
16945 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16947 acl_save_libdir="$libdir"
16949 eval flag=\"$hardcode_libdir_flag_spec\"
16950 libdir="$acl_save_libdir"
16951 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16953 for found_dir in $rpathdirs; do
16954 acl_save_libdir="$libdir"
16955 libdir="$found_dir"
16956 eval flag=\"$hardcode_libdir_flag_spec\"
16957 libdir="$acl_save_libdir"
16958 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16962 if test "X$ltrpathdirs" != "X"; then
16963 for found_dir in $ltrpathdirs; do
16964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16986 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16987 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16988 $as_echo_n "(cached) " >&6
16990 gt_save_CPPFLAGS="$CPPFLAGS"
16991 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16992 gt_save_LIBS="$LIBS"
16993 LIBS="$LIBS -framework CoreFoundation"
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16996 #include <CFPreferences.h>
17000 CFPreferencesCopyAppValue(NULL, NULL)
17005 if ac_fn_c_try_link "$LINENO"; then :
17006 gt_cv_func_CFPreferencesCopyAppValue=yes
17008 gt_cv_func_CFPreferencesCopyAppValue=no
17010 rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012 CPPFLAGS="$gt_save_CPPFLAGS"
17013 LIBS="$gt_save_LIBS"
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17016 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17017 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17019 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17023 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17024 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17025 $as_echo_n "(cached) " >&6
17027 gt_save_CPPFLAGS="$CPPFLAGS"
17028 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17029 gt_save_LIBS="$LIBS"
17030 LIBS="$LIBS -framework CoreFoundation"
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033 #include <CFLocale.h>
17037 CFLocaleCopyCurrent();
17042 if ac_fn_c_try_link "$LINENO"; then :
17043 gt_cv_func_CFLocaleCopyCurrent=yes
17045 gt_cv_func_CFLocaleCopyCurrent=no
17047 rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17049 CPPFLAGS="$gt_save_CPPFLAGS"
17050 LIBS="$gt_save_LIBS"
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17053 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17054 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17056 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17060 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17061 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17068 $as_echo_n "checking whether NLS is requested... " >&6; }
17069 # Check whether --enable-nls was given.
17070 if test "${enable_nls+set}" = set; then :
17071 enableval=$enable_nls; USE_NLS=$enableval
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17077 $as_echo "$USE_NLS" >&6; }
17086 if test "$USE_NLS" = "yes"; then
17087 gt_use_preinstalled_gnugettext=no
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17095 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17096 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17097 $as_echo_n "(cached) " >&6
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 #include <libintl.h>
17102 extern int _nl_msg_cat_cntr;
17103 extern int *_nl_domain_bindings;
17107 bindtextdomain ("", "");
17108 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17113 if ac_fn_c_try_link "$LINENO"; then :
17114 gt_cv_func_gnugettext1_libc=yes
17116 gt_cv_func_gnugettext1_libc=no
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17122 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17124 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17130 am_save_CPPFLAGS="$CPPFLAGS"
17132 for element in $INCICONV; do
17134 for x in $CPPFLAGS; do
17136 acl_save_prefix="$prefix"
17137 prefix="$acl_final_prefix"
17138 acl_save_exec_prefix="$exec_prefix"
17139 exec_prefix="$acl_final_exec_prefix"
17141 exec_prefix="$acl_save_exec_prefix"
17142 prefix="$acl_save_prefix"
17144 if test "X$x" = "X$element"; then
17149 if test -z "$haveit"; then
17150 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17156 $as_echo_n "checking for iconv... " >&6; }
17157 if ${am_cv_func_iconv+:} false; then :
17158 $as_echo_n "(cached) " >&6
17161 am_cv_func_iconv="no, consider installing GNU libiconv"
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <stdlib.h>
17170 iconv_t cd = iconv_open("","");
17171 iconv(cd,NULL,NULL,NULL,NULL);
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 am_cv_func_iconv=yes
17180 rm -f core conftest.err conftest.$ac_objext \
17181 conftest$ac_exeext conftest.$ac_ext
17182 if test "$am_cv_func_iconv" != yes; then
17183 am_save_LIBS="$LIBS"
17184 LIBS="$LIBS $LIBICONV"
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17187 #include <stdlib.h>
17192 iconv_t cd = iconv_open("","");
17193 iconv(cd,NULL,NULL,NULL,NULL);
17199 if ac_fn_c_try_link "$LINENO"; then :
17200 am_cv_lib_iconv=yes
17201 am_cv_func_iconv=yes
17203 rm -f core conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17205 LIBS="$am_save_LIBS"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17210 $as_echo "$am_cv_func_iconv" >&6; }
17211 if test "$am_cv_func_iconv" = yes; then
17213 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17216 if test "$am_cv_lib_iconv" = yes; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17218 $as_echo_n "checking how to link with libiconv... " >&6; }
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17220 $as_echo "$LIBICONV" >&6; }
17222 CPPFLAGS="$am_save_CPPFLAGS"
17234 acl_save_prefix="$prefix"
17235 prefix="$acl_final_prefix"
17236 acl_save_exec_prefix="$exec_prefix"
17237 exec_prefix="$acl_final_exec_prefix"
17239 eval additional_includedir=\"$includedir\"
17240 eval additional_libdir=\"$libdir\"
17242 exec_prefix="$acl_save_exec_prefix"
17243 prefix="$acl_save_prefix"
17246 # Check whether --with-libintl-prefix was given.
17247 if test "${with_libintl_prefix+set}" = set; then :
17248 withval=$with_libintl_prefix;
17249 if test "X$withval" = "Xno"; then
17252 if test "X$withval" = "X"; then
17254 acl_save_prefix="$prefix"
17255 prefix="$acl_final_prefix"
17256 acl_save_exec_prefix="$exec_prefix"
17257 exec_prefix="$acl_final_exec_prefix"
17259 eval additional_includedir=\"$includedir\"
17260 eval additional_libdir=\"$libdir\"
17262 exec_prefix="$acl_save_exec_prefix"
17263 prefix="$acl_save_prefix"
17266 additional_includedir="$withval/include"
17267 additional_libdir="$withval/lib"
17278 names_already_handled=
17279 names_next_round='intl '
17280 while test -n "$names_next_round"; do
17281 names_this_round="$names_next_round"
17283 for name in $names_this_round; do
17285 for n in $names_already_handled; do
17286 if test "$n" = "$name"; then
17287 already_handled=yes
17291 if test -z "$already_handled"; then
17292 names_already_handled="$names_already_handled $name"
17293 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17294 eval value=\"\$HAVE_LIB$uppername\"
17295 if test -n "$value"; then
17296 if test "$value" = yes; then
17297 eval value=\"\$LIB$uppername\"
17298 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17299 eval value=\"\$LTLIB$uppername\"
17300 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17309 if test $use_additional = yes; then
17310 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17311 found_dir="$additional_libdir"
17312 found_so="$additional_libdir/lib$name.$shlibext"
17313 if test -f "$additional_libdir/lib$name.la"; then
17314 found_la="$additional_libdir/lib$name.la"
17317 if test -f "$additional_libdir/lib$name.$libext"; then
17318 found_dir="$additional_libdir"
17319 found_a="$additional_libdir/lib$name.$libext"
17320 if test -f "$additional_libdir/lib$name.la"; then
17321 found_la="$additional_libdir/lib$name.la"
17326 if test "X$found_dir" = "X"; then
17327 for x in $LDFLAGS $LTLIBINTL; do
17329 acl_save_prefix="$prefix"
17330 prefix="$acl_final_prefix"
17331 acl_save_exec_prefix="$exec_prefix"
17332 exec_prefix="$acl_final_exec_prefix"
17334 exec_prefix="$acl_save_exec_prefix"
17335 prefix="$acl_save_prefix"
17339 dir=`echo "X$x" | sed -e 's/^X-L//'`
17340 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17342 found_so="$dir/lib$name.$shlibext"
17343 if test -f "$dir/lib$name.la"; then
17344 found_la="$dir/lib$name.la"
17347 if test -f "$dir/lib$name.$libext"; then
17349 found_a="$dir/lib$name.$libext"
17350 if test -f "$dir/lib$name.la"; then
17351 found_la="$dir/lib$name.la"
17357 if test "X$found_dir" != "X"; then
17362 if test "X$found_dir" != "X"; then
17363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17364 if test "X$found_so" != "X"; then
17365 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17366 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17369 for x in $ltrpathdirs; do
17370 if test "X$x" = "X$found_dir"; then
17375 if test -z "$haveit"; then
17376 ltrpathdirs="$ltrpathdirs $found_dir"
17378 if test "$hardcode_direct" = yes; then
17379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17381 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17384 for x in $rpathdirs; do
17385 if test "X$x" = "X$found_dir"; then
17390 if test -z "$haveit"; then
17391 rpathdirs="$rpathdirs $found_dir"
17395 for x in $LDFLAGS $LIBINTL; do
17397 acl_save_prefix="$prefix"
17398 prefix="$acl_final_prefix"
17399 acl_save_exec_prefix="$exec_prefix"
17400 exec_prefix="$acl_final_exec_prefix"
17402 exec_prefix="$acl_save_exec_prefix"
17403 prefix="$acl_save_prefix"
17405 if test "X$x" = "X-L$found_dir"; then
17410 if test -z "$haveit"; then
17411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17413 if test "$hardcode_minus_L" != no; then
17414 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17416 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17422 if test "X$found_a" != "X"; then
17423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17425 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17428 additional_includedir=
17429 case "$found_dir" in
17431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17432 additional_includedir="$basedir/include"
17435 if test "X$additional_includedir" != "X"; then
17436 if test "X$additional_includedir" != "X/usr/include"; then
17438 if test "X$additional_includedir" = "X/usr/local/include"; then
17439 if test -n "$GCC"; then
17441 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17445 if test -z "$haveit"; then
17446 for x in $CPPFLAGS $INCINTL; do
17448 acl_save_prefix="$prefix"
17449 prefix="$acl_final_prefix"
17450 acl_save_exec_prefix="$exec_prefix"
17451 exec_prefix="$acl_final_exec_prefix"
17453 exec_prefix="$acl_save_exec_prefix"
17454 prefix="$acl_save_prefix"
17456 if test "X$x" = "X-I$additional_includedir"; then
17461 if test -z "$haveit"; then
17462 if test -d "$additional_includedir"; then
17463 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17469 if test -n "$found_la"; then
17470 save_libdir="$libdir"
17471 case "$found_la" in
17472 */* | *\\*) . "$found_la" ;;
17473 *) . "./$found_la" ;;
17475 libdir="$save_libdir"
17476 for dep in $dependency_libs; do
17479 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17480 if test "X$additional_libdir" != "X/usr/lib"; then
17482 if test "X$additional_libdir" = "X/usr/local/lib"; then
17483 if test -n "$GCC"; then
17485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17489 if test -z "$haveit"; then
17491 for x in $LDFLAGS $LIBINTL; do
17493 acl_save_prefix="$prefix"
17494 prefix="$acl_final_prefix"
17495 acl_save_exec_prefix="$exec_prefix"
17496 exec_prefix="$acl_final_exec_prefix"
17498 exec_prefix="$acl_save_exec_prefix"
17499 prefix="$acl_save_prefix"
17501 if test "X$x" = "X-L$additional_libdir"; then
17506 if test -z "$haveit"; then
17507 if test -d "$additional_libdir"; then
17508 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17512 for x in $LDFLAGS $LTLIBINTL; do
17514 acl_save_prefix="$prefix"
17515 prefix="$acl_final_prefix"
17516 acl_save_exec_prefix="$exec_prefix"
17517 exec_prefix="$acl_final_exec_prefix"
17519 exec_prefix="$acl_save_exec_prefix"
17520 prefix="$acl_save_prefix"
17522 if test "X$x" = "X-L$additional_libdir"; then
17527 if test -z "$haveit"; then
17528 if test -d "$additional_libdir"; then
17529 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17537 if test "$enable_rpath" != no; then
17539 for x in $rpathdirs; do
17540 if test "X$x" = "X$dir"; then
17545 if test -z "$haveit"; then
17546 rpathdirs="$rpathdirs $dir"
17549 for x in $ltrpathdirs; do
17550 if test "X$x" = "X$dir"; then
17555 if test -z "$haveit"; then
17556 ltrpathdirs="$ltrpathdirs $dir"
17561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17567 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17574 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17575 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17581 if test "X$rpathdirs" != "X"; then
17582 if test -n "$hardcode_libdir_separator"; then
17584 for found_dir in $rpathdirs; do
17585 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17587 acl_save_libdir="$libdir"
17589 eval flag=\"$hardcode_libdir_flag_spec\"
17590 libdir="$acl_save_libdir"
17591 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17593 for found_dir in $rpathdirs; do
17594 acl_save_libdir="$libdir"
17595 libdir="$found_dir"
17596 eval flag=\"$hardcode_libdir_flag_spec\"
17597 libdir="$acl_save_libdir"
17598 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17602 if test "X$ltrpathdirs" != "X"; then
17603 for found_dir in $ltrpathdirs; do
17604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17609 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17610 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 gt_save_CPPFLAGS="$CPPFLAGS"
17614 CPPFLAGS="$CPPFLAGS $INCINTL"
17615 gt_save_LIBS="$LIBS"
17616 LIBS="$LIBS $LIBINTL"
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 #include <libintl.h>
17620 extern int _nl_msg_cat_cntr;
17625 const char *_nl_expand_alias (const char *);
17629 bindtextdomain ("", "");
17630 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17635 if ac_fn_c_try_link "$LINENO"; then :
17636 gt_cv_func_gnugettext1_libintl=yes
17638 gt_cv_func_gnugettext1_libintl=no
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17642 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17643 LIBS="$LIBS $LIBICONV"
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 #include <libintl.h>
17647 extern int _nl_msg_cat_cntr;
17652 const char *_nl_expand_alias (const char *);
17656 bindtextdomain ("", "");
17657 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17662 if ac_fn_c_try_link "$LINENO"; then :
17663 LIBINTL="$LIBINTL $LIBICONV"
17664 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17665 gt_cv_func_gnugettext1_libintl=yes
17668 rm -f core conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17671 CPPFLAGS="$gt_save_CPPFLAGS"
17672 LIBS="$gt_save_LIBS"
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17675 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17678 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17679 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17680 && test "$PACKAGE" != gettext-runtime \
17681 && test "$PACKAGE" != gettext-tools; }; then
17682 gt_use_preinstalled_gnugettext=yes
17691 if test -n "$INTL_MACOSX_LIBS"; then
17692 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17693 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17694 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17695 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17699 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17700 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17702 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17710 $as_echo_n "checking whether to use NLS... " >&6; }
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17712 $as_echo "$USE_NLS" >&6; }
17713 if test "$USE_NLS" = "yes"; then
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17715 $as_echo_n "checking where the gettext function comes from... " >&6; }
17716 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17717 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17718 gt_source="external libintl"
17723 gt_source="included intl directory"
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17726 $as_echo "$gt_source" >&6; }
17729 if test "$USE_NLS" = "yes"; then
17731 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17732 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17734 $as_echo_n "checking how to link with libintl... " >&6; }
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17736 $as_echo "$LIBINTL" >&6; }
17738 for element in $INCINTL; do
17740 for x in $CPPFLAGS; do
17742 acl_save_prefix="$prefix"
17743 prefix="$acl_final_prefix"
17744 acl_save_exec_prefix="$exec_prefix"
17745 exec_prefix="$acl_final_exec_prefix"
17747 exec_prefix="$acl_save_exec_prefix"
17748 prefix="$acl_save_prefix"
17750 if test "X$x" = "X$element"; then
17755 if test -z "$haveit"; then
17756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17763 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17766 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17775 INTLLIBS="$LIBINTL"
17783 os_name=`uname -s 2>/dev/null`
17784 if test x${prefix} = xNONE ; then
17785 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17786 sysconfdir=/etc/bacula
17789 if test `eval echo ${libdir}` = NONE/lib ; then
17792 os_processor=`uname -p 2>/dev/null`
17793 case ${os_processor} in
17808 if test `eval echo ${includedir}` = NONE/include ; then
17809 includedir=/usr/include
17812 if test `eval echo ${datarootdir}` = NONE/share ; then
17813 datarootdir=/usr/share
17818 if test x${exec_prefix} = xNONE ; then
17819 exec_prefix=${prefix}
17822 sysconfdir=`eval echo ${sysconfdir}`
17823 datarootdir=`eval echo ${datarootdir}`
17824 docdir=`eval echo ${docdir}`
17825 htmldir=`eval echo ${htmldir}`
17826 libdir=`eval echo ${libdir}`
17827 includedir=`eval echo ${includedir}`
17828 localedir=`eval echo ${datarootdir}/locale`
17829 cat >>confdefs.h <<_ACEOF
17830 #define SYSCONFDIR "$sysconfdir"
17833 cat >>confdefs.h <<_ACEOF
17834 #define LOCALEDIR "$localedir"
17838 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17839 sbindir=${exec_prefix}/sbin
17841 sbindir=`eval echo ${sbindir}`
17843 if test x$mandir = x'${prefix}/man' ; then
17844 mandir=/usr/share/man
17847 if test x$htmldir = x${docdir} ; then
17848 htmldir=`eval echo ${docdir}bacula/html`
17851 if test x$docdir = x'/usr/share/doc/' ; then
17852 docdir=`eval echo ${docdir}bacula`
17856 for ac_prog in msgfmt
17858 # Extract the first word of "$ac_prog", so it can be a program name with args.
17859 set dummy $ac_prog; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if ${ac_cv_path_MSGFMT+:} false; then :
17863 $as_echo_n "(cached) " >&6
17867 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $PATH
17874 test -z "$as_dir" && as_dir=.
17875 for ac_exec_ext in '' $ac_executable_extensions; do
17876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17877 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17888 MSGFMT=$ac_cv_path_MSGFMT
17889 if test -n "$MSGFMT"; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17891 $as_echo "$MSGFMT" >&6; }
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17894 $as_echo "no" >&6; }
17898 test -n "$MSGFMT" && break
17900 test -n "$MSGFMT" || MSGFMT="no"
17902 if test "$MSGFMT" = "no"
17904 echo 'msgfmt program not found, disabling NLS !'
17906 USE_INCLUDED_LIBINTL=no
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17910 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17911 if ${ac_cv_gnu_library_2+:} false; then :
17912 $as_echo_n "(cached) " >&6
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17917 #include <features.h>
17918 #ifdef __GNU_LIBRARY__
17919 #if (__GLIBC__ >= 2)
17925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17926 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17927 ac_cv_gnu_library_2=yes
17929 ac_cv_gnu_library_2=no
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17937 $as_echo "$ac_cv_gnu_library_2" >&6; }
17939 GLIBC2="$ac_cv_gnu_library_2"
17942 if test -n "$ac_tool_prefix"; then
17943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17946 $as_echo_n "checking for $ac_word... " >&6; }
17947 if ${ac_cv_prog_RANLIB+:} false; then :
17948 $as_echo_n "(cached) " >&6
17950 if test -n "$RANLIB"; then
17951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17954 for as_dir in $PATH
17957 test -z "$as_dir" && as_dir=.
17958 for ac_exec_ext in '' $ac_executable_extensions; do
17959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17970 RANLIB=$ac_cv_prog_RANLIB
17971 if test -n "$RANLIB"; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17973 $as_echo "$RANLIB" >&6; }
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17981 if test -z "$ac_cv_prog_RANLIB"; then
17982 ac_ct_RANLIB=$RANLIB
17983 # Extract the first word of "ranlib", so it can be a program name with args.
17984 set dummy ranlib; ac_word=$2
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17986 $as_echo_n "checking for $ac_word... " >&6; }
17987 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17988 $as_echo_n "(cached) " >&6
17990 if test -n "$ac_ct_RANLIB"; then
17991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17994 for as_dir in $PATH
17997 test -z "$as_dir" && as_dir=.
17998 for ac_exec_ext in '' $ac_executable_extensions; do
17999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18000 ac_cv_prog_ac_ct_RANLIB="ranlib"
18001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18011 if test -n "$ac_ct_RANLIB"; then
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18013 $as_echo "$ac_ct_RANLIB" >&6; }
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18019 if test "x$ac_ct_RANLIB" = x; then
18022 case $cross_compiling:$ac_tool_warned in
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18026 ac_tool_warned=yes ;;
18028 RANLIB=$ac_ct_RANLIB
18031 RANLIB="$ac_cv_prog_RANLIB"
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18036 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18037 if ${ac_cv_lib_cposix_strerror+:} false; then :
18038 $as_echo_n "(cached) " >&6
18040 ac_check_lib_save_LIBS=$LIBS
18041 LIBS="-lcposix $LIBS"
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18055 return strerror ();
18060 if ac_fn_c_try_link "$LINENO"; then :
18061 ac_cv_lib_cposix_strerror=yes
18063 ac_cv_lib_cposix_strerror=no
18065 rm -f core conftest.err conftest.$ac_objext \
18066 conftest$ac_exeext conftest.$ac_ext
18067 LIBS=$ac_check_lib_save_LIBS
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18070 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18071 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18072 LIBS="$LIBS -lcposix"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18078 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18079 if ${ac_cv_c_const+:} false; then :
18080 $as_echo_n "(cached) " >&6
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18088 /* FIXME: Include the comments suggested by Paul. */
18089 #ifndef __cplusplus
18090 /* Ultrix mips cc rejects this. */
18091 typedef int charset[2];
18093 /* SunOS 4.1.1 cc rejects this. */
18094 char const *const *pcpcc;
18096 /* NEC SVR4.0.2 mips cc rejects this. */
18097 struct point {int x, y;};
18098 static struct point const zero = {0,0};
18099 /* AIX XL C 1.02.0.0 rejects this.
18100 It does not let you subtract one const X* pointer from another in
18101 an arm of an if-expression whose if-part is not a constant
18103 const char *g = "string";
18104 pcpcc = &g + (g ? g-g : 0);
18105 /* HPUX 7.0 cc rejects these. */
18107 ppc = (char**) pcpcc;
18108 pcpcc = (char const *const *) ppc;
18109 { /* SCO 3.2v4 cc rejects this. */
18111 char const *s = 0 ? (char *) 0 : (char const *) 0;
18116 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18117 int x[] = {25, 17};
18118 const int *foo = &x[0];
18121 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18122 typedef const int *iptr;
18126 { /* AIX XL C 1.02.0.0 rejects this saying
18127 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18128 struct s { int j; const int *ap[3]; };
18129 struct s *b; b->j = 5;
18131 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18132 const int foo = 10;
18133 if (!foo) return 0;
18135 return !cs[0] && !zero.x;
18142 if ac_fn_c_try_compile "$LINENO"; then :
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18150 $as_echo "$ac_cv_c_const" >&6; }
18151 if test $ac_cv_c_const = no; then
18153 $as_echo "#define const /**/" >>confdefs.h
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18159 $as_echo_n "checking for signed... " >&6; }
18160 if ${bh_cv_c_signed+:} false; then :
18161 $as_echo_n "(cached) " >&6
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18174 if ac_fn_c_try_compile "$LINENO"; then :
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18182 $as_echo "$bh_cv_c_signed" >&6; }
18183 if test $bh_cv_c_signed = no; then
18185 $as_echo "#define signed /**/" >>confdefs.h
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18190 $as_echo_n "checking for inline... " >&6; }
18191 if ${ac_cv_c_inline+:} false; then :
18192 $as_echo_n "(cached) " >&6
18195 for ac_kw in inline __inline__ __inline; do
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18198 #ifndef __cplusplus
18200 static $ac_kw foo_t static_foo () {return 0; }
18201 $ac_kw foo_t foo () {return 0; }
18205 if ac_fn_c_try_compile "$LINENO"; then :
18206 ac_cv_c_inline=$ac_kw
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 test "$ac_cv_c_inline" != no && break
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18214 $as_echo "$ac_cv_c_inline" >&6; }
18216 case $ac_cv_c_inline in
18219 case $ac_cv_c_inline in
18221 *) ac_val=$ac_cv_c_inline;;
18223 cat >>confdefs.h <<_ACEOF
18224 #ifndef __cplusplus
18225 #define inline $ac_val
18231 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18232 if test "x$ac_cv_type_off_t" = xyes; then :
18236 cat >>confdefs.h <<_ACEOF
18237 #define off_t long int
18242 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18243 if test "x$ac_cv_type_size_t" = xyes; then :
18247 cat >>confdefs.h <<_ACEOF
18248 #define size_t unsigned int
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18255 $as_echo_n "checking for long long... " >&6; }
18256 if ${ac_cv_type_long_long+:} false; then :
18257 $as_echo_n "(cached) " >&6
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 long long ll = 1LL; int i = 63;
18265 long long llmax = (long long) -1;
18266 return ll << i | ll >> i | llmax / ll | llmax % ll;
18271 if ac_fn_c_try_link "$LINENO"; then :
18272 ac_cv_type_long_long=yes
18274 ac_cv_type_long_long=no
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18280 $as_echo "$ac_cv_type_long_long" >&6; }
18281 if test $ac_cv_type_long_long = yes; then
18283 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18289 $as_echo_n "checking for long double... " >&6; }
18290 if ${gt_cv_c_long_double+:} false; then :
18291 $as_echo_n "(cached) " >&6
18293 if test "$GCC" = yes; then
18294 gt_cv_c_long_double=yes
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18299 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18300 long double foo = 0.0;
18301 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18302 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18312 if ac_fn_c_try_compile "$LINENO"; then :
18313 gt_cv_c_long_double=yes
18315 gt_cv_c_long_double=no
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18321 $as_echo "$gt_cv_c_long_double" >&6; }
18322 if test $gt_cv_c_long_double = yes; then
18324 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18330 $as_echo_n "checking for wchar_t... " >&6; }
18331 if ${gt_cv_c_wchar_t+:} false; then :
18332 $as_echo_n "(cached) " >&6
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18336 #include <stddef.h>
18337 wchar_t foo = (wchar_t)'\0';
18346 if ac_fn_c_try_compile "$LINENO"; then :
18347 gt_cv_c_wchar_t=yes
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18354 $as_echo "$gt_cv_c_wchar_t" >&6; }
18355 if test $gt_cv_c_wchar_t = yes; then
18357 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18363 $as_echo_n "checking for wint_t... " >&6; }
18364 if ${gt_cv_c_wint_t+:} false; then :
18365 $as_echo_n "(cached) " >&6
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 wint_t foo = (wchar_t)'\0';
18379 if ac_fn_c_try_compile "$LINENO"; then :
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18387 $as_echo "$gt_cv_c_wint_t" >&6; }
18388 if test $gt_cv_c_wint_t = yes; then
18390 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18396 $as_echo_n "checking for inttypes.h... " >&6; }
18397 if ${gl_cv_header_inttypes_h+:} false; then :
18398 $as_echo_n "(cached) " >&6
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402 #include <sys/types.h>
18403 #include <inttypes.h>
18407 uintmax_t i = (uintmax_t) -1;
18412 if ac_fn_c_try_compile "$LINENO"; then :
18413 gl_cv_header_inttypes_h=yes
18415 gl_cv_header_inttypes_h=no
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18420 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18421 if test $gl_cv_header_inttypes_h = yes; then
18423 cat >>confdefs.h <<_ACEOF
18424 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18431 $as_echo_n "checking for stdint.h... " >&6; }
18432 if ${gl_cv_header_stdint_h+:} false; then :
18433 $as_echo_n "(cached) " >&6
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <sys/types.h>
18438 #include <stdint.h>
18442 uintmax_t i = (uintmax_t) -1;
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448 gl_cv_header_stdint_h=yes
18450 gl_cv_header_stdint_h=no
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18455 $as_echo "$gl_cv_header_stdint_h" >&6; }
18456 if test $gl_cv_header_stdint_h = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define HAVE_STDINT_H_WITH_UINTMAX 1
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18468 $as_echo_n "checking for intmax_t... " >&6; }
18469 if ${gt_cv_c_intmax_t+:} false; then :
18470 $as_echo_n "(cached) " >&6
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18475 #include <stddef.h>
18476 #include <stdlib.h>
18477 #if HAVE_STDINT_H_WITH_UINTMAX
18478 #include <stdint.h>
18480 #if HAVE_INTTYPES_H_WITH_UINTMAX
18481 #include <inttypes.h>
18492 if ac_fn_c_try_compile "$LINENO"; then :
18493 gt_cv_c_intmax_t=yes
18495 gt_cv_c_intmax_t=no
18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18500 $as_echo "$gt_cv_c_intmax_t" >&6; }
18501 if test $gt_cv_c_intmax_t = yes; then
18503 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18510 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18511 if ${gt_cv_func_printf_posix+:} false; then :
18512 $as_echo_n "(cached) " >&6
18515 if test "$cross_compiling" = yes; then :
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18520 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18526 $EGREP "notposix" >/dev/null 2>&1; then :
18527 gt_cv_func_printf_posix="guessing no"
18529 gt_cv_func_printf_posix="guessing yes"
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18539 #include <string.h>
18540 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18541 dollar expansion (possibly an autoconf bug). */
18542 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18543 static char buf[100];
18546 sprintf (buf, format, 33, 55);
18547 return (strcmp (buf, "55 33") != 0);
18550 if ac_fn_c_try_run "$LINENO"; then :
18551 gt_cv_func_printf_posix=yes
18553 gt_cv_func_printf_posix=no
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556 conftest.$ac_objext conftest.beam conftest.$ac_ext
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18562 $as_echo "$gt_cv_func_printf_posix" >&6; }
18563 case $gt_cv_func_printf_posix in
18566 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18571 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18572 # for constant arguments. Useless!
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18574 $as_echo_n "checking for working alloca.h... " >&6; }
18575 if ${ac_cv_working_alloca_h+:} false; then :
18576 $as_echo_n "(cached) " >&6
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18580 #include <alloca.h>
18584 char *p = (char *) alloca (2 * sizeof (int));
18590 if ac_fn_c_try_link "$LINENO"; then :
18591 ac_cv_working_alloca_h=yes
18593 ac_cv_working_alloca_h=no
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18599 $as_echo "$ac_cv_working_alloca_h" >&6; }
18600 if test $ac_cv_working_alloca_h = yes; then
18602 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18607 $as_echo_n "checking for alloca... " >&6; }
18608 if ${ac_cv_func_alloca_works+:} false; then :
18609 $as_echo_n "(cached) " >&6
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18614 # define alloca __builtin_alloca
18617 # include <malloc.h>
18618 # define alloca _alloca
18620 # ifdef HAVE_ALLOCA_H
18621 # include <alloca.h>
18626 # ifndef alloca /* predefined by HP cc +Olibcalls */
18627 void *alloca (size_t);
18637 char *p = (char *) alloca (1);
18643 if ac_fn_c_try_link "$LINENO"; then :
18644 ac_cv_func_alloca_works=yes
18646 ac_cv_func_alloca_works=no
18648 rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18652 $as_echo "$ac_cv_func_alloca_works" >&6; }
18654 if test $ac_cv_func_alloca_works = yes; then
18656 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18659 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18660 # that cause trouble. Some versions do not even contain alloca or
18661 # contain a buggy version. If you still want to use their alloca,
18662 # use ar to extract alloca.o from them instead of compiling alloca.c.
18664 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18666 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18670 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18671 if ${ac_cv_os_cray+:} false; then :
18672 $as_echo_n "(cached) " >&6
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 #if defined CRAY && ! defined CRAY2
18683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18684 $EGREP "webecray" >/dev/null 2>&1; then :
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18693 $as_echo "$ac_cv_os_cray" >&6; }
18694 if test $ac_cv_os_cray = yes; then
18695 for ac_func in _getb67 GETB67 getb67; do
18696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18700 cat >>confdefs.h <<_ACEOF
18701 #define CRAY_STACKSEG_END $ac_func
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18711 $as_echo_n "checking stack direction for C alloca... " >&6; }
18712 if ${ac_cv_c_stack_direction+:} false; then :
18713 $as_echo_n "(cached) " >&6
18715 if test "$cross_compiling" = yes; then :
18716 ac_cv_c_stack_direction=0
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18720 $ac_includes_default
18722 find_stack_direction ()
18724 static char *addr = 0;
18729 return find_stack_direction ();
18732 return (&dummy > addr) ? 1 : -1;
18738 return find_stack_direction () < 0;
18741 if ac_fn_c_try_run "$LINENO"; then :
18742 ac_cv_c_stack_direction=1
18744 ac_cv_c_stack_direction=-1
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18747 conftest.$ac_objext conftest.beam conftest.$ac_ext
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18752 $as_echo "$ac_cv_c_stack_direction" >&6; }
18753 cat >>confdefs.h <<_ACEOF
18754 #define STACK_DIRECTION $ac_cv_c_stack_direction
18763 for ac_header in $ac_header_list
18765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18769 cat >>confdefs.h <<_ACEOF
18770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18784 for ac_func in getpagesize
18786 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18787 if test "x$ac_cv_func_getpagesize" = xyes; then :
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_GETPAGESIZE 1
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18796 $as_echo_n "checking for working mmap... " >&6; }
18797 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18798 $as_echo_n "(cached) " >&6
18800 if test "$cross_compiling" = yes; then :
18801 ac_cv_func_mmap_fixed_mapped=no
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 $ac_includes_default
18806 /* malloc might have been renamed as rpl_malloc. */
18809 /* Thanks to Mike Haertel and Jim Avera for this test.
18810 Here is a matrix of mmap possibilities:
18811 mmap private not fixed
18812 mmap private fixed at somewhere currently unmapped
18813 mmap private fixed at somewhere already mapped
18814 mmap shared not fixed
18815 mmap shared fixed at somewhere currently unmapped
18816 mmap shared fixed at somewhere already mapped
18817 For private mappings, we should verify that changes cannot be read()
18818 back from the file, nor mmap's back from the file at a different
18819 address. (There have been systems where private was not correctly
18820 implemented like the infamous i386 svr4.0, and systems where the
18821 VM page cache was not coherent with the file system buffer cache
18822 like early versions of FreeBSD and possibly contemporary NetBSD.)
18823 For shared mappings, we should conversely verify that changes get
18824 propagated back to all the places they're supposed to be.
18826 Grep wants private fixed already mapped.
18827 The main things grep needs to know about mmap are:
18828 * does it exist and is it safe to write into the mmap'd area
18829 * how to use it (BSD variants) */
18832 #include <sys/mman.h>
18834 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18838 /* This mess was copied from the GNU getpagesize.h. */
18839 #ifndef HAVE_GETPAGESIZE
18840 # ifdef _SC_PAGESIZE
18841 # define getpagesize() sysconf(_SC_PAGESIZE)
18842 # else /* no _SC_PAGESIZE */
18843 # ifdef HAVE_SYS_PARAM_H
18844 # include <sys/param.h>
18845 # ifdef EXEC_PAGESIZE
18846 # define getpagesize() EXEC_PAGESIZE
18847 # else /* no EXEC_PAGESIZE */
18849 # define getpagesize() NBPG * CLSIZE
18852 # endif /* no CLSIZE */
18853 # else /* no NBPG */
18855 # define getpagesize() NBPC
18856 # else /* no NBPC */
18858 # define getpagesize() PAGESIZE
18859 # endif /* PAGESIZE */
18860 # endif /* no NBPC */
18861 # endif /* no NBPG */
18862 # endif /* no EXEC_PAGESIZE */
18863 # else /* no HAVE_SYS_PARAM_H */
18864 # define getpagesize() 8192 /* punt totally */
18865 # endif /* no HAVE_SYS_PARAM_H */
18866 # endif /* no _SC_PAGESIZE */
18868 #endif /* no HAVE_GETPAGESIZE */
18873 char *data, *data2, *data3;
18874 const char *cdata2;
18878 pagesize = getpagesize ();
18880 /* First, make a file with some known garbage in it. */
18881 data = (char *) malloc (pagesize);
18884 for (i = 0; i < pagesize; ++i)
18885 *(data + i) = rand ();
18887 fd = creat ("conftest.mmap", 0600);
18890 if (write (fd, data, pagesize) != pagesize)
18894 /* Next, check that the tail of a page is zero-filled. File must have
18895 non-zero length, otherwise we risk SIGBUS for entire page. */
18896 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18900 if (write (fd2, cdata2, 1) != 1)
18902 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18903 if (data2 == MAP_FAILED)
18905 for (i = 0; i < pagesize; ++i)
18909 if (munmap (data2, pagesize))
18912 /* Next, try to mmap the file at a fixed address which already has
18913 something else allocated at it. If we can, also make sure that
18914 we see the same garbage. */
18915 fd = open ("conftest.mmap", O_RDWR);
18918 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18919 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18921 for (i = 0; i < pagesize; ++i)
18922 if (*(data + i) != *(data2 + i))
18925 /* Finally, make sure that changes to the mapped area do not
18926 percolate back to the file as seen by read(). (This is a bug on
18927 some variants of i386 svr4.0.) */
18928 for (i = 0; i < pagesize; ++i)
18929 *(data2 + i) = *(data2 + i) + 1;
18930 data3 = (char *) malloc (pagesize);
18933 if (read (fd, data3, pagesize) != pagesize)
18935 for (i = 0; i < pagesize; ++i)
18936 if (*(data + i) != *(data3 + i))
18942 if ac_fn_c_try_run "$LINENO"; then :
18943 ac_cv_func_mmap_fixed_mapped=yes
18945 ac_cv_func_mmap_fixed_mapped=no
18947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18948 conftest.$ac_objext conftest.beam conftest.$ac_ext
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18953 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18954 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18956 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18959 rm -f conftest.mmap conftest.txt
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18963 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18964 if ${ac_cv_gnu_library_2_1+:} false; then :
18965 $as_echo_n "(cached) " >&6
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18970 #include <features.h>
18971 #ifdef __GNU_LIBRARY__
18972 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18979 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18980 ac_cv_gnu_library_2_1=yes
18982 ac_cv_gnu_library_2_1=no
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18990 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18992 GLIBC21="$ac_cv_gnu_library_2_1"
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18998 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18999 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19000 $as_echo_n "(cached) " >&6
19003 if test "$cross_compiling" = yes; then :
19005 # Guess based on the CPU.
19006 case "$host_cpu" in
19007 alpha* | i3456786 | m68k | s390*)
19008 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19010 gt_cv_int_divbyzero_sigfpe="guessing no";;
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19017 #include <stdlib.h>
19018 #include <signal.h>
19022 sigfpe_handler (int sig)
19024 sigfpe_handler (sig) int sig;
19027 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19028 exit (sig != SIGFPE);
19038 signal (SIGFPE, sigfpe_handler);
19039 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19040 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19041 signal (SIGTRAP, sigfpe_handler);
19043 /* Linux/SPARC yields signal SIGILL. */
19044 #if defined (__sparc__) && defined (__linux__)
19045 signal (SIGILL, sigfpe_handler);
19054 if ac_fn_c_try_run "$LINENO"; then :
19055 gt_cv_int_divbyzero_sigfpe=yes
19057 gt_cv_int_divbyzero_sigfpe=no
19059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19060 conftest.$ac_objext conftest.beam conftest.$ac_ext
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19066 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19067 case "$gt_cv_int_divbyzero_sigfpe" in
19072 cat >>confdefs.h <<_ACEOF
19073 #define INTDIV0_RAISES_SIGFPE $value
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19079 $as_echo_n "checking for unsigned long long... " >&6; }
19080 if ${ac_cv_type_unsigned_long_long+:} false; then :
19081 $as_echo_n "(cached) " >&6
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 unsigned long long ull = 1ULL; int i = 63;
19089 unsigned long long ullmax = (unsigned long long) -1;
19090 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19095 if ac_fn_c_try_link "$LINENO"; then :
19096 ac_cv_type_unsigned_long_long=yes
19098 ac_cv_type_unsigned_long_long=no
19100 rm -f core conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19104 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19105 if test $ac_cv_type_unsigned_long_long = yes; then
19107 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19114 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19116 test $ac_cv_type_unsigned_long_long = yes \
19117 && ac_type='unsigned long long' \
19118 || ac_type='unsigned long'
19120 cat >>confdefs.h <<_ACEOF
19121 #define uintmax_t $ac_type
19126 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19132 $as_echo_n "checking for inttypes.h... " >&6; }
19133 if ${gt_cv_header_inttypes_h+:} false; then :
19134 $as_echo_n "(cached) " >&6
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 #include <sys/types.h>
19140 #include <inttypes.h>
19149 if ac_fn_c_try_compile "$LINENO"; then :
19150 gt_cv_header_inttypes_h=yes
19152 gt_cv_header_inttypes_h=no
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19158 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19159 if test $gt_cv_header_inttypes_h = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define HAVE_INTTYPES_H 1
19169 if test $gt_cv_header_inttypes_h = yes; then
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19171 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19172 if ${gt_cv_inttypes_pri_broken+:} false; then :
19173 $as_echo_n "(cached) " >&6
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19178 #include <inttypes.h>
19191 if ac_fn_c_try_compile "$LINENO"; then :
19192 gt_cv_inttypes_pri_broken=no
19194 gt_cv_inttypes_pri_broken=yes
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19200 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19202 if test "$gt_cv_inttypes_pri_broken" = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define PRI_MACROS_BROKEN 1
19211 for ac_header in stdint.h
19213 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19214 if test "x$ac_cv_header_stdint_h" = xyes; then :
19215 cat >>confdefs.h <<_ACEOF
19216 #define HAVE_STDINT_H 1
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19224 $as_echo_n "checking for SIZE_MAX... " >&6; }
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19229 #include <limits.h>
19231 #include <stdint.h>
19238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19239 $EGREP "Found it" >/dev/null 2>&1; then :
19244 if test -z "$result"; then
19245 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19252 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19259 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19266 if test "$fits_in_uint" = 1; then
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19269 #include <stddef.h>
19271 extern unsigned long foo;
19281 if ac_fn_c_try_compile "$LINENO"; then :
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 if test -z "$result"; then
19287 if test "$fits_in_uint" = 1; then
19288 result="$res_hi$res_lo"U
19290 result="$res_hi$res_lo"UL
19293 result='~(size_t)0'
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19297 $as_echo "$result" >&6; }
19298 if test "$result" != yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define SIZE_MAX $result
19309 for ac_header in stdint.h
19311 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19312 if test "x$ac_cv_header_stdint_h" = xyes; then :
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_STDINT_H 1
19328 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19329 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19333 $as_echo "#define ptrdiff_t long" >>confdefs.h
19338 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19339 stdlib.h string.h unistd.h sys/param.h
19341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19344 cat >>confdefs.h <<_ACEOF
19345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19352 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19353 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19354 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19360 cat >>confdefs.h <<_ACEOF
19361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19370 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19371 if ${ac_cv_have_decl__snprintf+:} false; then :
19372 $as_echo_n "(cached) " >&6
19374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h. */
19382 char *p = (char *) _snprintf;
19389 if ac_fn_c_try_compile "$LINENO"; then :
19390 ac_cv_have_decl__snprintf=yes
19392 ac_cv_have_decl__snprintf=no
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19397 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19398 if test $ac_cv_have_decl__snprintf = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405 #define HAVE_DECL__SNPRINTF $gt_value
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19411 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19412 if ${ac_cv_have_decl__snwprintf+:} false; then :
19413 $as_echo_n "(cached) " >&6
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19423 char *p = (char *) _snwprintf;
19430 if ac_fn_c_try_compile "$LINENO"; then :
19431 ac_cv_have_decl__snwprintf=yes
19433 ac_cv_have_decl__snwprintf=no
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19438 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19439 if test $ac_cv_have_decl__snwprintf = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define HAVE_DECL__SNWPRINTF $gt_value
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19453 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19454 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19455 $as_echo_n "(cached) " >&6
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19464 #ifndef feof_unlocked
19465 char *p = (char *) feof_unlocked;
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473 ac_cv_have_decl_feof_unlocked=yes
19475 ac_cv_have_decl_feof_unlocked=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19480 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19481 if test $ac_cv_have_decl_feof_unlocked = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19494 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19495 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19496 $as_echo_n "(cached) " >&6
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19505 #ifndef fgets_unlocked
19506 char *p = (char *) fgets_unlocked;
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514 ac_cv_have_decl_fgets_unlocked=yes
19516 ac_cv_have_decl_fgets_unlocked=no
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19521 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19522 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19535 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19536 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19537 $as_echo_n "(cached) " >&6
19539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540 /* end confdefs.h. */
19546 #ifndef getc_unlocked
19547 char *p = (char *) getc_unlocked;
19554 if ac_fn_c_try_compile "$LINENO"; then :
19555 ac_cv_have_decl_getc_unlocked=yes
19557 ac_cv_have_decl_getc_unlocked=no
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19562 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19563 if test $ac_cv_have_decl_getc_unlocked = yes; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19575 case $gt_cv_func_printf_posix in
19576 *yes) HAVE_POSIX_PRINTF=1 ;;
19577 *) HAVE_POSIX_PRINTF=0 ;;
19580 if test "$ac_cv_func_asprintf" = yes; then
19586 if test "$ac_cv_func_snprintf" = yes; then
19592 if test "$ac_cv_func_wprintf" = yes; then
19604 am_save_CPPFLAGS="$CPPFLAGS"
19606 for element in $INCICONV; do
19608 for x in $CPPFLAGS; do
19610 acl_save_prefix="$prefix"
19611 prefix="$acl_final_prefix"
19612 acl_save_exec_prefix="$exec_prefix"
19613 exec_prefix="$acl_final_exec_prefix"
19615 exec_prefix="$acl_save_exec_prefix"
19616 prefix="$acl_save_prefix"
19618 if test "X$x" = "X$element"; then
19623 if test -z "$haveit"; then
19624 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19630 $as_echo_n "checking for iconv... " >&6; }
19631 if ${am_cv_func_iconv+:} false; then :
19632 $as_echo_n "(cached) " >&6
19635 am_cv_func_iconv="no, consider installing GNU libiconv"
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639 #include <stdlib.h>
19644 iconv_t cd = iconv_open("","");
19645 iconv(cd,NULL,NULL,NULL,NULL);
19651 if ac_fn_c_try_link "$LINENO"; then :
19652 am_cv_func_iconv=yes
19654 rm -f core conftest.err conftest.$ac_objext \
19655 conftest$ac_exeext conftest.$ac_ext
19656 if test "$am_cv_func_iconv" != yes; then
19657 am_save_LIBS="$LIBS"
19658 LIBS="$LIBS $LIBICONV"
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <stdlib.h>
19666 iconv_t cd = iconv_open("","");
19667 iconv(cd,NULL,NULL,NULL,NULL);
19673 if ac_fn_c_try_link "$LINENO"; then :
19674 am_cv_lib_iconv=yes
19675 am_cv_func_iconv=yes
19677 rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
19679 LIBS="$am_save_LIBS"
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19684 $as_echo "$am_cv_func_iconv" >&6; }
19685 if test "$am_cv_func_iconv" = yes; then
19687 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19690 if test "$am_cv_lib_iconv" = yes; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19692 $as_echo_n "checking how to link with libiconv... " >&6; }
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19694 $as_echo "$LIBICONV" >&6; }
19696 CPPFLAGS="$am_save_CPPFLAGS"
19703 if test "$am_cv_func_iconv" = yes; then
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19705 $as_echo_n "checking for iconv declaration... " >&6; }
19706 if ${am_cv_proto_iconv+:} false; then :
19707 $as_echo_n "(cached) " >&6
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 #include <stdlib.h>
19719 #if defined(__STDC__) || defined(__cplusplus)
19720 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19733 if ac_fn_c_try_compile "$LINENO"; then :
19734 am_cv_proto_iconv_arg1=""
19736 am_cv_proto_iconv_arg1="const"
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 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);"
19742 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19744 }$am_cv_proto_iconv" >&5
19746 }$am_cv_proto_iconv" >&6; }
19748 cat >>confdefs.h <<_ACEOF
19749 #define ICONV_CONST $am_cv_proto_iconv_arg1
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19756 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19757 if ${am_cv_langinfo_codeset+:} false; then :
19758 $as_echo_n "(cached) " >&6
19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h. */
19762 #include <langinfo.h>
19766 char* cs = nl_langinfo(CODESET);
19771 if ac_fn_c_try_link "$LINENO"; then :
19772 am_cv_langinfo_codeset=yes
19774 am_cv_langinfo_codeset=no
19776 rm -f core conftest.err conftest.$ac_objext \
19777 conftest$ac_exeext conftest.$ac_ext
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19781 $as_echo "$am_cv_langinfo_codeset" >&6; }
19782 if test $am_cv_langinfo_codeset = yes; then
19784 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19788 if test $ac_cv_header_locale_h = yes; then
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19791 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19792 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19793 $as_echo_n "(cached) " >&6
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19797 #include <locale.h>
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 gt_cv_val_LC_MESSAGES=yes
19809 gt_cv_val_LC_MESSAGES=no
19811 rm -f core conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19815 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19816 if test $gt_cv_val_LC_MESSAGES = yes; then
19818 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19824 if test -n "$INTL_MACOSX_LIBS"; then
19825 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19828 for ac_prog in bison
19830 # Extract the first word of "$ac_prog", so it can be a program name with args.
19831 set dummy $ac_prog; ac_word=$2
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19833 $as_echo_n "checking for $ac_word... " >&6; }
19834 if ${ac_cv_prog_INTLBISON+:} false; then :
19835 $as_echo_n "(cached) " >&6
19837 if test -n "$INTLBISON"; then
19838 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19841 for as_dir in $PATH
19844 test -z "$as_dir" && as_dir=.
19845 for ac_exec_ext in '' $ac_executable_extensions; do
19846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19847 ac_cv_prog_INTLBISON="$ac_prog"
19848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19857 INTLBISON=$ac_cv_prog_INTLBISON
19858 if test -n "$INTLBISON"; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19860 $as_echo "$INTLBISON" >&6; }
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19867 test -n "$INTLBISON" && break
19870 if test -z "$INTLBISON"; then
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19874 $as_echo_n "checking version of bison... " >&6; }
19875 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19876 case $ac_prog_version in
19877 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19878 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19879 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19880 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19883 $as_echo "$ac_prog_version" >&6; }
19885 if test $ac_verc_fail = yes; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19905 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19906 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19907 $as_echo_n "(cached) " >&6
19909 gt_save_CPPFLAGS="$CPPFLAGS"
19910 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19911 gt_save_LIBS="$LIBS"
19912 LIBS="$LIBS -framework CoreFoundation"
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915 #include <CFPreferences.h>
19919 CFPreferencesCopyAppValue(NULL, NULL)
19924 if ac_fn_c_try_link "$LINENO"; then :
19925 gt_cv_func_CFPreferencesCopyAppValue=yes
19927 gt_cv_func_CFPreferencesCopyAppValue=no
19929 rm -f core conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19931 CPPFLAGS="$gt_save_CPPFLAGS"
19932 LIBS="$gt_save_LIBS"
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19935 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19936 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19938 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19942 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19943 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19944 $as_echo_n "(cached) " >&6
19946 gt_save_CPPFLAGS="$CPPFLAGS"
19947 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19948 gt_save_LIBS="$LIBS"
19949 LIBS="$LIBS -framework CoreFoundation"
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19952 #include <CFLocale.h>
19956 CFLocaleCopyCurrent();
19961 if ac_fn_c_try_link "$LINENO"; then :
19962 gt_cv_func_CFLocaleCopyCurrent=yes
19964 gt_cv_func_CFLocaleCopyCurrent=no
19966 rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 CPPFLAGS="$gt_save_CPPFLAGS"
19969 LIBS="$gt_save_LIBS"
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19972 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19973 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19975 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19979 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19980 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19987 $as_echo_n "checking whether NLS is requested... " >&6; }
19988 # Check whether --enable-nls was given.
19989 if test "${enable_nls+set}" = set; then :
19990 enableval=$enable_nls; USE_NLS=$enableval
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19996 $as_echo "$USE_NLS" >&6; }
20001 BUILD_INCLUDED_LIBINTL=no
20002 USE_INCLUDED_LIBINTL=no
20008 if test "$USE_NLS" = "yes"; then
20009 gt_use_preinstalled_gnugettext=no
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20012 $as_echo_n "checking whether included gettext is requested... " >&6; }
20014 # Check whether --with-included-gettext was given.
20015 if test "${with_included_gettext+set}" = set; then :
20016 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20018 nls_cv_force_use_gnu_gettext=no
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20022 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20024 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20025 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20033 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20034 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20035 $as_echo_n "(cached) " >&6
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h. */
20039 #include <libintl.h>
20040 extern int _nl_msg_cat_cntr;
20041 extern int *_nl_domain_bindings;
20045 bindtextdomain ("", "");
20046 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20051 if ac_fn_c_try_link "$LINENO"; then :
20052 gt_cv_func_gnugettext1_libc=yes
20054 gt_cv_func_gnugettext1_libc=no
20056 rm -f core conftest.err conftest.$ac_objext \
20057 conftest$ac_exeext conftest.$ac_ext
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20060 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20062 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20068 acl_save_prefix="$prefix"
20069 prefix="$acl_final_prefix"
20070 acl_save_exec_prefix="$exec_prefix"
20071 exec_prefix="$acl_final_exec_prefix"
20073 eval additional_includedir=\"$includedir\"
20074 eval additional_libdir=\"$libdir\"
20076 exec_prefix="$acl_save_exec_prefix"
20077 prefix="$acl_save_prefix"
20080 # Check whether --with-libintl-prefix was given.
20081 if test "${with_libintl_prefix+set}" = set; then :
20082 withval=$with_libintl_prefix;
20083 if test "X$withval" = "Xno"; then
20086 if test "X$withval" = "X"; then
20088 acl_save_prefix="$prefix"
20089 prefix="$acl_final_prefix"
20090 acl_save_exec_prefix="$exec_prefix"
20091 exec_prefix="$acl_final_exec_prefix"
20093 eval additional_includedir=\"$includedir\"
20094 eval additional_libdir=\"$libdir\"
20096 exec_prefix="$acl_save_exec_prefix"
20097 prefix="$acl_save_prefix"
20100 additional_includedir="$withval/include"
20101 additional_libdir="$withval/lib"
20112 names_already_handled=
20113 names_next_round='intl '
20114 while test -n "$names_next_round"; do
20115 names_this_round="$names_next_round"
20117 for name in $names_this_round; do
20119 for n in $names_already_handled; do
20120 if test "$n" = "$name"; then
20121 already_handled=yes
20125 if test -z "$already_handled"; then
20126 names_already_handled="$names_already_handled $name"
20127 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20128 eval value=\"\$HAVE_LIB$uppername\"
20129 if test -n "$value"; then
20130 if test "$value" = yes; then
20131 eval value=\"\$LIB$uppername\"
20132 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20133 eval value=\"\$LTLIB$uppername\"
20134 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20143 if test $use_additional = yes; then
20144 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20145 found_dir="$additional_libdir"
20146 found_so="$additional_libdir/lib$name.$shlibext"
20147 if test -f "$additional_libdir/lib$name.la"; then
20148 found_la="$additional_libdir/lib$name.la"
20151 if test -f "$additional_libdir/lib$name.$libext"; then
20152 found_dir="$additional_libdir"
20153 found_a="$additional_libdir/lib$name.$libext"
20154 if test -f "$additional_libdir/lib$name.la"; then
20155 found_la="$additional_libdir/lib$name.la"
20160 if test "X$found_dir" = "X"; then
20161 for x in $LDFLAGS $LTLIBINTL; do
20163 acl_save_prefix="$prefix"
20164 prefix="$acl_final_prefix"
20165 acl_save_exec_prefix="$exec_prefix"
20166 exec_prefix="$acl_final_exec_prefix"
20168 exec_prefix="$acl_save_exec_prefix"
20169 prefix="$acl_save_prefix"
20173 dir=`echo "X$x" | sed -e 's/^X-L//'`
20174 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20176 found_so="$dir/lib$name.$shlibext"
20177 if test -f "$dir/lib$name.la"; then
20178 found_la="$dir/lib$name.la"
20181 if test -f "$dir/lib$name.$libext"; then
20183 found_a="$dir/lib$name.$libext"
20184 if test -f "$dir/lib$name.la"; then
20185 found_la="$dir/lib$name.la"
20191 if test "X$found_dir" != "X"; then
20196 if test "X$found_dir" != "X"; then
20197 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20198 if test "X$found_so" != "X"; then
20199 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20203 for x in $ltrpathdirs; do
20204 if test "X$x" = "X$found_dir"; then
20209 if test -z "$haveit"; then
20210 ltrpathdirs="$ltrpathdirs $found_dir"
20212 if test "$hardcode_direct" = yes; then
20213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20215 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20216 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20218 for x in $rpathdirs; do
20219 if test "X$x" = "X$found_dir"; then
20224 if test -z "$haveit"; then
20225 rpathdirs="$rpathdirs $found_dir"
20229 for x in $LDFLAGS $LIBINTL; do
20231 acl_save_prefix="$prefix"
20232 prefix="$acl_final_prefix"
20233 acl_save_exec_prefix="$exec_prefix"
20234 exec_prefix="$acl_final_exec_prefix"
20236 exec_prefix="$acl_save_exec_prefix"
20237 prefix="$acl_save_prefix"
20239 if test "X$x" = "X-L$found_dir"; then
20244 if test -z "$haveit"; then
20245 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20247 if test "$hardcode_minus_L" != no; then
20248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20250 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20256 if test "X$found_a" != "X"; then
20257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20259 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20262 additional_includedir=
20263 case "$found_dir" in
20265 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20266 additional_includedir="$basedir/include"
20269 if test "X$additional_includedir" != "X"; then
20270 if test "X$additional_includedir" != "X/usr/include"; then
20272 if test "X$additional_includedir" = "X/usr/local/include"; then
20273 if test -n "$GCC"; then
20275 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20279 if test -z "$haveit"; then
20280 for x in $CPPFLAGS $INCINTL; do
20282 acl_save_prefix="$prefix"
20283 prefix="$acl_final_prefix"
20284 acl_save_exec_prefix="$exec_prefix"
20285 exec_prefix="$acl_final_exec_prefix"
20287 exec_prefix="$acl_save_exec_prefix"
20288 prefix="$acl_save_prefix"
20290 if test "X$x" = "X-I$additional_includedir"; then
20295 if test -z "$haveit"; then
20296 if test -d "$additional_includedir"; then
20297 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20303 if test -n "$found_la"; then
20304 save_libdir="$libdir"
20305 case "$found_la" in
20306 */* | *\\*) . "$found_la" ;;
20307 *) . "./$found_la" ;;
20309 libdir="$save_libdir"
20310 for dep in $dependency_libs; do
20313 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20314 if test "X$additional_libdir" != "X/usr/lib"; then
20316 if test "X$additional_libdir" = "X/usr/local/lib"; then
20317 if test -n "$GCC"; then
20319 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20323 if test -z "$haveit"; then
20325 for x in $LDFLAGS $LIBINTL; do
20327 acl_save_prefix="$prefix"
20328 prefix="$acl_final_prefix"
20329 acl_save_exec_prefix="$exec_prefix"
20330 exec_prefix="$acl_final_exec_prefix"
20332 exec_prefix="$acl_save_exec_prefix"
20333 prefix="$acl_save_prefix"
20335 if test "X$x" = "X-L$additional_libdir"; then
20340 if test -z "$haveit"; then
20341 if test -d "$additional_libdir"; then
20342 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20346 for x in $LDFLAGS $LTLIBINTL; do
20348 acl_save_prefix="$prefix"
20349 prefix="$acl_final_prefix"
20350 acl_save_exec_prefix="$exec_prefix"
20351 exec_prefix="$acl_final_exec_prefix"
20353 exec_prefix="$acl_save_exec_prefix"
20354 prefix="$acl_save_prefix"
20356 if test "X$x" = "X-L$additional_libdir"; then
20361 if test -z "$haveit"; then
20362 if test -d "$additional_libdir"; then
20363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20370 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20371 if test "$enable_rpath" != no; then
20373 for x in $rpathdirs; do
20374 if test "X$x" = "X$dir"; then
20379 if test -z "$haveit"; then
20380 rpathdirs="$rpathdirs $dir"
20383 for x in $ltrpathdirs; do
20384 if test "X$x" = "X$dir"; then
20389 if test -z "$haveit"; then
20390 ltrpathdirs="$ltrpathdirs $dir"
20395 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20398 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20401 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20408 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20415 if test "X$rpathdirs" != "X"; then
20416 if test -n "$hardcode_libdir_separator"; then
20418 for found_dir in $rpathdirs; do
20419 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20421 acl_save_libdir="$libdir"
20423 eval flag=\"$hardcode_libdir_flag_spec\"
20424 libdir="$acl_save_libdir"
20425 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20427 for found_dir in $rpathdirs; do
20428 acl_save_libdir="$libdir"
20429 libdir="$found_dir"
20430 eval flag=\"$hardcode_libdir_flag_spec\"
20431 libdir="$acl_save_libdir"
20432 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20436 if test "X$ltrpathdirs" != "X"; then
20437 for found_dir in $ltrpathdirs; do
20438 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20443 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20444 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20445 $as_echo_n "(cached) " >&6
20447 gt_save_CPPFLAGS="$CPPFLAGS"
20448 CPPFLAGS="$CPPFLAGS $INCINTL"
20449 gt_save_LIBS="$LIBS"
20450 LIBS="$LIBS $LIBINTL"
20451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h. */
20453 #include <libintl.h>
20454 extern int _nl_msg_cat_cntr;
20459 const char *_nl_expand_alias (const char *);
20463 bindtextdomain ("", "");
20464 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20469 if ac_fn_c_try_link "$LINENO"; then :
20470 gt_cv_func_gnugettext1_libintl=yes
20472 gt_cv_func_gnugettext1_libintl=no
20474 rm -f core conftest.err conftest.$ac_objext \
20475 conftest$ac_exeext conftest.$ac_ext
20476 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20477 LIBS="$LIBS $LIBICONV"
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480 #include <libintl.h>
20481 extern int _nl_msg_cat_cntr;
20486 const char *_nl_expand_alias (const char *);
20490 bindtextdomain ("", "");
20491 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20496 if ac_fn_c_try_link "$LINENO"; then :
20497 LIBINTL="$LIBINTL $LIBICONV"
20498 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20499 gt_cv_func_gnugettext1_libintl=yes
20502 rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20505 CPPFLAGS="$gt_save_CPPFLAGS"
20506 LIBS="$gt_save_LIBS"
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20509 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20512 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20513 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20514 && test "$PACKAGE" != gettext-runtime \
20515 && test "$PACKAGE" != gettext-tools; }; then
20516 gt_use_preinstalled_gnugettext=yes
20524 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20525 nls_cv_use_gnu_gettext=yes
20529 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20530 BUILD_INCLUDED_LIBINTL=yes
20531 USE_INCLUDED_LIBINTL=yes
20532 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20533 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20534 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20538 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20539 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20544 if test -n "$INTL_MACOSX_LIBS"; then
20545 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20546 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20547 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20548 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20552 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20553 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20555 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20563 $as_echo_n "checking whether to use NLS... " >&6; }
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20565 $as_echo "$USE_NLS" >&6; }
20566 if test "$USE_NLS" = "yes"; then
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20568 $as_echo_n "checking where the gettext function comes from... " >&6; }
20569 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20570 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20571 gt_source="external libintl"
20576 gt_source="included intl directory"
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20579 $as_echo "$gt_source" >&6; }
20582 if test "$USE_NLS" = "yes"; then
20584 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20585 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20587 $as_echo_n "checking how to link with libintl... " >&6; }
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20589 $as_echo "$LIBINTL" >&6; }
20591 for element in $INCINTL; do
20593 for x in $CPPFLAGS; do
20595 acl_save_prefix="$prefix"
20596 prefix="$acl_final_prefix"
20597 acl_save_exec_prefix="$exec_prefix"
20598 exec_prefix="$acl_final_exec_prefix"
20600 exec_prefix="$acl_save_exec_prefix"
20601 prefix="$acl_save_prefix"
20603 if test "X$x" = "X$element"; then
20608 if test -z "$haveit"; then
20609 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20616 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20619 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20627 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20628 BUILD_INCLUDED_LIBINTL=yes
20635 nls_cv_header_intl=
20636 nls_cv_header_libgt=
20648 if test "$USE_INCLUDED_LIBINTL" = yes; then
20649 INTLOBJS="\$(GETTOBJS)"
20653 INTL_LIBTOOL_SUFFIX_PREFIX=
20657 INTLLIBS="$LIBINTL"
20666 support_smartalloc=yes
20667 support_readline=yes
20671 support_wx_console=no
20672 support_tray_monitor=no
20677 support_static_tools=no
20678 support_static_fd=no
20679 support_static_sd=no
20680 support_static_dir=no
20681 support_static_cons=no
20683 build_client_only=no
20690 # Check whether --enable-gnome was given.
20691 if test "${enable_gnome+set}" = set; then :
20692 enableval=$enable_gnome;
20693 if test x$enableval = xyes; then
20702 if test x$support_gnome = xyes; then
20703 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20704 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20706 # AC_SUBST(GNOME_DIR)
20708 # Check whether --enable-bat was given.
20709 if test "${enable_bat+set}" = set; then :
20710 enableval=$enable_bat;
20711 if test x$enableval = xyes; then
20713 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20723 if test x$support_bat = xyes; then
20724 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20726 if test $pkg = 0; then
20727 BAT_DIR=src/qt-console
20729 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20747 # Check whether --enable-bwx-console was given.
20748 if test "${enable_bwx_console+set}" = set; then :
20749 enableval=$enable_bwx_console;
20750 if test x$enableval = xyes; then
20751 support_wx_console=yes
20759 if test x$support_wx_console = xyes; then
20760 abc=`$WXCONFIG $WXFLAGS --cppflags`
20762 if test $pkg = 0; then
20763 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20764 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20765 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20769 WX_DIR="src/wx-console"
20772 echo "wx-config program not found. bwx-console disabled."
20774 support_wx_console=no
20779 # Check whether --enable-tray-monitor was given.
20780 if test "${enable_tray_monitor+set}" = set; then :
20781 enableval=$enable_tray_monitor;
20782 if test x$enableval = xyes; then
20783 support_tray_monitor=yes
20791 if test x$support_tray_monitor = xyes; then
20792 abc=`$PKGCONFIG --exists gtk+-2.0`
20794 if test $pkg = 0; then
20795 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20796 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20799 TRAY_MONITOR_DIR=src/tray-monitor
20800 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20802 if test $pkg = 0; then
20804 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20811 # Check whether --enable-smartalloc was given.
20812 if test "${enable_smartalloc+set}" = set; then :
20813 enableval=$enable_smartalloc;
20814 if test x$enableval = xno; then
20815 support_smartalloc=no
20822 if test x$support_smartalloc = xyes; then
20824 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20828 # Check whether --enable-lockmgr was given.
20829 if test "${enable_lockmgr+set}" = set; then :
20830 enableval=$enable_lockmgr;
20831 if test x$enableval = xyes; then
20832 support_lockmgr=yes
20839 if test x$support_lockmgr = xyes; then
20841 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20846 # Check whether --enable-static-tools was given.
20847 if test "${enable_static_tools+set}" = set; then :
20848 enableval=$enable_static_tools;
20849 if test x$enableval = xyes; then
20850 if test x$use_libtool = xyes; then
20851 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20852 please rerun configure with --disable-libtool" "$LINENO" 5
20854 support_static_tools=yes
20862 if test x$support_static_tools = xyes; then
20863 TTOOL_LDFLAGS="-static"
20867 # Check whether --enable-static-fd was given.
20868 if test "${enable_static_fd+set}" = set; then :
20869 enableval=$enable_static_fd;
20870 if test x$enableval = xyes; then
20871 if test x$use_libtool = xyes; then
20872 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20873 please rerun configure with --disable-libtool" "$LINENO" 5
20875 support_static_fd=yes
20883 if test x$support_static_fd = xyes; then
20884 STATIC_FD="static-bacula-fd"
20888 # Check whether --enable-static-sd was given.
20889 if test "${enable_static_sd+set}" = set; then :
20890 enableval=$enable_static_sd;
20891 if test x$enableval = xyes; then
20892 if test x$use_libtool = xyes; then
20893 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20894 please rerun configure with --disable-libtool" "$LINENO" 5
20896 support_static_sd=yes
20904 if test x$support_static_sd = xyes; then
20905 STATIC_SD="static-bacula-sd"
20909 # Check whether --enable-static-dir was given.
20910 if test "${enable_static_dir+set}" = set; then :
20911 enableval=$enable_static_dir;
20912 if test x$enableval = xyes; then
20913 if test x$use_libtool = xyes; then
20914 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20915 please rerun configure with --disable-libtool" "$LINENO" 5
20917 support_static_dir=yes
20925 if test x$support_static_dir = xyes; then
20926 STATIC_DIR="static-bacula-dir"
20930 # Check whether --enable-static-cons was given.
20931 if test "${enable_static_cons+set}" = set; then :
20932 enableval=$enable_static_cons;
20933 if test x$enableval = xyes; then
20934 if test x$use_libtool = xyes; then
20935 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20936 please rerun configure with --disable-libtool" "$LINENO" 5
20938 support_static_cons=yes
20948 if test x$support_static_cons = xyes; then
20949 STATIC_CONS="static-bconsole"
20950 STATIC_GNOME_CONS="static-bgnome-console"
20951 STATIC_WX_CONS="static-bwx-console"
20957 # Check whether --enable-client-only was given.
20958 if test "${enable_client_only+set}" = set; then :
20959 enableval=$enable_client_only;
20960 if test x$enableval = xyes; then
20961 build_client_only=yes
20969 if test x$build_client_only = xno; then
20976 # Check whether --enable-build-dird was given.
20977 if test "${enable_build_dird+set}" = set; then :
20978 enableval=$enable_build_dird;
20979 if test x$enableval = xno; then
20986 if test x$build_dird = xyes; then
20987 DIRD_DIR="src/dird"
20988 DIR_TOOLS="DIRTOOLS"
20991 DIR_TOOLS="NODIRTOOLS"
20996 # Check whether --enable-build-stored was given.
20997 if test "${enable_build_stored+set}" = set; then :
20998 enableval=$enable_build_stored;
20999 if test x$enableval = xno; then
21006 if test x$build_stored = xyes; then
21007 STORED_DIR="src/stored"
21013 # Check whether --enable-conio was given.
21014 if test "${enable_conio+set}" = set; then :
21015 enableval=$enable_conio;
21016 if test x$enableval = xno; then
21026 # Check whether --enable-ipv6 was given.
21027 if test "${enable_ipv6+set}" = set; then :
21028 enableval=$enable_ipv6;
21029 if test x$enableval = xno; then
21037 if test x$support_ipv6 = xyes; then
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040 #include <sys/types.h>
21041 #include <sys/socket.h>
21042 #include <netinet/in.h>
21046 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21051 if ac_fn_c_try_link "$LINENO"; then :
21056 rm -f core conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21060 if test x$support_ipv6 = xyes; then
21062 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21067 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21068 if test "x$ac_cv_header_curses_h" = xyes; then :
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21071 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21072 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21073 $as_echo_n "(cached) " >&6
21075 ac_check_lib_save_LIBS=$LIBS
21076 LIBS="-ltinfo $LIBS"
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21080 /* Override any GCC internal prototype to avoid an error.
21081 Use char because int might match the return type of a GCC
21082 builtin and then its argument prototype would still apply. */
21095 if ac_fn_c_try_link "$LINENO"; then :
21096 ac_cv_lib_tinfo_tgetent=yes
21098 ac_cv_lib_tinfo_tgetent=no
21100 rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
21102 LIBS=$ac_check_lib_save_LIBS
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21105 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21106 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21111 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21112 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21113 $as_echo_n "(cached) " >&6
21115 ac_check_lib_save_LIBS=$LIBS
21116 LIBS="-lncurses $LIBS"
21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h. */
21120 /* Override any GCC internal prototype to avoid an error.
21121 Use char because int might match the return type of a GCC
21122 builtin and then its argument prototype would still apply. */
21135 if ac_fn_c_try_link "$LINENO"; then :
21136 ac_cv_lib_ncurses_tgetent=yes
21138 ac_cv_lib_ncurses_tgetent=no
21140 rm -f core conftest.err conftest.$ac_objext \
21141 conftest$ac_exeext conftest.$ac_ext
21142 LIBS=$ac_check_lib_save_LIBS
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21145 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21146 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21147 TERM_LIB="-lncurses"
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21151 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21152 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21153 $as_echo_n "(cached) " >&6
21155 ac_check_lib_save_LIBS=$LIBS
21156 LIBS="-ltermcap $LIBS"
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21160 /* Override any GCC internal prototype to avoid an error.
21161 Use char because int might match the return type of a GCC
21162 builtin and then its argument prototype would still apply. */
21175 if ac_fn_c_try_link "$LINENO"; then :
21176 ac_cv_lib_termcap_tgetent=yes
21178 ac_cv_lib_termcap_tgetent=no
21180 rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
21182 LIBS=$ac_check_lib_save_LIBS
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21185 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21186 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21187 TERM_LIB="-ltermcap"
21198 for ac_header in curses.h
21200 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21201 if test "x$ac_cv_header_curses_h" = xyes; then :
21202 cat >>confdefs.h <<_ACEOF
21203 #define HAVE_CURSES_H 1
21210 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21211 if test "x$ac_cv_header_term_h" = xyes; then :
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21213 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21214 if ${ac_cv_lib_curses_tgetent+:} false; then :
21215 $as_echo_n "(cached) " >&6
21217 ac_check_lib_save_LIBS=$LIBS
21218 LIBS="-lcurses $LIBS"
21219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220 /* end confdefs.h. */
21222 /* Override any GCC internal prototype to avoid an error.
21223 Use char because int might match the return type of a GCC
21224 builtin and then its argument prototype would still apply. */
21237 if ac_fn_c_try_link "$LINENO"; then :
21238 ac_cv_lib_curses_tgetent=yes
21240 ac_cv_lib_curses_tgetent=no
21242 rm -f core conftest.err conftest.$ac_objext \
21243 conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21247 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21248 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21249 TERM_LIB="-lcurses"
21263 if test x$support_conio = xyes; then
21264 if test x$TERM_LIB != x; then
21265 CONS_LIBS=$TERM_LIB
21269 support_readline=no
21271 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21274 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21279 # Check whether --enable-readline was given.
21280 if test "${enable_readline+set}" = set; then :
21281 enableval=$enable_readline;
21282 if test x$enableval = xno; then
21283 support_readline=no
21289 if test x$TERM_LIB = x ; then
21290 support_readline=no
21295 if test x$support_readline = xyes; then
21297 # Check whether --with-readline was given.
21298 if test "${with_readline+set}" = set; then :
21299 withval=$with_readline;
21300 case "$with_readline" in
21305 if test -f ${with_readline}/readline.h; then
21306 CONS_INC="-I${with_readline}"
21307 CONS_LDFLAGS="-L$with_readline"
21308 elif test -f ${with_readline}/include/readline/readline.h; then
21309 CONS_INC="-I${with_readline}/include/readline"
21310 CONS_LDFLAGS="-L${with_readline}/lib"
21311 with_readline="${with_readline}/include/readline"
21313 with_readline="/usr/include/readline"
21316 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21317 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21321 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21323 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21329 echo "readline.h not found. readline turned off ..."
21341 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21342 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21345 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21348 CONS_INC="-I/usr/include/readline"
21349 CONS_LIBS="-lreadline $TERM_LIB"
21353 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21354 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21358 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21361 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21362 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21363 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21364 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21369 echo "readline.h not found. readline turned off ..."
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21397 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21398 if ${ac_cv_header_stat_broken+:} false; then :
21399 $as_echo_n "(cached) " >&6
21401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h. */
21403 #include <sys/types.h>
21404 #include <sys/stat.h>
21406 #if defined S_ISBLK && defined S_IFDIR
21407 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21410 #if defined S_ISBLK && defined S_IFCHR
21411 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21414 #if defined S_ISLNK && defined S_IFREG
21415 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21418 #if defined S_ISSOCK && defined S_IFREG
21419 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21423 if ac_fn_c_try_compile "$LINENO"; then :
21424 ac_cv_header_stat_broken=no
21426 ac_cv_header_stat_broken=yes
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21431 $as_echo "$ac_cv_header_stat_broken" >&6; }
21432 if test $ac_cv_header_stat_broken = yes; then
21434 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21438 ac_header_dirent=no
21439 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21440 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21442 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21443 if eval \${$as_ac_Header+:} false; then :
21444 $as_echo_n "(cached) " >&6
21446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21448 #include <sys/types.h>
21460 if ac_fn_c_try_compile "$LINENO"; then :
21461 eval "$as_ac_Header=yes"
21463 eval "$as_ac_Header=no"
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 eval ac_res=\$$as_ac_Header
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21469 $as_echo "$ac_res" >&6; }
21470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21471 cat >>confdefs.h <<_ACEOF
21472 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21475 ac_header_dirent=$ac_hdr; break
21479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21480 if test $ac_header_dirent = dirent.h; then
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21482 $as_echo_n "checking for library containing opendir... " >&6; }
21483 if ${ac_cv_search_opendir+:} false; then :
21484 $as_echo_n "(cached) " >&6
21486 ac_func_search_save_LIBS=$LIBS
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21490 /* Override any GCC internal prototype to avoid an error.
21491 Use char because int might match the return type of a GCC
21492 builtin and then its argument prototype would still apply. */
21505 for ac_lib in '' dir; do
21506 if test -z "$ac_lib"; then
21507 ac_res="none required"
21510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21512 if ac_fn_c_try_link "$LINENO"; then :
21513 ac_cv_search_opendir=$ac_res
21515 rm -f core conftest.err conftest.$ac_objext \
21517 if ${ac_cv_search_opendir+:} false; then :
21521 if ${ac_cv_search_opendir+:} false; then :
21524 ac_cv_search_opendir=no
21526 rm conftest.$ac_ext
21527 LIBS=$ac_func_search_save_LIBS
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21530 $as_echo "$ac_cv_search_opendir" >&6; }
21531 ac_res=$ac_cv_search_opendir
21532 if test "$ac_res" != no; then :
21533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21539 $as_echo_n "checking for library containing opendir... " >&6; }
21540 if ${ac_cv_search_opendir+:} false; then :
21541 $as_echo_n "(cached) " >&6
21543 ac_func_search_save_LIBS=$LIBS
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21547 /* Override any GCC internal prototype to avoid an error.
21548 Use char because int might match the return type of a GCC
21549 builtin and then its argument prototype would still apply. */
21562 for ac_lib in '' x; do
21563 if test -z "$ac_lib"; then
21564 ac_res="none required"
21567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21569 if ac_fn_c_try_link "$LINENO"; then :
21570 ac_cv_search_opendir=$ac_res
21572 rm -f core conftest.err conftest.$ac_objext \
21574 if ${ac_cv_search_opendir+:} false; then :
21578 if ${ac_cv_search_opendir+:} false; then :
21581 ac_cv_search_opendir=no
21583 rm conftest.$ac_ext
21584 LIBS=$ac_func_search_save_LIBS
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21587 $as_echo "$ac_cv_search_opendir" >&6; }
21588 ac_res=$ac_cv_search_opendir
21589 if test "$ac_res" != no; then :
21590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21596 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21601 cat >>confdefs.h <<_ACEOF
21602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21608 for ac_func in nanosleep nl_langinfo
21610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21613 cat >>confdefs.h <<_ACEOF
21614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21620 for ac_header in varargs.h
21622 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21623 if test "x$ac_cv_header_varargs_h" = xyes; then :
21624 cat >>confdefs.h <<_ACEOF
21625 #define HAVE_VARARGS_H 1
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21635 $as_echo_n "checking for Python support... " >&6; }
21637 # Check whether --with-python was given.
21638 if test "${with_python+set}" = set; then :
21639 withval=$with_python;
21642 if test "$withval" != "no"; then
21643 if test "$withval" = "yes"; then
21644 if test -e /usr/bin/python-config ; then
21645 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21646 PYTHON_LIBS=`/usr/bin/python-config --libs`
21648 for python_root in /usr /usr/local /usr/sfw; do
21649 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21650 if test -f $python_root/include/${ver}/Python.h; then
21651 PYTHON_INCDIR=-I$python_root/include/${ver}
21652 if test -d $python_root/lib64/${ver}/config; then
21653 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21655 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21662 if test x$PYTHON_INCDIR = x; then
21663 if test -f $prefix/include/Python.h; then
21664 PYTHON_INCDIR=-I$prefix/include
21665 if test -d $prefix/lib64/config; then
21666 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21668 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21672 $as_echo "no" >&6; }
21673 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21678 if test -e $withval/bin/python-config ; then
21679 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21680 PYTHON_LIBS=`$withval/bin/python-config --libs`
21681 elif test -f $withval/Python.h; then
21682 PYTHON_INCDIR=-I$withval
21683 PYTHON_LIBS="-L$withval/config -lpython"
21684 elif test -f $withval/include/Python.h; then
21685 PYTHON_INCDIR=-I$withval/include
21686 if test -d $withval/lib64/config; then
21687 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21689 PYTHON_LIBS="-L$withval/lib/config -lpython"
21691 elif test -f $withval/include/python/Python.h; then
21692 PYTHON_INCDIR=-I$withval/include/python
21693 if test -d $withval/lib64/python/config; then
21694 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21696 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700 $as_echo "no" >&6; }
21701 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21705 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21708 $as_echo "yes" >&6; }
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21711 $as_echo "$as_me: checking for more Python libs" >&6;}
21712 saved_LIBS="$LIBS"; LIBS=
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21714 $as_echo_n "checking for library containing shm_open... " >&6; }
21715 if ${ac_cv_search_shm_open+:} false; then :
21716 $as_echo_n "(cached) " >&6
21718 ac_func_search_save_LIBS=$LIBS
21719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720 /* end confdefs.h. */
21722 /* Override any GCC internal prototype to avoid an error.
21723 Use char because int might match the return type of a GCC
21724 builtin and then its argument prototype would still apply. */
21732 return shm_open ();
21737 for ac_lib in '' rt; do
21738 if test -z "$ac_lib"; then
21739 ac_res="none required"
21742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21744 if ac_fn_c_try_link "$LINENO"; then :
21745 ac_cv_search_shm_open=$ac_res
21747 rm -f core conftest.err conftest.$ac_objext \
21749 if ${ac_cv_search_shm_open+:} false; then :
21753 if ${ac_cv_search_shm_open+:} false; then :
21756 ac_cv_search_shm_open=no
21758 rm conftest.$ac_ext
21759 LIBS=$ac_func_search_save_LIBS
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21762 $as_echo "$ac_cv_search_shm_open" >&6; }
21763 ac_res=$ac_cv_search_shm_open
21764 if test "$ac_res" != no; then :
21765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21770 $as_echo_n "checking for openpty in -lutil... " >&6; }
21771 if ${ac_cv_lib_util_openpty+:} false; then :
21772 $as_echo_n "(cached) " >&6
21774 ac_check_lib_save_LIBS=$LIBS
21775 LIBS="-lutil $LIBS"
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21779 /* Override any GCC internal prototype to avoid an error.
21780 Use char because int might match the return type of a GCC
21781 builtin and then its argument prototype would still apply. */
21794 if ac_fn_c_try_link "$LINENO"; then :
21795 ac_cv_lib_util_openpty=yes
21797 ac_cv_lib_util_openpty=no
21799 rm -f core conftest.err conftest.$ac_objext \
21800 conftest$ac_exeext conftest.$ac_ext
21801 LIBS=$ac_check_lib_save_LIBS
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21804 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21805 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21806 cat >>confdefs.h <<_ACEOF
21807 #define HAVE_LIBUTIL 1
21810 LIBS="-lutil $LIBS"
21814 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818 $as_echo "no" >&6; }
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 $as_echo "no" >&6; }
21832 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21833 if test "x$ac_cv_func_socket" = xyes; then :
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21835 $as_echo "using libc's socket" >&6; }
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21838 $as_echo_n "checking for socket in -lxnet... " >&6; }
21839 if ${ac_cv_lib_xnet_socket+:} false; then :
21840 $as_echo_n "(cached) " >&6
21842 ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-lxnet $LIBS"
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21847 /* Override any GCC internal prototype to avoid an error.
21848 Use char because int might match the return type of a GCC
21849 builtin and then its argument prototype would still apply. */
21862 if ac_fn_c_try_link "$LINENO"; then :
21863 ac_cv_lib_xnet_socket=yes
21865 ac_cv_lib_xnet_socket=no
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21872 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21873 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBXNET 1
21878 LIBS="-lxnet $LIBS"
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21883 $as_echo_n "checking for socket in -lsocket... " >&6; }
21884 if ${ac_cv_lib_socket_socket+:} false; then :
21885 $as_echo_n "(cached) " >&6
21887 ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lsocket $LIBS"
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21892 /* Override any GCC internal prototype to avoid an error.
21893 Use char because int might match the return type of a GCC
21894 builtin and then its argument prototype would still apply. */
21907 if ac_fn_c_try_link "$LINENO"; then :
21908 ac_cv_lib_socket_socket=yes
21910 ac_cv_lib_socket_socket=no
21912 rm -f core conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
21914 LIBS=$ac_check_lib_save_LIBS
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21917 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21918 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_LIBSOCKET 1
21923 LIBS="-lsocket $LIBS"
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21928 $as_echo_n "checking for socket in -linet... " >&6; }
21929 if ${ac_cv_lib_inet_socket+:} false; then :
21930 $as_echo_n "(cached) " >&6
21932 ac_check_lib_save_LIBS=$LIBS
21933 LIBS="-linet $LIBS"
21934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935 /* end confdefs.h. */
21937 /* Override any GCC internal prototype to avoid an error.
21938 Use char because int might match the return type of a GCC
21939 builtin and then its argument prototype would still apply. */
21952 if ac_fn_c_try_link "$LINENO"; then :
21953 ac_cv_lib_inet_socket=yes
21955 ac_cv_lib_inet_socket=no
21957 rm -f core conftest.err conftest.$ac_objext \
21958 conftest$ac_exeext conftest.$ac_ext
21959 LIBS=$ac_check_lib_save_LIBS
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21962 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21963 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21964 cat >>confdefs.h <<_ACEOF
21965 #define HAVE_LIBINET 1
21968 LIBS="-linet $LIBS"
21978 # Check whether --with-tcp-wrappers was given.
21979 if test "${with_tcp_wrappers+set}" = set; then :
21980 withval=$with_tcp_wrappers;
21981 if test "x$withval" != "xno" ; then
21983 LIBS="$saved_LIBS -lwrap"
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21985 $as_echo_n "checking for library containing nanosleep... " >&6; }
21986 if ${ac_cv_search_nanosleep+:} false; then :
21987 $as_echo_n "(cached) " >&6
21989 ac_func_search_save_LIBS=$LIBS
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h. */
21993 /* Override any GCC internal prototype to avoid an error.
21994 Use char because int might match the return type of a GCC
21995 builtin and then its argument prototype would still apply. */
22003 return nanosleep ();
22008 for ac_lib in '' rt; do
22009 if test -z "$ac_lib"; then
22010 ac_res="none required"
22013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22015 if ac_fn_c_try_link "$LINENO"; then :
22016 ac_cv_search_nanosleep=$ac_res
22018 rm -f core conftest.err conftest.$ac_objext \
22020 if ${ac_cv_search_nanosleep+:} false; then :
22024 if ${ac_cv_search_nanosleep+:} false; then :
22027 ac_cv_search_nanosleep=no
22029 rm conftest.$ac_ext
22030 LIBS=$ac_func_search_save_LIBS
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22033 $as_echo "$ac_cv_search_nanosleep" >&6; }
22034 ac_res=$ac_cv_search_nanosleep
22035 if test "$ac_res" != no; then :
22036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22041 $as_echo_n "checking for libwrap... " >&6; }
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22045 #include <sys/types.h>
22047 int deny_severity = 0;
22048 int allow_severity = 0;
22049 struct request_info *req;
22061 if ac_fn_c_try_link "$LINENO"; then :
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22064 $as_echo "yes" >&6; }
22066 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22074 LIBS="$saved_LIBS -lwrap -lnsl"
22075 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22079 #include <sys/types.h>
22081 int deny_severity = 0;
22082 int allow_severity = 0;
22083 struct request_info *req;
22095 if ac_fn_c_try_link "$LINENO"; then :
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22098 $as_echo "yes" >&6; }
22100 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22108 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22112 rm -f core conftest.err conftest.$ac_objext \
22113 conftest$ac_exeext conftest.$ac_ext
22117 rm -f core conftest.err conftest.$ac_objext \
22118 conftest$ac_exeext conftest.$ac_ext
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22126 $as_echo_n "checking for OpenSSL... " >&6; }
22128 # Check whether --with-openssl was given.
22129 if test "${with_openssl+set}" = set; then :
22130 withval=$with_openssl;
22131 with_openssl_directory=${withval}
22137 if test "x$with_openssl_directory" != "xno"; then
22138 OPENSSL_LIBS="-lssl -lcrypto"
22141 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22143 # Make sure the $with_openssl_directory also makes sense
22145 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22146 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22147 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22151 saved_LIBS="${LIBS}"
22152 saved_CFLAGS="${CFLAGS}"
22153 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22154 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22159 #include <openssl/ssl.h>
22165 CRYPTO_set_id_callback(NULL);
22171 if ac_fn_c_try_link "$LINENO"; then :
22174 support_crypto="yes"
22179 support_crypto="no"
22183 rm -f core conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h. */
22189 #include <openssl/evp.h>
22201 if ac_fn_c_try_link "$LINENO"; then :
22203 ac_cv_openssl_sha2="yes"
22207 ac_cv_openssl_sha2="no"
22211 rm -f core conftest.err conftest.$ac_objext \
22212 conftest$ac_exeext conftest.$ac_ext
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 #include <openssl/evp.h>
22229 if ac_fn_c_try_link "$LINENO"; then :
22231 ac_cv_openssl_export="no"
22235 ac_cv_openssl_export="yes"
22239 rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
22242 if test "$support_tls" = "yes"; then
22244 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22247 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22250 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22254 if test "$ac_cv_openssl_sha2" = "yes"; then
22256 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22260 if test "$ac_cv_openssl_export" = "yes"; then
22262 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22266 if test "$support_crypto" = "yes"; then
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22268 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22269 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22270 $as_echo_n "(cached) " >&6
22272 ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-lcrypto $LIBS"
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22283 char EVP_PKEY_encrypt_old ();
22287 return EVP_PKEY_encrypt_old ();
22292 if ac_fn_c_try_link "$LINENO"; then :
22293 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22295 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22297 rm -f core conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22299 LIBS=$ac_check_lib_save_LIBS
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22302 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22303 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22305 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22311 LIBS="${saved_LIBS}"
22312 CFLAGS="${saved_CFLAGS}"
22315 support_crypto="no"
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22320 $as_echo "$support_tls" >&6; }
22322 if test "$support_tls" = "no"; then
22326 if test "$support_crypto" = "no"; then
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22335 $as_echo_n "checking for library containing dlopen... " >&6; }
22336 if ${ac_cv_search_dlopen+:} false; then :
22337 $as_echo_n "(cached) " >&6
22339 ac_func_search_save_LIBS=$LIBS
22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341 /* end confdefs.h. */
22343 /* Override any GCC internal prototype to avoid an error.
22344 Use char because int might match the return type of a GCC
22345 builtin and then its argument prototype would still apply. */
22358 for ac_lib in '' dl; do
22359 if test -z "$ac_lib"; then
22360 ac_res="none required"
22363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22365 if ac_fn_c_try_link "$LINENO"; then :
22366 ac_cv_search_dlopen=$ac_res
22368 rm -f core conftest.err conftest.$ac_objext \
22370 if ${ac_cv_search_dlopen+:} false; then :
22374 if ${ac_cv_search_dlopen+:} false; then :
22377 ac_cv_search_dlopen=no
22379 rm conftest.$ac_ext
22380 LIBS=$ac_func_search_save_LIBS
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22383 $as_echo "$ac_cv_search_dlopen" >&6; }
22384 ac_res=$ac_cv_search_dlopen
22385 if test "$ac_res" != no; then :
22386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22391 working_dir=`eval echo ${prefix}/var/bacula/working`
22393 # Check whether --with-working-dir was given.
22394 if test "${with_working_dir+set}" = set; then :
22395 withval=$with_working_dir;
22396 if test "x$withval" != "xno" ; then
22397 working_dir=$withval
22408 # Check whether --with-archivedir was given.
22409 if test "${with_archivedir+set}" = set; then :
22410 withval=$with_archivedir;
22411 if test "x$withval" != "xno" ; then
22412 archivedir=$withval
22421 basename=`hostname`
22423 # Check whether --with-basename was given.
22424 if test "${with_basename+set}" = set; then :
22425 withval=$with_basename;
22426 if test "x$withval" != "xno" ; then
22436 hostname=`uname -n | cut -d '.' -f 1`
22437 if test x${hostname} = x ; then
22438 hostname="localhost"
22441 # Check whether --with-hostname was given.
22442 if test "${with_hostname+set}" = set; then :
22443 withval=$with_hostname;
22444 if test "x$withval" != "xno" ; then
22455 scriptdir=`eval echo ${sysconfdir}`
22457 # Check whether --with-scriptdir was given.
22458 if test "${with_scriptdir+set}" = set; then :
22459 withval=$with_scriptdir;
22460 if test "x$withval" != "xno" ; then
22473 # Check whether --with-bsrdir was given.
22474 if test "${with_bsrdir+set}" = set; then :
22475 withval=$with_bsrdir;
22476 if test "x$withval" != "xno" ; then
22488 # Check whether --with-logdir was given.
22489 if test "${with_logdir+set}" = set; then :
22490 withval=$with_logdir;
22491 if test "x$withval" != "xno" ; then
22502 # ------------------------------------------
22503 # Where to place plugindir (plugin files)
22504 # ------------------------------------------
22505 plugindir=`eval echo ${libdir}`
22507 # Check whether --with-plugindir was given.
22508 if test "${with_plugindir+set}" = set; then :
22509 withval=$with_plugindir;
22510 if test "x$withval" != "xno" ; then
22520 dump_email=root@localhost
22522 # Check whether --with-dump-email was given.
22523 if test "${with_dump_email+set}" = set; then :
22524 withval=$with_dump_email;
22525 if test "x$withval" != "xno" ; then
22526 dump_email=$withval
22535 job_email=root@localhost
22537 # Check whether --with-job-email was given.
22538 if test "${with_job_email+set}" = set; then :
22539 withval=$with_job_email;
22540 if test "x$withval" != "xno" ; then
22550 smtp_host=localhost
22552 # Check whether --with-smtp_host was given.
22553 if test "${with_smtp_host+set}" = set; then :
22554 withval=$with_smtp_host;
22555 if test "x$withval" != "xno" ; then
22567 # Check whether --with-pid-dir was given.
22568 if test "${with_pid_dir+set}" = set; then :
22569 withval=$with_pid_dir;
22570 if test "x$withval" != "xno" ; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define _PATH_BACULA_PIDDIR "$piddir"
22584 subsysdir=/var/run/subsys
22585 if test -d /var/run/subsys; then
22586 subsysdir=/var/run/subsys
22587 elif test -d /var/lock/subsys; then
22588 subsysdir=/var/lock/subsys
22590 subsysdir=/var/run/subsys
22593 # Check whether --with-subsys-dir was given.
22594 if test "${with_subsys_dir+set}" = set; then :
22595 withval=$with_subsys_dir;
22596 if test "x$withval" != "xno" ; then
22608 # Check whether --with-baseport was given.
22609 if test "${with_baseport+set}" = set; then :
22610 withval=$with_baseport;
22611 if test "x$withval" != "xno" ; then
22620 dir_port=`expr $baseport`
22621 fd_port=`expr $baseport + 1`
22622 sd_port=`expr $fd_port + 1`
22630 # Check whether --with-dir-password was given.
22631 if test "${with_dir_password+set}" = set; then :
22632 withval=$with_dir_password;
22633 if test "x$withval" != "xno" ; then
22634 dir_password=$withval
22641 if test "x$dir_password" = "x" ; then
22642 if test "x$OPENSSL" = "xnone" ; then
22643 key=`autoconf/randpass 33`
22645 key=`openssl rand -base64 33`
22652 # Check whether --with-fd-password was given.
22653 if test "${with_fd_password+set}" = set; then :
22654 withval=$with_fd_password;
22655 if test "x$withval" != "xno" ; then
22656 fd_password=$withval
22663 if test "x$fd_password" = "x" ; then
22664 if test "x$OPENSSL" = "xnone" ; then
22665 key=`autoconf/randpass 37`
22667 key=`openssl rand -base64 33`
22674 # Check whether --with-sd-password was given.
22675 if test "${with_sd_password+set}" = set; then :
22676 withval=$with_sd_password;
22677 if test "x$withval" != "xno" ; then
22678 sd_password=$withval
22685 if test "x$sd_password" = "x" ; then
22686 if test "x$OPENSSL" = "xnone" ; then
22687 key=`autoconf/randpass 41`
22689 key=`openssl rand -base64 33`
22696 # Check whether --with-mon-dir-password was given.
22697 if test "${with_mon_dir_password+set}" = set; then :
22698 withval=$with_mon_dir_password;
22699 if test "x$withval" != "xno" ; then
22700 mon_dir_password=$withval
22707 if test "x$mon_dir_password" = "x" ; then
22708 if test "x$OPENSSL" = "xnone" ; then
22709 key=`autoconf/randpass 33`
22711 key=`openssl rand -base64 33`
22713 mon_dir_password=$key
22718 # Check whether --with-mon-fd-password was given.
22719 if test "${with_mon_fd_password+set}" = set; then :
22720 withval=$with_mon_fd_password;
22721 if test "x$withval" != "xno" ; then
22722 mon_fd_password=$withval
22729 if test "x$mon_fd_password" = "x" ; then
22730 if test "x$OPENSSL" = "xnone" ; then
22731 key=`autoconf/randpass 37`
22733 key=`openssl rand -base64 33`
22735 mon_fd_password=$key
22740 # Check whether --with-mon-sd-password was given.
22741 if test "${with_mon_sd_password+set}" = set; then :
22742 withval=$with_mon_sd_password;
22743 if test "x$withval" != "xno" ; then
22744 mon_sd_password=$withval
22751 if test "x$mon_sd_password" = "x" ; then
22752 if test "x$OPENSSL" = "xnone" ; then
22753 key=`autoconf/randpass 41`
22755 key=`openssl rand -base64 33`
22757 mon_sd_password=$key
22769 # Check whether --with-db_name was given.
22770 if test "${with_db_name+set}" = set; then :
22771 withval=$with_db_name;
22772 if test "x$withval" != "x" ; then
22783 # Check whether --with-db_user was given.
22784 if test "${with_db_user+set}" = set; then :
22785 withval=$with_db_user;
22786 if test "x$withval" != "x" ; then
22797 # Check whether --with-db_password was given.
22798 if test "${with_db_password+set}" = set; then :
22799 withval=$with_db_password;
22800 if test "x$withval" != "x" ; then
22801 db_password=$withval
22811 # Check whether --with-db_port was given.
22812 if test "${with_db_port+set}" = set; then :
22813 withval=$with_db_port;
22814 if test "x$withval" != "x" ; then
22824 # Handle users and groups for each daemon
22828 # Check whether --with-dir_user was given.
22829 if test "${with_dir_user+set}" = set; then :
22830 withval=$with_dir_user;
22831 if test "x$withval" != "x" ; then
22841 # Check whether --with-dir_group was given.
22842 if test "${with_dir_group+set}" = set; then :
22843 withval=$with_dir_group;
22844 if test "x$withval" != "x" ; then
22854 # Check whether --with-sd_user was given.
22855 if test "${with_sd_user+set}" = set; then :
22856 withval=$with_sd_user;
22857 if test "x$withval" != "x" ; then
22867 # Check whether --with-sd_group was given.
22868 if test "${with_sd_group+set}" = set; then :
22869 withval=$with_sd_group;
22870 if test "x$withval" != "x" ; then
22880 # Check whether --with-fd_user was given.
22881 if test "${with_fd_user+set}" = set; then :
22882 withval=$with_fd_user;
22883 if test "x$withval" != "x" ; then
22893 # Check whether --with-fd_group was given.
22894 if test "${with_fd_group+set}" = set; then :
22895 withval=$with_fd_group;
22896 if test "x$withval" != "x" ; then
22913 # Check whether --with-sbin-perm was given.
22914 if test "${with_sbin_perm+set}" = set; then :
22915 withval=$with_sbin_perm;
22916 if test "x$withval" != "x" ; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22928 $as_echo_n "checking for PostgreSQL support... " >&6; }
22930 # Check whether --with-postgresql was given.
22931 if test "${with_postgresql+set}" = set; then :
22932 withval=$with_postgresql;
22933 if test "$withval" != "no"; then
22934 if test "$withval" = "yes"; then
22935 PG_CONFIG=`which pg_config`
22936 if test -n "$PG_CONFIG"; then
22937 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22938 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22939 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22940 elif test -f /usr/local/include/libpq-fe.h; then
22941 POSTGRESQL_INCDIR=/usr/local/include
22942 if test -d /usr/local/lib64; then
22943 POSTGRESQL_LIBDIR=/usr/local/lib64
22945 POSTGRESQL_LIBDIR=/usr/local/lib
22947 POSTGRESQL_BINDIR=/usr/local/bin
22948 elif test -f /usr/include/libpq-fe.h; then
22949 POSTGRESQL_INCDIR=/usr/include
22950 if test -d /usr/lib64; then
22951 POSTGRESQL_LIBDIR=/usr/lib64
22953 POSTGRESQL_LIBDIR=/usr/lib
22955 POSTGRESQL_BINDIR=/usr/bin
22956 elif test -f /usr/include/pgsql/libpq-fe.h; then
22957 POSTGRESQL_INCDIR=/usr/include/pgsql
22958 if test -d /usr/lib64/pgsql; then
22959 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22961 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22963 POSTGRESQL_BINDIR=/usr/bin
22964 elif test -f /usr/include/postgresql/libpq-fe.h; then
22965 POSTGRESQL_INCDIR=/usr/include/postgresql
22966 if test -d /usr/lib64/postgresql; then
22967 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22969 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22971 POSTGRESQL_BINDIR=/usr/bin
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22974 $as_echo "no" >&6; }
22975 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22977 elif test -f $withval/include/libpq-fe.h; then
22978 POSTGRESQL_INCDIR=$withval/include
22979 POSTGRESQL_LIBDIR=$withval/lib
22980 POSTGRESQL_BINDIR=$withval/bin
22981 elif test -f $withval/include/postgresql/libpq-fe.h; then
22982 POSTGRESQL_INCDIR=$withval/include/postgresql
22983 if test -d $withval/lib64; then
22984 POSTGRESQL_LIBDIR=$withval/lib64
22986 POSTGRESQL_LIBDIR=$withval/lib
22988 POSTGRESQL_BINDIR=$withval/bin
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991 $as_echo "no" >&6; }
22992 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22995 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22998 $as_echo "yes" >&6; }
23000 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23001 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23002 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23003 if test "x$ac_cv_func_crypt" = xyes; then :
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23007 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23008 if ${ac_cv_lib_crypt_crypt+:} false; then :
23009 $as_echo_n "(cached) " >&6
23011 ac_check_lib_save_LIBS=$LIBS
23012 LIBS="-lcrypt $LIBS"
23013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23014 /* end confdefs.h. */
23016 /* Override any GCC internal prototype to avoid an error.
23017 Use char because int might match the return type of a GCC
23018 builtin and then its argument prototype would still apply. */
23031 if ac_fn_c_try_link "$LINENO"; then :
23032 ac_cv_lib_crypt_crypt=yes
23034 ac_cv_lib_crypt_crypt=no
23036 rm -f core conftest.err conftest.$ac_objext \
23037 conftest$ac_exeext conftest.$ac_ext
23038 LIBS=$ac_check_lib_save_LIBS
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23041 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23042 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23043 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23048 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23049 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23051 if test -z "${db_backends}"; then
23052 db_backends="PostgreSQL"
23054 db_backends="${db_backends} PostgreSQL"
23056 if test -z "${DB_BACKENDS}"; then
23057 DB_BACKENDS="postgresql"
23059 DB_BACKENDS="${DB_BACKENDS} postgresql"
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23063 $as_echo "no" >&6; }
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23069 $as_echo "no" >&6; }
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23081 $as_echo_n "checking for MySQL support... " >&6; }
23083 # Check whether --with-mysql was given.
23084 if test "${with_mysql+set}" = set; then :
23085 withval=$with_mysql;
23086 if test "$withval" != "no"; then
23087 if test "$withval" = "yes"; then
23088 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23089 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23090 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23091 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23092 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23094 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23096 MYSQL_BINDIR=/usr/local/mysql/bin
23097 elif test -f /usr/include/mysql/mysql.h; then
23098 MYSQL_INCDIR=/usr/include/mysql
23099 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23100 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23101 MYSQL_LIBDIR=/usr/lib64/mysql
23102 elif test -f /usr/lib64/libmysqlclient_r.a \
23103 -o -f /usr/lib64/libmysqlclient_r.so; then
23104 MYSQL_LIBDIR=/usr/lib64
23105 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23106 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23107 MYSQL_LIBDIR=/usr/lib/mysql
23109 MYSQL_LIBDIR=/usr/lib
23111 MYSQL_BINDIR=/usr/bin
23112 elif test -f /usr/include/mysql.h; then
23113 MYSQL_INCDIR=/usr/include
23114 if test -f /usr/lib64/libmysqlclient_r.a \
23115 -o -f /usr/lib64/libmysqlclient_r.so; then
23116 MYSQL_LIBDIR=/usr/lib64
23118 MYSQL_LIBDIR=/usr/lib
23120 MYSQL_BINDIR=/usr/bin
23121 elif test -f /usr/local/include/mysql/mysql.h; then
23122 MYSQL_INCDIR=/usr/local/include/mysql
23123 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23124 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23125 MYSQL_LIBDIR=/usr/local/lib64/mysql
23127 MYSQL_LIBDIR=/usr/local/lib/mysql
23129 MYSQL_BINDIR=/usr/local/bin
23130 elif test -f /usr/local/include/mysql.h; then
23131 MYSQL_INCDIR=/usr/local/include
23132 if test -f /usr/local/lib64/libmysqlclient_r.a \
23133 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23134 MYSQL_LIBDIR=/usr/local/lib64
23136 MYSQL_LIBDIR=/usr/local/lib
23138 MYSQL_BINDIR=/usr/local/bin
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 $as_echo "no" >&6; }
23142 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23145 if test -f $withval/include/mysql/mysql.h; then
23146 MYSQL_INCDIR=$withval/include/mysql
23147 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23148 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23149 MYSQL_LIBDIR=$withval/lib64/mysql
23150 elif test -f $withval/lib64/libmysqlclient_r.a \
23151 -o -f $withval/lib64/libmysqlclient_r.so; then
23152 MYSQL_LIBDIR=$withval/lib64
23153 elif test -f $withval/lib/libmysqlclient_r.a \
23154 -o -f $withval/lib/libmysqlclient_r.so; then
23155 MYSQL_LIBDIR=$withval/lib
23157 MYSQL_LIBDIR=$withval/lib/mysql
23159 MYSQL_BINDIR=$withval/bin
23160 elif test -f $withval/include/mysql.h; then
23161 MYSQL_INCDIR=$withval/include
23162 if test -f $withval/lib64/libmysqlclient_r.a \
23163 -o -f $withval/lib64/libmysqlclient_r.so; then
23164 MYSQL_LIBDIR=$withval/lib64
23166 MYSQL_LIBDIR=$withval/lib
23168 MYSQL_BINDIR=$withval/bin
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23171 $as_echo "no" >&6; }
23172 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23175 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23176 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23177 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23178 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23180 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23182 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23184 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23187 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23190 $as_echo "yes" >&6; }
23192 if test -z "${db_backends}" ; then
23193 db_backends="MySQL"
23195 db_backends="${db_backends} MySQL"
23197 if test -z "${DB_BACKENDS}" ; then
23198 DB_BACKENDS="mysql"
23200 DB_BACKENDS="${DB_BACKENDS} mysql"
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23212 # Check whether --with-embedded-mysql was given.
23213 if test "${with_embedded_mysql+set}" = set; then :
23214 withval=$with_embedded_mysql;
23215 if test "$withval" != "no"; then
23216 if test "$withval" = "yes"; then
23217 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23218 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23219 if test -d /usr/local/mysql/lib64/mysql; then
23220 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23222 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23224 MYSQL_BINDIR=/usr/local/mysql/bin
23225 elif test -f /usr/include/mysql/mysql.h; then
23226 MYSQL_INCDIR=/usr/include/mysql
23227 if test -d /usr/lib64/mysql; then
23228 MYSQL_LIBDIR=/usr/lib64/mysql
23230 MYSQL_LIBDIR=/usr/lib/mysql
23232 MYSQL_BINDIR=/usr/bin
23233 elif test -f /usr/include/mysql.h; then
23234 MYSQL_INCDIR=/usr/include
23235 if test -d /usr/lib64; then
23236 MYSQL_LIBDIR=/usr/lib64
23238 MYSQL_LIBDIR=/usr/lib
23240 MYSQL_BINDIR=/usr/bin
23241 elif test -f /usr/local/include/mysql/mysql.h; then
23242 MYSQL_INCDIR=/usr/local/include/mysql
23243 if test -d /usr/local/lib64/mysql; then
23244 MYSQL_LIBDIR=/usr/local/lib64/mysql
23246 MYSQL_LIBDIR=/usr/local/lib/mysql
23248 MYSQL_BINDIR=/usr/local/bin
23249 elif test -f /usr/local/include/mysql.h; then
23250 MYSQL_INCDIR=/usr/local/include
23251 if test -d /usr/local/lib64; then
23252 MYSQL_LIBDIR=/usr/local/lib64
23254 MYSQL_LIBDIR=/usr/local/lib
23256 MYSQL_BINDIR=/usr/local/bin
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23259 $as_echo "no" >&6; }
23260 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23263 if test -f $withval/include/mysql/mysql.h; then
23264 MYSQL_INCDIR=$withval/include/mysql
23265 if test -d $withval/lib64/mysql; then
23266 MYSQL_LIBDIR=$withval/lib64/mysql
23268 MYSQL_LIBDIR=$withval/lib/mysql
23270 MYSQL_BINDIR=$withval/bin
23271 elif test -f $withval/include/mysql.h; then
23272 MYSQL_INCDIR=$withval/include
23273 if test -d $withval/lib64; then
23274 MYSQL_LIBDIR=$withval/lib64
23276 MYSQL_LIBDIR=$withval/lib
23278 MYSQL_BINDIR=$withval/bin
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23281 $as_echo "no" >&6; }
23282 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23285 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23286 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23287 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23288 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23291 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23294 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23297 $as_echo "yes" >&6; }
23299 if test -z "${db_backends}"; then
23300 db_backends="MySQL"
23302 db_backends="${db_backends} MySQL"
23304 if test -z "${DB_BACKENDS}"; then
23305 DB_BACKENDS="mysql"
23307 DB_BACKENDS="${DB_BACKENDS} mysql"
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23326 $as_echo_n "checking for SQLite3 support... " >&6; }
23328 # Check whether --with-sqlite3 was given.
23329 if test "${with_sqlite3+set}" = set; then :
23330 withval=$with_sqlite3;
23331 if test "$withval" != "no"; then
23332 if test "$withval" = "yes"; then
23333 if test -f /usr/local/include/sqlite3.h; then
23334 SQLITE_INCDIR=/usr/local/include
23335 if test -d /usr/local/lib64; then
23336 SQLITE_LIBDIR=/usr/local/lib64
23338 SQLITE_LIBDIR=/usr/local/lib
23340 SQLITE_BINDIR=/usr/local/bin
23341 elif test -f /usr/include/sqlite3.h; then
23342 SQLITE_INCDIR=/usr/include
23343 if test -d /usr/lib64; then
23344 SQLITE_LIBDIR=/usr/lib64
23346 SQLITE_LIBDIR=/usr/lib
23348 SQLITE_BINDIR=/usr/bin
23349 elif test -f $prefix/include/sqlite3.h; then
23350 SQLITE_INCDIR=$prefix/include
23351 if test -d $prefix/lib64; then
23352 SQLITE_LIBDIR=$prefix/lib64
23354 SQLITE_LIBDIR=$prefix/lib
23356 SQLITE_BINDIR=$prefix/bin
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359 $as_echo "no" >&6; }
23360 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23363 if test -f $withval/sqlite3.h; then
23364 SQLITE_INCDIR=$withval
23365 SQLITE_LIBDIR=$withval
23366 SQLITE_BINDIR=$withval
23367 elif test -f $withval/include/sqlite3.h; then
23368 SQLITE_INCDIR=$withval/include
23369 if test -d $withval/lib64; then
23370 SQLITE_LIBDIR=$withval/lib64
23372 SQLITE_LIBDIR=$withval/lib
23374 SQLITE_BINDIR=$withval/bin
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377 $as_echo "no" >&6; }
23378 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23381 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23382 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23383 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23384 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23387 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23390 $as_echo "yes" >&6; }
23392 if test -z "${db_backends}"; then
23393 db_backends="SQLite3"
23395 db_backends="${db_backends} SQLite3"
23397 if test -z "${DB_BACKENDS}"; then
23398 DB_BACKENDS="sqlite3"
23400 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23420 #BA_CHECK_INGRES_DB
23424 #BA_CHECK_DBI_DRIVER
23426 if test "x${db_backends}" = "x" ; then
23429 echo "You have not specified either --enable-client-only or one of the"
23430 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23431 echo "This is not permitted. Please reconfigure."
23433 echo "Aborting the configuration ..."
23439 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23441 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23442 if test x$use_libtool = xno; then
23443 SHARED_CATALOG_TARGETS=""
23445 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23449 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23451 if test x$use_libtool = xno; then
23454 echo "You have specified two or more of the"
23455 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23456 echo "This is not permitted when not using libtool Please reconfigure."
23458 echo "Aborting the configuration ..."
23464 SHARED_CATALOG_TARGETS=""
23465 for db_type in ${DB_BACKENDS}
23467 if test -z "${SHARED_CATALOG_TARGETS}"; then
23468 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23470 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23476 if test x$use_libtool = xyes; then
23485 support_batch_insert=yes
23486 # Check whether --enable-batch-insert was given.
23487 if test "${enable_batch_insert+set}" = set; then :
23488 enableval=$enable_batch_insert;
23489 if test x$enableval = xno; then
23490 support_batch_insert=no
23497 if test x$support_batch_insert = xyes; then
23499 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23503 if test ! -z "$MYSQL_LIB"; then
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23505 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23506 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23507 $as_echo_n "(cached) " >&6
23509 ac_check_lib_save_LIBS=$LIBS
23510 LIBS="-lmysql_r $LIBS"
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h. */
23514 /* Override any GCC internal prototype to avoid an error.
23515 Use char because int might match the return type of a GCC
23516 builtin and then its argument prototype would still apply. */
23520 char mysql_thread_safe ();
23524 return mysql_thread_safe ();
23529 if ac_fn_c_try_link "$LINENO"; then :
23530 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23532 ac_cv_lib_mysql_r_mysql_thread_safe=no
23534 rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23539 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23540 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23542 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23548 if test ! -z "SQLITE_LIB"; then
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23550 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23551 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23552 $as_echo_n "(cached) " >&6
23554 ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lsqlite3 $LIBS"
23556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h. */
23559 /* Override any GCC internal prototype to avoid an error.
23560 Use char because int might match the return type of a GCC
23561 builtin and then its argument prototype would still apply. */
23565 char sqlite3_threadsafe ();
23569 return sqlite3_threadsafe ();
23574 if ac_fn_c_try_link "$LINENO"; then :
23575 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23577 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23579 rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23584 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23585 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23587 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23593 if test ! -z "$POSTGRESQL_LIB"; then
23594 saved_LIBS="${LIBS}"
23595 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23598 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23599 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23600 $as_echo_n "(cached) " >&6
23602 ac_check_lib_save_LIBS=$LIBS
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h. */
23607 /* Override any GCC internal prototype to avoid an error.
23608 Use char because int might match the return type of a GCC
23609 builtin and then its argument prototype would still apply. */
23613 char PQisthreadsafe ();
23617 return PQisthreadsafe ();
23622 if ac_fn_c_try_link "$LINENO"; then :
23623 ac_cv_lib_pq_PQisthreadsafe=yes
23625 ac_cv_lib_pq_PQisthreadsafe=no
23627 rm -f core conftest.err conftest.$ac_objext \
23628 conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23632 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23633 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23635 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23640 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23641 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23642 $as_echo_n "(cached) " >&6
23644 ac_check_lib_save_LIBS=$LIBS
23646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h. */
23649 /* Override any GCC internal prototype to avoid an error.
23650 Use char because int might match the return type of a GCC
23651 builtin and then its argument prototype would still apply. */
23655 char PQputCopyData ();
23659 return PQputCopyData ();
23664 if ac_fn_c_try_link "$LINENO"; then :
23665 ac_cv_lib_pq_PQputCopyData=yes
23667 ac_cv_lib_pq_PQputCopyData=no
23669 rm -f core conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23674 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23675 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23677 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23681 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23682 if test $support_batch_insert = yes ; then
23684 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23689 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23691 echo "WARNING: Your PostgreSQL client library is too old to detect "
23692 echo "if it was compiled with --enable-thread-safety, consider to "
23693 echo "upgrade it in order to avoid problems with Batch insert mode"
23697 LIBS="${saved_LIBS}"
23700 if test ! -z "$DBI_LIBS"; then
23701 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23703 if test $DB_PROG = postgresql; then
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23705 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23706 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23707 $as_echo_n "(cached) " >&6
23709 ac_check_lib_save_LIBS=$LIBS
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23714 /* Override any GCC internal prototype to avoid an error.
23715 Use char because int might match the return type of a GCC
23716 builtin and then its argument prototype would still apply. */
23720 char PQisthreadsafe ();
23724 return PQisthreadsafe ();
23729 if ac_fn_c_try_link "$LINENO"; then :
23730 ac_cv_lib_pq_PQisthreadsafe=yes
23732 ac_cv_lib_pq_PQisthreadsafe=no
23734 rm -f core conftest.err conftest.$ac_objext \
23735 conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23739 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23740 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23741 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23746 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23747 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23748 $as_echo_n "(cached) " >&6
23750 ac_check_lib_save_LIBS=$LIBS
23752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23753 /* end confdefs.h. */
23755 /* Override any GCC internal prototype to avoid an error.
23756 Use char because int might match the return type of a GCC
23757 builtin and then its argument prototype would still apply. */
23761 char PQputCopyData ();
23765 return PQputCopyData ();
23770 if ac_fn_c_try_link "$LINENO"; then :
23771 ac_cv_lib_pq_PQputCopyData=yes
23773 ac_cv_lib_pq_PQputCopyData=no
23775 rm -f core conftest.err conftest.$ac_objext \
23776 conftest$ac_exeext conftest.$ac_ext
23777 LIBS=$ac_check_lib_save_LIBS
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23780 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23781 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23782 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23786 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23788 if test $pkg = 0; then
23789 if test $support_batch_insert = yes ; then
23791 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23802 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23805 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23806 if test -z "$CCOPTS"; then
23807 CCOPTS='-g -O2 -Wall'
23814 largefile_support="no"
23816 # Check whether --enable-largefile was given.
23817 if test "${enable_largefile+set}" = set; then :
23818 enableval=$enable_largefile;
23821 if test "$enable_largefile" != no; then
23822 if test -n "$ac_tool_prefix"; then
23823 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23824 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23826 $as_echo_n "checking for $ac_word... " >&6; }
23827 if ${ac_cv_prog_GETCONF+:} false; then :
23828 $as_echo_n "(cached) " >&6
23830 if test -n "$GETCONF"; then
23831 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23834 for as_dir in $PATH
23837 test -z "$as_dir" && as_dir=.
23838 for ac_exec_ext in '' $ac_executable_extensions; do
23839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23840 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23850 GETCONF=$ac_cv_prog_GETCONF
23851 if test -n "$GETCONF"; then
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23853 $as_echo "$GETCONF" >&6; }
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23856 $as_echo "no" >&6; }
23861 if test -z "$ac_cv_prog_GETCONF"; then
23862 ac_ct_GETCONF=$GETCONF
23863 # Extract the first word of "getconf", so it can be a program name with args.
23864 set dummy getconf; ac_word=$2
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23866 $as_echo_n "checking for $ac_word... " >&6; }
23867 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23868 $as_echo_n "(cached) " >&6
23870 if test -n "$ac_ct_GETCONF"; then
23871 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874 for as_dir in $PATH
23877 test -z "$as_dir" && as_dir=.
23878 for ac_exec_ext in '' $ac_executable_extensions; do
23879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23880 ac_cv_prog_ac_ct_GETCONF="getconf"
23881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23890 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23891 if test -n "$ac_ct_GETCONF"; then
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23893 $as_echo "$ac_ct_GETCONF" >&6; }
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23896 $as_echo "no" >&6; }
23899 if test "x$ac_ct_GETCONF" = x; then
23902 case $cross_compiling:$ac_tool_warned in
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23906 ac_tool_warned=yes ;;
23908 GETCONF=$ac_ct_GETCONF
23911 GETCONF="$ac_cv_prog_GETCONF"
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23915 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23916 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23917 $as_echo_n "(cached) " >&6
23919 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23920 ac_cv_sys_largefile_CFLAGS=no
23922 # IRIX 6.2 and later require cc -n32.
23923 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23924 if test "$GCC" != yes; then
23925 ac_cv_sys_largefile_CFLAGS=-n32
23928 CC="$CC $ac_cv_sys_largefile_CFLAGS"
23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h. */
23940 if ac_fn_c_try_link "$LINENO"; then :
23943 ac_cv_sys_largefile_CFLAGS=no
23945 rm -f core conftest.err conftest.$ac_objext \
23946 conftest$ac_exeext conftest.$ac_ext
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23952 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23954 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23955 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23956 $as_echo_n "(cached) " >&6
23958 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23959 ac_cv_sys_largefile_LDFLAGS=no
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23964 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23966 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23967 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23968 $as_echo_n "(cached) " >&6
23970 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23971 ac_cv_sys_largefile_LIBS=no
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23976 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23978 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23981 -D_FILE_OFFSET_BITS=*) ;;
23982 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23983 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23988 case "$CPPFLAGS" in
23989 '') CPPFLAGS="$ac_flag" ;;
23990 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23998 '') CFLAGS="$ac_flag" ;;
23999 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24004 case "$ac_cv_sys_largefile_LDFLAGS" in
24008 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24009 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24012 case "$ac_cv_sys_largefile_LIBS" in
24016 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24017 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24021 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24022 if ${ac_cv_sys_file_offset_bits+:} false; then :
24023 $as_echo_n "(cached) " >&6
24025 ac_cv_sys_file_offset_bits=no
24026 ac_cv_sys_file_offset_bits=64
24027 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24029 -D_FILE_OFFSET_BITS)
24030 ac_cv_sys_file_offset_bits=1 ;;
24031 -D_FILE_OFFSET_BITS=*)
24032 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24039 if test "$ac_cv_sys_file_offset_bits" != no; then
24041 cat >>confdefs.h <<_ACEOF
24042 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24047 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24048 if ${ac_cv_sys_largefile_source+:} false; then :
24049 $as_echo_n "(cached) " >&6
24051 ac_cv_sys_largefile_source=no
24052 ac_cv_sys_largefile_source=1
24053 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24055 -D_LARGEFILE_SOURCE)
24056 ac_cv_sys_largefile_source=1 ;;
24057 -D_LARGEFILE_SOURCE=*)
24058 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24064 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24065 if test "$ac_cv_sys_largefile_source" != no; then
24067 cat >>confdefs.h <<_ACEOF
24068 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24073 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24074 if ${ac_cv_sys_large_files+:} false; then :
24075 $as_echo_n "(cached) " >&6
24077 ac_cv_sys_large_files=no
24078 ac_cv_sys_large_files=1
24079 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24082 ac_cv_sys_large_files=1 ;;
24084 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24090 $as_echo "$ac_cv_sys_large_files" >&6; }
24091 if test "$ac_cv_sys_large_files" != no; then
24093 cat >>confdefs.h <<_ACEOF
24094 #define _LARGE_FILES $ac_cv_sys_large_files
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24102 $as_echo_n "checking for X... " >&6; }
24105 # Check whether --with-x was given.
24106 if test "${with_x+set}" = set; then :
24110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24111 if test "x$with_x" = xno; then
24112 # The user explicitly disabled X.
24115 case $x_includes,$x_libraries in #(
24116 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24117 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24118 $as_echo_n "(cached) " >&6
24120 # One or both of the vars are not set, and there is no cached value.
24121 ac_x_includes=no ac_x_libraries=no
24122 rm -f -r conftest.dir
24123 if mkdir conftest.dir; then
24125 cat >Imakefile <<'_ACEOF'
24127 @echo incroot='${INCROOT}'
24129 @echo usrlibdir='${USRLIBDIR}'
24131 @echo libdir='${LIBDIR}'
24133 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24134 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24135 for ac_var in incroot usrlibdir libdir; do
24136 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24139 for ac_extension in a so sl dylib la dll; do
24140 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24141 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24142 ac_im_usrlibdir=$ac_im_libdir; break
24145 # Screen out bogus values from the imake configuration. They are
24146 # bogus both because they are the default anyway, and because
24147 # using them would break gcc on systems where it needs fixed includes.
24148 case $ac_im_incroot in
24149 /usr/include) ac_x_includes= ;;
24150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24152 case $ac_im_usrlibdir in
24153 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24158 rm -f -r conftest.dir
24161 # Standard set of common directories for X headers.
24162 # Check X11 before X11Rn because it is often a symlink to the current release.
24176 /usr/local/X11/include
24177 /usr/local/X11R7/include
24178 /usr/local/X11R6/include
24179 /usr/local/X11R5/include
24180 /usr/local/X11R4/include
24182 /usr/local/include/X11
24183 /usr/local/include/X11R7
24184 /usr/local/include/X11R6
24185 /usr/local/include/X11R5
24186 /usr/local/include/X11R4
24190 /usr/XFree86/include/X11
24194 /usr/unsupported/include
24195 /usr/athena/include
24196 /usr/local/x11r5/include
24197 /usr/lpp/Xamples/include
24199 /usr/openwin/include
24200 /usr/openwin/share/include'
24202 if test "$ac_x_includes" = no; then
24203 # Guess where to find include files, by looking for Xlib.h.
24204 # First, try using that file with no special directory specified.
24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h. */
24207 #include <X11/Xlib.h>
24209 if ac_fn_c_try_cpp "$LINENO"; then :
24210 # We can compile using X headers with no special include directory.
24213 for ac_dir in $ac_x_header_dirs; do
24214 if test -r "$ac_dir/X11/Xlib.h"; then
24215 ac_x_includes=$ac_dir
24220 rm -f conftest.err conftest.i conftest.$ac_ext
24221 fi # $ac_x_includes = no
24223 if test "$ac_x_libraries" = no; then
24224 # Check for the libraries.
24225 # See if we find them without any special options.
24226 # Don't add to $LIBS permanently.
24229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h. */
24231 #include <X11/Xlib.h>
24240 if ac_fn_c_try_link "$LINENO"; then :
24242 # We can link X programs with no special library path.
24246 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24248 # Don't even attempt the hair of trying to link an X program!
24249 for ac_extension in a so sl dylib la dll; do
24250 if test -r "$ac_dir/libX11.$ac_extension"; then
24251 ac_x_libraries=$ac_dir
24257 rm -f core conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24259 fi # $ac_x_libraries = no
24261 case $ac_x_includes,$ac_x_libraries in #(
24262 no,* | *,no | *\'*)
24263 # Didn't find X, or a directory has "'" in its name.
24264 ac_cv_have_x="have_x=no";; #(
24266 # Record where we found X for the cache.
24267 ac_cv_have_x="have_x=yes\
24268 ac_x_includes='$ac_x_includes'\
24269 ac_x_libraries='$ac_x_libraries'"
24275 eval "$ac_cv_have_x"
24278 if test "$have_x" != yes; then
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24280 $as_echo "$have_x" >&6; }
24283 # If each of the values was on the command line, it overrides each guess.
24284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24286 # Update the cache value to reflect the command line values.
24287 ac_cv_have_x="have_x=yes\
24288 ac_x_includes='$x_includes'\
24289 ac_x_libraries='$x_libraries'"
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24291 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24294 if test "$no_x" = yes; then
24295 # Not all programs may use this symbol, but it does not hurt to define it.
24297 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24299 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24301 if test -n "$x_includes"; then
24302 X_CFLAGS="$X_CFLAGS -I$x_includes"
24305 # It would also be nice to do this for all -L options, not just this one.
24306 if test -n "$x_libraries"; then
24307 X_LIBS="$X_LIBS -L$x_libraries"
24308 # For Solaris; some versions of Sun CC require a space after -R and
24309 # others require no space. Words are not sufficient . . . .
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24311 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24312 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24313 ac_xsave_c_werror_flag=$ac_c_werror_flag
24314 ac_c_werror_flag=yes
24315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h. */
24326 if ac_fn_c_try_link "$LINENO"; then :
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24328 $as_echo "no" >&6; }
24329 X_LIBS="$X_LIBS -R$x_libraries"
24331 LIBS="$ac_xsave_LIBS -R $x_libraries"
24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h. */
24343 if ac_fn_c_try_link "$LINENO"; then :
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24345 $as_echo "yes" >&6; }
24346 X_LIBS="$X_LIBS -R $x_libraries"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24349 $as_echo "neither works" >&6; }
24351 rm -f core conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
24354 rm -f core conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24356 ac_c_werror_flag=$ac_xsave_c_werror_flag
24357 LIBS=$ac_xsave_LIBS
24360 # Check for system-dependent libraries X programs must link with.
24361 # Do this before checking for the system-independent R6 libraries
24362 # (-lICE), since we may need -lsocket or whatever for X linking.
24364 if test "$ISC" = yes; then
24365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24367 # Martyn Johnson says this is needed for Ultrix, if the X
24368 # libraries were built with DECnet support. And Karl Berry says
24369 # the Alpha needs dnet_stub (dnet does not exist).
24370 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24372 /* end confdefs.h. */
24374 /* Override any GCC internal prototype to avoid an error.
24375 Use char because int might match the return type of a GCC
24376 builtin and then its argument prototype would still apply. */
24380 char XOpenDisplay ();
24384 return XOpenDisplay ();
24389 if ac_fn_c_try_link "$LINENO"; then :
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24393 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24394 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24395 $as_echo_n "(cached) " >&6
24397 ac_check_lib_save_LIBS=$LIBS
24398 LIBS="-ldnet $LIBS"
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24402 /* Override any GCC internal prototype to avoid an error.
24403 Use char because int might match the return type of a GCC
24404 builtin and then its argument prototype would still apply. */
24412 return dnet_ntoa ();
24417 if ac_fn_c_try_link "$LINENO"; then :
24418 ac_cv_lib_dnet_dnet_ntoa=yes
24420 ac_cv_lib_dnet_dnet_ntoa=no
24422 rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
24424 LIBS=$ac_check_lib_save_LIBS
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24427 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24428 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24429 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24432 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24434 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24435 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24436 $as_echo_n "(cached) " >&6
24438 ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-ldnet_stub $LIBS"
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24443 /* Override any GCC internal prototype to avoid an error.
24444 Use char because int might match the return type of a GCC
24445 builtin and then its argument prototype would still apply. */
24453 return dnet_ntoa ();
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24461 ac_cv_lib_dnet_stub_dnet_ntoa=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24468 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24469 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24470 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24475 rm -f core conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24477 LIBS="$ac_xsave_LIBS"
24479 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24480 # to get the SysV transport functions.
24481 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24483 # The nsl library prevents programs from opening the X display
24484 # on Irix 5.2, according to T.E. Dickey.
24485 # The functions gethostbyname, getservbyname, and inet_addr are
24486 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24487 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24488 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24492 if test $ac_cv_func_gethostbyname = no; then
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24494 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24495 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24496 $as_echo_n "(cached) " >&6
24498 ac_check_lib_save_LIBS=$LIBS
24500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24501 /* end confdefs.h. */
24503 /* Override any GCC internal prototype to avoid an error.
24504 Use char because int might match the return type of a GCC
24505 builtin and then its argument prototype would still apply. */
24509 char gethostbyname ();
24513 return gethostbyname ();
24518 if ac_fn_c_try_link "$LINENO"; then :
24519 ac_cv_lib_nsl_gethostbyname=yes
24521 ac_cv_lib_nsl_gethostbyname=no
24523 rm -f core conftest.err conftest.$ac_objext \
24524 conftest$ac_exeext conftest.$ac_ext
24525 LIBS=$ac_check_lib_save_LIBS
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24528 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24529 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24533 if test $ac_cv_lib_nsl_gethostbyname = no; then
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24535 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24536 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24537 $as_echo_n "(cached) " >&6
24539 ac_check_lib_save_LIBS=$LIBS
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24544 /* Override any GCC internal prototype to avoid an error.
24545 Use char because int might match the return type of a GCC
24546 builtin and then its argument prototype would still apply. */
24550 char gethostbyname ();
24554 return gethostbyname ();
24559 if ac_fn_c_try_link "$LINENO"; then :
24560 ac_cv_lib_bsd_gethostbyname=yes
24562 ac_cv_lib_bsd_gethostbyname=no
24564 rm -f core conftest.err conftest.$ac_objext \
24565 conftest$ac_exeext conftest.$ac_ext
24566 LIBS=$ac_check_lib_save_LIBS
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24570 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24577 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24578 # socket/setsockopt and other routines are undefined under SCO ODT
24579 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24580 # on later versions), says Simon Leinen: it contains gethostby*
24581 # variants that don't use the name server (or something). -lsocket
24582 # must be given before -lnsl if both are needed. We assume that
24583 # if connect needs -lnsl, so does gethostbyname.
24584 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24585 if test "x$ac_cv_func_connect" = xyes; then :
24589 if test $ac_cv_func_connect = no; then
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24591 $as_echo_n "checking for connect in -lsocket... " >&6; }
24592 if ${ac_cv_lib_socket_connect+:} false; then :
24593 $as_echo_n "(cached) " >&6
24595 ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24600 /* Override any GCC internal prototype to avoid an error.
24601 Use char because int might match the return type of a GCC
24602 builtin and then its argument prototype would still apply. */
24615 if ac_fn_c_try_link "$LINENO"; then :
24616 ac_cv_lib_socket_connect=yes
24618 ac_cv_lib_socket_connect=no
24620 rm -f core conftest.err conftest.$ac_objext \
24621 conftest$ac_exeext conftest.$ac_ext
24622 LIBS=$ac_check_lib_save_LIBS
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24625 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24626 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24632 # Guillermo Gomez says -lposix is necessary on A/UX.
24633 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24634 if test "x$ac_cv_func_remove" = xyes; then :
24638 if test $ac_cv_func_remove = no; then
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24640 $as_echo_n "checking for remove in -lposix... " >&6; }
24641 if ${ac_cv_lib_posix_remove+:} false; then :
24642 $as_echo_n "(cached) " >&6
24644 ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lposix $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h. */
24649 /* Override any GCC internal prototype to avoid an error.
24650 Use char because int might match the return type of a GCC
24651 builtin and then its argument prototype would still apply. */
24664 if ac_fn_c_try_link "$LINENO"; then :
24665 ac_cv_lib_posix_remove=yes
24667 ac_cv_lib_posix_remove=no
24669 rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24674 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24675 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24681 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24682 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24683 if test "x$ac_cv_func_shmat" = xyes; then :
24687 if test $ac_cv_func_shmat = no; then
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24689 $as_echo_n "checking for shmat in -lipc... " >&6; }
24690 if ${ac_cv_lib_ipc_shmat+:} false; then :
24691 $as_echo_n "(cached) " >&6
24693 ac_check_lib_save_LIBS=$LIBS
24695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696 /* end confdefs.h. */
24698 /* Override any GCC internal prototype to avoid an error.
24699 Use char because int might match the return type of a GCC
24700 builtin and then its argument prototype would still apply. */
24713 if ac_fn_c_try_link "$LINENO"; then :
24714 ac_cv_lib_ipc_shmat=yes
24716 ac_cv_lib_ipc_shmat=no
24718 rm -f core conftest.err conftest.$ac_objext \
24719 conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24723 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24724 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24731 # Check for libraries that X11R6 Xt/Xaw programs need.
24732 ac_save_LDFLAGS=$LDFLAGS
24733 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24734 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24735 # check for ICE first), but we must link in the order -lSM -lICE or
24736 # we get undefined symbols. So assume we have SM if we have ICE.
24737 # These have to be linked with before -lX11, unlike the other
24738 # libraries we check for below, so use a different variable.
24739 # John Interrante, Karl Berry
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24741 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24742 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24743 $as_echo_n "(cached) " >&6
24745 ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24748 /* end confdefs.h. */
24750 /* Override any GCC internal prototype to avoid an error.
24751 Use char because int might match the return type of a GCC
24752 builtin and then its argument prototype would still apply. */
24756 char IceConnectionNumber ();
24760 return IceConnectionNumber ();
24765 if ac_fn_c_try_link "$LINENO"; then :
24766 ac_cv_lib_ICE_IceConnectionNumber=yes
24768 ac_cv_lib_ICE_IceConnectionNumber=no
24770 rm -f core conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
24772 LIBS=$ac_check_lib_save_LIBS
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24775 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24776 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24777 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24780 LDFLAGS=$ac_save_LDFLAGS
24817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24820 cat >>confdefs.h <<_ACEOF
24821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24829 $as_echo_n "checking for ANSI C header files... " >&6; }
24830 if ${ac_cv_header_stdc+:} false; then :
24831 $as_echo_n "(cached) " >&6
24833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24834 /* end confdefs.h. */
24835 #include <stdlib.h>
24836 #include <stdarg.h>
24837 #include <string.h>
24848 if ac_fn_c_try_compile "$LINENO"; then :
24849 ac_cv_header_stdc=yes
24851 ac_cv_header_stdc=no
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855 if test $ac_cv_header_stdc = yes; then
24856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24859 #include <string.h>
24862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24863 $EGREP "memchr" >/dev/null 2>&1; then :
24866 ac_cv_header_stdc=no
24872 if test $ac_cv_header_stdc = yes; then
24873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24876 #include <stdlib.h>
24879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24880 $EGREP "free" >/dev/null 2>&1; then :
24883 ac_cv_header_stdc=no
24889 if test $ac_cv_header_stdc = yes; then
24890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24891 if test "$cross_compiling" = yes; then :
24894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h. */
24897 #include <stdlib.h>
24898 #if ((' ' & 0x0FF) == 0x020)
24899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24902 # define ISLOWER(c) \
24903 (('a' <= (c) && (c) <= 'i') \
24904 || ('j' <= (c) && (c) <= 'r') \
24905 || ('s' <= (c) && (c) <= 'z'))
24906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24914 for (i = 0; i < 256; i++)
24915 if (XOR (islower (i), ISLOWER (i))
24916 || toupper (i) != TOUPPER (i))
24921 if ac_fn_c_try_run "$LINENO"; then :
24924 ac_cv_header_stdc=no
24926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24927 conftest.$ac_objext conftest.beam conftest.$ac_ext
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24933 $as_echo "$ac_cv_header_stdc" >&6; }
24934 if test $ac_cv_header_stdc = yes; then
24936 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24941 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24942 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24943 $as_echo_n "(cached) " >&6
24945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946 /* end confdefs.h. */
24947 #include <sys/types.h>
24951 return makedev(0, 0);
24956 if ac_fn_c_try_link "$LINENO"; then :
24957 ac_cv_header_sys_types_h_makedev=yes
24959 ac_cv_header_sys_types_h_makedev=no
24961 rm -f core conftest.err conftest.$ac_objext \
24962 conftest$ac_exeext conftest.$ac_ext
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24966 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24968 if test $ac_cv_header_sys_types_h_makedev = no; then
24969 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24970 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24972 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24978 if test $ac_cv_header_sys_mkdev_h = no; then
24979 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24980 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24982 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24990 ac_header_dirent=no
24991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24992 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24994 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24995 if eval \${$as_ac_Header+:} false; then :
24996 $as_echo_n "(cached) " >&6
24998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25000 #include <sys/types.h>
25012 if ac_fn_c_try_compile "$LINENO"; then :
25013 eval "$as_ac_Header=yes"
25015 eval "$as_ac_Header=no"
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 eval ac_res=\$$as_ac_Header
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25021 $as_echo "$ac_res" >&6; }
25022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25023 cat >>confdefs.h <<_ACEOF
25024 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25027 ac_header_dirent=$ac_hdr; break
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25034 $as_echo_n "checking for library containing opendir... " >&6; }
25035 if ${ac_cv_search_opendir+:} false; then :
25036 $as_echo_n "(cached) " >&6
25038 ac_func_search_save_LIBS=$LIBS
25039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25040 /* end confdefs.h. */
25042 /* Override any GCC internal prototype to avoid an error.
25043 Use char because int might match the return type of a GCC
25044 builtin and then its argument prototype would still apply. */
25057 for ac_lib in '' dir; do
25058 if test -z "$ac_lib"; then
25059 ac_res="none required"
25062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25064 if ac_fn_c_try_link "$LINENO"; then :
25065 ac_cv_search_opendir=$ac_res
25067 rm -f core conftest.err conftest.$ac_objext \
25069 if ${ac_cv_search_opendir+:} false; then :
25073 if ${ac_cv_search_opendir+:} false; then :
25076 ac_cv_search_opendir=no
25078 rm conftest.$ac_ext
25079 LIBS=$ac_func_search_save_LIBS
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25082 $as_echo "$ac_cv_search_opendir" >&6; }
25083 ac_res=$ac_cv_search_opendir
25084 if test "$ac_res" != no; then :
25085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25091 $as_echo_n "checking for library containing opendir... " >&6; }
25092 if ${ac_cv_search_opendir+:} false; then :
25093 $as_echo_n "(cached) " >&6
25095 ac_func_search_save_LIBS=$LIBS
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h. */
25099 /* Override any GCC internal prototype to avoid an error.
25100 Use char because int might match the return type of a GCC
25101 builtin and then its argument prototype would still apply. */
25114 for ac_lib in '' x; do
25115 if test -z "$ac_lib"; then
25116 ac_res="none required"
25119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25121 if ac_fn_c_try_link "$LINENO"; then :
25122 ac_cv_search_opendir=$ac_res
25124 rm -f core conftest.err conftest.$ac_objext \
25126 if ${ac_cv_search_opendir+:} false; then :
25130 if ${ac_cv_search_opendir+:} false; then :
25133 ac_cv_search_opendir=no
25135 rm conftest.$ac_ext
25136 LIBS=$ac_func_search_save_LIBS
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25139 $as_echo "$ac_cv_search_opendir" >&6; }
25140 ac_res=$ac_cv_search_opendir
25141 if test "$ac_res" != no; then :
25142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25149 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25150 if ${ac_cv_header_stat_broken+:} false; then :
25151 $as_echo_n "(cached) " >&6
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25155 #include <sys/types.h>
25156 #include <sys/stat.h>
25158 #if defined S_ISBLK && defined S_IFDIR
25159 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25162 #if defined S_ISBLK && defined S_IFCHR
25163 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25166 #if defined S_ISLNK && defined S_IFREG
25167 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25170 #if defined S_ISSOCK && defined S_IFREG
25171 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25175 if ac_fn_c_try_compile "$LINENO"; then :
25176 ac_cv_header_stat_broken=no
25178 ac_cv_header_stat_broken=yes
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25183 $as_echo "$ac_cv_header_stat_broken" >&6; }
25184 if test $ac_cv_header_stat_broken = yes; then
25186 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25191 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25192 if ${ac_cv_header_sys_wait_h+:} false; then :
25193 $as_echo_n "(cached) " >&6
25195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25196 /* end confdefs.h. */
25197 #include <sys/types.h>
25198 #include <sys/wait.h>
25199 #ifndef WEXITSTATUS
25200 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25203 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25216 if ac_fn_c_try_compile "$LINENO"; then :
25217 ac_cv_header_sys_wait_h=yes
25219 ac_cv_header_sys_wait_h=no
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25224 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25225 if test $ac_cv_header_sys_wait_h = yes; then
25227 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25232 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25233 if ${ac_cv_header_time+:} false; then :
25234 $as_echo_n "(cached) " >&6
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25238 #include <sys/types.h>
25239 #include <sys/time.h>
25245 if ((struct tm *) 0)
25251 if ac_fn_c_try_compile "$LINENO"; then :
25252 ac_cv_header_time=yes
25254 ac_cv_header_time=no
25256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25259 $as_echo "$ac_cv_header_time" >&6; }
25260 if test $ac_cv_header_time = yes; then
25262 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25266 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25267 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25269 cat >>confdefs.h <<_ACEOF
25270 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25274 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25279 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25280 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25282 cat >>confdefs.h <<_ACEOF
25283 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25287 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25290 case " $LIBOBJS " in
25291 *" fileblocks.$ac_objext "* ) ;;
25292 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25300 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25301 if ${ac_cv_struct_tm+:} false; then :
25302 $as_echo_n "(cached) " >&6
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25306 #include <sys/types.h>
25313 int *p = &tm.tm_sec;
25319 if ac_fn_c_try_compile "$LINENO"; then :
25320 ac_cv_struct_tm=time.h
25322 ac_cv_struct_tm=sys/time.h
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25327 $as_echo "$ac_cv_struct_tm" >&6; }
25328 if test $ac_cv_struct_tm = sys/time.h; then
25330 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25334 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25335 #include <$ac_cv_struct_tm>
25338 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_STRUCT_TM_TM_ZONE 1
25347 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25349 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25352 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25354 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25360 cat >>confdefs.h <<_ACEOF
25361 #define HAVE_DECL_TZNAME $ac_have_decl
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25365 $as_echo_n "checking for tzname... " >&6; }
25366 if ${ac_cv_var_tzname+:} false; then :
25367 $as_echo_n "(cached) " >&6
25369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370 /* end confdefs.h. */
25372 #if !HAVE_DECL_TZNAME
25373 extern char *tzname[];
25379 return tzname[0][0];
25384 if ac_fn_c_try_link "$LINENO"; then :
25385 ac_cv_var_tzname=yes
25387 ac_cv_var_tzname=no
25389 rm -f core conftest.err conftest.$ac_objext \
25390 conftest$ac_exeext conftest.$ac_ext
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25393 $as_echo "$ac_cv_var_tzname" >&6; }
25394 if test $ac_cv_var_tzname = yes; then
25396 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25403 $as_echo_n "checking for utime.h... " >&6; }
25404 if ${ba_cv_header_utime_h+:} false; then :
25405 $as_echo_n "(cached) " >&6
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25411 #include <sys/types.h>
25424 if ac_fn_c_try_compile "$LINENO"; then :
25426 ba_cv_header_utime_h=yes
25430 ba_cv_header_utime_h=no
25434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25439 $as_echo "$ba_cv_header_utime_h" >&6; }
25440 test $ba_cv_header_utime_h = yes &&
25441 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25445 $as_echo_n "checking for socklen_t... " >&6; }
25446 if ${ba_cv_header_socklen_t+:} false; then :
25447 $as_echo_n "(cached) " >&6
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25453 #include <sys/types.h>
25454 #include <sys/socket.h>
25466 if ac_fn_c_try_compile "$LINENO"; then :
25468 ba_cv_header_socklen_t=yes
25472 ba_cv_header_socklen_t=no
25476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25481 $as_echo "$ba_cv_header_socklen_t" >&6; }
25482 test $ba_cv_header_socklen_t = yes &&
25483 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25487 ac_cpp='$CXXCPP $CPPFLAGS'
25488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25493 $as_echo_n "checking for ioctl_req_t... " >&6; }
25494 if ${ba_cv_header_ioctl_req_t+:} false; then :
25495 $as_echo_n "(cached) " >&6
25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499 /* end confdefs.h. */
25501 #include <unistd.h>
25502 #include <sys/types.h>
25503 #include <sys/ioctl.h>
25509 int (*d_ioctl)(int fd, unsigned long int request, ...);
25516 if ac_fn_cxx_try_compile "$LINENO"; then :
25518 ba_cv_header_ioctl_req_t=yes
25522 ba_cv_header_ioctl_req_t=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25531 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25532 test $ba_cv_header_ioctl_req_t = yes &&
25533 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25537 ac_cpp='$CPP $CPPFLAGS'
25538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25544 ac_cpp='$CXXCPP $CPPFLAGS'
25545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25550 $as_echo_n "checking for typeof... " >&6; }
25551 if ${ba_cv_have_typeof+:} false; then :
25552 $as_echo_n "(cached) " >&6
25555 if test "$cross_compiling" = yes; then :
25557 ba_cv_have_typeof=no
25561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25562 /* end confdefs.h. */
25564 main(){char *a = 0; a = (typeof a)a;}
25567 if ac_fn_cxx_try_run "$LINENO"; then :
25569 ba_cv_have_typeof=yes
25573 ba_cv_have_typeof=no
25576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25577 conftest.$ac_objext conftest.beam conftest.$ac_ext
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25584 $as_echo "$ba_cv_have_typeof" >&6; }
25585 test $ba_cv_have_typeof = yes &&
25586 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25589 ac_cpp='$CPP $CPPFLAGS'
25590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25596 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25597 if ${ac_cv_c_const+:} false; then :
25598 $as_echo_n "(cached) " >&6
25600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h. */
25606 /* FIXME: Include the comments suggested by Paul. */
25607 #ifndef __cplusplus
25608 /* Ultrix mips cc rejects this. */
25609 typedef int charset[2];
25611 /* SunOS 4.1.1 cc rejects this. */
25612 char const *const *pcpcc;
25614 /* NEC SVR4.0.2 mips cc rejects this. */
25615 struct point {int x, y;};
25616 static struct point const zero = {0,0};
25617 /* AIX XL C 1.02.0.0 rejects this.
25618 It does not let you subtract one const X* pointer from another in
25619 an arm of an if-expression whose if-part is not a constant
25621 const char *g = "string";
25622 pcpcc = &g + (g ? g-g : 0);
25623 /* HPUX 7.0 cc rejects these. */
25625 ppc = (char**) pcpcc;
25626 pcpcc = (char const *const *) ppc;
25627 { /* SCO 3.2v4 cc rejects this. */
25629 char const *s = 0 ? (char *) 0 : (char const *) 0;
25634 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25635 int x[] = {25, 17};
25636 const int *foo = &x[0];
25639 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25640 typedef const int *iptr;
25644 { /* AIX XL C 1.02.0.0 rejects this saying
25645 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25646 struct s { int j; const int *ap[3]; };
25647 struct s *b; b->j = 5;
25649 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25650 const int foo = 10;
25651 if (!foo) return 0;
25653 return !cs[0] && !zero.x;
25660 if ac_fn_c_try_compile "$LINENO"; then :
25665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25668 $as_echo "$ac_cv_c_const" >&6; }
25669 if test $ac_cv_c_const = no; then
25671 $as_echo "#define const /**/" >>confdefs.h
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25677 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25678 if ${ac_cv_c_bigendian+:} false; then :
25679 $as_echo_n "(cached) " >&6
25681 ac_cv_c_bigendian=unknown
25682 # See if we're dealing with a universal compiler.
25683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25684 /* end confdefs.h. */
25685 #ifndef __APPLE_CC__
25686 not a universal capable compiler
25691 if ac_fn_c_try_compile "$LINENO"; then :
25693 # Check for potential -arch flags. It is not universal unless
25694 # there are at least two -arch flags with different values.
25697 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25698 if test -n "$ac_prev"; then
25700 i?86 | x86_64 | ppc | ppc64)
25701 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25704 ac_cv_c_bigendian=universal
25710 elif test "x$ac_word" = "x-arch"; then
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716 if test $ac_cv_c_bigendian = unknown; then
25717 # See if sys/param.h defines the BYTE_ORDER macro.
25718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25719 /* end confdefs.h. */
25720 #include <sys/types.h>
25721 #include <sys/param.h>
25726 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25727 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25729 bogus endian macros
25736 if ac_fn_c_try_compile "$LINENO"; then :
25737 # It does; now see whether it defined to BIG_ENDIAN or not.
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25740 #include <sys/types.h>
25741 #include <sys/param.h>
25746 #if BYTE_ORDER != BIG_ENDIAN
25754 if ac_fn_c_try_compile "$LINENO"; then :
25755 ac_cv_c_bigendian=yes
25757 ac_cv_c_bigendian=no
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763 if test $ac_cv_c_bigendian = unknown; then
25764 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25767 #include <limits.h>
25772 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25773 bogus endian macros
25780 if ac_fn_c_try_compile "$LINENO"; then :
25781 # It does; now see whether it defined to _BIG_ENDIAN or not.
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h. */
25784 #include <limits.h>
25789 #ifndef _BIG_ENDIAN
25797 if ac_fn_c_try_compile "$LINENO"; then :
25798 ac_cv_c_bigendian=yes
25800 ac_cv_c_bigendian=no
25802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 if test $ac_cv_c_bigendian = unknown; then
25807 # Compile a test program.
25808 if test "$cross_compiling" = yes; then :
25809 # Try to guess by grepping values from an object file.
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25812 short int ascii_mm[] =
25813 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25814 short int ascii_ii[] =
25815 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25816 int use_ascii (int i) {
25817 return ascii_mm[i] + ascii_ii[i];
25819 short int ebcdic_ii[] =
25820 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25821 short int ebcdic_mm[] =
25822 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25823 int use_ebcdic (int i) {
25824 return ebcdic_mm[i] + ebcdic_ii[i];
25831 return use_ascii (foo) == use_ebcdic (foo);
25836 if ac_fn_c_try_compile "$LINENO"; then :
25837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25838 ac_cv_c_bigendian=yes
25840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25841 if test "$ac_cv_c_bigendian" = unknown; then
25842 ac_cv_c_bigendian=no
25844 # finding both strings is unlikely to happen, but who knows?
25845 ac_cv_c_bigendian=unknown
25849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h. */
25853 $ac_includes_default
25858 /* Are we little or big endian? From Harbison&Steele. */
25862 char c[sizeof (long int)];
25865 return u.c[sizeof (long int) - 1] == 1;
25871 if ac_fn_c_try_run "$LINENO"; then :
25872 ac_cv_c_bigendian=no
25874 ac_cv_c_bigendian=yes
25876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25877 conftest.$ac_objext conftest.beam conftest.$ac_ext
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25883 $as_echo "$ac_cv_c_bigendian" >&6; }
25884 case $ac_cv_c_bigendian in #(
25887 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25891 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25895 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25899 as_fn_error $? "unknown endianness
25900 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25905 $as_echo_n "checking how to get filesystem type... " >&6; }
25907 # The order of these tests is important.
25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909 /* end confdefs.h. */
25911 #include <sys/statvfs.h>
25912 #include <sys/fstyp.h>
25915 if ac_fn_c_try_cpp "$LINENO"; then :
25916 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25920 rm -f conftest.err conftest.i conftest.$ac_ext
25921 if test $fstype = no; then
25922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25923 /* end confdefs.h. */
25925 #include <sys/statfs.h>
25926 #include <sys/fstyp.h>
25929 if ac_fn_c_try_cpp "$LINENO"; then :
25930 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25934 rm -f conftest.err conftest.i conftest.$ac_ext
25936 if test $fstype = no; then
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h. */
25940 #include <sys/statfs.h>
25941 #include <sys/vmount.h>
25944 if ac_fn_c_try_cpp "$LINENO"; then :
25945 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25949 rm -f conftest.err conftest.i conftest.$ac_ext
25951 if test $fstype = no; then
25952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953 /* end confdefs.h. */
25955 #include <mntent.h>
25958 if ac_fn_c_try_cpp "$LINENO"; then :
25959 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25963 rm -f conftest.err conftest.i conftest.$ac_ext
25965 if test $fstype = no; then
25966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967 /* end confdefs.h. */
25968 #include <sys/mount.h>
25971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25972 $EGREP "f_type;" >/dev/null 2>&1; then :
25973 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25979 if test $fstype = no; then
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25983 #include <sys/mount.h>
25984 #include <sys/fs_types.h>
25987 if ac_fn_c_try_cpp "$LINENO"; then :
25988 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25992 rm -f conftest.err conftest.i conftest.$ac_ext
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25995 $as_echo "$fstype" >&6; }
25997 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25998 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26000 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26007 ac_cpp='$CXXCPP $CPPFLAGS'
26008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26013 for ac_header in cxxabi.h execinfo.h
26015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26016 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26018 cat >>confdefs.h <<_ACEOF
26019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26022 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26029 ac_cpp='$CPP $CPPFLAGS'
26030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26036 $as_echo_n "checking return type of signal handlers... " >&6; }
26037 if ${ac_cv_type_signal+:} false; then :
26038 $as_echo_n "(cached) " >&6
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26042 #include <sys/types.h>
26043 #include <signal.h>
26048 return *(signal (0, 0)) (0) == 1;
26053 if ac_fn_c_try_compile "$LINENO"; then :
26054 ac_cv_type_signal=int
26056 ac_cv_type_signal=void
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26061 $as_echo "$ac_cv_type_signal" >&6; }
26063 cat >>confdefs.h <<_ACEOF
26064 #define RETSIGTYPE $ac_cv_type_signal
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26070 $as_echo_n "checking for type of signal functions... " >&6; }
26071 if ${bash_cv_signal_vintage+:} false; then :
26072 $as_echo_n "(cached) " >&6
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h. */
26077 #include <signal.h>
26083 struct sigaction sa;
26084 sigemptyset(&ss); sigsuspend(&ss);
26085 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26086 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26092 if ac_fn_c_try_link "$LINENO"; then :
26093 bash_cv_signal_vintage="posix"
26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097 /* end confdefs.h. */
26098 #include <signal.h>
26103 int mask = sigmask(SIGINT);
26104 sigsetmask(mask); sigblock(mask); sigpause(mask);
26110 if ac_fn_c_try_link "$LINENO"; then :
26111 bash_cv_signal_vintage="4.2bsd"
26114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115 /* end confdefs.h. */
26117 #include <signal.h>
26118 RETSIGTYPE foo() { }
26123 int mask = sigmask(SIGINT);
26124 sigset(SIGINT, foo); sigrelse(SIGINT);
26125 sighold(SIGINT); sigpause(SIGINT);
26131 if ac_fn_c_try_link "$LINENO"; then :
26132 bash_cv_signal_vintage="svr3"
26134 bash_cv_signal_vintage="v7"
26137 rm -f core conftest.err conftest.$ac_objext \
26138 conftest$ac_exeext conftest.$ac_ext
26141 rm -f core conftest.err conftest.$ac_objext \
26142 conftest$ac_exeext conftest.$ac_ext
26145 rm -f core conftest.err conftest.$ac_objext \
26146 conftest$ac_exeext conftest.$ac_ext
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26151 $as_echo "$bash_cv_signal_vintage" >&6; }
26152 if test "$bash_cv_signal_vintage" = "posix"; then
26153 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26155 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26156 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26158 elif test "$bash_cv_signal_vintage" = "svr3"; then
26159 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26163 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26164 if test "x$ac_cv_type_mode_t" = xyes; then :
26168 cat >>confdefs.h <<_ACEOF
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26175 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26176 if ${ac_cv_type_uid_t+:} false; then :
26177 $as_echo_n "(cached) " >&6
26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h. */
26181 #include <sys/types.h>
26184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26185 $EGREP "uid_t" >/dev/null 2>&1; then :
26186 ac_cv_type_uid_t=yes
26188 ac_cv_type_uid_t=no
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26194 $as_echo "$ac_cv_type_uid_t" >&6; }
26195 if test $ac_cv_type_uid_t = no; then
26197 $as_echo "#define uid_t int" >>confdefs.h
26200 $as_echo "#define gid_t int" >>confdefs.h
26204 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26205 if test "x$ac_cv_type_size_t" = xyes; then :
26209 cat >>confdefs.h <<_ACEOF
26210 #define size_t unsigned int
26215 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26216 if test "x$ac_cv_type_pid_t" = xyes; then :
26220 cat >>confdefs.h <<_ACEOF
26226 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26227 if test "x$ac_cv_type_off_t" = xyes; then :
26231 cat >>confdefs.h <<_ACEOF
26232 #define off_t long int
26238 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26239 if test "x$ac_cv_type_intptr_t" = xyes; then :
26241 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26244 for ac_type in 'int' 'long int' 'long long int'; do
26245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26246 /* end confdefs.h. */
26247 $ac_includes_default
26251 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26258 if ac_fn_c_try_compile "$LINENO"; then :
26260 cat >>confdefs.h <<_ACEOF
26261 #define intptr_t $ac_type
26266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267 test -z "$ac_type" && break
26273 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26274 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26276 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26279 for ac_type in 'unsigned int' 'unsigned long int' \
26280 'unsigned long long int'; do
26281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h. */
26283 $ac_includes_default
26287 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26294 if ac_fn_c_try_compile "$LINENO"; then :
26296 cat >>confdefs.h <<_ACEOF
26297 #define uintptr_t $ac_type
26302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 test -z "$ac_type" && break
26308 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26309 if test "x$ac_cv_type_ino_t" = xyes; then :
26313 cat >>confdefs.h <<_ACEOF
26314 #define ino_t unsigned long
26319 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26320 if test "x$ac_cv_type_dev_t" = xyes; then :
26324 cat >>confdefs.h <<_ACEOF
26325 #define dev_t unsigned long
26330 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26331 if test "x$ac_cv_type_daddr_t" = xyes; then :
26335 cat >>confdefs.h <<_ACEOF
26336 #define daddr_t long
26341 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26342 if test "x$ac_cv_type_major_t" = xyes; then :
26346 cat >>confdefs.h <<_ACEOF
26347 #define major_t int
26352 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26353 if test "x$ac_cv_type_minor_t" = xyes; then :
26357 cat >>confdefs.h <<_ACEOF
26358 #define minor_t int
26363 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26364 if test "x$ac_cv_type_ssize_t" = xyes; then :
26368 cat >>confdefs.h <<_ACEOF
26369 #define ssize_t int
26374 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26375 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26377 cat >>confdefs.h <<_ACEOF
26378 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26382 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26385 case " $LIBOBJS " in
26386 *" fileblocks.$ac_objext "* ) ;;
26387 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26394 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26395 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26397 cat >>confdefs.h <<_ACEOF
26398 #define HAVE_STRUCT_STAT_ST_RDEV 1
26402 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26408 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26409 if ${ac_cv_struct_tm+:} false; then :
26410 $as_echo_n "(cached) " >&6
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h. */
26414 #include <sys/types.h>
26421 int *p = &tm.tm_sec;
26427 if ac_fn_c_try_compile "$LINENO"; then :
26428 ac_cv_struct_tm=time.h
26430 ac_cv_struct_tm=sys/time.h
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26435 $as_echo "$ac_cv_struct_tm" >&6; }
26436 if test $ac_cv_struct_tm = sys/time.h; then
26438 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26443 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26444 if ${ac_cv_c_const+:} false; then :
26445 $as_echo_n "(cached) " >&6
26447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h. */
26453 /* FIXME: Include the comments suggested by Paul. */
26454 #ifndef __cplusplus
26455 /* Ultrix mips cc rejects this. */
26456 typedef int charset[2];
26458 /* SunOS 4.1.1 cc rejects this. */
26459 char const *const *pcpcc;
26461 /* NEC SVR4.0.2 mips cc rejects this. */
26462 struct point {int x, y;};
26463 static struct point const zero = {0,0};
26464 /* AIX XL C 1.02.0.0 rejects this.
26465 It does not let you subtract one const X* pointer from another in
26466 an arm of an if-expression whose if-part is not a constant
26468 const char *g = "string";
26469 pcpcc = &g + (g ? g-g : 0);
26470 /* HPUX 7.0 cc rejects these. */
26472 ppc = (char**) pcpcc;
26473 pcpcc = (char const *const *) ppc;
26474 { /* SCO 3.2v4 cc rejects this. */
26476 char const *s = 0 ? (char *) 0 : (char const *) 0;
26481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26482 int x[] = {25, 17};
26483 const int *foo = &x[0];
26486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26487 typedef const int *iptr;
26491 { /* AIX XL C 1.02.0.0 rejects this saying
26492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26493 struct s { int j; const int *ap[3]; };
26494 struct s *b; b->j = 5;
26496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26497 const int foo = 10;
26498 if (!foo) return 0;
26500 return !cs[0] && !zero.x;
26507 if ac_fn_c_try_compile "$LINENO"; then :
26512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26515 $as_echo "$ac_cv_c_const" >&6; }
26516 if test $ac_cv_c_const = no; then
26518 $as_echo "#define const /**/" >>confdefs.h
26523 # The cast to long int works around a bug in the HP C Compiler
26524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26526 # This bug is HP SR number 8606223364.
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26528 $as_echo_n "checking size of char... " >&6; }
26529 if ${ac_cv_sizeof_char+:} false; then :
26530 $as_echo_n "(cached) " >&6
26532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26535 if test "$ac_cv_type_char" = yes; then
26536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26538 as_fn_error 77 "cannot compute sizeof (char)
26539 See \`config.log' for more details" "$LINENO" 5; }
26541 ac_cv_sizeof_char=0
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26547 $as_echo "$ac_cv_sizeof_char" >&6; }
26551 cat >>confdefs.h <<_ACEOF
26552 #define SIZEOF_CHAR $ac_cv_sizeof_char
26556 # The cast to long int works around a bug in the HP C Compiler
26557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26559 # This bug is HP SR number 8606223364.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26561 $as_echo_n "checking size of short int... " >&6; }
26562 if ${ac_cv_sizeof_short_int+:} false; then :
26563 $as_echo_n "(cached) " >&6
26565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26568 if test "$ac_cv_type_short_int" = yes; then
26569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26571 as_fn_error 77 "cannot compute sizeof (short int)
26572 See \`config.log' for more details" "$LINENO" 5; }
26574 ac_cv_sizeof_short_int=0
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26580 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26584 cat >>confdefs.h <<_ACEOF
26585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26589 # The cast to long int works around a bug in the HP C Compiler
26590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26592 # This bug is HP SR number 8606223364.
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26594 $as_echo_n "checking size of int... " >&6; }
26595 if ${ac_cv_sizeof_int+:} false; then :
26596 $as_echo_n "(cached) " >&6
26598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26601 if test "$ac_cv_type_int" = yes; then
26602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26604 as_fn_error 77 "cannot compute sizeof (int)
26605 See \`config.log' for more details" "$LINENO" 5; }
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26613 $as_echo "$ac_cv_sizeof_int" >&6; }
26617 cat >>confdefs.h <<_ACEOF
26618 #define SIZEOF_INT $ac_cv_sizeof_int
26622 # The cast to long int works around a bug in the HP C Compiler
26623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26625 # This bug is HP SR number 8606223364.
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26627 $as_echo_n "checking size of long int... " >&6; }
26628 if ${ac_cv_sizeof_long_int+:} false; then :
26629 $as_echo_n "(cached) " >&6
26631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26634 if test "$ac_cv_type_long_int" = yes; then
26635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26637 as_fn_error 77 "cannot compute sizeof (long int)
26638 See \`config.log' for more details" "$LINENO" 5; }
26640 ac_cv_sizeof_long_int=0
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26646 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26650 cat >>confdefs.h <<_ACEOF
26651 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26655 # The cast to long int works around a bug in the HP C Compiler
26656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26658 # This bug is HP SR number 8606223364.
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26660 $as_echo_n "checking size of long long int... " >&6; }
26661 if ${ac_cv_sizeof_long_long_int+:} false; then :
26662 $as_echo_n "(cached) " >&6
26664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26667 if test "$ac_cv_type_long_long_int" = yes; then
26668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26670 as_fn_error 77 "cannot compute sizeof (long long int)
26671 See \`config.log' for more details" "$LINENO" 5; }
26673 ac_cv_sizeof_long_long_int=0
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26679 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26683 cat >>confdefs.h <<_ACEOF
26684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26688 # The cast to long int works around a bug in the HP C Compiler
26689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26691 # This bug is HP SR number 8606223364.
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26693 $as_echo_n "checking size of int *... " >&6; }
26694 if ${ac_cv_sizeof_int_p+:} false; then :
26695 $as_echo_n "(cached) " >&6
26697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26700 if test "$ac_cv_type_int_p" = yes; then
26701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26703 as_fn_error 77 "cannot compute sizeof (int *)
26704 See \`config.log' for more details" "$LINENO" 5; }
26706 ac_cv_sizeof_int_p=0
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26712 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26716 cat >>confdefs.h <<_ACEOF
26717 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26723 $as_echo_n "checking for u_int type... " >&6; }
26724 if ${ac_cv_have_u_int+:} false; then :
26725 $as_echo_n "(cached) " >&6
26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h. */
26731 #include <sys/types.h>
26743 if ac_fn_c_try_compile "$LINENO"; then :
26745 ac_cv_have_u_int="yes"
26749 ac_cv_have_u_int="no"
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26758 $as_echo "$ac_cv_have_u_int" >&6; }
26759 if test "x$ac_cv_have_u_int" = "xyes" ; then
26760 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26766 $as_echo_n "checking for intmax_t type... " >&6; }
26767 if ${ac_cv_have_intmax_t+:} false; then :
26768 $as_echo_n "(cached) " >&6
26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26772 /* end confdefs.h. */
26774 #include <sys/types.h>
26786 if ac_fn_c_try_compile "$LINENO"; then :
26788 ac_cv_have_intmax_t="yes"
26792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26793 /* end confdefs.h. */
26795 #include <stdint.h>
26807 if ac_fn_c_try_compile "$LINENO"; then :
26809 ac_cv_have_intmax_t="yes"
26813 ac_cv_have_intmax_t="no"
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26826 $as_echo "$ac_cv_have_intmax_t" >&6; }
26827 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26828 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26834 $as_echo_n "checking for u_intmax_t type... " >&6; }
26835 if ${ac_cv_have_u_intmax_t+:} false; then :
26836 $as_echo_n "(cached) " >&6
26839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26840 /* end confdefs.h. */
26842 #include <sys/types.h>
26848 u_intmax_t a; a = 1;
26854 if ac_fn_c_try_compile "$LINENO"; then :
26856 ac_cv_have_u_intmax_t="yes"
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26863 #include <stdint.h>
26869 u_intmax_t a; a = 1;
26875 if ac_fn_c_try_compile "$LINENO"; then :
26877 ac_cv_have_u_intmax_t="yes"
26881 ac_cv_have_u_intmax_t="no"
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26894 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26896 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26902 $as_echo_n "checking for intXX_t types... " >&6; }
26903 if ${ac_cv_have_intxx_t+:} false; then :
26904 $as_echo_n "(cached) " >&6
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26910 #include <sys/types.h>
26916 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26922 if ac_fn_c_try_compile "$LINENO"; then :
26924 ac_cv_have_intxx_t="yes"
26928 ac_cv_have_intxx_t="no"
26932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26937 $as_echo "$ac_cv_have_intxx_t" >&6; }
26938 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26939 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26945 $as_echo_n "checking for int64_t type... " >&6; }
26946 if ${ac_cv_have_int64_t+:} false; then :
26947 $as_echo_n "(cached) " >&6
26950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951 /* end confdefs.h. */
26953 #include <sys/types.h>
26965 if ac_fn_c_try_compile "$LINENO"; then :
26967 ac_cv_have_int64_t="yes"
26971 ac_cv_have_int64_t="no"
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26980 $as_echo "$ac_cv_have_int64_t" >&6; }
26981 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26982 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26988 $as_echo_n "checking for u_intXX_t types... " >&6; }
26989 if ${ac_cv_have_u_intxx_t+:} false; then :
26990 $as_echo_n "(cached) " >&6
26993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26994 /* end confdefs.h. */
26996 #include <sys/types.h>
27002 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27008 if ac_fn_c_try_compile "$LINENO"; then :
27010 ac_cv_have_u_intxx_t="yes"
27014 ac_cv_have_u_intxx_t="no"
27018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27023 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27024 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27025 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27031 $as_echo_n "checking for u_int64_t types... " >&6; }
27032 if ${ac_cv_have_u_int64_t+:} false; then :
27033 $as_echo_n "(cached) " >&6
27036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h. */
27039 #include <sys/types.h>
27045 u_int64_t a; a = 1;
27051 if ac_fn_c_try_compile "$LINENO"; then :
27053 ac_cv_have_u_int64_t="yes"
27057 ac_cv_have_u_int64_t="no"
27061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27066 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27068 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27074 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27077 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079 /* end confdefs.h. */
27081 #include <sys/bitypes.h>
27087 int8_t a; int16_t b; int32_t c;
27088 u_int8_t e; u_int16_t f; u_int32_t g;
27089 a = b = c = e = f = g = 1;
27095 if ac_fn_c_try_compile "$LINENO"; then :
27097 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27099 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27101 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27104 $as_echo "yes" >&6; }
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27109 $as_echo "no" >&6; }
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116 if test -z "$have_u_intxx_t" ; then
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27118 $as_echo_n "checking for uintXX_t types... " >&6; }
27119 if ${ac_cv_have_uintxx_t+:} false; then :
27120 $as_echo_n "(cached) " >&6
27123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27124 /* end confdefs.h. */
27126 #include <sys/types.h>
27132 uint8_t a; uint16_t b;
27133 uint32_t c; a = b = c = 1;
27139 if ac_fn_c_try_compile "$LINENO"; then :
27141 ac_cv_have_uintxx_t="yes"
27145 ac_cv_have_uintxx_t="no"
27149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27154 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27155 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27156 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27161 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27162 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27165 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h. */
27169 #include <sys/bitypes.h>
27175 int64_t a; u_int64_t b;
27182 if ac_fn_c_try_compile "$LINENO"; then :
27184 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27186 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189 $as_echo "yes" >&6; }
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194 $as_echo "no" >&6; }
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27201 if (test -z "$have_uintxx_t" && \
27202 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27205 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27209 #include <sys/bitypes.h>
27215 uint8_t a; uint16_t b;
27216 uint32_t c; a = b = c = 1;
27222 if ac_fn_c_try_compile "$LINENO"; then :
27224 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27227 $as_echo "yes" >&6; }
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27232 $as_echo "no" >&6; }
27236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27258 cat >>confdefs.h <<_ACEOF
27259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27263 echo 'configure: cannot find needed function.'; exit 1
27269 for ac_func in getpagesize
27271 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27272 if test "x$ac_cv_func_getpagesize" = xyes; then :
27273 cat >>confdefs.h <<_ACEOF
27274 #define HAVE_GETPAGESIZE 1
27277 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27282 for ac_func in malloc_trim
27284 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27285 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27286 cat >>confdefs.h <<_ACEOF
27287 #define HAVE_MALLOC_TRIM 1
27290 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27296 for ac_func in fchdir
27298 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27299 if test "x$ac_cv_func_fchdir" = xyes; then :
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_FCHDIR 1
27303 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27308 for ac_func in strtoll
27310 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27311 if test "x$ac_cv_func_strtoll" = xyes; then :
27312 cat >>confdefs.h <<_ACEOF
27313 #define HAVE_STRTOLL 1
27315 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27320 for ac_func in posix_fadvise
27322 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27323 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27324 cat >>confdefs.h <<_ACEOF
27325 #define HAVE_POSIX_FADVISE 1
27331 for ac_func in fdatasync
27333 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27334 if test "x$ac_cv_func_fdatasync" = xyes; then :
27335 cat >>confdefs.h <<_ACEOF
27336 #define HAVE_FDATASYNC 1
27343 for ac_func in chflags
27345 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27346 if test "x$ac_cv_func_chflags" = xyes; then :
27347 cat >>confdefs.h <<_ACEOF
27348 #define HAVE_CHFLAGS 1
27355 for ac_func in snprintf vsnprintf gethostid fseeko
27357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27360 cat >>confdefs.h <<_ACEOF
27361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27369 $as_echo_n "checking for va_copy... " >&6; }
27370 if ${ba_cv_va_copy+:} false; then :
27371 $as_echo_n "(cached) " >&6
27374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h. */
27377 #include <stdarg.h>
27378 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27379 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27385 call_use_va_copy(1,2,3)
27391 if ac_fn_c_try_link "$LINENO"; then :
27401 rm -f core conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27407 $as_echo "$ba_cv_va_copy" >&6; }
27408 test $ba_cv_va_copy = yes &&
27409 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27412 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27417 cat >>confdefs.h <<_ACEOF
27418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27425 # If resolver functions are not in libc check for -lnsl or -lresolv.
27426 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27427 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27429 $as_echo "using libc's resolver" >&6; }
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27432 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27433 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27434 $as_echo_n "(cached) " >&6
27436 ac_check_lib_save_LIBS=$LIBS
27438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27439 /* end confdefs.h. */
27441 /* Override any GCC internal prototype to avoid an error.
27442 Use char because int might match the return type of a GCC
27443 builtin and then its argument prototype would still apply. */
27447 char gethostbyname_r ();
27451 return gethostbyname_r ();
27456 if ac_fn_c_try_link "$LINENO"; then :
27457 ac_cv_lib_nsl_gethostbyname_r=yes
27459 ac_cv_lib_nsl_gethostbyname_r=no
27461 rm -f core conftest.err conftest.$ac_objext \
27462 conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27466 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27467 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27468 cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBNSL 1
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27477 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27478 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27479 $as_echo_n "(cached) " >&6
27481 ac_check_lib_save_LIBS=$LIBS
27482 LIBS="-lresolv $LIBS"
27483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27484 /* end confdefs.h. */
27486 /* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
27492 char gethostbyname_r ();
27496 return gethostbyname_r ();
27501 if ac_fn_c_try_link "$LINENO"; then :
27502 ac_cv_lib_resolv_gethostbyname_r=yes
27504 ac_cv_lib_resolv_gethostbyname_r=no
27506 rm -f core conftest.err conftest.$ac_objext \
27507 conftest$ac_exeext conftest.$ac_ext
27508 LIBS=$ac_check_lib_save_LIBS
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27511 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27512 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27513 cat >>confdefs.h <<_ACEOF
27514 #define HAVE_LIBRESOLV 1
27517 LIBS="-lresolv $LIBS"
27524 for ac_func in inet_pton
27526 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27527 if test "x$ac_cv_func_inet_pton" = xyes; then :
27528 cat >>confdefs.h <<_ACEOF
27529 #define HAVE_INET_PTON 1
27531 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27536 for ac_func in inet_ntop
27538 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27539 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27540 cat >>confdefs.h <<_ACEOF
27541 #define HAVE_INET_NTOP 1
27543 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27548 for ac_func in gethostbyname2
27550 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27551 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27552 cat >>confdefs.h <<_ACEOF
27553 #define HAVE_GETHOSTBYNAME2 1
27555 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27562 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27563 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27564 $as_echo_n "(cached) " >&6
27567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27568 /* end confdefs.h. */
27570 #include <sys/socket.h>
27576 struct sockaddr s; s.sa_len;
27582 if ac_fn_c_try_compile "$LINENO"; then :
27584 ac_cv_struct_sockaddr_sa_len=yes
27587 ac_cv_struct_sockaddr_sa_len=no
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27596 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27598 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27600 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27604 for ac_func in strftime
27606 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27607 if test "x$ac_cv_func_strftime" = xyes; then :
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_STRFTIME 1
27613 # strftime is in -lintl on SCO UNIX.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27615 $as_echo_n "checking for strftime in -lintl... " >&6; }
27616 if ${ac_cv_lib_intl_strftime+:} false; then :
27617 $as_echo_n "(cached) " >&6
27619 ac_check_lib_save_LIBS=$LIBS
27620 LIBS="-lintl $LIBS"
27621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h. */
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27634 return strftime ();
27639 if ac_fn_c_try_link "$LINENO"; then :
27640 ac_cv_lib_intl_strftime=yes
27642 ac_cv_lib_intl_strftime=no
27644 rm -f core conftest.err conftest.$ac_objext \
27645 conftest$ac_exeext conftest.$ac_ext
27646 LIBS=$ac_check_lib_save_LIBS
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27649 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27650 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27651 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27653 LIBS="-lintl $LIBS"
27659 for ac_func in vprintf
27661 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27662 if test "x$ac_cv_func_vprintf" = xyes; then :
27663 cat >>confdefs.h <<_ACEOF
27664 #define HAVE_VPRINTF 1
27667 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27668 if test "x$ac_cv_func__doprnt" = xyes; then :
27670 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27679 # for constant arguments. Useless!
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27681 $as_echo_n "checking for working alloca.h... " >&6; }
27682 if ${ac_cv_working_alloca_h+:} false; then :
27683 $as_echo_n "(cached) " >&6
27685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27686 /* end confdefs.h. */
27687 #include <alloca.h>
27691 char *p = (char *) alloca (2 * sizeof (int));
27697 if ac_fn_c_try_link "$LINENO"; then :
27698 ac_cv_working_alloca_h=yes
27700 ac_cv_working_alloca_h=no
27702 rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27706 $as_echo "$ac_cv_working_alloca_h" >&6; }
27707 if test $ac_cv_working_alloca_h = yes; then
27709 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27714 $as_echo_n "checking for alloca... " >&6; }
27715 if ${ac_cv_func_alloca_works+:} false; then :
27716 $as_echo_n "(cached) " >&6
27718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27719 /* end confdefs.h. */
27721 # define alloca __builtin_alloca
27724 # include <malloc.h>
27725 # define alloca _alloca
27727 # ifdef HAVE_ALLOCA_H
27728 # include <alloca.h>
27733 # ifndef alloca /* predefined by HP cc +Olibcalls */
27734 void *alloca (size_t);
27744 char *p = (char *) alloca (1);
27750 if ac_fn_c_try_link "$LINENO"; then :
27751 ac_cv_func_alloca_works=yes
27753 ac_cv_func_alloca_works=no
27755 rm -f core conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27759 $as_echo "$ac_cv_func_alloca_works" >&6; }
27761 if test $ac_cv_func_alloca_works = yes; then
27763 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27766 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27767 # that cause trouble. Some versions do not even contain alloca or
27768 # contain a buggy version. If you still want to use their alloca,
27769 # use ar to extract alloca.o from them instead of compiling alloca.c.
27771 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27773 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27777 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27778 if ${ac_cv_os_cray+:} false; then :
27779 $as_echo_n "(cached) " >&6
27781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h. */
27783 #if defined CRAY && ! defined CRAY2
27790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27791 $EGREP "webecray" >/dev/null 2>&1; then :
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27800 $as_echo "$ac_cv_os_cray" >&6; }
27801 if test $ac_cv_os_cray = yes; then
27802 for ac_func in _getb67 GETB67 getb67; do
27803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27807 cat >>confdefs.h <<_ACEOF
27808 #define CRAY_STACKSEG_END $ac_func
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27818 $as_echo_n "checking stack direction for C alloca... " >&6; }
27819 if ${ac_cv_c_stack_direction+:} false; then :
27820 $as_echo_n "(cached) " >&6
27822 if test "$cross_compiling" = yes; then :
27823 ac_cv_c_stack_direction=0
27825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h. */
27827 $ac_includes_default
27829 find_stack_direction ()
27831 static char *addr = 0;
27836 return find_stack_direction ();
27839 return (&dummy > addr) ? 1 : -1;
27845 return find_stack_direction () < 0;
27848 if ac_fn_c_try_run "$LINENO"; then :
27849 ac_cv_c_stack_direction=1
27851 ac_cv_c_stack_direction=-1
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27854 conftest.$ac_objext conftest.beam conftest.$ac_ext
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27859 $as_echo "$ac_cv_c_stack_direction" >&6; }
27860 cat >>confdefs.h <<_ACEOF
27861 #define STACK_DIRECTION $ac_cv_c_stack_direction
27867 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27868 # -lseq on Dynix/PTX, -lgen on Unixware.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27870 $as_echo_n "checking for library containing getmntent... " >&6; }
27871 if ${ac_cv_search_getmntent+:} false; then :
27872 $as_echo_n "(cached) " >&6
27874 ac_func_search_save_LIBS=$LIBS
27875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27876 /* end confdefs.h. */
27878 /* Override any GCC internal prototype to avoid an error.
27879 Use char because int might match the return type of a GCC
27880 builtin and then its argument prototype would still apply. */
27888 return getmntent ();
27893 for ac_lib in '' sun seq gen; do
27894 if test -z "$ac_lib"; then
27895 ac_res="none required"
27898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27900 if ac_fn_c_try_link "$LINENO"; then :
27901 ac_cv_search_getmntent=$ac_res
27903 rm -f core conftest.err conftest.$ac_objext \
27905 if ${ac_cv_search_getmntent+:} false; then :
27909 if ${ac_cv_search_getmntent+:} false; then :
27912 ac_cv_search_getmntent=no
27914 rm conftest.$ac_ext
27915 LIBS=$ac_func_search_save_LIBS
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27918 $as_echo "$ac_cv_search_getmntent" >&6; }
27919 ac_res=$ac_cv_search_getmntent
27920 if test "$ac_res" != no; then :
27921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922 ac_cv_func_getmntent=yes
27924 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27927 ac_cv_func_getmntent=no
27931 for ac_func in getmntinfo
27933 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27934 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27935 cat >>confdefs.h <<_ACEOF
27936 #define HAVE_GETMNTINFO 1
27938 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27944 $as_echo_n "checking whether closedir returns void... " >&6; }
27945 if ${ac_cv_func_closedir_void+:} false; then :
27946 $as_echo_n "(cached) " >&6
27948 if test "$cross_compiling" = yes; then :
27949 ac_cv_func_closedir_void=yes
27951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h. */
27953 $ac_includes_default
27954 #include <$ac_header_dirent>
27955 #ifndef __cplusplus
27962 return closedir (opendir (".")) != 0;
27967 if ac_fn_c_try_run "$LINENO"; then :
27968 ac_cv_func_closedir_void=no
27970 ac_cv_func_closedir_void=yes
27972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27973 conftest.$ac_objext conftest.beam conftest.$ac_ext
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27978 $as_echo "$ac_cv_func_closedir_void" >&6; }
27979 if test $ac_cv_func_closedir_void = yes; then
27981 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27986 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27987 if ${ac_cv_func_setpgrp_void+:} false; then :
27988 $as_echo_n "(cached) " >&6
27990 if test "$cross_compiling" = yes; then :
27991 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h. */
27995 $ac_includes_default
27999 /* If this system has a BSD-style setpgrp which takes arguments,
28000 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28001 exit successfully. */
28002 return setpgrp (1,1) != -1;
28007 if ac_fn_c_try_run "$LINENO"; then :
28008 ac_cv_func_setpgrp_void=no
28010 ac_cv_func_setpgrp_void=yes
28012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28013 conftest.$ac_objext conftest.beam conftest.$ac_ext
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28018 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28019 if test $ac_cv_func_setpgrp_void = yes; then
28021 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28024 # AC_FUNC_FNMATCH dnl use local version
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28027 $as_echo_n "checking for gettext in -lintl... " >&6; }
28028 if ${ac_cv_lib_intl_gettext+:} false; then :
28029 $as_echo_n "(cached) " >&6
28031 ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-lintl $LIBS"
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28051 if ac_fn_c_try_link "$LINENO"; then :
28052 ac_cv_lib_intl_gettext=yes
28054 ac_cv_lib_intl_gettext=no
28056 rm -f core conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
28058 LIBS=$ac_check_lib_save_LIBS
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28061 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28062 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28063 LIBS="$LIBS -lintl"
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28068 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28069 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28070 $as_echo_n "(cached) " >&6
28072 ac_check_lib_save_LIBS=$LIBS
28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h. */
28077 /* Override any GCC internal prototype to avoid an error.
28078 Use char because int might match the return type of a GCC
28079 builtin and then its argument prototype would still apply. */
28087 return getpwnam ();
28092 if ac_fn_c_try_link "$LINENO"; then :
28093 ac_cv_lib_sun_getpwnam=yes
28095 ac_cv_lib_sun_getpwnam=no
28097 rm -f core conftest.err conftest.$ac_objext \
28098 conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28102 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28103 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBSUN 1
28113 for ac_header in zlib.h
28115 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28116 if test "x$ac_cv_header_zlib_h" = xyes; then :
28117 cat >>confdefs.h <<_ACEOF
28118 #define HAVE_ZLIB_H 1
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28126 $as_echo_n "checking for deflate in -lz... " >&6; }
28127 if ${ac_cv_lib_z_deflate+:} false; then :
28128 $as_echo_n "(cached) " >&6
28130 ac_check_lib_save_LIBS=$LIBS
28132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28133 /* end confdefs.h. */
28135 /* Override any GCC internal prototype to avoid an error.
28136 Use char because int might match the return type of a GCC
28137 builtin and then its argument prototype would still apply. */
28150 if ac_fn_c_try_link "$LINENO"; then :
28151 ac_cv_lib_z_deflate=yes
28153 ac_cv_lib_z_deflate=no
28155 rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
28157 LIBS=$ac_check_lib_save_LIBS
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28160 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28161 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28166 if test x$ZLIBS = x-lz; then
28167 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28174 # Check whether --enable-acl was given.
28175 if test "${enable_acl+set}" = set; then :
28176 enableval=$enable_acl;
28177 if test x$enableval = xyes; then
28179 elif test x$enableval = xno; then
28188 have_extended_acl=no
28189 if test x$support_acl = xyes -o x$support_acl = xauto; then
28190 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28191 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28193 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28199 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28200 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28208 if test $have_acl = no; then
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28210 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28211 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28212 $as_echo_n "(cached) " >&6
28214 ac_check_lib_save_LIBS=$LIBS
28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217 /* end confdefs.h. */
28219 /* Override any GCC internal prototype to avoid an error.
28220 Use char because int might match the return type of a GCC
28221 builtin and then its argument prototype would still apply. */
28225 char acl_get_file ();
28229 return acl_get_file ();
28234 if ac_fn_c_try_link "$LINENO"; then :
28235 ac_cv_lib_acl_acl_get_file=yes
28237 ac_cv_lib_acl_acl_get_file=no
28239 rm -f core conftest.err conftest.$ac_objext \
28240 conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28244 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28245 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28248 if test $have_afs = yes; then
28249 if test -d /usr/lib64/; then
28250 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28252 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28255 FDLIBS="-lacl $FDLIBS"
28263 if test $have_acl = no -a \
28264 x${HAVE_OSF1_OS_TRUE} = x; then
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28266 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28267 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28268 $as_echo_n "(cached) " >&6
28270 ac_check_lib_save_LIBS=$LIBS
28271 LIBS="-lpacl $LIBS"
28272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h. */
28275 /* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28281 char acl_get_file ();
28285 return acl_get_file ();
28290 if ac_fn_c_try_link "$LINENO"; then :
28291 ac_cv_lib_pacl_acl_get_file=yes
28293 ac_cv_lib_pacl_acl_get_file=no
28295 rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28300 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28301 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28304 FDLIBS="-lpacl $FDLIBS"
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28311 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28312 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28313 if test $? = 0; then
28315 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318 $as_echo "yes" >&6; }
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321 $as_echo "no" >&6; }
28325 if test $have_acl = yes -a \
28326 x${HAVE_DARWIN_OS_TRUE} = x; then
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28328 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28329 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28330 if test $? = 0; then
28332 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28335 $as_echo "yes" >&6; }
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28338 $as_echo "no" >&6; }
28342 if test $have_acl = yes -a \
28343 x${HAVE_FREEBSD_OS_TRUE} = x; then
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28345 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28346 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28347 if test $? = 0; then
28349 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28352 $as_echo "yes" >&6; }
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28355 $as_echo "no" >&6; }
28359 if test $have_acl = no -a \
28360 x${HAVE_SUN_OS_TRUE} = x; then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28362 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28363 if ${ac_cv_lib_sec_acltotext+:} false; then :
28364 $as_echo_n "(cached) " >&6
28366 ac_check_lib_save_LIBS=$LIBS
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h. */
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply. */
28381 return acltotext ();
28386 if ac_fn_c_try_link "$LINENO"; then :
28387 ac_cv_lib_sec_acltotext=yes
28389 ac_cv_lib_sec_acltotext=no
28391 rm -f core conftest.err conftest.$ac_objext \
28392 conftest$ac_exeext conftest.$ac_ext
28393 LIBS=$ac_check_lib_save_LIBS
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28396 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28397 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28400 FDLIBS="-lsec $FDLIBS"
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28403 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28404 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28405 $as_echo_n "(cached) " >&6
28407 ac_check_lib_save_LIBS=$LIBS
28409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h. */
28412 /* Override any GCC internal prototype to avoid an error.
28413 Use char because int might match the return type of a GCC
28414 builtin and then its argument prototype would still apply. */
28418 char acl_totext ();
28422 return acl_totext ();
28427 if ac_fn_c_try_link "$LINENO"; then :
28428 ac_cv_lib_sec_acl_totext=yes
28430 ac_cv_lib_sec_acl_totext=no
28432 rm -f core conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
28434 LIBS=$ac_check_lib_save_LIBS
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28437 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28438 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28440 have_extended_acl=yes
28451 if test $have_acl = no -a \
28452 x${HAVE_AIX_OS_TRUE} = x; then
28453 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28454 if test "x$ac_cv_func_acl_get" = xyes; then :
28458 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28459 if test "x$ac_cv_func_aclx_get" = xyes; then :
28461 have_extended_acl=yes
28472 if test x$support_acl = xyes -a $have_acl != yes; then
28473 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28474 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28476 if test $have_acl = yes; then
28478 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28482 if test $have_extended_acl = yes; then
28484 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28491 # Check whether --enable-xattr was given.
28492 if test "${enable_xattr+set}" = set; then :
28493 enableval=$enable_xattr;
28494 if test x$enableval = xyes; then
28496 elif test x$enableval = xno; then
28505 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28506 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28507 x${HAVE_NETBSD_OS_TRUE} = x -o \
28508 x${HAVE_OPENBSD_OS_TRUE} = x; then
28509 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28512 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28517 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28518 if test "x$ac_cv_header_libutil_h" = xyes; then :
28520 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28525 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28530 cat >>confdefs.h <<_ACEOF
28531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28536 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28539 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28542 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28550 if test $have_xattr = no; then
28551 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28556 cat >>confdefs.h <<_ACEOF
28557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28562 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28565 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28568 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28577 if test $have_xattr = yes; then
28578 have_extattr_string_in_libc=no
28579 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28584 cat >>confdefs.h <<_ACEOF
28585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28588 have_extattr_string_in_libc=yes
28590 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28593 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28601 if test $have_extattr_string_in_libc = no; then
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28603 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28604 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28605 $as_echo_n "(cached) " >&6
28607 ac_check_lib_save_LIBS=$LIBS
28608 LIBS="-lutil $LIBS"
28609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28610 /* end confdefs.h. */
28612 /* Override any GCC internal prototype to avoid an error.
28613 Use char because int might match the return type of a GCC
28614 builtin and then its argument prototype would still apply. */
28618 char extattr_namespace_to_string extattr_string_to_namespace ();
28622 return extattr_namespace_to_string extattr_string_to_namespace ();
28627 if ac_fn_c_try_link "$LINENO"; then :
28628 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28630 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28632 rm -f core conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
28634 LIBS=$ac_check_lib_save_LIBS
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28637 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28638 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28641 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28644 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28646 FDLIBS="-lutil $FDLIBS"
28655 if test $have_xattr = no -a \
28656 x${HAVE_AIX_OS_TRUE} = x; then
28657 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28658 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28660 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28665 for ac_func in llistea lgetea lsetea
28667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28670 cat >>confdefs.h <<_ACEOF
28671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28676 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28679 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28682 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28690 if test $have_xattr = no; then
28691 for ac_func in listea getea setea
28693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28696 cat >>confdefs.h <<_ACEOF
28697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28702 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28705 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28708 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28718 if test $have_xattr = no -a \
28719 x${HAVE_OSF1_OS_TRUE} = x; then
28720 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28721 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28723 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28728 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28732 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28733 cat >>confdefs.h <<_ACEOF
28734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28739 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28742 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28745 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28748 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28751 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28760 if test $have_xattr = no -a \
28761 x${HAVE_SUN_OS_TRUE} = x; then
28762 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28763 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28765 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28770 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28771 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28773 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28778 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28779 if test "x$ac_cv_header_attr_h" = xyes; then :
28781 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28787 for ac_func in openat fstatat unlinkat fchownat futimesat
28789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28792 cat >>confdefs.h <<_ACEOF
28793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28798 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28801 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28804 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28807 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28810 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28818 if test $have_xattr = yes; then
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28820 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28821 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28822 $as_echo_n "(cached) " >&6
28824 ac_check_lib_save_LIBS=$LIBS
28825 LIBS="-lnvpair $LIBS"
28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h. */
28829 /* Override any GCC internal prototype to avoid an error.
28830 Use char because int might match the return type of a GCC
28831 builtin and then its argument prototype would still apply. */
28835 char nvlist_next_nvpair ();
28839 return nvlist_next_nvpair ();
28844 if ac_fn_c_try_link "$LINENO"; then :
28845 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28847 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28849 rm -f core conftest.err conftest.$ac_objext \
28850 conftest$ac_exeext conftest.$ac_ext
28851 LIBS=$ac_check_lib_save_LIBS
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28854 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28855 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28858 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28860 FDLIBS="-lnvpair $FDLIBS"
28868 if test $have_xattr = no; then
28869 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28870 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28872 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28877 for ac_func in llistxattr lgetxattr lsetxattr
28879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28882 cat >>confdefs.h <<_ACEOF
28883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28888 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28891 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28894 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28902 if test $have_xattr = no; then
28903 for ac_func in listxattr getxattr setxattr
28905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28908 cat >>confdefs.h <<_ACEOF
28909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28914 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28917 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28920 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28930 if test x$support_xattr = xyes -a $have_xattr != yes; then
28931 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28932 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28934 if test $have_xattr = yes; then
28936 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28944 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28945 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
28946 $as_echo_n "(cached) " >&6
28948 ac_check_lib_save_LIBS=$LIBS
28949 LIBS="-lpthread $LIBS"
28950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h. */
28953 /* Override any GCC internal prototype to avoid an error.
28954 Use char because int might match the return type of a GCC
28955 builtin and then its argument prototype would still apply. */
28959 char pthread_create ();
28963 return pthread_create ();
28968 if ac_fn_c_try_link "$LINENO"; then :
28969 ac_cv_lib_pthread_pthread_create=yes
28971 ac_cv_lib_pthread_pthread_create=no
28973 rm -f core conftest.err conftest.$ac_objext \
28974 conftest$ac_exeext conftest.$ac_ext
28975 LIBS=$ac_check_lib_save_LIBS
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28978 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28979 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
28980 PTHREAD_LIB="-lpthread"
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28984 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28985 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
28986 $as_echo_n "(cached) " >&6
28988 ac_check_lib_save_LIBS=$LIBS
28989 LIBS="-lpthreads $LIBS"
28990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28991 /* end confdefs.h. */
28993 /* Override any GCC internal prototype to avoid an error.
28994 Use char because int might match the return type of a GCC
28995 builtin and then its argument prototype would still apply. */
28999 char pthread_create ();
29003 return pthread_create ();
29008 if ac_fn_c_try_link "$LINENO"; then :
29009 ac_cv_lib_pthreads_pthread_create=yes
29011 ac_cv_lib_pthreads_pthread_create=no
29013 rm -f core conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
29015 LIBS=$ac_check_lib_save_LIBS
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29018 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29019 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29020 PTHREAD_LIB="-lpthreads"
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29024 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29025 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29026 $as_echo_n "(cached) " >&6
29028 ac_check_lib_save_LIBS=$LIBS
29030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29031 /* end confdefs.h. */
29033 /* Override any GCC internal prototype to avoid an error.
29034 Use char because int might match the return type of a GCC
29035 builtin and then its argument prototype would still apply. */
29039 char pthread_create ();
29043 return pthread_create ();
29048 if ac_fn_c_try_link "$LINENO"; then :
29049 ac_cv_lib_c_r_pthread_create=yes
29051 ac_cv_lib_c_r_pthread_create=no
29053 rm -f core conftest.err conftest.$ac_objext \
29054 conftest$ac_exeext conftest.$ac_ext
29055 LIBS=$ac_check_lib_save_LIBS
29057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29058 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29059 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29060 PTHREAD_LIB="-lc_r"
29063 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29064 if test "x$ac_cv_func_pthread_create" = xyes; then :
29081 for ac_header in sys/prctl.h sys/capability.h
29083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29086 cat >>confdefs.h <<_ACEOF
29087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29094 for ac_func in prctl setreuid
29096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29099 cat >>confdefs.h <<_ACEOF
29100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29107 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29108 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29109 $as_echo_n "(cached) " >&6
29111 ac_check_lib_save_LIBS=$LIBS
29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29114 /* end confdefs.h. */
29116 /* Override any GCC internal prototype to avoid an error.
29117 Use char because int might match the return type of a GCC
29118 builtin and then its argument prototype would still apply. */
29122 char cap_set_proc ();
29126 return cap_set_proc ();
29131 if ac_fn_c_try_link "$LINENO"; then :
29132 ac_cv_lib_cap_cap_set_proc=yes
29134 ac_cv_lib_cap_cap_set_proc=no
29136 rm -f core conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29141 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29142 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29148 if test x$CAP_LIBS = x-lcap; then
29150 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29156 $as_echo "#define FDLIBS 1" >>confdefs.h
29159 CFLAGS=${CFLAGS--O}
29161 if test x$have_gcc = xyes ; then
29162 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29163 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29165 LDFLAGS=${LDFLAGS--O}
29166 CPPFLAGS="$CPPFLAGS"
29192 PFILES="platforms/Makefile"
29196 COMPRESS_MANPAGES=yes
29198 hostname=`uname -n | cut -d '.' -f 1`
29199 if test x${hostname} = x ; then
29200 hostname="localhost"
29202 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29203 if test ! $? = 0; then
29204 hostname="localhost"
29207 case "$DISTNAME" in
29210 PSCMD="ps -e -o pid,comm"
29211 PFILES="${PFILES} \
29212 platforms/aix/Makefile"
29213 TAPEDRIVE="/dev/rmt0.1"
29217 PTHREAD_LIB="-lpthread -lexc"
29218 if test "${CC}" = "gcc" ; then
29225 TAPEDRIVE="/dev/nrmt0"
29228 DISTVER=`uname -a |awk '{print $3}'`
29229 TAPEDRIVE="/dev/nrmt0"
29230 PTHREAD_LIB="-pthread"
29231 CFLAGS="${CFLAGS} -pthread"
29232 PSCMD="ps -ax -o pid,command"
29235 PFILES="${PFILES} \
29236 platforms/bsdi/Makefile \
29237 platforms/bsdi/bacula-fd \
29238 platforms/bsdi/bacula-sd \
29239 platforms/bsdi/bacula-dir"
29240 largefile_support="yes"
29243 DISTVER=`uname -a |awk '{print $3}'`
29244 TAPEDRIVE="/dev/nrst0"
29246 WCFLAGS="-mwindows"
29247 WLDFLAGS="-mwindows"
29251 TAPEDRIVE="/dev/nst0"
29252 PSCMD="ps -e -o pid,command"
29254 PFILES="${PFILES} \
29255 platforms/darwin/Makefile"
29259 TAPEDRIVE="/dev/nst0"
29260 PSCMD="ps -e -o pid,command"
29262 PFILES="${PFILES} \
29263 platforms/osx/Makefile"
29266 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29269 DISTVER=`cat /etc/debian_version`
29270 if test -f /etc/lsb-release ; then
29272 if test "x$DISTRIB_ID" != "x" ; then
29273 DISTNAME=$DISTRIB_ID
29275 if test "x$DISTRIB_RELEASE" != "x" ; then
29276 DISTVER=$DISTRIB_RELEASE
29279 if test "$DISTNAME" = "Ubuntu" ; then
29282 TAPEDRIVE="/dev/nst0"
29283 PSCMD="ps -e -o pid,command"
29284 if test "$DISTNAME" = "ubuntu" ; then
29285 PFILES="${PFILES} \
29286 platforms/ubuntu/Makefile \
29287 platforms/ubuntu/bacula-fd \
29288 platforms/ubuntu/bacula-sd \
29289 platforms/ubuntu/bacula-dir"
29291 PFILES="${PFILES} \
29292 platforms/debian/Makefile \
29293 platforms/debian/bacula-fd \
29294 platforms/debian/bacula-sd \
29295 platforms/debian/bacula-dir"
29299 DISTVER=`uname -a |awk '{print $3}'`
29300 VER=`echo $DISTVER | cut -c 1`
29301 if test x$VER = x4 ; then
29302 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29303 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29307 TAPEDRIVE="/dev/nrsa0"
29308 PSCMD="ps -ax -o pid,command"
29309 PFILES="${PFILES} \
29310 platforms/freebsd/Makefile \
29311 platforms/freebsd/bacula-fd \
29312 platforms/freebsd/bacula-sd \
29313 platforms/freebsd/bacula-dir"
29314 largefile_support="yes"
29317 PSCMD="UNIX95=1; ps -e -o pid,comm"
29318 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29320 TAPEDRIVE="/dev/rmt/0hnb"
29321 PTHREAD_LIB="-lpthread"
29322 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29327 TAPEDRIVE="/dev/rmt/0cbn"
29328 PSCMD="ps -e -o pid,comm"
29329 PFILES="${PFILES} \
29330 platforms/irix/Makefile \
29331 platforms/irix/bacula-fd \
29332 platforms/irix/bacula-sd \
29333 platforms/irix/bacula-dir"
29336 DISTVER=`uname -a |awk '{print $3}'`
29339 TAPEDRIVE="/dev/nrst0"
29340 PSCMD="ps -ax -o pid,command"
29341 PTHREAD_LIB="-pthread"
29342 CFLAGS="${CFLAGS} -pthread"
29345 DISTVER=`uname -a |awk '{print $3}'`
29348 TAPEDRIVE="/dev/nrst0"
29349 PSCMD="ps -ax -o pid,command"
29350 PTHREAD_LIB="-pthread"
29351 CFLAGS="${CFLAGS} -pthread"
29352 PFILES="${PFILES} \
29353 platforms/openbsd/Makefile \
29354 platforms/openbsd/bacula-fd \
29355 platforms/openbsd/bacula-sd \
29356 platforms/openbsd/bacula-dir"
29359 if test -f /etc/whitebox-release ; then
29360 f=/etc/whitebox-release
29362 f=/etc/redhat-release
29364 if test `cat $f | grep release |\
29365 cut -f 3 -d ' '`x = "Enterprise"x ; then
29366 DISTVER="Enterprise "`cat $f | grep release |\
29369 DISTVER=`cat /etc/redhat-release | grep release |\
29372 TAPEDRIVE="/dev/nst0"
29373 PSCMD="ps -e -o pid,command"
29374 PFILES="${PFILES} \
29375 platforms/redhat/Makefile \
29376 platforms/redhat/bacula-fd \
29377 platforms/redhat/bacula-sd \
29378 platforms/redhat/bacula-dir
29382 DISTVER=`cat /etc/mandrake-release | grep release |\
29384 TAPEDRIVE="/dev/nst0"
29385 PSCMD="ps -e -o pid,command"
29386 PFILES="${PFILES} \
29387 platforms/mandrake/Makefile \
29388 platforms/mandrake/bacula-fd \
29389 platforms/mandrake/bacula-sd \
29390 platforms/mandrake/bacula-dir \
29394 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29395 TAPEDRIVE="/dev/nst0"
29396 PSCMD="ps -e -o pid,command"
29397 PFILES="${PFILES} \
29398 platforms/gentoo/Makefile \
29399 platforms/gentoo/bacula-init \
29400 platforms/gentoo/bacula-fd \
29401 platforms/gentoo/bacula-sd \
29402 platforms/gentoo/bacula-dir"
29405 DISTVER=`cat /etc/slackware-version`
29406 TAPEDRIVE="/dev/nst0"
29407 PSCMD="ps -e -o pid,command"
29408 PFILES="${PFILES} \
29409 platforms/slackware/Makefile \
29410 platforms/slackware/rc.bacula-fd \
29411 platforms/slackware/rc.bacula-sd \
29412 platforms/slackware/rc.bacula-dir\
29413 platforms/slackware/functions.bacula"
29417 TAPEDRIVE="/dev/rmt/0cbn"
29418 PSCMD="ps -e -o pid,comm"
29419 PFILES="${PFILES} \
29420 platforms/solaris/Makefile \
29421 platforms/solaris/bacula-fd \
29422 platforms/solaris/bacula-sd \
29423 platforms/solaris/bacula-dir"
29427 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29429 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29433 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29439 LIBS="$LIBS -lresolv -lrt"
29442 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29444 TAPEDRIVE="/dev/nst0"
29445 PSCMD="ps -e -o pid,command"
29446 PFILES="${PFILES} \
29447 platforms/suse/Makefile \
29448 platforms/suse/bacula-fd \
29449 platforms/suse/bacula-sd \
29450 platforms/suse/bacula-dir \
29451 platforms/suse/bacula"
29456 TAPEDRIVE="/dev/nst0"
29457 PSCMD="ps -e -o pid,command"
29458 PFILES="${PFILES} \
29459 platforms/suse/Makefile \
29460 platforms/suse/bacula-fd \
29461 platforms/suse/bacula-sd \
29462 platforms/suse/bacula-dir"
29466 TAPEDRIVE="/dev/nst0"
29469 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29475 LIBS="$PTHREAD_LIB $LIBS"
29477 cat >>confdefs.h <<_ACEOF
29481 cat >>confdefs.h <<_ACEOF
29493 MCOMMON=./autoconf/Make.common
29496 if test "x${subsysdir}" = "x${sbindir}" ; then
29499 echo "You have set both --sbindir and --with-subsys-dir"
29500 echo " equal to: ${subsysdir} "
29501 echo "This is not permitted. Please reconfigure."
29503 echo "Aborting configuration ..."
29509 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"
29511 ac_config_commands="$ac_config_commands default"
29513 cat >confcache <<\_ACEOF
29514 # This file is a shell script that caches the results of configure
29515 # tests run on this system so they can be shared between configure
29516 # scripts and configure runs, see configure's option --config-cache.
29517 # It is not useful on other systems. If it contains results you don't
29518 # want to keep, you may remove or edit it.
29520 # config.status only pays attention to the cache file if you give it
29521 # the --recheck option to rerun configure.
29523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29525 # following values.
29529 # The following way of writing the cache mishandles newlines in values,
29530 # but we know of no workaround that is simple, portable, and efficient.
29531 # So, we kill variables containing newlines.
29532 # Ultrix sh set writes to stderr and can't be redirected directly,
29533 # and sets the high bit in the cache file unless we assign to the vars.
29535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29536 eval ac_val=\$$ac_var
29540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29544 _ | IFS | as_nl) ;; #(
29545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29546 *) { eval $ac_var=; unset $ac_var;} ;;
29552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29553 *${as_nl}ac_space=\ *)
29554 # `set' does not quote correctly, so add quotes: double-quote
29555 # substitution turns \\\\ into \\, and sed turns \\ into \.
29558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29561 # `set' quotes correctly as required by POSIX, so do not add quotes.
29562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29576 if test -w "$cache_file"; then
29577 if test "x$cache_file" != "x/dev/null"; then
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29579 $as_echo "$as_me: updating cache $cache_file" >&6;}
29580 if test ! -f "$cache_file" || test -h "$cache_file"; then
29581 cat confcache >"$cache_file"
29583 case $cache_file in #(
29585 mv -f confcache "$cache_file"$$ &&
29586 mv -f "$cache_file"$$ "$cache_file" ;; #(
29588 mv -f confcache "$cache_file" ;;
29593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29600 # Let make expand exec_prefix.
29601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29603 DEFS=-DHAVE_CONFIG_H
29608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29609 # 1. Remove the extension, and $U if already installed.
29610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29613 # will be set to the directory where LIBOBJS objects are built.
29614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29617 LIBOBJS=$ac_libobjs
29619 LTLIBOBJS=$ac_ltlibobjs
29624 : "${CONFIG_STATUS=./config.status}"
29626 ac_clean_files_save=$ac_clean_files
29627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29633 # Generated by $as_me.
29634 # Run this file to recreate the current configuration.
29635 # Compiler output produced by configure, useful for debugging
29636 # configure, is in config.log if it exists.
29639 ac_cs_recheck=false
29642 SHELL=\${CONFIG_SHELL-$SHELL}
29645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29646 ## -------------------- ##
29647 ## M4sh Initialization. ##
29648 ## -------------------- ##
29650 # Be more Bourne compatible
29651 DUALCASE=1; export DUALCASE # for MKS sh
29652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29656 # is contrary to our usage. Disable this feature.
29657 alias -g '${1+"$@"}'='"$@"'
29658 setopt NO_GLOB_SUBST
29660 case `(set -o) 2>/dev/null` in #(
29672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29676 # Prefer a ksh shell builtin over an external printf program on Solaris,
29677 # but without wasting forks for bash or zsh.
29678 if test -z "$BASH_VERSION$ZSH_VERSION" \
29679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29680 as_echo='print -r --'
29681 as_echo_n='print -rn --'
29682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29683 as_echo='printf %s\n'
29684 as_echo_n='printf %s'
29686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29688 as_echo_n='/usr/ucb/echo -n'
29690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29691 as_echo_n_body='eval
29695 expr "X$arg" : "X\\(.*\\)$as_nl";
29696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29700 export as_echo_n_body
29701 as_echo_n='sh -c $as_echo_n_body as_echo'
29703 export as_echo_body
29704 as_echo='sh -c $as_echo_body as_echo'
29707 # The user is always right.
29708 if test "${PATH_SEPARATOR+set}" != set; then
29710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29718 # We need space, tab and new line, in precisely that order. Quoting is
29719 # there to prevent editors from complaining about space-tab.
29720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29721 # splitting by setting IFS to empty value.)
29724 # Find who we are. Look in the path if we contain no directory separator.
29727 *[\\/]* ) as_myself=$0 ;;
29728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29729 for as_dir in $PATH
29732 test -z "$as_dir" && as_dir=.
29733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29739 # We did not find ourselves, most probably we were run as `sh COMMAND'
29740 # in which case we are not to be found in the path.
29741 if test "x$as_myself" = x; then
29744 if test ! -f "$as_myself"; then
29745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29749 # Unset variables that we do not need and which cause bugs (e.g. in
29750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29751 # suppresses any "Segmentation fault" message there. '((' could
29752 # trigger a bug in pdksh 5.2.14.
29753 for as_var in BASH_ENV ENV MAIL MAILPATH
29754 do eval test x\${$as_var+set} = xset \
29755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29772 # ----------------------------------------
29773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29775 # script with STATUS, using 1 if that was 0.
29778 as_status=$1; test $as_status -eq 0 && as_status=1
29780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29783 $as_echo "$as_me: error: $2" >&2
29784 as_fn_exit $as_status
29788 # as_fn_set_status STATUS
29789 # -----------------------
29790 # Set $? to STATUS, without forking.
29791 as_fn_set_status ()
29794 } # as_fn_set_status
29796 # as_fn_exit STATUS
29797 # -----------------
29798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29802 as_fn_set_status $1
29808 # Portably unset VAR.
29811 { eval $1=; unset $1;}
29813 as_unset=as_fn_unset
29814 # as_fn_append VAR VALUE
29815 # ----------------------
29816 # Append the text in VALUE to the end of the definition contained in VAR. Take
29817 # advantage of any shell optimizations that allow amortized linear growth over
29818 # repeated appends, instead of the typical quadratic growth present in naive
29820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29821 eval 'as_fn_append ()
29832 # as_fn_arith ARG...
29833 # ------------------
29834 # Perform arithmetic evaluation on the ARGs, and store the result in the
29835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29836 # must be portable across $(()) and expr.
29837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29838 eval 'as_fn_arith ()
29845 as_val=`expr "$@" || test $? -eq 1`
29850 if expr a : '\(a\)' >/dev/null 2>&1 &&
29851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29858 as_basename=basename
29863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29869 as_me=`$as_basename -- "$0" ||
29870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29871 X"$0" : 'X\(//\)$' \| \
29872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29874 sed '/^.*\/\([^/][^/]*\)\/*$/{
29888 # Avoid depending upon Character Ranges.
29889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29892 as_cr_digits='0123456789'
29893 as_cr_alnum=$as_cr_Letters$as_cr_digits
29895 ECHO_C= ECHO_N= ECHO_T=
29896 case `echo -n x` in #(((((
29898 case `echo 'xy\c'` in
29899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29908 rm -f conf$$ conf$$.exe conf$$.file
29909 if test -d conf$$.dir; then
29910 rm -f conf$$.dir/conf$$.file
29913 mkdir conf$$.dir 2>/dev/null
29915 if (echo >conf$$.file) 2>/dev/null; then
29916 if ln -s conf$$.file conf$$ 2>/dev/null; then
29918 # ... but there are two gotchas:
29919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29921 # In both cases, we have to default to `cp -p'.
29922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29924 elif ln conf$$.file conf$$ 2>/dev/null; then
29932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29933 rmdir conf$$.dir 2>/dev/null
29938 # Create "$as_dir" as a directory, including parents if necessary.
29943 -*) as_dir=./$as_dir;;
29945 test -d "$as_dir" || eval $as_mkdir_p || {
29949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29950 *) as_qdir=$as_dir;;
29952 as_dirs="'$as_qdir' $as_dirs"
29953 as_dir=`$as_dirname -- "$as_dir" ||
29954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29955 X"$as_dir" : 'X\(//\)[^/]' \| \
29956 X"$as_dir" : 'X\(//\)$' \| \
29957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29958 $as_echo X"$as_dir" |
29959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29963 /^X\(\/\/\)[^/].*/{
29976 test -d "$as_dir" && break
29978 test -z "$as_dirs" || eval "mkdir $as_dirs"
29979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29983 if mkdir -p . 2>/dev/null; then
29984 as_mkdir_p='mkdir -p "$as_dir"'
29986 test -d ./-p && rmdir ./-p
29990 if test -x / >/dev/null 2>&1; then
29991 as_test_x='test -x'
29993 if ls -dL / >/dev/null 2>&1; then
30000 if test -d "$1"; then
30006 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30007 ???[sx]*):;;*)false;;esac;fi
30011 as_executable_p=$as_test_x
30013 # Sed expression to map a string onto a valid CPP name.
30014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30016 # Sed expression to map a string onto a valid variable name.
30017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30021 ## ----------------------------------- ##
30022 ## Main body of $CONFIG_STATUS script. ##
30023 ## ----------------------------------- ##
30025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30028 # Save the log message, to keep $0 and so on meaningful, and to
30029 # report actual input values of CONFIG_FILES etc. instead of their
30030 # values after options handling.
30032 This file was extended by bacula $as_me 5.1.14, which was
30033 generated by GNU Autoconf 2.68. Invocation command line was
30035 CONFIG_FILES = $CONFIG_FILES
30036 CONFIG_HEADERS = $CONFIG_HEADERS
30037 CONFIG_LINKS = $CONFIG_LINKS
30038 CONFIG_COMMANDS = $CONFIG_COMMANDS
30041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30046 case $ac_config_files in *"
30047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30050 case $ac_config_headers in *"
30051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30056 # Files that config.status was made for.
30057 config_files="$ac_config_files"
30058 config_headers="$ac_config_headers"
30059 config_commands="$ac_config_commands"
30063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30065 \`$as_me' instantiates files and other configuration actions
30066 from templates according to the current configuration. Unless the files
30067 and actions are specified as TAGs, all are instantiated by default.
30069 Usage: $0 [OPTION]... [TAG]...
30071 -h, --help print this help, then exit
30072 -V, --version print version number and configuration settings, then exit
30073 --config print configuration, then exit
30074 -q, --quiet, --silent
30075 do not print progress messages
30076 -d, --debug don't remove temporary files
30077 --recheck update $as_me by reconfiguring in the same conditions
30078 --file=FILE[:TEMPLATE]
30079 instantiate the configuration file FILE
30080 --header=FILE[:TEMPLATE]
30081 instantiate the configuration header FILE
30083 Configuration files:
30086 Configuration headers:
30089 Configuration commands:
30092 Report bugs to the package provider."
30095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30098 bacula config.status 5.1.14
30099 configured by $0, generated by GNU Autoconf 2.68,
30100 with options \\"\$ac_cs_config\\"
30102 Copyright (C) 2010 Free Software Foundation, Inc.
30103 This config.status script is free software; the Free Software Foundation
30104 gives unlimited permission to copy, distribute and modify it."
30110 test -n "\$AWK" || AWK=awk
30113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30114 # The default lists apply if the user does not specify any file.
30120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30137 # Handling of the options.
30138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30141 $as_echo "$ac_cs_version"; exit ;;
30142 --config | --confi | --conf | --con | --co | --c )
30143 $as_echo "$ac_cs_config"; exit ;;
30144 --debug | --debu | --deb | --de | --d | -d )
30146 --file | --fil | --fi | --f )
30149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30150 '') as_fn_error $? "missing file argument" ;;
30152 as_fn_append CONFIG_FILES " '$ac_optarg'"
30153 ac_need_defaults=false;;
30154 --header | --heade | --head | --hea )
30157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30159 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30160 ac_need_defaults=false;;
30162 # Conflict between --help and --header
30163 as_fn_error $? "ambiguous option: \`$1'
30164 Try \`$0 --help' for more information.";;
30165 --help | --hel | -h )
30166 $as_echo "$ac_cs_usage"; exit ;;
30167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30171 # This is an error.
30172 -*) as_fn_error $? "unrecognized option: \`$1'
30173 Try \`$0 --help' for more information." ;;
30175 *) as_fn_append ac_config_targets " $1"
30176 ac_need_defaults=false ;;
30182 ac_configure_extra_args=
30184 if $ac_cs_silent; then
30186 ac_configure_extra_args="$ac_configure_extra_args --silent"
30190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30191 if \$ac_cs_recheck; then
30192 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30195 CONFIG_SHELL='$SHELL'
30196 export CONFIG_SHELL
30201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30206 ## Running $as_me. ##
30212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30218 # The HP-UX ksh and POSIX shell print the target directory to stdout
30219 # if CDPATH is set.
30220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30222 sed_quote_subst='$sed_quote_subst'
30223 double_quote_subst='$double_quote_subst'
30224 delay_variable_subst='$delay_variable_subst'
30225 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30226 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30227 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30228 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30229 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30230 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30231 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30232 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30233 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30234 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30235 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30236 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30237 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30238 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30239 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30240 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30241 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30242 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30243 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30244 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30245 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30246 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30247 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30248 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30249 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30250 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30251 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30252 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30253 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30254 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30255 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30256 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30257 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30258 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30259 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30260 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30261 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30262 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30263 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30264 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30265 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30266 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30267 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30268 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30269 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"`'
30270 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"`'
30271 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30272 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30273 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30274 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30275 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30276 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30277 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30278 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30279 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30280 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30281 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30282 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30283 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30284 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30285 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30286 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30287 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30288 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30289 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30290 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30291 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30292 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30293 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30294 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30295 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30296 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30297 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30298 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30299 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30300 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30301 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30302 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30303 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30304 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30305 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30306 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30307 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30308 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30309 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30310 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30311 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30312 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30313 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30314 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30315 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30316 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30317 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30318 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30319 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30320 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30321 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30322 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30323 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30324 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30325 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30326 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30327 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30328 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30329 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30330 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30331 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30332 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30333 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30334 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30335 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30336 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30337 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30338 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30339 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30340 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30341 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30342 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30343 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30344 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30345 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30346 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30347 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30348 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30349 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30385 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30386 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30387 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30388 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30389 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30390 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30391 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30392 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30393 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30394 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30395 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30398 LTCFLAGS='$LTCFLAGS'
30399 compiler='$compiler_DEFAULT'
30401 # Quote evaled strings.
30413 deplibs_check_method \
30422 lt_cv_sys_global_symbol_pipe \
30423 lt_cv_sys_global_symbol_to_cdecl \
30424 lt_cv_sys_global_symbol_to_c_name_address \
30425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30428 lt_prog_compiler_no_builtin_flag \
30429 lt_prog_compiler_wl \
30430 lt_prog_compiler_pic \
30431 lt_prog_compiler_static \
30432 lt_cv_prog_compiler_c_o \
30440 export_dynamic_flag_spec \
30441 whole_archive_flag_spec \
30442 compiler_needs_object \
30444 allow_undefined_flag \
30445 no_undefined_flag \
30446 hardcode_libdir_flag_spec \
30447 hardcode_libdir_flag_spec_ld \
30448 hardcode_libdir_separator \
30453 variables_saved_for_relink \
30455 library_names_spec \
30460 compiler_lib_search_dirs \
30465 compiler_lib_search_path \
30468 lt_prog_compiler_no_builtin_flag_CXX \
30469 lt_prog_compiler_wl_CXX \
30470 lt_prog_compiler_pic_CXX \
30471 lt_prog_compiler_static_CXX \
30472 lt_cv_prog_compiler_c_o_CXX \
30473 export_dynamic_flag_spec_CXX \
30474 whole_archive_flag_spec_CXX \
30475 compiler_needs_object_CXX \
30477 allow_undefined_flag_CXX \
30478 no_undefined_flag_CXX \
30479 hardcode_libdir_flag_spec_CXX \
30480 hardcode_libdir_flag_spec_ld_CXX \
30481 hardcode_libdir_separator_CXX \
30482 fix_srcfile_path_CXX \
30483 exclude_expsyms_CXX \
30484 include_expsyms_CXX \
30485 file_list_spec_CXX \
30486 compiler_lib_search_dirs_CXX \
30487 predep_objects_CXX \
30488 postdep_objects_CXX \
30491 compiler_lib_search_path_CXX; do
30492 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30493 *[\\\\\\\`\\"\\\$]*)
30494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30502 # Double-quote double-evaled strings.
30503 for var in reload_cmds \
30504 old_postinstall_cmds \
30505 old_postuninstall_cmds \
30507 extract_expsyms_cmds \
30508 old_archive_from_new_cmds \
30509 old_archive_from_expsyms_cmds \
30511 archive_expsym_cmds \
30513 module_expsym_cmds \
30514 export_symbols_cmds \
30517 postuninstall_cmds \
30519 sys_lib_search_path_spec \
30520 sys_lib_dlsearch_path_spec \
30521 old_archive_cmds_CXX \
30522 old_archive_from_new_cmds_CXX \
30523 old_archive_from_expsyms_cmds_CXX \
30525 archive_expsym_cmds_CXX \
30527 module_expsym_cmds_CXX \
30528 export_symbols_cmds_CXX \
30529 prelink_cmds_CXX; do
30530 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30531 *[\\\\\\\`\\"\\\$]*)
30532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30540 # Fix-up fallback echo if it was mangled by the above quoting rules.
30542 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30546 ac_aux_dir='$ac_aux_dir'
30547 xsi_shell='$xsi_shell'
30548 lt_shell_append='$lt_shell_append'
30550 # See if we are running on zsh, and set the options which allow our
30551 # commands through without removal of \ escapes INIT.
30552 if test -n "\${ZSH_VERSION+set}" ; then
30553 setopt NO_GLOB_SUBST
30559 TIMESTAMP='$TIMESTAMP'
30567 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30568 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30570 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30571 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30572 LINGUAS="${LINGUAS-%UNSET%}"
30577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30579 # Handling of arguments.
30580 for ac_config_target in $ac_config_targets
30582 case $ac_config_target in
30583 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30584 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30585 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30586 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30587 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30588 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30589 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30590 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30591 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30592 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30593 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30594 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30595 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30596 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30597 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30598 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30599 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30600 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30601 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30602 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30603 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30604 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30605 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30606 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30607 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30608 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30609 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30610 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30611 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30612 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30613 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30614 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30615 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30616 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30617 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30618 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30619 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30620 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30621 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30622 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30623 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30624 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30625 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30626 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30627 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30628 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30629 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30630 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30631 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30632 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30633 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30634 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30635 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30636 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30637 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30638 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30639 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30640 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30641 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30642 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30643 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30644 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30645 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30646 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30647 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30648 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30649 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30650 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30651 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30652 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30653 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30654 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30655 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30656 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30657 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30658 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30659 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30660 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30661 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30662 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30663 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30664 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30665 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30666 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30667 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30668 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30669 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30670 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30671 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30672 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30673 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30674 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30675 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30676 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30677 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30678 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30679 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30680 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30681 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30682 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30683 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30684 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30685 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30686 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30687 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30688 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30695 # If the user did not use the arguments to specify the items to instantiate,
30696 # then the envvar interface is used. Set only those that are not.
30697 # We use the long form for the default assignment because of an extremely
30698 # bizarre bug on SunOS 4.1.3.
30699 if $ac_need_defaults; then
30700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30705 # Have a temporary directory for convenience. Make it in the build tree
30706 # simply because there is no reason against having it here, and in addition,
30707 # creating and moving files from /tmp can sometimes cause problems.
30708 # Hook for its removal unless debugging.
30709 # Note that there is a small window in which the directory will not be cleaned:
30710 # after its creation but before its name has been assigned to `$tmp'.
30714 trap 'exit_status=$?
30715 : "${ac_tmp:=$tmp}"
30716 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30718 trap 'as_fn_exit 1' 1 2 13 15
30720 # Create a (secure) tmp directory for tmp files.
30723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30727 tmp=./conf$$-$RANDOM
30728 (umask 077 && mkdir "$tmp")
30729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30732 # Set up the scripts for CONFIG_FILES section.
30733 # No need to generate them if there are no CONFIG_FILES.
30734 # This happens for instance with `./config.status config.h'.
30735 if test -n "$CONFIG_FILES"; then
30737 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30738 ac_cs_awk_getline=:
30739 ac_cs_awk_pipe_init=
30740 ac_cs_awk_read_file='
30741 while ((getline aline < (F[key])) > 0)
30744 ac_cs_awk_pipe_fini=
30746 ac_cs_awk_getline=false
30747 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30748 ac_cs_awk_read_file='
30750 print "cat " F[key] " &&"
30751 '$ac_cs_awk_pipe_init
30752 # The final `:' finishes the AND list.
30753 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30755 ac_cr=`echo X | tr X '\015'`
30756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30757 # But we know of no other shell where ac_cr would be empty at this
30758 # point, so we can use a bashism as a fallback.
30759 if test "x$ac_cr" = x; then
30760 eval ac_cr=\$\'\\r\'
30762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30766 ac_cs_awk_cr=$ac_cr
30769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30772 # Create commands to substitute file output variables.
30774 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30775 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30776 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30779 } >conf$$files.sh &&
30780 . ./conf$$files.sh ||
30781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30782 rm -f conf$$files.sh
30785 echo "cat >conf$$subs.awk <<_ACEOF" &&
30786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30788 } >conf$$subs.sh ||
30789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30792 for ac_last_try in false false false false false :; do
30793 . ./conf$$subs.sh ||
30794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30797 if test $ac_delim_n = $ac_delim_num; then
30799 elif $ac_last_try; then
30800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30805 rm -f conf$$subs.sh
30807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30812 s/^/S["/; s/!.*/"]=/
30822 s/\(.\{148\}\)..*/\1/
30824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30836 s/\(.\{148\}\)..*/\1/
30838 s/["\\]/\\&/g; s/^/"/; s/$/"/
30842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30847 ' <conf$$subs.awk | sed '
30852 ' >>$CONFIG_STATUS || ac_write_fail=1
30853 rm -f conf$$subs.awk
30854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30857 for (key in S) S_is_set[key] = 1
30859 \$ac_cs_awk_pipe_init
30863 nfields = split(line, field, "@")
30865 len = length(field[1])
30866 for (i = 2; i < nfields; i++) {
30868 keylen = length(key)
30869 if (S_is_set[key]) {
30871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30872 len += length(value) + length(field[++i])
30877 if (nfields == 3 && !substed) {
30879 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30880 \$ac_cs_awk_read_file
30886 \$ac_cs_awk_pipe_fini
30889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30890 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30891 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30894 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30895 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30898 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30899 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30900 # trailing colons and then remove the whole line if VPATH becomes empty
30901 # (actually we leave an empty line to preserve line numbers).
30902 if test "x$srcdir" = x.; then
30903 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30922 fi # test -n "$CONFIG_FILES"
30924 # Set up the scripts for CONFIG_HEADERS section.
30925 # No need to generate them if there are no CONFIG_HEADERS.
30926 # This happens for instance with `./config.status Makefile'.
30927 if test -n "$CONFIG_HEADERS"; then
30928 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30932 # Transform confdefs.h into an awk script `defines.awk', embedded as
30933 # here-document in config.status, that substitutes the proper values into
30934 # config.h.in to produce config.h.
30936 # Create a delimiter string that does not exist in confdefs.h, to ease
30937 # handling of long lines.
30939 for ac_last_try in false false :; do
30940 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30941 if test -z "$ac_tt"; then
30943 elif $ac_last_try; then
30944 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30950 # For the awk script, D is an array of macro values keyed by name,
30951 # likewise P contains macro parameters if any. Preserve backslash
30952 # newline sequences.
30954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30956 s/.\{148\}/&'"$ac_delim"'/g
30959 s/^[ ]*#[ ]*define[ ][ ]*/ /
30966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30973 D["\1"]=" \3\\\\\\n"\\/p
30975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30980 s/.\{148\}/&'"$ac_delim"'/g
30985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30990 ' <confdefs.h | sed '
30991 s/'"$ac_delim"'/"\\\
30992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30995 for (key in D) D_is_set[key] = 1
30998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31000 split(line, arg, " ")
31001 if (arg[1] == "#") {
31005 defundef = substr(arg[1], 2)
31008 split(mac1, mac2, "(") #)
31010 prefix = substr(line, 1, index(line, defundef) - 1)
31011 if (D_is_set[macro]) {
31012 # Preserve the white space surrounding the "#".
31013 print prefix "define", macro P[macro] D[macro]
31016 # Replace #undef with comments. This is necessary, for example,
31017 # in the case of _POSIX_SOURCE, which is predefined and required
31018 # on some systems where configure will not decide to define it.
31019 if (defundef == "undef") {
31020 print "/*", prefix defundef, macro, "*/"
31028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31029 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31030 fi # test -n "$CONFIG_HEADERS"
31033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31038 :[FHLC]) ac_mode=$ac_tag; continue;;
31040 case $ac_mode$ac_tag in
31042 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31043 :[FH]-) ac_tag=-:-;;
31044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31061 -) ac_f="$ac_tmp/stdin";;
31062 *) # Look for the file first in the build tree, then in the source tree
31063 # (if the path is not absolute). The absolute path cannot be DOS-style,
31064 # because $ac_f cannot contain `:'.
31068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31070 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31073 as_fn_append ac_file_inputs " '$ac_f'"
31076 # Let's still pretend it is `configure' which instantiates (i.e., don't
31077 # use $as_me), people would be surprised to read:
31078 # /* config.h. Generated by config.status. */
31079 configure_input='Generated from '`
31080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31082 if test x"$ac_file" != x-; then
31083 configure_input="$ac_file. $configure_input"
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31085 $as_echo "$as_me: creating $ac_file" >&6;}
31087 # Neutralize special characters interpreted by sed in replacement strings.
31088 case $configure_input in #(
31089 *\&* | *\|* | *\\* )
31090 ac_sed_conf_input=`$as_echo "$configure_input" |
31091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31092 *) ac_sed_conf_input=$configure_input;;
31096 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31102 ac_dir=`$as_dirname -- "$ac_file" ||
31103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31104 X"$ac_file" : 'X\(//\)[^/]' \| \
31105 X"$ac_file" : 'X\(//\)$' \| \
31106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31107 $as_echo X"$ac_file" |
31108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31112 /^X\(\/\/\)[^/].*/{
31125 as_dir="$ac_dir"; as_fn_mkdir_p
31129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31132 # A ".." for each directory in $ac_dir_suffix.
31133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31134 case $ac_top_builddir_sub in
31135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31139 ac_abs_top_builddir=$ac_pwd
31140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31141 # for backward compatibility:
31142 ac_top_builddir=$ac_top_build_prefix
31145 .) # We are building in place.
31147 ac_top_srcdir=$ac_top_builddir_sub
31148 ac_abs_top_srcdir=$ac_pwd ;;
31149 [\\/]* | ?:[\\/]* ) # Absolute name.
31150 ac_srcdir=$srcdir$ac_dir_suffix;
31151 ac_top_srcdir=$srcdir
31152 ac_abs_top_srcdir=$srcdir ;;
31153 *) # Relative name.
31154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31155 ac_top_srcdir=$ac_top_build_prefix$srcdir
31156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31174 # If the template does not know about datarootdir, expand it.
31175 # FIXME: This hack should be removed a few years after 2.60.
31176 ac_datarootdir_hack=; ac_datarootdir_seen=
31187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31188 *datarootdir*) ac_datarootdir_seen=yes;;
31189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31194 ac_datarootdir_hack='
31195 s&@datadir@&$datadir&g
31196 s&@docdir@&$docdir&g
31197 s&@infodir@&$infodir&g
31198 s&@localedir@&$localedir&g
31199 s&@mandir@&$mandir&g
31200 s&\\\${datarootdir}&$datarootdir&g' ;;
31204 # Neutralize VPATH when `$srcdir' = `.'.
31205 # Shell code in configure.ac might set extrasub.
31206 # FIXME: do we really want to maintain this feature?
31207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31208 ac_sed_extra="$ac_vpsub
31211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31214 s|@configure_input@|$ac_sed_conf_input|;t t
31215 s&@top_builddir@&$ac_top_builddir_sub&;t t
31216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31217 s&@srcdir@&$ac_srcdir&;t t
31218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31219 s&@top_srcdir@&$ac_top_srcdir&;t t
31220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31221 s&@builddir@&$ac_builddir&;t t
31222 s&@abs_builddir@&$ac_abs_builddir&;t t
31223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31224 s&@INSTALL@&$ac_INSTALL&;t t
31225 $ac_datarootdir_hack
31227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31228 if $ac_cs_awk_getline; then
31229 $AWK -f "$ac_tmp/subs.awk"
31231 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31233 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31236 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31238 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31240 which seems to be undefined. Please make sure it is defined" >&5
31241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31242 which seems to be undefined. Please make sure it is defined" >&2;}
31244 rm -f "$ac_tmp/stdin"
31246 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31247 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31255 if test x"$ac_file" != x-; then
31257 $as_echo "/* $configure_input */" \
31258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31259 } >"$ac_tmp/config.h" \
31260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31261 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31266 mv "$ac_tmp/config.h" "$ac_file" \
31267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31270 $as_echo "/* $configure_input */" \
31271 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31272 || as_fn_error $? "could not create -" "$LINENO" 5
31276 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31277 $as_echo "$as_me: executing $ac_file commands" >&6;}
31282 case $ac_file$ac_mode in
31285 # See if we are running on zsh, and set the options which allow our
31286 # commands through without removal of \ escapes.
31287 if test -n "${ZSH_VERSION+set}" ; then
31288 setopt NO_GLOB_SUBST
31291 cfgfile="${ofile}T"
31292 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31295 cat <<_LT_EOF >> "$cfgfile"
31298 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31299 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31301 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31303 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31304 # 2006, 2007, 2008 Free Software Foundation, Inc.
31305 # Written by Gordon Matzigkeit, 1996
31307 # This file is part of GNU Libtool.
31309 # GNU Libtool is free software; you can redistribute it and/or
31310 # modify it under the terms of the GNU General Public License as
31311 # published by the Free Software Foundation; either version 2 of
31312 # the License, or (at your option) any later version.
31314 # As a special exception to the GNU General Public License,
31315 # if you distribute this file as part of a program or library that
31316 # is built using GNU Libtool, you may include this file under the
31317 # same distribution terms that you use for the rest of that program.
31319 # GNU Libtool is distributed in the hope that it will be useful,
31320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31322 # GNU General Public License for more details.
31324 # You should have received a copy of the GNU General Public License
31325 # along with GNU Libtool; see the file COPYING. If not, a copy
31326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31327 # obtained by writing to the Free Software Foundation, Inc.,
31328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31331 # The names of the tagged configurations supported by this script.
31332 available_tags="CXX "
31334 # ### BEGIN LIBTOOL CONFIG
31336 # Which release of libtool.m4 was used?
31337 macro_version=$macro_version
31338 macro_revision=$macro_revision
31340 # Whether or not to build shared libraries.
31341 build_libtool_libs=$enable_shared
31343 # Whether or not to build static libraries.
31344 build_old_libs=$enable_static
31346 # What type of objects to build.
31349 # Whether or not to optimize for fast installation.
31350 fast_install=$enable_fast_install
31353 host_alias=$host_alias
31357 # The build system.
31358 build_alias=$build_alias
31362 # A sed program that does not truncate output.
31365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31366 Xsed="\$SED -e 1s/^X//"
31368 # A grep program that handles long lines.
31374 # A literal string matcher.
31377 # A BSD- or MS-compatible name lister.
31380 # Whether we need soft or hard links.
31383 # What is the maximum length of a command?
31384 max_cmd_len=$max_cmd_len
31386 # Object file suffix (normally "o").
31389 # Executable file suffix (normally "").
31392 # whether the shell understands "unset".
31395 # turn spaces into newlines.
31398 # turn newlines into spaces.
31401 # How to create reloadable object files.
31402 reload_flag=$lt_reload_flag
31403 reload_cmds=$lt_reload_cmds
31405 # An object symbol dumper.
31406 OBJDUMP=$lt_OBJDUMP
31408 # Method to check whether dependent libraries are shared objects.
31409 deplibs_check_method=$lt_deplibs_check_method
31411 # Command to use when deplibs_check_method == "file_magic".
31412 file_magic_cmd=$lt_file_magic_cmd
31416 AR_FLAGS=$lt_AR_FLAGS
31418 # A symbol stripping program.
31421 # Commands used to install an old-style archive.
31423 old_postinstall_cmds=$lt_old_postinstall_cmds
31424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31429 # LTCC compiler flags.
31430 LTCFLAGS=$lt_CFLAGS
31432 # Take the output of nm and produce a listing of raw symbols and C names.
31433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31435 # Transform the output of nm in a proper C declaration.
31436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31438 # Transform the output of nm in a C name address pair.
31439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31441 # Transform the output of nm in a C name address pair when lib prefix is needed.
31442 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31444 # The name of the directory that contains temporary libtool files.
31447 # Shell to use when invoking shell scripts.
31450 # An echo program that does not interpret backslashes.
31453 # Used to examine libraries when file_magic_cmd begins with "file".
31454 MAGIC_CMD=$MAGIC_CMD
31456 # Must we lock files when doing compilation?
31457 need_locks=$lt_need_locks
31459 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31460 DSYMUTIL=$lt_DSYMUTIL
31462 # Tool to change global to local symbols on Mac OS X.
31465 # Tool to manipulate fat objects and archives on Mac OS X.
31468 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31471 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31472 OTOOL64=$lt_OTOOL64
31474 # Old archive suffix (normally "a").
31477 # Shared library suffix (normally ".so").
31478 shrext_cmds=$lt_shrext_cmds
31480 # The commands to extract the exported symbol list from a shared archive.
31481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31483 # Variables whose values should be saved in libtool wrapper scripts and
31484 # restored at link time.
31485 variables_saved_for_relink=$lt_variables_saved_for_relink
31487 # Do we need the "lib" prefix for modules?
31488 need_lib_prefix=$need_lib_prefix
31490 # Do we need a version for libraries?
31491 need_version=$need_version
31493 # Library versioning type.
31494 version_type=$version_type
31496 # Shared library runtime path variable.
31497 runpath_var=$runpath_var
31499 # Shared library path variable.
31500 shlibpath_var=$shlibpath_var
31502 # Is shlibpath searched before the hard-coded library search path?
31503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31505 # Format of library name prefix.
31506 libname_spec=$lt_libname_spec
31508 # List of archive names. First name is the real one, the rest are links.
31509 # The last name is the one that the linker finds with -lNAME
31510 library_names_spec=$lt_library_names_spec
31512 # The coded name of the library, if different from the real name.
31513 soname_spec=$lt_soname_spec
31515 # Command to use after installation of a shared archive.
31516 postinstall_cmds=$lt_postinstall_cmds
31518 # Command to use after uninstallation of a shared archive.
31519 postuninstall_cmds=$lt_postuninstall_cmds
31521 # Commands used to finish a libtool library installation in a directory.
31522 finish_cmds=$lt_finish_cmds
31524 # As "finish_cmds", except a single script fragment to be evaled but
31526 finish_eval=$lt_finish_eval
31528 # Whether we should hardcode library paths into libraries.
31529 hardcode_into_libs=$hardcode_into_libs
31531 # Compile-time system search path for libraries.
31532 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31534 # Run-time system search path for libraries.
31535 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31537 # Whether dlopen is supported.
31538 dlopen_support=$enable_dlopen
31540 # Whether dlopen of programs is supported.
31541 dlopen_self=$enable_dlopen_self
31543 # Whether dlopen of statically linked programs is supported.
31544 dlopen_self_static=$enable_dlopen_self_static
31546 # Commands to strip libraries.
31547 old_striplib=$lt_old_striplib
31548 striplib=$lt_striplib
31551 # The linker used to build libraries.
31554 # Commands used to build an old-style archive.
31555 old_archive_cmds=$lt_old_archive_cmds
31557 # A language specific compiler.
31560 # Is the compiler the GNU compiler?
31563 # Compiler flag to turn off builtin functions.
31564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31566 # How to pass a linker flag through the compiler.
31567 wl=$lt_lt_prog_compiler_wl
31569 # Additional compiler flags for building library objects.
31570 pic_flag=$lt_lt_prog_compiler_pic
31572 # Compiler flag to prevent dynamic linking.
31573 link_static_flag=$lt_lt_prog_compiler_static
31575 # Does compiler simultaneously support -c and -o options?
31576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31578 # Whether or not to add -lc for building shared libraries.
31579 build_libtool_need_lc=$archive_cmds_need_lc
31581 # Whether or not to disallow shared libs when runtime libs are static.
31582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31584 # Compiler flag to allow reflexive dlopens.
31585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31587 # Compiler flag to generate shared objects directly from archives.
31588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31590 # Whether the compiler copes with passing no objects directly.
31591 compiler_needs_object=$lt_compiler_needs_object
31593 # Create an old-style archive from a shared archive.
31594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31596 # Create a temporary old-style archive to link instead of a shared archive.
31597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31599 # Commands used to build a shared archive.
31600 archive_cmds=$lt_archive_cmds
31601 archive_expsym_cmds=$lt_archive_expsym_cmds
31603 # Commands used to build a loadable module if different from building
31604 # a shared archive.
31605 module_cmds=$lt_module_cmds
31606 module_expsym_cmds=$lt_module_expsym_cmds
31608 # Whether we are building with GNU ld or not.
31609 with_gnu_ld=$lt_with_gnu_ld
31611 # Flag that allows shared libraries with undefined symbols to be built.
31612 allow_undefined_flag=$lt_allow_undefined_flag
31614 # Flag that enforces no undefined symbols.
31615 no_undefined_flag=$lt_no_undefined_flag
31617 # Flag to hardcode \$libdir into a binary during linking.
31618 # This must work even if \$libdir does not exist
31619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31621 # If ld is used when linking, flag to hardcode \$libdir into a binary
31622 # during linking. This must work even if \$libdir does not exist.
31623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31625 # Whether we need a single "-rpath" flag with a separated argument.
31626 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31629 # DIR into the resulting binary.
31630 hardcode_direct=$hardcode_direct
31632 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31633 # DIR into the resulting binary and the resulting library dependency is
31634 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31635 # library is relocated.
31636 hardcode_direct_absolute=$hardcode_direct_absolute
31638 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31639 # into the resulting binary.
31640 hardcode_minus_L=$hardcode_minus_L
31642 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31643 # into the resulting binary.
31644 hardcode_shlibpath_var=$hardcode_shlibpath_var
31646 # Set to "yes" if building a shared library automatically hardcodes DIR
31647 # into the library and all subsequent libraries and executables linked
31649 hardcode_automatic=$hardcode_automatic
31651 # Set to yes if linker adds runtime paths of dependent libraries
31652 # to runtime path list.
31653 inherit_rpath=$inherit_rpath
31655 # Whether libtool must link a program against all its dependency libraries.
31656 link_all_deplibs=$link_all_deplibs
31658 # Fix the shell variable \$srcfile for the compiler.
31659 fix_srcfile_path=$lt_fix_srcfile_path
31661 # Set to "yes" if exported symbols are required.
31662 always_export_symbols=$always_export_symbols
31664 # The commands to list exported symbols.
31665 export_symbols_cmds=$lt_export_symbols_cmds
31667 # Symbols that should not be listed in the preloaded symbols.
31668 exclude_expsyms=$lt_exclude_expsyms
31670 # Symbols that must always be exported.
31671 include_expsyms=$lt_include_expsyms
31673 # Commands necessary for linking programs (against libraries) with templates.
31674 prelink_cmds=$lt_prelink_cmds
31676 # Specify filename containing input files.
31677 file_list_spec=$lt_file_list_spec
31679 # How to hardcode a shared library path into an executable.
31680 hardcode_action=$hardcode_action
31682 # The directories searched by this compiler when creating a shared library.
31683 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31685 # Dependencies to place before and after the objects being linked to
31686 # create a shared library.
31687 predep_objects=$lt_predep_objects
31688 postdep_objects=$lt_postdep_objects
31689 predeps=$lt_predeps
31690 postdeps=$lt_postdeps
31692 # The library search path used internally by the compiler when linking
31693 # a shared library.
31694 compiler_lib_search_path=$lt_compiler_lib_search_path
31696 # ### END LIBTOOL CONFIG
31702 cat <<\_LT_EOF >> "$cfgfile"
31703 # AIX sometimes has problems with the GCC collect2 program. For some
31704 # reason, if we set the COLLECT_NAMES environment variable, the problems
31705 # vanish in a puff of smoke.
31706 if test "X${COLLECT_NAMES+set}" != Xset; then
31708 export COLLECT_NAMES
31715 ltmain="$ac_aux_dir/ltmain.sh"
31718 # We use sed instead of cat because bash on DJGPP gets confused if
31719 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31720 # text mode, it properly converts lines to CR/LF. This bash problem
31721 # is reportedly fixed, but why not run on old versions too?
31722 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31723 || (rm -f "$cfgfile"; exit 1)
31727 cat << \_LT_EOF >> "$cfgfile"
31729 # func_dirname file append nondir_replacement
31730 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31731 # otherwise set result to NONDIR_REPLACEMENT.
31735 */*) func_dirname_result="${1%/*}${2}" ;;
31736 * ) func_dirname_result="${3}" ;;
31740 # func_basename file
31743 func_basename_result="${1##*/}"
31746 # func_dirname_and_basename file append nondir_replacement
31747 # perform func_basename and func_dirname in a single function
31749 # dirname: Compute the dirname of FILE. If nonempty,
31750 # add APPEND to the result, otherwise set result
31751 # to NONDIR_REPLACEMENT.
31752 # value returned in "$func_dirname_result"
31753 # basename: Compute filename of FILE.
31754 # value retuned in "$func_basename_result"
31755 # Implementation must be kept synchronized with func_dirname
31756 # and func_basename. For efficiency, we do not delegate to
31757 # those functions but instead duplicate the functionality here.
31758 func_dirname_and_basename ()
31761 */*) func_dirname_result="${1%/*}${2}" ;;
31762 * ) func_dirname_result="${3}" ;;
31764 func_basename_result="${1##*/}"
31767 # func_stripname prefix suffix name
31768 # strip PREFIX and SUFFIX off of NAME.
31769 # PREFIX and SUFFIX must not contain globbing or regex special
31770 # characters, hashes, percent signs, but SUFFIX may contain a leading
31771 # dot (in which case that matches only a dot).
31774 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31775 # positional parameters, so assign one to ordinary parameter first.
31776 func_stripname_result=${3}
31777 func_stripname_result=${func_stripname_result#"${1}"}
31778 func_stripname_result=${func_stripname_result%"${2}"}
31784 func_opt_split_opt=${1%%=*}
31785 func_opt_split_arg=${1#*=}
31792 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31793 *) func_lo2o_result=${1} ;;
31797 # func_xform libobj-or-source
31800 func_xform_result=${1%.*}.lo
31803 # func_arith arithmetic-term...
31806 func_arith_result=$(( $* ))
31810 # STRING may not start with a hyphen.
31813 func_len_result=${#1}
31818 *) # Bourne compatible functions.
31819 cat << \_LT_EOF >> "$cfgfile"
31821 # func_dirname file append nondir_replacement
31822 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31823 # otherwise set result to NONDIR_REPLACEMENT.
31826 # Extract subdirectory from the argument.
31827 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31828 if test "X$func_dirname_result" = "X${1}"; then
31829 func_dirname_result="${3}"
31831 func_dirname_result="$func_dirname_result${2}"
31835 # func_basename file
31838 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31842 # func_stripname prefix suffix name
31843 # strip PREFIX and SUFFIX off of NAME.
31844 # PREFIX and SUFFIX must not contain globbing or regex special
31845 # characters, hashes, percent signs, but SUFFIX may contain a leading
31846 # dot (in which case that matches only a dot).
31847 # func_strip_suffix prefix name
31851 .*) func_stripname_result=`$ECHO "X${3}" \
31852 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31853 *) func_stripname_result=`$ECHO "X${3}" \
31854 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31859 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31860 my_sed_long_arg='1s/^-[^=]*=//'
31865 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31866 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31872 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31875 # func_xform libobj-or-source
31878 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31881 # func_arith arithmetic-term...
31884 func_arith_result=`expr "$@"`
31888 # STRING may not start with a hyphen.
31891 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31897 case $lt_shell_append in
31899 cat << \_LT_EOF >> "$cfgfile"
31901 # func_append var value
31902 # Append VALUE to the end of shell variable VAR.
31910 cat << \_LT_EOF >> "$cfgfile"
31912 # func_append var value
31913 # Append VALUE to the end of shell variable VAR.
31924 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31925 || (rm -f "$cfgfile"; exit 1)
31927 mv -f "$cfgfile" "$ofile" ||
31928 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31932 cat <<_LT_EOF >> "$ofile"
31934 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31936 # The linker used to build libraries.
31939 # Commands used to build an old-style archive.
31940 old_archive_cmds=$lt_old_archive_cmds_CXX
31942 # A language specific compiler.
31943 CC=$lt_compiler_CXX
31945 # Is the compiler the GNU compiler?
31948 # Compiler flag to turn off builtin functions.
31949 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31951 # How to pass a linker flag through the compiler.
31952 wl=$lt_lt_prog_compiler_wl_CXX
31954 # Additional compiler flags for building library objects.
31955 pic_flag=$lt_lt_prog_compiler_pic_CXX
31957 # Compiler flag to prevent dynamic linking.
31958 link_static_flag=$lt_lt_prog_compiler_static_CXX
31960 # Does compiler simultaneously support -c and -o options?
31961 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31963 # Whether or not to add -lc for building shared libraries.
31964 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31966 # Whether or not to disallow shared libs when runtime libs are static.
31967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31969 # Compiler flag to allow reflexive dlopens.
31970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31972 # Compiler flag to generate shared objects directly from archives.
31973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31975 # Whether the compiler copes with passing no objects directly.
31976 compiler_needs_object=$lt_compiler_needs_object_CXX
31978 # Create an old-style archive from a shared archive.
31979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31981 # Create a temporary old-style archive to link instead of a shared archive.
31982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31984 # Commands used to build a shared archive.
31985 archive_cmds=$lt_archive_cmds_CXX
31986 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31988 # Commands used to build a loadable module if different from building
31989 # a shared archive.
31990 module_cmds=$lt_module_cmds_CXX
31991 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31993 # Whether we are building with GNU ld or not.
31994 with_gnu_ld=$lt_with_gnu_ld_CXX
31996 # Flag that allows shared libraries with undefined symbols to be built.
31997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31999 # Flag that enforces no undefined symbols.
32000 no_undefined_flag=$lt_no_undefined_flag_CXX
32002 # Flag to hardcode \$libdir into a binary during linking.
32003 # This must work even if \$libdir does not exist
32004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32006 # If ld is used when linking, flag to hardcode \$libdir into a binary
32007 # during linking. This must work even if \$libdir does not exist.
32008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32010 # Whether we need a single "-rpath" flag with a separated argument.
32011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32014 # DIR into the resulting binary.
32015 hardcode_direct=$hardcode_direct_CXX
32017 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32018 # DIR into the resulting binary and the resulting library dependency is
32019 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32020 # library is relocated.
32021 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32023 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32024 # into the resulting binary.
32025 hardcode_minus_L=$hardcode_minus_L_CXX
32027 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32028 # into the resulting binary.
32029 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32031 # Set to "yes" if building a shared library automatically hardcodes DIR
32032 # into the library and all subsequent libraries and executables linked
32034 hardcode_automatic=$hardcode_automatic_CXX
32036 # Set to yes if linker adds runtime paths of dependent libraries
32037 # to runtime path list.
32038 inherit_rpath=$inherit_rpath_CXX
32040 # Whether libtool must link a program against all its dependency libraries.
32041 link_all_deplibs=$link_all_deplibs_CXX
32043 # Fix the shell variable \$srcfile for the compiler.
32044 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32046 # Set to "yes" if exported symbols are required.
32047 always_export_symbols=$always_export_symbols_CXX
32049 # The commands to list exported symbols.
32050 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32052 # Symbols that should not be listed in the preloaded symbols.
32053 exclude_expsyms=$lt_exclude_expsyms_CXX
32055 # Symbols that must always be exported.
32056 include_expsyms=$lt_include_expsyms_CXX
32058 # Commands necessary for linking programs (against libraries) with templates.
32059 prelink_cmds=$lt_prelink_cmds_CXX
32061 # Specify filename containing input files.
32062 file_list_spec=$lt_file_list_spec_CXX
32064 # How to hardcode a shared library path into an executable.
32065 hardcode_action=$hardcode_action_CXX
32067 # The directories searched by this compiler when creating a shared library.
32068 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32070 # Dependencies to place before and after the objects being linked to
32071 # create a shared library.
32072 predep_objects=$lt_predep_objects_CXX
32073 postdep_objects=$lt_postdep_objects_CXX
32074 predeps=$lt_predeps_CXX
32075 postdeps=$lt_postdeps_CXX
32077 # The library search path used internally by the compiler when linking
32078 # a shared library.
32079 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32081 # ### END LIBTOOL TAG CONFIG: CXX
32086 for ac_file in $CONFIG_FILES; do
32087 # Support "outfile[:infile[:infile...]]"
32089 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32091 # PO directories have a Makefile.in generated from Makefile.in.in.
32092 case "$ac_file" in */Makefile.in)
32093 # Adjust a relative srcdir.
32094 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32095 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32096 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32097 # In autoconf-2.13 it is called $ac_given_srcdir.
32098 # In autoconf-2.50 it is called $srcdir.
32099 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32100 case "$ac_given_srcdir" in
32101 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32102 /*) top_srcdir="$ac_given_srcdir" ;;
32103 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32105 # Treat a directory as a PO directory if and only if it has a
32106 # POTFILES.in file. This allows packages to have multiple PO
32107 # directories under different names or in different locations.
32108 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32109 rm -f "$ac_dir/POTFILES"
32110 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32111 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32112 POMAKEFILEDEPS="POTFILES.in"
32113 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32114 # on $ac_dir but don't depend on user-specified configuration
32116 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32117 # The LINGUAS file contains the set of available languages.
32118 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32119 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32121 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32122 # Hide the ALL_LINGUAS assigment from automake.
32123 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32124 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32126 # The set of available languages was given in configure.in.
32127 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32130 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32131 # Compute UPDATEPOFILES
32132 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32133 # Compute DUMMYPOFILES
32134 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32136 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32137 case "$ac_given_srcdir" in
32139 *) srcdirpre='$(srcdir)/' ;;
32145 for lang in $ALL_LINGUAS; do
32146 POFILES="$POFILES $srcdirpre$lang.po"
32147 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32148 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32149 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32151 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32152 # environment variable.
32154 if test -n "$ALL_LINGUAS"; then
32155 for presentlang in $ALL_LINGUAS; do
32157 if test "%UNSET%" != "$LINGUAS"; then
32158 desiredlanguages="$LINGUAS"
32160 desiredlanguages="$ALL_LINGUAS"
32162 for desiredlang in $desiredlanguages; do
32163 # Use the presentlang catalog if desiredlang is
32164 # a. equal to presentlang, or
32165 # b. a variant of presentlang (because in this case,
32166 # presentlang can be used as a fallback for messages
32167 # which are not translated in the desiredlang catalog).
32168 case "$desiredlang" in
32169 "$presentlang"*) useit=yes;;
32172 if test $useit = yes; then
32173 INST_LINGUAS="$INST_LINGUAS $presentlang"
32178 if test -n "$INST_LINGUAS"; then
32179 for lang in $INST_LINGUAS; do
32180 CATALOGS="$CATALOGS $lang.gmo"
32183 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32184 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"
32185 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32186 if test -f "$f"; then
32188 *.orig | *.bak | *~) ;;
32189 *) cat "$f" >> "$ac_dir/Makefile" ;;
32206 ac_clean_files=$ac_clean_files_save
32208 test $ac_write_fail = 0 ||
32209 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32212 # configure is writing to config.log, and then calls config.status.
32213 # config.status does its own redirection, appending to config.log.
32214 # Unfortunately, on DOS this fails, as config.log is still kept open
32215 # by configure, so config.status won't be able to write to it; its
32216 # output is simply discarded. So we exec the FD to /dev/null,
32217 # effectively closing config.log, so it can be properly (re)opened and
32218 # appended to by config.status. When coming back to configure, we
32219 # need to make the FD available again.
32220 if test "$no_create" != yes; then
32222 ac_config_status_args=
32223 test "$silent" = yes &&
32224 ac_config_status_args="$ac_config_status_args --quiet"
32226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32229 # would make configure fail if this is the last instruction.
32230 $ac_cs_success || as_fn_exit 1
32232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32234 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32238 if test "${support_bat}" = "yes" ; then
32239 if test "x$QMAKE" = "xnone"; then
32240 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32244 echo "Creating bat Makefile"
32249 ${MAKE:-make} clean
32253 if test X"$GCC" = "Xyes" ; then
32254 echo "Doing make of dependencies"
32255 ${MAKE:-make} depend
32259 chmod 755 install_conf_file build-depkgs-qt-console
32263 chmod 755 bacula btraceback mtx-changer
32264 chmod 755 dvd-handler dvd-simulator
32265 chmod 755 bconsole mtx-changer devel_bacula logrotate
32269 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32270 chmod 755 $c/update_postgresql_tables_10_to_11
32271 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32272 chmod 755 $c/update_postgresql_tables_11_to_12
32277 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32278 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32280 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32281 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32283 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32284 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32286 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32287 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32289 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32290 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32293 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32294 chmod 755 $c/sqlite
32297 chmod 755 src/win32/build-depkgs-mingw32
32299 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32300 largefile_support="yes"
32303 if test X"$GCC" = "Xyes" ; then
32304 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32305 if test "x${CCVERSION}" = "x" ; then
32306 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32308 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32309 if test x"${CXXVERSION}" = x ; then
32310 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32314 # clean up any old junk
32318 ${MAKE:-make} clean
32321 Configuration on `date`:
32323 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32324 Bacula version: ${BACULA} ${VERSION} (${DATE})
32325 Source code location: ${srcdir}
32326 Install binaries: ${sbindir}
32327 Install libraries: ${libdir}
32328 Install config files: ${sysconfdir}
32329 Scripts directory: ${scriptdir}
32330 Archive directory: ${archivedir}
32331 Working directory: ${working_dir}
32332 PID directory: ${piddir}
32333 Subsys directory: ${subsysdir}
32334 Man directory: ${mandir}
32335 Data directory: ${datarootdir}
32336 Plugin directory: ${plugindir}
32337 C Compiler: ${CC} ${CCVERSION}
32338 C++ Compiler: ${CXX} ${CXXVERSION}
32339 Compiler flags: ${WCFLAGS} ${CFLAGS}
32340 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32342 Statically Linked Tools: ${support_static_tools}
32343 Statically Linked FD: ${support_static_fd}
32344 Statically Linked SD: ${support_static_sd}
32345 Statically Linked DIR: ${support_static_dir}
32346 Statically Linked CONS: ${support_static_cons}
32347 Database backends: ${db_backends}
32348 Database port: ${db_port}
32349 Database name: ${db_name}
32350 Database user: ${db_user}
32352 Job Output Email: ${job_email}
32353 Traceback Email: ${dump_email}
32354 SMTP Host Address: ${smtp_host}
32356 Director Port: ${dir_port}
32357 File daemon Port: ${fd_port}
32358 Storage daemon Port: ${sd_port}
32360 Director User: ${dir_user}
32361 Director Group: ${dir_group}
32362 Storage Daemon User: ${sd_user}
32363 Storage DaemonGroup: ${sd_group}
32364 File Daemon User: ${fd_user}
32365 File Daemon Group: ${fd_group}
32367 Large file support: $largefile_support
32368 Bacula conio support: ${got_conio} ${CONS_LIBS}
32369 readline support: ${got_readline} ${PRTREADLINE_SRC}
32370 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32371 TLS support: ${support_tls}
32372 Encryption support: ${support_crypto}
32373 ZLIB support: ${have_zlib}
32374 enable-smartalloc: ${support_smartalloc}
32375 enable-lockmgr: ${support_lockmgr}
32376 bat support: ${support_bat}
32377 enable-gnome: ${support_gnome} ${gnome_version}
32378 enable-bwx-console: ${support_wx_console} ${wx_version}
32379 enable-tray-monitor: ${support_tray_monitor}
32380 client-only: ${build_client_only}
32381 build-dird: ${build_dird}
32382 build-stored: ${build_stored}
32383 Plugin support: ${have_plugins}
32384 AFS support: ${have_afs}
32385 ACL support: ${have_acl}
32386 XATTR support: ${have_xattr}
32387 Python support: ${support_python} ${PYTHON_LIBS}
32388 Batch insert enabled: ${support_batch_insert}
32392 # create a small shell script useful for support with
32393 # configure options and config.out info
32394 cat > scripts/bacula_config << EOF
32397 $ $0 $ac_configure_args
32399 cat config.out >> scripts/bacula_config
32400 echo __EOC__ >> scripts/bacula_config
32401 chmod 755 scripts/bacula_config