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
777 SHARED_CATALOG_TARGETS
847 TRAY_MONITOR_CPPFLAGS
856 INTL_LIBTOOL_SUFFIX_PREFIX
863 BUILD_INCLUDED_LIBINTL
894 HAVE_OPENBSD_OS_FALSE
898 HAVE_FREEBSD_OS_FALSE
910 INCLUDE_UNINSTALL_TARGET
911 INCLUDE_INSTALL_TARGET
915 LIBTOOL_UNINSTALL_TARGET
916 LIBTOOL_INSTALL_TARGET
917 DEFAULT_SHARED_OBJECT_TYPE
991 LIBBACFIND_LT_RELEASE
992 LIBBACCATS_LT_RELEASE
1037 program_transform_name
1048 ac_subst_files='MCOMMON'
1050 enable_option_checking
1061 with_libiconv_prefix
1063 with_included_gettext
1102 with_mon_dir_password
1103 with_mon_fd_password
1104 with_mon_sd_password
1126 ac_precious_vars='build_alias
1144 # Initialize some variables set by options.
1146 ac_init_version=false
1147 ac_unrecognized_opts=
1148 ac_unrecognized_sep=
1149 # The variables have the same names as the options, with
1150 # dashes changed to underlines.
1151 cache_file=/dev/null
1158 program_transform_name=s,x,x,
1166 # Installation directory options.
1167 # These are left unexpanded so users can "make install exec_prefix=/foo"
1168 # and all the variables that are supposed to be based on exec_prefix
1169 # by default will actually change.
1170 # Use braces instead of parens because sh, perl, etc. also accept them.
1171 # (The list follows the same order as the GNU Coding Standards.)
1172 bindir='${exec_prefix}/bin'
1173 sbindir='${exec_prefix}/sbin'
1174 libexecdir='${exec_prefix}/libexec'
1175 datarootdir='${prefix}/share'
1176 datadir='${datarootdir}'
1177 sysconfdir='${prefix}/etc'
1178 sharedstatedir='${prefix}/com'
1179 localstatedir='${prefix}/var'
1180 includedir='${prefix}/include'
1181 oldincludedir='/usr/include'
1182 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1183 infodir='${datarootdir}/info'
1188 libdir='${exec_prefix}/lib'
1189 localedir='${datarootdir}/locale'
1190 mandir='${datarootdir}/man'
1196 # If the previous option needs an argument, assign it.
1197 if test -n "$ac_prev"; then
1198 eval $ac_prev=\$ac_option
1204 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1209 # Accept the important Cygnus configure options, so we can diagnose typos.
1211 case $ac_dashdash$ac_option in
1215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1218 bindir=$ac_optarg ;;
1220 -build | --build | --buil | --bui | --bu)
1221 ac_prev=build_alias ;;
1222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1223 build_alias=$ac_optarg ;;
1225 -cache-file | --cache-file | --cache-fil | --cache-fi \
1226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1227 ac_prev=cache_file ;;
1228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1230 cache_file=$ac_optarg ;;
1232 --config-cache | -C)
1233 cache_file=config.cache ;;
1235 -datadir | --datadir | --datadi | --datad)
1237 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1238 datadir=$ac_optarg ;;
1240 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1241 | --dataroo | --dataro | --datar)
1242 ac_prev=datarootdir ;;
1243 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1244 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1245 datarootdir=$ac_optarg ;;
1247 -disable-* | --disable-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid feature name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1256 "enable_$ac_useropt"
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1261 eval enable_$ac_useropt=no ;;
1263 -docdir | --docdir | --docdi | --doc | --do)
1265 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1266 docdir=$ac_optarg ;;
1268 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1270 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1271 dvidir=$ac_optarg ;;
1273 -enable-* | --enable-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid feature name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "enable_$ac_useropt"
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval enable_$ac_useropt=\$ac_optarg ;;
1289 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1290 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1291 | --exec | --exe | --ex)
1292 ac_prev=exec_prefix ;;
1293 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1294 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1295 | --exec=* | --exe=* | --ex=*)
1296 exec_prefix=$ac_optarg ;;
1298 -gas | --gas | --ga | --g)
1299 # Obsolete; use --with-gas.
1302 -help | --help | --hel | --he | -h)
1303 ac_init_help=long ;;
1304 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1305 ac_init_help=recursive ;;
1306 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1307 ac_init_help=short ;;
1309 -host | --host | --hos | --ho)
1310 ac_prev=host_alias ;;
1311 -host=* | --host=* | --hos=* | --ho=*)
1312 host_alias=$ac_optarg ;;
1314 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1316 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1318 htmldir=$ac_optarg ;;
1320 -includedir | --includedir | --includedi | --included | --include \
1321 | --includ | --inclu | --incl | --inc)
1322 ac_prev=includedir ;;
1323 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1324 | --includ=* | --inclu=* | --incl=* | --inc=*)
1325 includedir=$ac_optarg ;;
1327 -infodir | --infodir | --infodi | --infod | --info | --inf)
1329 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1330 infodir=$ac_optarg ;;
1332 -libdir | --libdir | --libdi | --libd)
1334 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1335 libdir=$ac_optarg ;;
1337 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1338 | --libexe | --libex | --libe)
1339 ac_prev=libexecdir ;;
1340 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1341 | --libexe=* | --libex=* | --libe=*)
1342 libexecdir=$ac_optarg ;;
1344 -localedir | --localedir | --localedi | --localed | --locale)
1345 ac_prev=localedir ;;
1346 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1347 localedir=$ac_optarg ;;
1349 -localstatedir | --localstatedir | --localstatedi | --localstated \
1350 | --localstate | --localstat | --localsta | --localst | --locals)
1351 ac_prev=localstatedir ;;
1352 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1353 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1354 localstatedir=$ac_optarg ;;
1356 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1358 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1359 mandir=$ac_optarg ;;
1361 -nfp | --nfp | --nf)
1362 # Obsolete; use --without-fp.
1365 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1366 | --no-cr | --no-c | -n)
1369 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1370 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1373 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1374 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1375 | --oldin | --oldi | --old | --ol | --o)
1376 ac_prev=oldincludedir ;;
1377 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1378 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1379 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1380 oldincludedir=$ac_optarg ;;
1382 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1384 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1385 prefix=$ac_optarg ;;
1387 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1388 | --program-pre | --program-pr | --program-p)
1389 ac_prev=program_prefix ;;
1390 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1391 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1392 program_prefix=$ac_optarg ;;
1394 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1395 | --program-suf | --program-su | --program-s)
1396 ac_prev=program_suffix ;;
1397 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1398 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1399 program_suffix=$ac_optarg ;;
1401 -program-transform-name | --program-transform-name \
1402 | --program-transform-nam | --program-transform-na \
1403 | --program-transform-n | --program-transform- \
1404 | --program-transform | --program-transfor \
1405 | --program-transfo | --program-transf \
1406 | --program-trans | --program-tran \
1407 | --progr-tra | --program-tr | --program-t)
1408 ac_prev=program_transform_name ;;
1409 -program-transform-name=* | --program-transform-name=* \
1410 | --program-transform-nam=* | --program-transform-na=* \
1411 | --program-transform-n=* | --program-transform-=* \
1412 | --program-transform=* | --program-transfor=* \
1413 | --program-transfo=* | --program-transf=* \
1414 | --program-trans=* | --program-tran=* \
1415 | --progr-tra=* | --program-tr=* | --program-t=*)
1416 program_transform_name=$ac_optarg ;;
1418 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1420 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1421 pdfdir=$ac_optarg ;;
1423 -psdir | --psdir | --psdi | --psd | --ps)
1425 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1429 | -silent | --silent | --silen | --sile | --sil)
1432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1436 sbindir=$ac_optarg ;;
1438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1440 | --sharedst | --shareds | --shared | --share | --shar \
1442 ac_prev=sharedstatedir ;;
1443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1447 sharedstatedir=$ac_optarg ;;
1449 -site | --site | --sit)
1451 -site=* | --site=* | --sit=*)
1454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1457 srcdir=$ac_optarg ;;
1459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1460 | --syscon | --sysco | --sysc | --sys | --sy)
1461 ac_prev=sysconfdir ;;
1462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1464 sysconfdir=$ac_optarg ;;
1466 -target | --target | --targe | --targ | --tar | --ta | --t)
1467 ac_prev=target_alias ;;
1468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1469 target_alias=$ac_optarg ;;
1471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1474 -version | --version | --versio | --versi | --vers | -V)
1475 ac_init_version=: ;;
1478 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1479 # Reject names that are not valid shell variable names.
1480 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1481 as_fn_error $? "invalid package name: $ac_useropt"
1482 ac_useropt_orig=$ac_useropt
1483 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1484 case $ac_user_opts in
1488 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1489 ac_unrecognized_sep=', ';;
1491 eval with_$ac_useropt=\$ac_optarg ;;
1493 -without-* | --without-*)
1494 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1495 # Reject names that are not valid shell variable names.
1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497 as_fn_error $? "invalid package name: $ac_useropt"
1498 ac_useropt_orig=$ac_useropt
1499 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500 case $ac_user_opts in
1504 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1505 ac_unrecognized_sep=', ';;
1507 eval with_$ac_useropt=no ;;
1510 # Obsolete; use --with-x.
1513 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1514 | --x-incl | --x-inc | --x-in | --x-i)
1515 ac_prev=x_includes ;;
1516 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1517 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1518 x_includes=$ac_optarg ;;
1520 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1521 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1522 ac_prev=x_libraries ;;
1523 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1524 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1525 x_libraries=$ac_optarg ;;
1527 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1528 Try \`$0 --help' for more information"
1532 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1533 # Reject names that are not valid shell variable names.
1534 case $ac_envvar in #(
1535 '' | [0-9]* | *[!_$as_cr_alnum]* )
1536 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1538 eval $ac_envvar=\$ac_optarg
1539 export $ac_envvar ;;
1542 # FIXME: should be removed in autoconf 3.0.
1543 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1544 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1545 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1546 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1552 if test -n "$ac_prev"; then
1553 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1554 as_fn_error $? "missing argument to $ac_option"
1557 if test -n "$ac_unrecognized_opts"; then
1558 case $enable_option_checking in
1560 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1561 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1565 # Check all directory arguments for consistency.
1566 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1567 datadir sysconfdir sharedstatedir localstatedir includedir \
1568 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1569 libdir localedir mandir
1571 eval ac_val=\$$ac_var
1572 # Remove trailing slashes.
1575 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1576 eval $ac_var=\$ac_val;;
1578 # Be sure to have absolute directory names.
1580 [\\/$]* | ?:[\\/]* ) continue;;
1581 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1583 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1586 # There might be people who depend on the old broken behavior: `$host'
1587 # used to hold the argument of --host etc.
1588 # FIXME: To remove some day.
1591 target=$target_alias
1593 # FIXME: To remove some day.
1594 if test "x$host_alias" != x; then
1595 if test "x$build_alias" = x; then
1596 cross_compiling=maybe
1597 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1598 If a cross compiler is detected then cross compile mode will be used" >&2
1599 elif test "x$build_alias" != "x$host_alias"; then
1605 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1607 test "$silent" = yes && exec 6>/dev/null
1610 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1611 ac_ls_di=`ls -di .` &&
1612 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1613 as_fn_error $? "working directory cannot be determined"
1614 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1615 as_fn_error $? "pwd does not report name of working directory"
1618 # Find the source files, if location was not specified.
1619 if test -z "$srcdir"; then
1620 ac_srcdir_defaulted=yes
1621 # Try the directory containing this script, then the parent directory.
1622 ac_confdir=`$as_dirname -- "$as_myself" ||
1623 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1624 X"$as_myself" : 'X\(//\)[^/]' \| \
1625 X"$as_myself" : 'X\(//\)$' \| \
1626 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1627 $as_echo X"$as_myself" |
1628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1646 if test ! -r "$srcdir/$ac_unique_file"; then
1650 ac_srcdir_defaulted=no
1652 if test ! -r "$srcdir/$ac_unique_file"; then
1653 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1654 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1656 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1658 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1660 # When building in place, set srcdir=.
1661 if test "$ac_abs_confdir" = "$ac_pwd"; then
1664 # Remove unnecessary trailing slashes from srcdir.
1665 # Double slashes in file names in object file debugging info
1666 # mess up M-x gdb in Emacs.
1668 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1670 for ac_var in $ac_precious_vars; do
1671 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1672 eval ac_env_${ac_var}_value=\$${ac_var}
1673 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1674 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1678 # Report the --help message.
1680 if test "$ac_init_help" = "long"; then
1681 # Omit some internal or obsolete options to make the list less imposing.
1682 # This message is too long to be a string in the A/UX 3.1 sh.
1684 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1686 Usage: $0 [OPTION]... [VAR=VALUE]...
1688 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1689 VAR=VALUE. See below for descriptions of some of the useful variables.
1691 Defaults for the options are specified in brackets.
1694 -h, --help display this help and exit
1695 --help=short display options specific to this package
1696 --help=recursive display the short help of all the included packages
1697 -V, --version display version information and exit
1698 -q, --quiet, --silent do not print \`checking ...' messages
1699 --cache-file=FILE cache test results in FILE [disabled]
1700 -C, --config-cache alias for \`--cache-file=config.cache'
1701 -n, --no-create do not create output files
1702 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1704 Installation directories:
1705 --prefix=PREFIX install architecture-independent files in PREFIX
1706 [$ac_default_prefix]
1707 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1710 By default, \`make install' will install all the files in
1711 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1712 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1713 for instance \`--prefix=\$HOME'.
1715 For better control, use the options below.
1717 Fine tuning of the installation directories:
1718 --bindir=DIR user executables [EPREFIX/bin]
1719 --sbindir=DIR system admin executables [EPREFIX/sbin]
1720 --libexecdir=DIR program executables [EPREFIX/libexec]
1721 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1722 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1723 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1724 --libdir=DIR object code libraries [EPREFIX/lib]
1725 --includedir=DIR C header files [PREFIX/include]
1726 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1727 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1728 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1729 --infodir=DIR info documentation [DATAROOTDIR/info]
1730 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1731 --mandir=DIR man documentation [DATAROOTDIR/man]
1732 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1733 --htmldir=DIR html documentation [DOCDIR]
1734 --dvidir=DIR dvi documentation [DOCDIR]
1735 --pdfdir=DIR pdf documentation [DOCDIR]
1736 --psdir=DIR ps documentation [DOCDIR]
1742 --x-includes=DIR X include files are in DIR
1743 --x-libraries=DIR X library files are in DIR
1746 --build=BUILD configure for building on BUILD [guessed]
1747 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1751 if test -n "$ac_init_help"; then
1752 case $ac_init_help in
1753 short | recursive ) echo "Configuration of bacula 5.1.14:";;
1758 --disable-option-checking ignore unrecognized --enable/--with options
1759 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1760 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1761 --enable-libtool enable building using GNU libtool [default=yes]
1762 --enable-shared[=PKGS] build shared libraries [default=yes]
1763 --enable-static[=PKGS] build static libraries [default=no]
1764 --enable-fast-install[=PKGS]
1765 optimize for fast installation [default=yes]
1766 --disable-libtool-lock avoid locking (might break parallel builds)
1767 --enable-includes enable installing of include files [default=no]
1768 --disable-nls do not use Native Language Support
1769 --disable-rpath do not hardcode runtime library paths
1770 --enable-gnome enable build of bgnome-console GUI [default=no]
1771 --enable-bat enable build of bat Qt4 GUI [default=no]
1772 --enable-bwx-console enable build of wxWidgets console [default=no]
1773 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1775 --enable-smartalloc enable smartalloc debugging support [default=no]
1776 --enable-lockmgr enable lock manager support [default=no]
1777 --enable-static-tools enable static tape tools [default=no]
1778 --enable-static-fd enable static File daemon [default=no]
1779 --enable-static-sd enable static Storage daemon [default=no]
1780 --enable-static-dir enable static Director [default=no]
1781 --enable-static-cons enable static Console [default=no]
1782 --enable-client-only build client (File daemon) only [default=no]
1783 --enable-build-dird enable building of dird (Director) [default=yes]
1784 --enable-build-stored enable building of stored (Storage daemon)
1786 --disable-conio disable conio support [default=no]
1787 --enable-ipv6 enable ipv6 support [default=yes]
1788 --disable-readline disable readline support [default=yes]
1789 --enable-batch-insert enable the DB batch insert code [default=yes]
1790 --disable-largefile omit support for large files
1791 --disable-acl disable acl support [default=auto]
1792 --disable-xattr disable xattr support [default=auto]
1795 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1796 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1797 --with-pic try to use only PIC/non-PIC objects [default=use
1799 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1800 --with-gnu-ld assume the C compiler uses GNU ld default=no
1801 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1802 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1803 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1804 --without-libintl-prefix don't search for libintl in includedir and libdir
1805 --with-included-gettext use the GNU gettext library included here
1806 --with-readline[=DIR] specify readline library directory
1807 --with-python[=DIR] Include Python support. DIR is the Python base
1808 install directory, default is to search through a
1809 number of common places for the Python files.
1810 --with-tcp-wrappers[=DIR]
1811 enable tcpwrappers support
1812 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1813 --with-working-dir=PATH specify path of Bacula working directory
1814 --with-archivedir=PATH specify path of SD archive directory
1815 --with-basename=RESNAME specify base resource name for daemons
1816 --with-hostname=RESNAME specify host name for daemons
1817 --with-scriptdir=PATH specify path of Bacula scripts directory
1818 --with-bsrdir=PATH specify path of Bacula bsrs directory
1819 --with-logdir=PATH specify path of Bacula logs directory
1820 --with-plugindir=PATH specify path of Bacula plugins directory
1821 --with-dump-email=EMAIL dump email address
1822 --with-job-email=EMAIL job output email address
1823 --with-smtp-host=HOST SMTP mail host address
1824 --with-pid-dir=PATH specify location of Bacula pid files
1825 --with-subsys-dir=PATH specify location of Bacula subsys file
1826 --with-baseport=PORT specify base port address for daemons
1827 --with-dir-password=PASSWORD
1828 specify Director's password
1829 --with-fd-password=PASSWORD
1830 specify Client's password
1831 --with-sd-password=PASSWORD
1832 specify Storage daemon's password
1833 --with-mon-dir-password=PASSWORD
1834 specify Director's password used by the monitor
1835 --with-mon-fd-password=PASSWORD
1836 specify Client's password used by the monitor
1837 --with-mon-sd-password=PASSWORD
1838 specify Storage daemon's password used by the
1840 --with-db-name=DBNAME specify database name [default=bacula]
1841 --with-db-user=UNAME specify database user [default=bacula]
1842 --with-db-password=PWD specify database password [default=*none*]
1843 --with-db-port=DBPORT specify a database port [default=null]
1844 --with-dir-user=USER specify user for Director daemon
1845 --with-dir-group=GROUP specify group for Director daemon
1846 --with-sd-user=USER specify user for Storage daemon
1847 --with-sd-group=GROUP specify group for Storage daemon
1848 --with-fd-user=USER specify user for File daemon
1849 --with-fd-group=GROUP specify group for File daemon
1850 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1851 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1852 base install directory, [default=/usr/local/pgsql]
1853 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1854 directory, default is to search through a number of
1855 common places for the MySQL files.
1856 --with-embedded-mysql[=DIR]
1857 Include MySQL support. DIR is the MySQL base install
1858 directory, default is to search through a number of
1859 common places for the MySQL files.
1860 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1861 install directory, default is to search through a
1862 number of common places for the SQLite3 files.
1863 --with-x use the X Window System
1865 Some influential environment variables:
1866 CC C compiler command
1867 CFLAGS C compiler flags
1868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1869 nonstandard directory <lib dir>
1870 LIBS libraries to pass to the linker, e.g. -l<library>
1871 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1872 you have headers in a nonstandard directory <include dir>
1873 CXX C++ compiler command
1874 CXXFLAGS C++ compiler flags
1876 WXCONFIG wx-config command. On some systems, you must set it to
1877 wx-config-2.6 to use wxWidgets 2.6.
1878 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1879 CXXCPP C++ preprocessor
1880 XMKMF Path to xmkmf, Makefile generator for X Window System
1882 Use these variables to override the choices made by `configure' or to help
1883 it to find libraries and programs with nonstandard names/locations.
1885 Report bugs to the package provider.
1890 if test "$ac_init_help" = "recursive"; then
1891 # If there are subdirs, report their specific --help.
1892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1893 test -d "$ac_dir" ||
1894 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1902 # A ".." for each directory in $ac_dir_suffix.
1903 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1904 case $ac_top_builddir_sub in
1905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1909 ac_abs_top_builddir=$ac_pwd
1910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1911 # for backward compatibility:
1912 ac_top_builddir=$ac_top_build_prefix
1915 .) # We are building in place.
1917 ac_top_srcdir=$ac_top_builddir_sub
1918 ac_abs_top_srcdir=$ac_pwd ;;
1919 [\\/]* | ?:[\\/]* ) # Absolute name.
1920 ac_srcdir=$srcdir$ac_dir_suffix;
1921 ac_top_srcdir=$srcdir
1922 ac_abs_top_srcdir=$srcdir ;;
1924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1925 ac_top_srcdir=$ac_top_build_prefix$srcdir
1926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1930 cd "$ac_dir" || { ac_status=$?; continue; }
1931 # Check for guested configure.
1932 if test -f "$ac_srcdir/configure.gnu"; then
1934 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1935 elif test -f "$ac_srcdir/configure"; then
1937 $SHELL "$ac_srcdir/configure" --help=recursive
1939 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1941 cd "$ac_pwd" || { ac_status=$?; break; }
1945 test -n "$ac_init_help" && exit $ac_status
1946 if $ac_init_version; then
1948 bacula configure 5.1.14
1949 generated by GNU Autoconf 2.68
1951 Copyright (C) 2010 Free Software Foundation, Inc.
1952 This configure script is free software; the Free Software Foundation
1953 gives unlimited permission to copy, distribute and modify it.
1958 ## ------------------------ ##
1959 ## Autoconf initialization. ##
1960 ## ------------------------ ##
1962 # ac_fn_c_try_compile LINENO
1963 # --------------------------
1964 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_compile ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext
1969 if { { ac_try="$ac_compile"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_compile") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest.$ac_objext; then :
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_c_try_compile
2000 # ac_fn_cxx_try_compile LINENO
2001 # ----------------------------
2002 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext
2007 if { { ac_try="$ac_compile"
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_compile") 2>conftest.err
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest.$ac_objext; then :
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2036 } # ac_fn_cxx_try_compile
2038 # ac_fn_c_try_cpp LINENO
2039 # ----------------------
2040 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_cpp conftest.$ac_ext"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2053 if test -s conftest.err; then
2054 grep -v '^ *+' conftest.err >conftest.er1
2055 cat conftest.er1 >&5
2056 mv -f conftest.er1 conftest.err
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } > conftest.i && {
2060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2061 test ! -s conftest.err
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2075 # ac_fn_c_try_link LINENO
2076 # -----------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 $as_test_x conftest$ac_exeext
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113 # interfere with the next link command; also delete a directory that is
2114 # left behind by Apple's compiler. We do this before executing the actions.
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2119 } # ac_fn_c_try_link
2121 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists and can be compiled using the include files in
2124 # INCLUDES, setting the cache variable VAR accordingly.
2125 ac_fn_c_check_header_compile ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2138 if ac_fn_c_try_compile "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 } # ac_fn_c_check_header_compile
2152 # ac_fn_c_try_run LINENO
2153 # ----------------------
2154 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2155 # that executables *can* be run.
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if { { ac_try="$ac_link"
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 $as_echo "$ac_try_echo"; } >&5
2166 (eval "$ac_link") 2>&5
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2170 { { case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_try") 2>&5
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; }; }; then :
2182 $as_echo "$as_me: program exited with status $ac_status" >&5
2183 $as_echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 ac_retval=$ac_status
2188 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 as_fn_set_status $ac_retval
2194 # ac_fn_c_check_func LINENO FUNC VAR
2195 # ----------------------------------
2196 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2197 ac_fn_c_check_func ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2209 #define $2 innocuous_$2
2211 /* System header to define __stub macros and hopefully few prototypes,
2212 which can conflict with char $2 (); below.
2213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2214 <limits.h> exists even on freestanding compilers. */
2217 # include <limits.h>
2219 # include <assert.h>
2224 /* Override any GCC internal prototype to avoid an error.
2225 Use char because int might match the return type of a GCC
2226 builtin and then its argument prototype would still apply. */
2231 /* The GNU C library defines this for functions which it implements
2232 to always fail with ENOSYS. Some functions are actually named
2233 something starting with __ and the normal name is an alias. */
2234 #if defined __stub_$2 || defined __stub___$2
2246 if ac_fn_c_try_link "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext \
2252 conftest$ac_exeext conftest.$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_check_func
2261 # ac_fn_cxx_try_cpp LINENO
2262 # ------------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_cxx_try_cpp ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_cpp conftest.$ac_ext"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2284 test ! -s conftest.err
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_cxx_try_cpp
2298 # ac_fn_cxx_try_link LINENO
2299 # -------------------------
2300 # Try to link conftest.$ac_ext, and return whether this succeeded.
2301 ac_fn_cxx_try_link ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 rm -f conftest.$ac_objext conftest$ac_exeext
2305 if { { ac_try="$ac_link"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 $as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_link") 2>conftest.err
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } && {
2321 test -z "$ac_cxx_werror_flag" ||
2322 test ! -s conftest.err
2323 } && test -s conftest$ac_exeext && {
2324 test "$cross_compiling" = yes ||
2325 $as_test_x conftest$ac_exeext
2329 $as_echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2334 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2335 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2336 # interfere with the next link command; also delete a directory that is
2337 # left behind by Apple's compiler. We do this before executing the actions.
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2342 } # ac_fn_cxx_try_link
2344 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2345 # -------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_c_check_type ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if eval \${$3+:} false; then :
2354 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2396 } # ac_fn_c_check_type
2398 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2401 # the include files in INCLUDES and setting the cache variable VAR
2403 ac_fn_c_check_header_mongrel ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 if eval \${$3+:} false; then :
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 $as_echo_n "checking for $2... " >&6; }
2409 if eval \${$3+:} false; then :
2410 $as_echo_n "(cached) " >&6
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2416 # Is the header compilable?
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2418 $as_echo_n "checking $2 usability... " >&6; }
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 ac_header_compiler=yes
2427 ac_header_compiler=no
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2431 $as_echo "$ac_header_compiler" >&6; }
2433 # Is the header present?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2435 $as_echo_n "checking $2 presence... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 if ac_fn_c_try_cpp "$LINENO"; then :
2441 ac_header_preproc=yes
2443 ac_header_preproc=no
2445 rm -f conftest.err conftest.i conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2447 $as_echo "$ac_header_preproc" >&6; }
2449 # So? What about this header?
2450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2453 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2459 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2461 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2463 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2465 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 eval "$3=\$ac_header_compiler"
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483 } # ac_fn_c_check_header_mongrel
2485 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2486 # --------------------------------------------
2487 # Tries to find the compile-time value of EXPR in a program that includes
2488 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 ac_fn_c_compute_int ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if test "$cross_compiling" = yes; then
2494 # Depending upon the size, compute the lo and hi bounds.
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2501 static int test_array [1 - 2 * !(($2) >= 0)];
2508 if ac_fn_c_try_compile "$LINENO"; then :
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=$ac_mid; break
2527 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2528 if test $ac_lo -le $ac_mid; then
2532 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2543 static int test_array [1 - 2 * !(($2) < 0)];
2550 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2559 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_lo=$ac_mid; break
2569 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2570 if test $ac_mid -le $ac_hi; then
2574 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 # Binary search between lo and hi bounds.
2585 while test "x$ac_lo" != "x$ac_hi"; do
2586 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2593 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2600 if ac_fn_c_try_compile "$LINENO"; then :
2603 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2615 static long int longval () { return $2; }
2616 static unsigned long int ulongval () { return $2; }
2623 FILE *f = fopen ("conftest.val", "w");
2628 long int i = longval ();
2631 fprintf (f, "%ld", i);
2635 unsigned long int i = ulongval ();
2638 fprintf (f, "%lu", i);
2640 /* Do not output a trailing newline, as this causes \r\n confusion
2641 on some platforms. */
2642 return ferror (f) || fclose (f) != 0;
2648 if ac_fn_c_try_run "$LINENO"; then :
2649 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2654 conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_c_compute_int
2663 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2664 # ----------------------------------------------------
2665 # Tries to find if the field MEMBER exists in type AGGR, after including
2666 # INCLUDES, setting cache variable VAR accordingly.
2667 ac_fn_c_check_member ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2671 $as_echo_n "checking for $2.$3... " >&6; }
2672 if eval \${$4+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2688 if ac_fn_c_try_compile "$LINENO"; then :
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2698 if (sizeof ac_aggr.$3)
2704 if ac_fn_c_try_compile "$LINENO"; then :
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718 } # ac_fn_c_check_member
2720 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2721 # ---------------------------------------------
2722 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2724 ac_fn_c_check_decl ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 as_decl_name=`echo $2|sed 's/ *(.*//'`
2728 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2730 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2740 #ifndef $as_decl_name
2742 (void) $as_decl_use;
2744 (void) $as_decl_name;
2752 if ac_fn_c_try_compile "$LINENO"; then :
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764 } # ac_fn_c_check_decl
2766 # ac_fn_cxx_try_run LINENO
2767 # ------------------------
2768 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2769 # that executables *can* be run.
2770 ac_fn_cxx_try_run ()
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 if { { ac_try="$ac_link"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_link") 2>&5
2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2784 { { case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_try") 2>&5
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; }; }; then :
2796 $as_echo "$as_me: program exited with status $ac_status" >&5
2797 $as_echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_retval=$ac_status
2802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2804 as_fn_set_status $ac_retval
2806 } # ac_fn_cxx_try_run
2808 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2809 # ---------------------------------------------------------
2810 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2811 # the include files in INCLUDES and setting the cache variable VAR
2813 ac_fn_cxx_check_header_mongrel ()
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 if eval \${$3+:} false; then :
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2818 $as_echo_n "checking for $2... " >&6; }
2819 if eval \${$3+:} false; then :
2820 $as_echo_n "(cached) " >&6
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2824 $as_echo "$ac_res" >&6; }
2826 # Is the header compilable?
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2828 $as_echo_n "checking $2 usability... " >&6; }
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2834 if ac_fn_cxx_try_compile "$LINENO"; then :
2835 ac_header_compiler=yes
2837 ac_header_compiler=no
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2841 $as_echo "$ac_header_compiler" >&6; }
2843 # Is the header present?
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2845 $as_echo_n "checking $2 presence... " >&6; }
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2850 if ac_fn_cxx_try_cpp "$LINENO"; then :
2851 ac_header_preproc=yes
2853 ac_header_preproc=no
2855 rm -f conftest.err conftest.i conftest.$ac_ext
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2857 $as_echo "$ac_header_preproc" >&6; }
2859 # So? What about this header?
2860 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2863 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2869 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2871 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2873 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2875 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2881 $as_echo_n "checking for $2... " >&6; }
2882 if eval \${$3+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 eval "$3=\$ac_header_compiler"
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2889 $as_echo "$ac_res" >&6; }
2891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2893 } # ac_fn_cxx_check_header_mongrel
2894 cat >config.log <<_ACEOF
2895 This file contains any messages produced by compilers while
2896 running configure, to aid debugging if configure makes a mistake.
2898 It was created by bacula $as_me 5.1.14, which was
2899 generated by GNU Autoconf 2.68. Invocation command line was
2911 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2912 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2913 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2914 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2915 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2917 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2918 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2920 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2921 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2922 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2923 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2924 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2925 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2926 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 $as_echo "PATH: $as_dir"
2951 # Keep a trace of the command line.
2952 # Strip out --no-create and --no-recursion so they do not pile up.
2953 # Strip out --silent because we don't want to record it for future runs.
2954 # Also quote any args containing shell meta-characters.
2955 # Make two passes to allow for proper duplicate-argument suppression.
2959 ac_must_keep_next=false
2965 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2967 | -silent | --silent | --silen | --sile | --sil)
2970 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2975 as_fn_append ac_configure_args1 " '$ac_arg'"
2976 if test $ac_must_keep_next = true; then
2977 ac_must_keep_next=false # Got value, back to normal.
2980 *=* | --config-cache | -C | -disable-* | --disable-* \
2981 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2982 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2983 | -with-* | --with-* | -without-* | --without-* | --x)
2984 case "$ac_configure_args0 " in
2985 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2988 -* ) ac_must_keep_next=true ;;
2991 as_fn_append ac_configure_args " '$ac_arg'"
2996 { ac_configure_args0=; unset ac_configure_args0;}
2997 { ac_configure_args1=; unset ac_configure_args1;}
2999 # When interrupted or exit'd, cleanup temporary files, and complete
3000 # config.log. We remove comments because anyway the quotes in there
3001 # would cause problems or look ugly.
3002 # WARNING: Use '\'' to represent an apostrophe within the trap.
3003 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3004 trap 'exit_status=$?
3005 # Save into config.log some information that might help in debugging.
3009 $as_echo "## ---------------- ##
3010 ## Cache variables. ##
3011 ## ---------------- ##"
3013 # The following way of writing the cache mishandles newlines in values,
3015 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3016 eval ac_val=\$$ac_var
3020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3024 _ | IFS | as_nl) ;; #(
3025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3026 *) { eval $ac_var=; unset $ac_var;} ;;
3031 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3032 *${as_nl}ac_space=\ *)
3034 "s/'\''/'\''\\\\'\'''\''/g;
3035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045 $as_echo "## ----------------- ##
3046 ## Output variables. ##
3047 ## ----------------- ##"
3049 for ac_var in $ac_subst_vars
3051 eval ac_val=\$$ac_var
3053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055 $as_echo "$ac_var='\''$ac_val'\''"
3059 if test -n "$ac_subst_files"; then
3060 $as_echo "## ------------------- ##
3061 ## File substitutions. ##
3062 ## ------------------- ##"
3064 for ac_var in $ac_subst_files
3066 eval ac_val=\$$ac_var
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070 $as_echo "$ac_var='\''$ac_val'\''"
3075 if test -s confdefs.h; then
3076 $as_echo "## ----------- ##
3083 test "$ac_signal" != 0 &&
3084 $as_echo "$as_me: caught signal $ac_signal"
3085 $as_echo "$as_me: exit $exit_status"
3087 rm -f core *.core core.conftest.* &&
3088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3091 for ac_signal in 1 2 13 15; do
3092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3097 rm -f -r conftest* confdefs.h
3099 $as_echo "/* confdefs.h */" > confdefs.h
3101 # Predefined preprocessor variables.
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_NAME "$PACKAGE_NAME"
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_STRING "$PACKAGE_STRING"
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_URL "$PACKAGE_URL"
3128 # Let the site file select an alternate cache file if it wants to.
3129 # Prefer an explicitly selected file to automatically selected ones.
3132 if test -n "$CONFIG_SITE"; then
3133 # We do not want a PATH search for config.site.
3134 case $CONFIG_SITE in #((
3135 -*) ac_site_file1=./$CONFIG_SITE;;
3136 */*) ac_site_file1=$CONFIG_SITE;;
3137 *) ac_site_file1=./$CONFIG_SITE;;
3139 elif test "x$prefix" != xNONE; then
3140 ac_site_file1=$prefix/share/config.site
3141 ac_site_file2=$prefix/etc/config.site
3143 ac_site_file1=$ac_default_prefix/share/config.site
3144 ac_site_file2=$ac_default_prefix/etc/config.site
3146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3148 test "x$ac_site_file" = xNONE && continue
3149 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3152 sed 's/^/| /' "$ac_site_file" >&5
3154 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "failed to load site script $ac_site_file
3157 See \`config.log' for more details" "$LINENO" 5; }
3161 if test -r "$cache_file"; then
3162 # Some versions of bash will fail to source /dev/null (special files
3163 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3164 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3166 $as_echo "$as_me: loading cache $cache_file" >&6;}
3168 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3169 *) . "./$cache_file";;
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3174 $as_echo "$as_me: creating cache $cache_file" >&6;}
3178 as_fn_append ac_header_list " stdlib.h"
3179 as_fn_append ac_header_list " unistd.h"
3180 as_fn_append ac_header_list " sys/param.h"
3181 # Check that the precious variables saved in the cache have kept the same
3183 ac_cache_corrupted=false
3184 for ac_var in $ac_precious_vars; do
3185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3186 eval ac_new_set=\$ac_env_${ac_var}_set
3187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3188 eval ac_new_val=\$ac_env_${ac_var}_value
3189 case $ac_old_set,$ac_new_set in
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3193 ac_cache_corrupted=: ;;
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3197 ac_cache_corrupted=: ;;
3200 if test "x$ac_old_val" != "x$ac_new_val"; then
3201 # differences in whitespace do not lead to failure.
3202 ac_old_val_w=`echo x $ac_old_val`
3203 ac_new_val_w=`echo x $ac_new_val`
3204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3207 ac_cache_corrupted=:
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3211 eval $ac_var=\$ac_old_val
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3219 # Pass precious variables to config.status.
3220 if test "$ac_new_set" = set; then
3222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3223 *) ac_arg=$ac_var=$ac_new_val ;;
3225 case " $ac_configure_args " in
3226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3231 if $ac_cache_corrupted; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3238 ## -------------------- ##
3239 ## Main body of script. ##
3240 ## -------------------- ##
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3259 if test -f "$ac_dir/install-sh"; then
3261 ac_install_sh="$ac_aux_dir/install-sh -c"
3263 elif test -f "$ac_dir/install.sh"; then
3265 ac_install_sh="$ac_aux_dir/install.sh -c"
3267 elif test -f "$ac_dir/shtool"; then
3269 ac_install_sh="$ac_aux_dir/shtool install -c"
3273 if test -z "$ac_aux_dir"; then
3274 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3277 # These three variables are undocumented and unsupported,
3278 # and are intended to be withdrawn in a future Autoconf release.
3279 # They can cause serious problems if a builder's source tree is in a directory
3280 # whose full name contains unusual characters.
3281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3286 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3289 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3290 WIN32MAINDIR=${BUILD_DIR}
3291 WIN32TOPDIR=${TOP_DIR}
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_path_TRUEPRG+:} false; then :
3303 $as_echo_n "(cached) " >&6
3307 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 TRUEPRG=$ac_cv_path_TRUEPRG
3329 if test -n "$TRUEPRG"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3331 $as_echo "$TRUEPRG" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3338 test -n "$TRUEPRG" && break
3340 test -n "$TRUEPRG" || TRUEPRG=":"
3342 for ac_prog in false
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_path_FALSEPRG+:} false; then :
3349 $as_echo_n "(cached) " >&6
3353 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 FALSEPRG=$ac_cv_path_FALSEPRG
3375 if test -n "$FALSEPRG"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3377 $as_echo "$FALSEPRG" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3384 test -n "$FALSEPRG" && break
3386 test -n "$FALSEPRG" || FALSEPRG=":"
3391 if test "x$BACULA" != x; then
3392 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3394 BACULA=${BACULA:-Bacula}
3395 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3396 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3397 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3398 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3400 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3401 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3402 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3404 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3405 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3406 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3409 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3410 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3412 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3413 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3416 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3418 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3421 echo "configuring for ${BACULA} $VERSION ($DATE)"
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3469 if test -z "$ac_cv_prog_CC"; then
3471 # Extract the first word of "gcc", so it can be a program name with args.
3472 set dummy gcc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC="gcc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3507 if test "x$ac_ct_CC" = x; then
3510 case $cross_compiling:$ac_tool_warned in
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_CC="${ac_tool_prefix}cc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 # Extract the first word of "cc", so it can be a program name with args.
3565 set dummy cc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583 ac_prog_rejected=yes
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test $ac_prog_rejected = yes; then
3595 # We found a bogon in the path, so make sure we never use it.
3596 set dummy $ac_cv_prog_CC
3598 if test $# != 0; then
3599 # We chose a different compiler from the bogus one.
3600 # However, it has the same basename, so the bogon will be chosen
3601 # first if we set CC to just the basename; use the full file name.
3603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 for ac_prog in cl.exe
3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_CC+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$CC" && break
3663 if test -z "$CC"; then
3665 for ac_prog in cl.exe
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$ac_ct_CC" && break
3707 if test "x$ac_ct_CC" = x; then
3710 case $cross_compiling:$ac_tool_warned in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "no acceptable C compiler found in \$PATH
3726 See \`config.log' for more details" "$LINENO" 5; }
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3732 for ac_option in --version -v -V -qversion; do
3733 { { ac_try="$ac_compiler $ac_option >&5"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3742 if test -s conftest.err; then
3744 ... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3748 rm -f conftest.er1 conftest.err
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3764 ac_clean_files_save=$ac_clean_files
3765 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3766 # Try to create an executable without -o first, disregard a.out.
3767 # It will help us diagnose broken compilers, and finding out an intuition
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3770 $as_echo_n "checking whether the C compiler works... " >&6; }
3771 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3773 # The possible output files:
3774 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777 for ac_file in $ac_files
3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3786 if { { ac_try="$ac_link_default"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link_default") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3798 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3799 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3800 # so that the user can short-circuit this test for compilers unknown to
3802 for ac_file in $ac_files ''
3804 test -f "$ac_file" || continue
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3809 # We found the default executable, but exeext='' is most
3813 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3817 # We set ac_cv_exeext here because the later test for it is not
3818 # safe: cross compilers may not add the suffix if given an `-o'
3819 # argument, so we may need to know it at that point already.
3820 # Even if this section looks crufty: it has the advantage of
3827 test "$ac_cv_exeext" = no && ac_cv_exeext=
3832 if test -z "$ac_file"; then :
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error 77 "C compiler cannot create executables
3841 See \`config.log' for more details" "$LINENO" 5; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 $as_echo "yes" >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3847 $as_echo_n "checking for C compiler default output file name... " >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3849 $as_echo "$ac_file" >&6; }
3850 ac_exeext=$ac_cv_exeext
3852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3853 ac_clean_files=$ac_clean_files_save
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3855 $as_echo_n "checking for suffix of executables... " >&6; }
3856 if { { ac_try="$ac_link"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_link") 2>&5
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3869 # work properly (i.e., refer to `conftest.exe'), while it won't with
3871 for ac_file in conftest.exe conftest conftest.*; do
3872 test -f "$ac_file" || continue
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3884 See \`config.log' for more details" "$LINENO" 5; }
3886 rm -f conftest conftest$ac_cv_exeext
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3888 $as_echo "$ac_cv_exeext" >&6; }
3890 rm -f conftest.$ac_ext
3891 EXEEXT=$ac_cv_exeext
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3899 FILE *f = fopen ("conftest.out", "w");
3900 return ferror (f) || fclose (f) != 0;
3906 ac_clean_files="$ac_clean_files conftest.out"
3907 # Check that the compiler produces executables we can run. If not, either
3908 # the compiler is broken, or we cross compile.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3910 $as_echo_n "checking whether we are cross compiling... " >&6; }
3911 if test "$cross_compiling" != yes; then
3912 { { ac_try="$ac_link"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_link") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }
3923 if { ac_try='./conftest$ac_cv_exeext'
3924 { { case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_try") 2>&5
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; }; then
3936 if test "$cross_compiling" = maybe; then
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot run C compiled programs.
3942 If you meant to cross compile, use \`--host'.
3943 See \`config.log' for more details" "$LINENO" 5; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3950 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3951 ac_clean_files=$ac_clean_files_save
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3953 $as_echo_n "checking for suffix of object files... " >&6; }
3954 if ${ac_cv_objext+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3968 rm -f conftest.o conftest.obj
3969 if { { ac_try="$ac_compile"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_compile") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 for ac_file in conftest.o conftest.obj conftest.*; do
3981 test -f "$ac_file" || continue;
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of object files: cannot compile
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4000 $as_echo "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 if ${ac_cv_c_compiler_gnu+:} false; then :
4006 $as_echo_n "(cached) " >&6
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4032 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4033 if test $ac_compiler_gnu = yes; then
4038 ac_test_CFLAGS=${CFLAGS+set}
4039 ac_save_CFLAGS=$CFLAGS
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4041 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4042 if ${ac_cv_prog_cc_g+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 ac_save_c_werror_flag=$ac_c_werror_flag
4046 ac_c_werror_flag=yes
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4075 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"; then :
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4102 $as_echo "$ac_cv_prog_cc_g" >&6; }
4103 if test "$ac_test_CFLAGS" = set; then
4104 CFLAGS=$ac_save_CFLAGS
4105 elif test $ac_cv_prog_cc_g = yes; then
4106 if test "$GCC" = yes; then
4112 if test "$GCC" = yes; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4119 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4120 if ${ac_cv_prog_cc_c89+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_cv_prog_cc_c89=no
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 #include <sys/types.h>
4130 #include <sys/stat.h>
4131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4132 struct buf { int x; };
4133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4134 static char *e (p, i)
4140 static char *f (char * (*g) (char **, int), char **p, ...)
4145 s = g (p, va_arg (v,int));
4150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4151 function prototypes and stuff, but not '\xHH' hex character constants.
4152 These don't provoke an error unfortunately, instead are silently treated
4153 as 'x'. The following induces an error, until -std is added to get
4154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4155 array size at least. It's necessary to write '\x00'==0 to get something
4156 that's true only with -std. */
4157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4160 inside strings and character constants. */
4162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4164 int test (int i, double x);
4165 struct s1 {int (*f) (int a);};
4166 struct s2 {int (*f) (double a);};
4167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4181 CC="$ac_save_CC $ac_arg"
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_c89=$ac_arg
4185 rm -f core conftest.err conftest.$ac_objext
4186 test "x$ac_cv_prog_cc_c89" != "xno" && break
4188 rm -f conftest.$ac_ext
4193 case "x$ac_cv_prog_cc_c89" in
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 $as_echo "none needed" >&6; } ;;
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4199 $as_echo "unsupported" >&6; } ;;
4201 CC="$CC $ac_cv_prog_cc_c89"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4205 if test "x$ac_cv_prog_cc_c89" != xno; then :
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 ac_cpp='$CXXCPP $CPPFLAGS'
4217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4220 if test -z "$CXX"; then
4221 if test -n "$CCC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CXX+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CXX"; then
4235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test -n "$CXX"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4257 $as_echo "$CXX" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4264 test -n "$CXX" && break
4267 if test -z "$CXX"; then
4269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4271 # Extract the first word of "$ac_prog", so it can be a program name with args.
4272 set dummy $ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 if test -n "$ac_ct_CXX"; then
4279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_ac_ct_CXX="$ac_prog"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4299 if test -n "$ac_ct_CXX"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4301 $as_echo "$ac_ct_CXX" >&6; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4308 test -n "$ac_ct_CXX" && break
4311 if test "x$ac_ct_CXX" = x; then
4314 case $cross_compiling:$ac_tool_warned in
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318 ac_tool_warned=yes ;;
4326 # Provide some information about the compiler.
4327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4330 for ac_option in --version -v -V -qversion; do
4331 { { ac_try="$ac_compiler $ac_option >&5"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4340 if test -s conftest.err; then
4342 ... rest of stderr output deleted ...
4343 10q' conftest.err >conftest.er1
4344 cat conftest.er1 >&5
4346 rm -f conftest.er1 conftest.err
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4352 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4353 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4380 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4381 if test $ac_compiler_gnu = yes; then
4386 ac_test_CXXFLAGS=${CXXFLAGS+set}
4387 ac_save_CXXFLAGS=$CXXFLAGS
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4389 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4390 if ${ac_cv_prog_cxx_g+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4394 ac_cxx_werror_flag=yes
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4408 if ac_fn_cxx_try_compile "$LINENO"; then :
4409 ac_cv_prog_cxx_g=yes
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4423 if ac_fn_cxx_try_compile "$LINENO"; then :
4426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4439 if ac_fn_cxx_try_compile "$LINENO"; then :
4440 ac_cv_prog_cxx_g=yes
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4450 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4451 if test "$ac_test_CXXFLAGS" = set; then
4452 CXXFLAGS=$ac_save_CXXFLAGS
4453 elif test $ac_cv_prog_cxx_g = yes; then
4454 if test "$GXX" = yes; then
4460 if test "$GXX" = yes; then
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 if test "x$CC" != xcc; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4474 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4477 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4479 set dummy $CC; ac_cc=`$as_echo "$2" |
4480 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4481 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4495 # Make sure it works both with $CC and with simple cc.
4496 # We do the test twice because some compilers refuse to overwrite an
4497 # existing .o file with -o, though they will create one.
4498 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4500 if { { case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_try") 2>&5
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; } &&
4510 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_try") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; };
4521 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4522 if test "x$CC" != xcc; then
4523 # Test first that cc exists at all.
4524 if { ac_try='cc -c conftest.$ac_ext >&5'
4525 { { case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_try") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; }; then
4535 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4537 if { { case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543 (eval "$ac_try") 2>&5
4545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4546 test $ac_status = 0; } &&
4547 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553 (eval "$ac_try") 2>&5
4555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; };
4561 # cc exists but doesn't like -o.
4562 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4567 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4569 rm -f core conftest*
4572 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574 $as_echo "yes" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4579 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4590 # On Suns, sometimes $CPP names a directory.
4591 if test -n "$CPP" && test -d "$CPP"; then
4594 if test -z "$CPP"; then
4595 if ${ac_cv_prog_CPP+:} false; then :
4596 $as_echo_n "(cached) " >&6
4598 # Double quotes because CPP needs to be expanded
4599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4602 for ac_c_preproc_warn_flag in '' yes
4604 # Use a header file that comes with gcc, so configuring glibc
4605 # with a fresh cross-compiler works.
4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 # <limits.h> exists even on freestanding compilers.
4608 # On the NeXT, cc -E runs the code through the compiler's parser,
4609 # not just through cpp. "Syntax error" is here to catch this case.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4613 # include <limits.h>
4615 # include <assert.h>
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4622 # Broken: fails on valid input.
4625 rm -f conftest.err conftest.i conftest.$ac_ext
4627 # OK, works on sane cases. Now check whether nonexistent headers
4628 # can be detected and how.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4634 # Broken: success on invalid input.
4637 # Passes both tests.
4641 rm -f conftest.err conftest.i conftest.$ac_ext
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.i conftest.err conftest.$ac_ext
4646 if $ac_preproc_ok; then :
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4659 $as_echo "$CPP" >&6; }
4661 for ac_c_preproc_warn_flag in '' yes
4663 # Use a header file that comes with gcc, so configuring glibc
4664 # with a fresh cross-compiler works.
4665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666 # <limits.h> exists even on freestanding compilers.
4667 # On the NeXT, cc -E runs the code through the compiler's parser,
4668 # not just through cpp. "Syntax error" is here to catch this case.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4672 # include <limits.h>
4674 # include <assert.h>
4678 if ac_fn_c_try_cpp "$LINENO"; then :
4681 # Broken: fails on valid input.
4684 rm -f conftest.err conftest.i conftest.$ac_ext
4686 # OK, works on sane cases. Now check whether nonexistent headers
4687 # can be detected and how.
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <ac_nonexistent.h>
4692 if ac_fn_c_try_cpp "$LINENO"; then :
4693 # Broken: success on invalid input.
4696 # Passes both tests.
4700 rm -f conftest.err conftest.i conftest.$ac_ext
4703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4704 rm -f conftest.i conftest.err conftest.$ac_ext
4705 if $ac_preproc_ok; then :
4708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4711 See \`config.log' for more details" "$LINENO" 5; }
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4722 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4723 if ${ac_cv_path_GREP+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 if test -z "$GREP"; then
4727 ac_path_GREP_found=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733 test -z "$as_dir" && as_dir=.
4734 for ac_prog in grep ggrep; do
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4737 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4738 # Check for GNU ac_path_GREP and select it if it is found.
4739 # Check for GNU $ac_path_GREP
4740 case `"$ac_path_GREP" --version 2>&1` in
4742 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4745 $as_echo_n 0123456789 >"conftest.in"
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'GREP' >> "conftest.nl"
4752 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754 as_fn_arith $ac_count + 1 && ac_count=$as_val
4755 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_GREP="$ac_path_GREP"
4758 ac_path_GREP_max=$ac_count
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 $ac_path_GREP_found && break 3
4771 if test -z "$ac_cv_path_GREP"; then
4772 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 ac_cv_path_GREP=$GREP
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4780 $as_echo "$ac_cv_path_GREP" >&6; }
4781 GREP="$ac_cv_path_GREP"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4785 $as_echo_n "checking for egrep... " >&6; }
4786 if ${ac_cv_path_EGREP+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4790 then ac_cv_path_EGREP="$GREP -E"
4792 if test -z "$EGREP"; then
4793 ac_path_EGREP_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4799 test -z "$as_dir" && as_dir=.
4800 for ac_prog in egrep; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4803 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4804 # Check for GNU ac_path_EGREP and select it if it is found.
4805 # Check for GNU $ac_path_EGREP
4806 case `"$ac_path_EGREP" --version 2>&1` in
4808 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4811 $as_echo_n 0123456789 >"conftest.in"
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo 'EGREP' >> "conftest.nl"
4818 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_EGREP="$ac_path_EGREP"
4824 ac_path_EGREP_max=$ac_count
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832 $ac_path_EGREP_found && break 3
4837 if test -z "$ac_cv_path_EGREP"; then
4838 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4841 ac_cv_path_EGREP=$EGREP
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4847 $as_echo "$ac_cv_path_EGREP" >&6; }
4848 EGREP="$ac_cv_path_EGREP"
4851 if test $ac_cv_c_compiler_gnu = yes; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4853 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4854 if ${ac_cv_prog_gcc_traditional+:} false; then :
4855 $as_echo_n "(cached) " >&6
4857 ac_pattern="Autoconf.*'x'"
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4865 ac_cv_prog_gcc_traditional=yes
4867 ac_cv_prog_gcc_traditional=no
4872 if test $ac_cv_prog_gcc_traditional = no; then
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4880 ac_cv_prog_gcc_traditional=yes
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4887 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4888 if test $ac_cv_prog_gcc_traditional = yes; then
4889 CC="$CC -traditional"
4893 BASECC=`basename $CC`
4895 if test "x$BASECC" = xgcc; then
4896 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4900 # Extract the first word of "$CXX", so it can be a program name with args.
4901 set dummy $CXX; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_path_CXX+:} false; then :
4905 $as_echo_n "(cached) " >&6
4909 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4932 if test -n "$CXX"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4934 $as_echo "$CXX" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 if test ! -e $CXX; then
4942 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4945 # Find a good install program. We prefer a C program (faster),
4946 # so one script is as good as another. But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 # Reject install programs that cannot install multiple files.
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4960 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4961 if test -z "$INSTALL"; then
4962 if ${ac_cv_path_install+:} false; then :
4963 $as_echo_n "(cached) " >&6
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 # Account for people who put trailing slashes in PATH elements.
4971 case $as_dir/ in #((
4972 ./ | .// | /[cC]/* | \
4973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4974 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4977 # OSF1 and SCO ODT 3.0 have their own names for install.
4978 # Don't use installbsd from OSF since it installs stuff as root
4980 for ac_prog in ginstall scoinst install; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4983 if test $ac_prog = install &&
4984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4985 # AIX install. It has an incompatible calling convention.
4987 elif test $ac_prog = install &&
4988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989 # program-specific install script used by HP pwplus--don't use.
4992 rm -rf conftest.one conftest.two conftest.dir
4993 echo one > conftest.one
4994 echo two > conftest.two
4996 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4997 test -s conftest.one && test -s conftest.two &&
4998 test -s conftest.dir/conftest.one &&
4999 test -s conftest.dir/conftest.two
5001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5014 rm -rf conftest.one conftest.two conftest.dir
5017 if test "${ac_cv_path_install+set}" = set; then
5018 INSTALL=$ac_cv_path_install
5020 # As a last resort, use the slow shell script. Don't cache a
5021 # value for INSTALL within a source directory, because that will
5022 # break other packages using the cache if that directory is
5023 # removed, or if the value is a relative name.
5024 INSTALL=$ac_install_sh
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5028 $as_echo "$INSTALL" >&6; }
5030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5031 # It thinks the first close brace ends the variable substitution.
5032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5038 # Extract the first word of "mv", so it can be a program name with args.
5039 set dummy mv; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_path_MV+:} false; then :
5043 $as_echo_n "(cached) " >&6
5047 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5070 if test -n "$MV"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5072 $as_echo "$MV" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 # Extract the first word of "rm", so it can be a program name with args.
5080 set dummy rm; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_path_REMOVE+:} false; then :
5084 $as_echo_n "(cached) " >&6
5088 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5110 REMOVE=$ac_cv_path_REMOVE
5111 if test -n "$REMOVE"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5113 $as_echo "$REMOVE" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 # Extract the first word of "cp", so it can be a program name with args.
5121 set dummy cp; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_path_CP+:} false; then :
5125 $as_echo_n "(cached) " >&6
5129 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5152 if test -n "$CP"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5154 $as_echo "$CP" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 # Extract the first word of "sed", so it can be a program name with args.
5162 set dummy sed; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_path_SED+:} false; then :
5166 $as_echo_n "(cached) " >&6
5170 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5193 if test -n "$SED"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5195 $as_echo "$SED" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 # Extract the first word of "echo", so it can be a program name with args.
5203 set dummy echo; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_ECHO+:} false; then :
5207 $as_echo_n "(cached) " >&6
5211 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5233 ECHO=$ac_cv_path_ECHO
5234 if test -n "$ECHO"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5236 $as_echo "$ECHO" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 # Extract the first word of "cmp", so it can be a program name with args.
5244 set dummy cmp; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_path_CMP+:} false; then :
5248 $as_echo_n "(cached) " >&6
5252 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5275 if test -n "$CMP"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5277 $as_echo "$CMP" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 # Extract the first word of "tbl", so it can be a program name with args.
5285 set dummy tbl; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_TBL+:} false; then :
5289 $as_echo_n "(cached) " >&6
5293 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5316 if test -n "$TBL"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5318 $as_echo "$TBL" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5325 # Extract the first word of "ar", so it can be a program name with args.
5326 set dummy ar; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_path_AR+:} false; then :
5330 $as_echo_n "(cached) " >&6
5334 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5357 if test -n "$AR"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5359 $as_echo "$AR" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5366 # Extract the first word of "openssl", so it can be a program name with args.
5367 set dummy openssl; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_path_OPENSSL+:} false; then :
5371 $as_echo_n "(cached) " >&6
5375 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5397 OPENSSL=$ac_cv_path_OPENSSL
5398 if test -n "$OPENSSL"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5400 $as_echo "$OPENSSL" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 # Extract the first word of "mtx", so it can be a program name with args.
5408 set dummy mtx; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_path_MTX+:} false; then :
5412 $as_echo_n "(cached) " >&6
5416 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5439 if test -n "$MTX"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5441 $as_echo "$MTX" >&6; }
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5448 # Extract the first word of "dd", so it can be a program name with args.
5449 set dummy dd; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_path_DD+:} false; then :
5453 $as_echo_n "(cached) " >&6
5457 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5480 if test -n "$DD"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5482 $as_echo "$DD" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 # Extract the first word of "mkisofs", so it can be a program name with args.
5490 set dummy mkisofs; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_path_MKISOFS+:} false; then :
5494 $as_echo_n "(cached) " >&6
5498 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5520 MKISOFS=$ac_cv_path_MKISOFS
5521 if test -n "$MKISOFS"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5523 $as_echo "$MKISOFS" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 # Extract the first word of "python", so it can be a program name with args.
5531 set dummy python; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_PYTHON+:} false; then :
5535 $as_echo_n "(cached) " >&6
5539 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5561 PYTHON=$ac_cv_path_PYTHON
5562 if test -n "$PYTHON"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5564 $as_echo "$PYTHON" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 # Extract the first word of "growisofs", so it can be a program name with args.
5572 set dummy growisofs; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_path_GROWISOFS+:} false; then :
5576 $as_echo_n "(cached) " >&6
5580 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5602 GROWISOFS=$ac_cv_path_GROWISOFS
5603 if test -n "$GROWISOFS"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5605 $as_echo "$GROWISOFS" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5613 set dummy dvd+rw-mediainfo; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 case $DVDRWMEDIAINFO in
5621 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5643 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5644 if test -n "$DVDRWMEDIAINFO"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5646 $as_echo "$DVDRWMEDIAINFO" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5653 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5654 set dummy dvd+rw-format; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5658 $as_echo_n "(cached) " >&6
5660 case $DVDRWFORMAT in
5662 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5684 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5685 if test -n "$DVDRWFORMAT"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5687 $as_echo "$DVDRWFORMAT" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5694 # Extract the first word of "pkg-config", so it can be a program name with args.
5695 set dummy pkg-config; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_path_PKGCONFIG+:} false; then :
5699 $as_echo_n "(cached) " >&6
5703 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5725 PKGCONFIG=$ac_cv_path_PKGCONFIG
5726 if test -n "$PKGCONFIG"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5728 $as_echo "$PKGCONFIG" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5735 # Extract the first word of "qmake", so it can be a program name with args.
5736 set dummy qmake; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_path_QMAKE+:} false; then :
5740 $as_echo_n "(cached) " >&6
5744 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5766 QMAKE=$ac_cv_path_QMAKE
5767 if test -n "$QMAKE"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5769 $as_echo "$QMAKE" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 # Extract the first word of "gmake", so it can be a program name with args.
5777 set dummy gmake; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_GMAKE+:} false; then :
5781 $as_echo_n "(cached) " >&6
5785 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5807 GMAKE=$ac_cv_path_GMAKE
5808 if test -n "$GMAKE"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5810 $as_echo "$GMAKE" >&6; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5818 if test "x$WXCONFIG" = x; then
5821 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5822 set dummy ${WXCONFIG}; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_path_WXCONFIG+:} false; then :
5826 $as_echo_n "(cached) " >&6
5830 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5852 WXCONFIG=$ac_cv_path_WXCONFIG
5853 if test -n "$WXCONFIG"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5855 $as_echo "$WXCONFIG" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5863 # Extract the first word of "cdrecord", so it can be a program name with args.
5864 set dummy cdrecord; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_path_CDRECORD+:} false; then :
5868 $as_echo_n "(cached) " >&6
5872 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5894 CDRECORD=$ac_cv_path_CDRECORD
5895 if test -n "$CDRECORD"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5897 $as_echo "$CDRECORD" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5904 # Extract the first word of "pidof", so it can be a program name with args.
5905 set dummy pidof; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_path_PIDOF+:} false; then :
5909 $as_echo_n "(cached) " >&6
5913 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5935 PIDOF=$ac_cv_path_PIDOF
5936 if test -n "$PIDOF"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5938 $as_echo "$PIDOF" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5945 for ac_prog in gawk mawk nawk awk
5947 # Extract the first word of "$ac_prog", so it can be a program name with args.
5948 set dummy $ac_prog; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_AWK+:} false; then :
5952 $as_echo_n "(cached) " >&6
5954 if test -n "$AWK"; then
5955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_AWK="$ac_prog"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 if test -n "$AWK"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5977 $as_echo "$AWK" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5984 test -n "$AWK" && break
5987 # Some AWK programs fail, so test it and warn the user
5988 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5989 { if ((prog == $2) || (("(" prog ")") == $2) ||
5990 (("" prog "") == $2) ||
5991 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5993 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5994 The regex engine of $AWK is too broken to be used you
5995 might want to install GNU AWK.
5996 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5999 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6000 set dummy $THE_AWK; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_path_AWK+:} false; then :
6004 $as_echo_n "(cached) " >&6
6008 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6031 if test -n "$AWK"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6033 $as_echo "$AWK" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6042 test -n "$ARFLAG" || ARFLAGS="cr"
6054 # Check whether --enable-libtool was given.
6055 if test "${enable_libtool+set}" = set; then :
6056 enableval=$enable_libtool;
6057 if test x$enableval = xno; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6067 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6072 macro_version='2.2.6'
6073 macro_revision='1.3012'
6087 ltmain="$ac_aux_dir/ltmain.sh"
6089 # Make sure we can run config.sub.
6090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6091 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6094 $as_echo_n "checking build system type... " >&6; }
6095 if ${ac_cv_build+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 ac_build_alias=$build_alias
6099 test "x$ac_build_alias" = x &&
6100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6101 test "x$ac_build_alias" = x &&
6102 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6104 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6108 $as_echo "$ac_cv_build" >&6; }
6109 case $ac_cv_build in
6111 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6114 ac_save_IFS=$IFS; IFS='-'
6120 # Remember, the first character of IFS is used to create $*,
6121 # except with old shells:
6124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6128 $as_echo_n "checking host system type... " >&6; }
6129 if ${ac_cv_host+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if test "x$host_alias" = x; then
6133 ac_cv_host=$ac_cv_build
6135 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6136 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6141 $as_echo "$ac_cv_host" >&6; }
6144 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6147 ac_save_IFS=$IFS; IFS='-'
6153 # Remember, the first character of IFS is used to create $*,
6154 # except with old shells:
6157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6162 if ${ac_cv_path_SED+:} false; then :
6163 $as_echo_n "(cached) " >&6
6165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6166 for ac_i in 1 2 3 4 5 6 7; do
6167 ac_script="$ac_script$as_nl$ac_script"
6169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6170 { ac_script=; unset ac_script;}
6171 if test -z "$SED"; then
6172 ac_path_SED_found=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_prog in sed gsed; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6183 # Check for GNU ac_path_SED and select it if it is found.
6184 # Check for GNU $ac_path_SED
6185 case `"$ac_path_SED" --version 2>&1` in
6187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6190 $as_echo_n 0123456789 >"conftest.in"
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo '' >> "conftest.nl"
6197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_SED_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_SED="$ac_path_SED"
6203 ac_path_SED_max=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 $ac_path_SED_found && break 3
6216 if test -z "$ac_cv_path_SED"; then
6217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6225 $as_echo "$ac_cv_path_SED" >&6; }
6226 SED="$ac_cv_path_SED"
6229 test -z "$SED" && SED=sed
6230 Xsed="$SED -e 1s/^X//"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6243 $as_echo_n "checking for fgrep... " >&6; }
6244 if ${ac_cv_path_FGREP+:} false; then :
6245 $as_echo_n "(cached) " >&6
6247 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6248 then ac_cv_path_FGREP="$GREP -F"
6250 if test -z "$FGREP"; then
6251 ac_path_FGREP_found=false
6252 # Loop through the user's path and test for each of PROGNAME-LIST
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6257 test -z "$as_dir" && as_dir=.
6258 for ac_prog in fgrep; do
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6261 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6262 # Check for GNU ac_path_FGREP and select it if it is found.
6263 # Check for GNU $ac_path_FGREP
6264 case `"$ac_path_FGREP" --version 2>&1` in
6266 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6269 $as_echo_n 0123456789 >"conftest.in"
6272 cat "conftest.in" "conftest.in" >"conftest.tmp"
6273 mv "conftest.tmp" "conftest.in"
6274 cp "conftest.in" "conftest.nl"
6275 $as_echo 'FGREP' >> "conftest.nl"
6276 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6278 as_fn_arith $ac_count + 1 && ac_count=$as_val
6279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6280 # Best one so far, save it but keep looking for a better one
6281 ac_cv_path_FGREP="$ac_path_FGREP"
6282 ac_path_FGREP_max=$ac_count
6284 # 10*(2^10) chars as input seems more than enough
6285 test $ac_count -gt 10 && break
6287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6290 $ac_path_FGREP_found && break 3
6295 if test -z "$ac_cv_path_FGREP"; then
6296 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6299 ac_cv_path_FGREP=$FGREP
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6305 $as_echo "$ac_cv_path_FGREP" >&6; }
6306 FGREP="$ac_cv_path_FGREP"
6309 test -z "$GREP" && GREP=grep
6329 # Check whether --with-gnu-ld was given.
6330 if test "${with_gnu_ld+set}" = set; then :
6331 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6337 if test "$GCC" = yes; then
6338 # Check if gcc -print-prog-name=ld gives a path.
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6340 $as_echo_n "checking for ld used by $CC... " >&6; }
6343 # gcc leaves a trailing carriage return which upsets mingw
6344 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6346 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6349 # Accept absolute paths.
6351 re_direlt='/[^/][^/]*/\.\./'
6352 # Canonicalize the pathname of ld
6353 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6354 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6355 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6357 test -z "$LD" && LD="$ac_prog"
6360 # If it fails, then pretend we aren't using GCC.
6364 # If it is relative, then search for the first ld in PATH.
6368 elif test "$with_gnu_ld" = yes; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6370 $as_echo_n "checking for GNU ld... " >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6373 $as_echo_n "checking for non-GNU ld... " >&6; }
6375 if ${lt_cv_path_LD+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -z "$LD"; then
6379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6380 for ac_dir in $PATH; do
6382 test -z "$ac_dir" && ac_dir=.
6383 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6384 lt_cv_path_LD="$ac_dir/$ac_prog"
6385 # Check to see if the program is GNU ld. I'd rather use --version,
6386 # but apparently some variants of GNU ld only accept -v.
6387 # Break only if it was the GNU/non-GNU ld that we prefer.
6388 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6389 *GNU* | *'with BFD'*)
6390 test "$with_gnu_ld" != no && break
6393 test "$with_gnu_ld" != yes && break
6400 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6405 if test -n "$LD"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6407 $as_echo "$LD" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6412 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6415 if ${lt_cv_prog_gnu_ld+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6419 case `$LD -v 2>&1 </dev/null` in
6420 *GNU* | *'with BFD'*)
6421 lt_cv_prog_gnu_ld=yes
6424 lt_cv_prog_gnu_ld=no
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6429 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6430 with_gnu_ld=$lt_cv_prog_gnu_ld
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6441 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6442 if ${lt_cv_path_NM+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$NM"; then
6446 # Let the user override the test.
6449 lt_nm_to_check="${ac_tool_prefix}nm"
6450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6451 lt_nm_to_check="$lt_nm_to_check nm"
6453 for lt_tmp_nm in $lt_nm_to_check; do
6454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6457 test -z "$ac_dir" && ac_dir=.
6458 tmp_nm="$ac_dir/$lt_tmp_nm"
6459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6460 # Check to see if the nm accepts a BSD-compat flag.
6461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6462 # nm: unknown option "B" ignored
6463 # Tru64's nm complains that /dev/null is an invalid object file
6464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6465 */dev/null* | *'Invalid file or object type'*)
6466 lt_cv_path_NM="$tmp_nm -B"
6470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6472 lt_cv_path_NM="$tmp_nm -p"
6476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6477 continue # so that we can try to find one that supports BSD flags
6486 : ${lt_cv_path_NM=no}
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6490 $as_echo "$lt_cv_path_NM" >&6; }
6491 if test "$lt_cv_path_NM" != "no"; then
6494 # Didn't find any BSD compatible name lister, look for dumpbin.
6495 if test -n "$ac_tool_prefix"; then
6496 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_DUMPBIN+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$DUMPBIN"; then
6506 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 DUMPBIN=$ac_cv_prog_DUMPBIN
6526 if test -n "$DUMPBIN"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6528 $as_echo "$DUMPBIN" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6535 test -n "$DUMPBIN" && break
6538 if test -z "$DUMPBIN"; then
6539 ac_ct_DUMPBIN=$DUMPBIN
6540 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6542 # Extract the first word of "$ac_prog", so it can be a program name with args.
6543 set dummy $ac_prog; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_DUMPBIN"; then
6550 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6570 if test -n "$ac_ct_DUMPBIN"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6572 $as_echo "$ac_ct_DUMPBIN" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6579 test -n "$ac_ct_DUMPBIN" && break
6582 if test "x$ac_ct_DUMPBIN" = x; then
6585 case $cross_compiling:$ac_tool_warned in
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6591 DUMPBIN=$ac_ct_DUMPBIN
6596 if test "$DUMPBIN" != ":"; then
6600 test -z "$NM" && NM=nm
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6609 if ${lt_cv_nm_interface+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 lt_cv_nm_interface="BSD nm"
6613 echo "int some_variable = 0;" > conftest.$ac_ext
6614 (eval echo "\"\$as_me:6614: $ac_compile\"" >&5)
6615 (eval "$ac_compile" 2>conftest.err)
6616 cat conftest.err >&5
6617 (eval echo "\"\$as_me:6617: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6619 cat conftest.err >&5
6620 (eval echo "\"\$as_me:6620: output\"" >&5)
6621 cat conftest.out >&5
6622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6623 lt_cv_nm_interface="MS dumpbin"
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6628 $as_echo "$lt_cv_nm_interface" >&6; }
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6631 $as_echo_n "checking whether ln -s works... " >&6; }
6633 if test "$LN_S" = "ln -s"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6638 $as_echo "no, using $LN_S" >&6; }
6641 # find the maximum length of command line arguments
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6644 if ${lt_cv_sys_max_cmd_len+:} false; then :
6645 $as_echo_n "(cached) " >&6
6652 # On DJGPP, this test can blow up pretty badly due to problems in libc
6653 # (any single argument exceeding 2000 bytes causes a buffer overrun
6654 # during glob expansion). Even if it were fixed, the result of this
6655 # check would be larger than it should be.
6656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6660 # Under GNU Hurd, this test is not required because there is
6661 # no limit to the length of command line arguments.
6662 # Libtool will interpret -1 as no limit whatsoever
6663 lt_cv_sys_max_cmd_len=-1;
6666 cygwin* | mingw* | cegcc*)
6667 # On Win9x/ME, this test blows up -- it succeeds, but takes
6668 # about 5 minutes as the teststring grows exponentially.
6669 # Worse, since 9x/ME are not pre-emptively multitasking,
6670 # you end up with a "frozen" computer, even though with patience
6671 # the test eventually succeeds (with a max line length of 256k).
6672 # Instead, let's just punt: use the minimum linelength reported by
6673 # all of the supported platforms: 8192 (on NT/2K/XP).
6674 lt_cv_sys_max_cmd_len=8192;
6678 # On AmigaOS with pdksh, this test takes hours, literally.
6679 # So we just punt and use a minimum line length of 8192.
6680 lt_cv_sys_max_cmd_len=8192;
6683 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6684 # This has been around since 386BSD, at least. Likely further.
6685 if test -x /sbin/sysctl; then
6686 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6687 elif test -x /usr/sbin/sysctl; then
6688 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6690 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6692 # And add a safety zone
6693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6698 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6699 lt_cv_sys_max_cmd_len=196608
6703 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6704 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6705 # nice to cause kernel panics so lets avoid the loop below.
6706 # First set a reasonable default.
6707 lt_cv_sys_max_cmd_len=16384
6709 if test -x /sbin/sysconfig; then
6710 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6711 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6716 lt_cv_sys_max_cmd_len=102400
6718 sysv5* | sco5v6* | sysv4.2uw2*)
6719 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6720 if test -n "$kargmax"; then
6721 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6723 lt_cv_sys_max_cmd_len=32768
6727 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6728 if test -n "$lt_cv_sys_max_cmd_len"; then
6729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6732 # Make teststring a little bigger before we do anything with it.
6733 # a 1K string should be a reasonable start.
6734 for i in 1 2 3 4 5 6 7 8 ; do
6735 teststring=$teststring$teststring
6737 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6738 # If test is not a shell built-in, we'll probably end up computing a
6739 # maximum length that is only half of the actual maximum length, but
6741 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6742 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6743 test $i != 17 # 1/2 MB should be enough
6746 teststring=$teststring$teststring
6748 # Only check the string length outside the loop.
6749 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6751 # Add a significant safety factor because C++ compilers can tack on
6752 # massive amounts of additional arguments before passing them to the
6753 # linker. It appears as though 1/2 is a usable value.
6754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6761 if test -n $lt_cv_sys_max_cmd_len ; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6763 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6766 $as_echo "none" >&6; }
6768 max_cmd_len=$lt_cv_sys_max_cmd_len
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6780 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6781 # Try some XSI features
6784 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6786 && eval 'test $(( 1 + 1 )) -eq 2 \
6787 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6790 $as_echo "$xsi_shell" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6794 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6796 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6798 && lt_shell_append=yes
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6800 $as_echo "$lt_shell_append" >&6; }
6803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6813 # test EBCDIC or ASCII
6814 case `echo X|tr X '\101'` in
6815 A) # ASCII based system
6816 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6817 lt_SP2NL='tr \040 \012'
6818 lt_NL2SP='tr \015\012 \040\040'
6820 *) # EBCDIC based system
6821 lt_SP2NL='tr \100 \n'
6822 lt_NL2SP='tr \r\n \100\100'
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6836 if ${lt_cv_ld_reload_flag+:} false; then :
6837 $as_echo_n "(cached) " >&6
6839 lt_cv_ld_reload_flag='-r'
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6843 reload_flag=$lt_cv_ld_reload_flag
6844 case $reload_flag in
6846 *) reload_flag=" $reload_flag" ;;
6848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6851 if test "$GCC" = yes; then
6852 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_prog_OBJDUMP+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 if test -n "$OBJDUMP"; then
6876 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 OBJDUMP=$ac_cv_prog_OBJDUMP
6896 if test -n "$OBJDUMP"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6898 $as_echo "$OBJDUMP" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6906 if test -z "$ac_cv_prog_OBJDUMP"; then
6907 ac_ct_OBJDUMP=$OBJDUMP
6908 # Extract the first word of "objdump", so it can be a program name with args.
6909 set dummy objdump; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 if test -n "$ac_ct_OBJDUMP"; then
6916 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6936 if test -n "$ac_ct_OBJDUMP"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6938 $as_echo "$ac_ct_OBJDUMP" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6944 if test "x$ac_ct_OBJDUMP" = x; then
6947 case $cross_compiling:$ac_tool_warned in
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6953 OBJDUMP=$ac_ct_OBJDUMP
6956 OBJDUMP="$ac_cv_prog_OBJDUMP"
6959 test -z "$OBJDUMP" && OBJDUMP=objdump
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6970 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6971 if ${lt_cv_deplibs_check_method+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 lt_cv_file_magic_cmd='$MAGIC_CMD'
6975 lt_cv_file_magic_test_file=
6976 lt_cv_deplibs_check_method='unknown'
6977 # Need to set the preceding variable on all platforms that support
6978 # interlibrary dependencies.
6979 # 'none' -- dependencies not supported.
6980 # `unknown' -- same as none, but documents that we really don't know.
6981 # 'pass_all' -- all dependencies passed with no checks.
6982 # 'test_compile' -- check by making test program.
6983 # 'file_magic [[regex]]' -- check by looking for files in library path
6984 # which responds to the $file_magic_cmd with a given extended regex.
6985 # If you have `file' or equivalent on your system and you're not sure
6986 # whether `pass_all' will *always* work, you probably want this one.
6990 lt_cv_deplibs_check_method=pass_all
6994 lt_cv_deplibs_check_method=pass_all
6998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6999 lt_cv_file_magic_cmd='/usr/bin/file -L'
7000 lt_cv_file_magic_test_file=/shlib/libc.so
7004 # func_win32_libid is a shell function defined in ltmain.sh
7005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7006 lt_cv_file_magic_cmd='func_win32_libid'
7010 # Base MSYS/MinGW do not provide the 'file' command needed by
7011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7012 # unless we find 'file', for example because we are cross-compiling.
7013 if ( file / ) >/dev/null 2>&1; then
7014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015 lt_cv_file_magic_cmd='func_win32_libid'
7017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7018 lt_cv_file_magic_cmd='$OBJDUMP -f'
7023 # use the weaker test based on 'objdump'. See mingw*.
7024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7025 lt_cv_file_magic_cmd='$OBJDUMP -f'
7028 darwin* | rhapsody*)
7029 lt_cv_deplibs_check_method=pass_all
7032 freebsd* | dragonfly*)
7033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7036 # Not sure whether the presence of OpenBSD here was a mistake.
7037 # Let's accept both of them until this is cleared up.
7038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7039 lt_cv_file_magic_cmd=/usr/bin/file
7040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7044 lt_cv_deplibs_check_method=pass_all
7049 lt_cv_deplibs_check_method=pass_all
7052 hpux10.20* | hpux11*)
7053 lt_cv_file_magic_cmd=/usr/bin/file
7056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7060 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]'
7061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7075 irix5* | irix6* | nonstopux*)
7077 *-32|*"-32 ") libmagic=32-bit;;
7078 *-n32|*"-n32 ") libmagic=N32;;
7079 *-64|*"-64 ") libmagic=64-bit;;
7080 *) libmagic=never-match;;
7082 lt_cv_deplibs_check_method=pass_all
7085 # This must be Linux ELF.
7086 linux* | k*bsd*-gnu)
7087 lt_cv_deplibs_check_method=pass_all
7091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7100 lt_cv_file_magic_cmd=/usr/bin/file
7101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7105 lt_cv_deplibs_check_method=pass_all
7109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7116 osf3* | osf4* | osf5*)
7117 lt_cv_deplibs_check_method=pass_all
7121 lt_cv_deplibs_check_method=pass_all
7125 lt_cv_deplibs_check_method=pass_all
7128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7129 lt_cv_deplibs_check_method=pass_all
7133 case $host_vendor in
7135 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]'
7136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7139 lt_cv_deplibs_check_method=pass_all
7142 lt_cv_file_magic_cmd='/bin/file'
7143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7146 lt_cv_file_magic_cmd='/bin/file'
7147 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7148 lt_cv_file_magic_test_file=/lib/libc.so
7151 lt_cv_deplibs_check_method=pass_all
7154 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7167 file_magic_cmd=$lt_cv_file_magic_cmd
7168 deplibs_check_method=$lt_cv_deplibs_check_method
7169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7182 if test -n "$ac_tool_prefix"; then
7183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7184 set dummy ${ac_tool_prefix}ar; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_AR+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 if test -n "$AR"; then
7191 ac_cv_prog_AR="$AR" # Let the user override the test.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_AR="${ac_tool_prefix}ar"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 if test -n "$AR"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7213 $as_echo "$AR" >&6; }
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7221 if test -z "$ac_cv_prog_AR"; then
7223 # Extract the first word of "ar", so it can be a program name with args.
7224 set dummy ar; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7228 $as_echo_n "(cached) " >&6
7230 if test -n "$ac_ct_AR"; then
7231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_prog_ac_ct_AR="ar"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7251 if test -n "$ac_ct_AR"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7253 $as_echo "$ac_ct_AR" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7259 if test "x$ac_ct_AR" = x; then
7262 case $cross_compiling:$ac_tool_warned in
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266 ac_tool_warned=yes ;;
7274 test -z "$AR" && AR=ar
7275 test -z "$AR_FLAGS" && AR_FLAGS=cru
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}strip; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_STRIP+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$STRIP"; then
7296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 STRIP=$ac_cv_prog_STRIP
7316 if test -n "$STRIP"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7318 $as_echo "$STRIP" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7326 if test -z "$ac_cv_prog_STRIP"; then
7328 # Extract the first word of "strip", so it can be a program name with args.
7329 set dummy strip; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$ac_ct_STRIP"; then
7336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_ac_ct_STRIP="strip"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7356 if test -n "$ac_ct_STRIP"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7358 $as_echo "$ac_ct_STRIP" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7364 if test "x$ac_ct_STRIP" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7376 STRIP="$ac_cv_prog_STRIP"
7379 test -z "$STRIP" && STRIP=:
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_RANLIB+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$RANLIB"; then
7395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 RANLIB=$ac_cv_prog_RANLIB
7415 if test -n "$RANLIB"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7417 $as_echo "$RANLIB" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7425 if test -z "$ac_cv_prog_RANLIB"; then
7426 ac_ct_RANLIB=$RANLIB
7427 # Extract the first word of "ranlib", so it can be a program name with args.
7428 set dummy ranlib; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$ac_ct_RANLIB"; then
7435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_prog_ac_ct_RANLIB="ranlib"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7455 if test -n "$ac_ct_RANLIB"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7457 $as_echo "$ac_ct_RANLIB" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7463 if test "x$ac_ct_RANLIB" = x; then
7466 case $cross_compiling:$ac_tool_warned in
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7472 RANLIB=$ac_ct_RANLIB
7475 RANLIB="$ac_cv_prog_RANLIB"
7478 test -z "$RANLIB" && RANLIB=:
7485 # Determine commands to create old-style static archives.
7486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7487 old_postinstall_cmds='chmod 644 $oldlib'
7488 old_postuninstall_cmds=
7490 if test -n "$RANLIB"; then
7493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7535 # If no C compiler was specified, use CC.
7538 # If no C compiler flags were specified, use CFLAGS.
7539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7541 # Allow CC to be a program name with arguments.
7545 # Check for command to grab the raw symbol name followed by C symbol from nm.
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7548 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7549 $as_echo_n "(cached) " >&6
7552 # These are sane defaults that work on at least a few old systems.
7553 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7555 # Character class describing NM global symbol codes.
7556 symcode='[BCDEGRST]'
7558 # Regexp to match symbols that can be accessed directly from C.
7559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7561 # Define system-specific variables.
7566 cygwin* | mingw* | pw32* | cegcc*)
7567 symcode='[ABCDGISTW]'
7570 if test "$host_cpu" = ia64; then
7571 symcode='[ABCDEGRST]'
7575 symcode='[BCDEGRST]'
7578 symcode='[BCDEGQRST]'
7589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7597 # If we're using GNU nm, then use its standard symbol codes.
7598 case `$NM -V 2>&1` in
7599 *GNU* | *'with BFD'*)
7600 symcode='[ABCDGIRSTW]' ;;
7603 # Transform an extracted symbol line into a proper C declaration.
7604 # Some systems (esp. on ia64) link data and code symbols differently,
7605 # so use this general approach.
7606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7608 # Transform an extracted symbol line into symbol name and symbol address
7609 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7610 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'"
7612 # Handle CRLF in mingw tool chain
7616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7620 # Try without a prefix underscore, then with it.
7621 for ac_symprfx in "" "_"; do
7623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7624 symxfrm="\\1 $ac_symprfx\\2 \\2"
7626 # Write the raw and C identifiers.
7627 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7628 # Fake it for dumpbin and say T for any non-static function
7629 # and D for any global variable.
7630 # Also find C++ and __fastcall symbols from MSVC++,
7631 # which start with @ or ?.
7632 lt_cv_sys_global_symbol_pipe="$AWK '"\
7633 " {last_section=section; section=\$ 3};"\
7634 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7635 " \$ 0!~/External *\|/{next};"\
7636 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7637 " {if(hide[section]) next};"\
7638 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7639 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7640 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7641 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7642 " ' prfx=^$ac_symprfx"
7644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7647 # Check to see that the pipe works correctly.
7651 cat > conftest.$ac_ext <<_LT_EOF
7656 void nm_test_func(void);
7657 void nm_test_func(void){}
7661 int main(){nm_test_var='a';nm_test_func();return(0);}
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 # Now try to grab the symbols.
7671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675 test $ac_status = 0; } && test -s "$nlist"; then
7676 # Try sorting and uniquifying the output.
7677 if sort "$nlist" | uniq > "$nlist"T; then
7678 mv -f "$nlist"T "$nlist"
7683 # Make sure that we snagged all the symbols we need.
7684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7686 cat <<_LT_EOF > conftest.$ac_ext
7692 # Now generate the symbol file.
7693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7695 cat <<_LT_EOF >> conftest.$ac_ext
7697 /* The mapping between symbol names and symbols. */
7702 lt__PROGRAM__LTX_preloaded_symbols[] =
7704 { "@PROGRAM@", (void *) 0 },
7706 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7707 cat <<\_LT_EOF >> conftest.$ac_ext
7711 /* This works around a problem in FreeBSD linker */
7712 #ifdef FREEBSD_WORKAROUND
7713 static const void *lt_preloaded_setup() {
7714 return lt__PROGRAM__LTX_preloaded_symbols;
7722 # Now try linking the two files.
7723 mv conftest.$ac_objext conftstm.$ac_objext
7724 lt_save_LIBS="$LIBS"
7725 lt_save_CFLAGS="$CFLAGS"
7726 LIBS="conftstm.$ac_objext"
7727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7729 (eval $ac_link) 2>&5
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7735 LIBS="$lt_save_LIBS"
7736 CFLAGS="$lt_save_CFLAGS"
7738 echo "cannot find nm_test_func in $nlist" >&5
7741 echo "cannot find nm_test_var in $nlist" >&5
7744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7747 echo "$progname: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 rm -rf conftest* conftst*
7752 # Do not use the global_symbol_pipe unless it works.
7753 if test "$pipe_works" = yes; then
7756 lt_cv_sys_global_symbol_pipe=
7762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7763 lt_cv_sys_global_symbol_to_cdecl=
7765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7767 $as_echo "failed" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7770 $as_echo "ok" >&6; }
7794 # Check whether --enable-libtool-lock was given.
7795 if test "${enable_libtool_lock+set}" = set; then :
7796 enableval=$enable_libtool_lock;
7799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7801 # Some flags need to be propagated to the compiler or linker for good
7805 # Find out which ABI we are using.
7806 echo 'int i;' > conftest.$ac_ext
7807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7808 (eval $ac_compile) 2>&5
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; }; then
7812 case `/usr/bin/file conftest.$ac_objext` in
7824 # Find out which ABI we are using.
7825 echo '#line 7825 "configure"' > conftest.$ac_ext
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827 (eval $ac_compile) 2>&5
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; }; then
7831 if test "$lt_cv_prog_gnu_ld" = yes; then
7832 case `/usr/bin/file conftest.$ac_objext` in
7834 LD="${LD-ld} -melf32bsmip"
7837 LD="${LD-ld} -melf32bmipn32"
7840 LD="${LD-ld} -melf64bmip"
7844 case `/usr/bin/file conftest.$ac_objext` in
7860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7862 # Find out which ABI we are using.
7863 echo 'int i;' > conftest.$ac_ext
7864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865 (eval $ac_compile) 2>&5
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; then
7869 case `/usr/bin/file conftest.o` in
7872 x86_64-*kfreebsd*-gnu)
7873 LD="${LD-ld} -m elf_i386_fbsd"
7876 LD="${LD-ld} -m elf_i386"
7878 ppc64-*linux*|powerpc64-*linux*)
7879 LD="${LD-ld} -m elf32ppclinux"
7882 LD="${LD-ld} -m elf_s390"
7885 LD="${LD-ld} -m elf32_sparc"
7891 x86_64-*kfreebsd*-gnu)
7892 LD="${LD-ld} -m elf_x86_64_fbsd"
7895 LD="${LD-ld} -m elf_x86_64"
7897 ppc*-*linux*|powerpc*-*linux*)
7898 LD="${LD-ld} -m elf64ppc"
7900 s390*-*linux*|s390*-*tpf*)
7901 LD="${LD-ld} -m elf64_s390"
7904 LD="${LD-ld} -m elf64_sparc"
7914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7915 SAVE_CFLAGS="$CFLAGS"
7916 CFLAGS="$CFLAGS -belf"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7918 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7919 if ${lt_cv_cc_needs_belf+:} false; then :
7920 $as_echo_n "(cached) " >&6
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7939 if ac_fn_c_try_link "$LINENO"; then :
7940 lt_cv_cc_needs_belf=yes
7942 lt_cv_cc_needs_belf=no
7944 rm -f core conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7957 CFLAGS="$SAVE_CFLAGS"
7961 # Find out which ABI we are using.
7962 echo 'int i;' > conftest.$ac_ext
7963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7964 (eval $ac_compile) 2>&5
7966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967 test $ac_status = 0; }; then
7968 case `/usr/bin/file conftest.o` in
7970 case $lt_cv_prog_gnu_ld in
7971 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7973 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7985 need_locks="$enable_libtool_lock"
7989 rhapsody* | darwin*)
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 if test -n "$DSYMUTIL"; then
7999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8019 if test -n "$DSYMUTIL"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8021 $as_echo "$DSYMUTIL" >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8029 if test -z "$ac_cv_prog_DSYMUTIL"; then
8030 ac_ct_DSYMUTIL=$DSYMUTIL
8031 # Extract the first word of "dsymutil", so it can be a program name with args.
8032 set dummy dsymutil; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$ac_ct_DSYMUTIL"; then
8039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8059 if test -n "$ac_ct_DSYMUTIL"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8067 if test "x$ac_ct_DSYMUTIL" = x; then
8070 case $cross_compiling:$ac_tool_warned in
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8076 DSYMUTIL=$ac_ct_DSYMUTIL
8079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_NMEDIT+:} false; then :
8088 $as_echo_n "(cached) " >&6
8090 if test -n "$NMEDIT"; then
8091 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 NMEDIT=$ac_cv_prog_NMEDIT
8111 if test -n "$NMEDIT"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8113 $as_echo "$NMEDIT" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8121 if test -z "$ac_cv_prog_NMEDIT"; then
8122 ac_ct_NMEDIT=$NMEDIT
8123 # Extract the first word of "nmedit", so it can be a program name with args.
8124 set dummy nmedit; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$ac_ct_NMEDIT"; then
8131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8151 if test -n "$ac_ct_NMEDIT"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8153 $as_echo "$ac_ct_NMEDIT" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8159 if test "x$ac_ct_NMEDIT" = x; then
8162 case $cross_compiling:$ac_tool_warned in
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8168 NMEDIT=$ac_ct_NMEDIT
8171 NMEDIT="$ac_cv_prog_NMEDIT"
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_prog_LIPO+:} false; then :
8180 $as_echo_n "(cached) " >&6
8182 if test -n "$LIPO"; then
8183 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 LIPO=$ac_cv_prog_LIPO
8203 if test -n "$LIPO"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8205 $as_echo "$LIPO" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8213 if test -z "$ac_cv_prog_LIPO"; then
8215 # Extract the first word of "lipo", so it can be a program name with args.
8216 set dummy lipo; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$ac_ct_LIPO"; then
8223 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_ac_ct_LIPO="lipo"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8243 if test -n "$ac_ct_LIPO"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8245 $as_echo "$ac_ct_LIPO" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8251 if test "x$ac_ct_LIPO" = x; then
8254 case $cross_compiling:$ac_tool_warned in
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8258 ac_tool_warned=yes ;;
8263 LIPO="$ac_cv_prog_LIPO"
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}otool; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_OTOOL+:} false; then :
8272 $as_echo_n "(cached) " >&6
8274 if test -n "$OTOOL"; then
8275 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 OTOOL=$ac_cv_prog_OTOOL
8295 if test -n "$OTOOL"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8297 $as_echo "$OTOOL" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 if test -z "$ac_cv_prog_OTOOL"; then
8307 # Extract the first word of "otool", so it can be a program name with args.
8308 set dummy otool; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 if test -n "$ac_ct_OTOOL"; then
8315 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_prog_ac_ct_OTOOL="otool"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8335 if test -n "$ac_ct_OTOOL"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8337 $as_echo "$ac_ct_OTOOL" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 if test "x$ac_ct_OTOOL" = x; then
8346 case $cross_compiling:$ac_tool_warned in
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350 ac_tool_warned=yes ;;
8355 OTOOL="$ac_cv_prog_OTOOL"
8358 if test -n "$ac_tool_prefix"; then
8359 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_OTOOL64+:} false; then :
8364 $as_echo_n "(cached) " >&6
8366 if test -n "$OTOOL64"; then
8367 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 OTOOL64=$ac_cv_prog_OTOOL64
8387 if test -n "$OTOOL64"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8389 $as_echo "$OTOOL64" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8397 if test -z "$ac_cv_prog_OTOOL64"; then
8398 ac_ct_OTOOL64=$OTOOL64
8399 # Extract the first word of "otool64", so it can be a program name with args.
8400 set dummy otool64; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8404 $as_echo_n "(cached) " >&6
8406 if test -n "$ac_ct_OTOOL64"; then
8407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_prog_ac_ct_OTOOL64="otool64"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8427 if test -n "$ac_ct_OTOOL64"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8429 $as_echo "$ac_ct_OTOOL64" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8435 if test "x$ac_ct_OTOOL64" = x; then
8438 case $cross_compiling:$ac_tool_warned in
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8444 OTOOL64=$ac_ct_OTOOL64
8447 OTOOL64="$ac_cv_prog_OTOOL64"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8477 $as_echo_n "checking for -single_module linker flag... " >&6; }
8478 if ${lt_cv_apple_cc_single_mod+:} false; then :
8479 $as_echo_n "(cached) " >&6
8481 lt_cv_apple_cc_single_mod=no
8482 if test -z "${LT_MULTI_MODULE}"; then
8483 # By default we will add the -single_module flag. You can override
8484 # by either setting the environment variable LT_MULTI_MODULE
8485 # non-empty at configure time, or by adding -multi_module to the
8487 rm -rf libconftest.dylib*
8488 echo "int foo(void){return 1;}" > conftest.c
8489 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8490 -dynamiclib -Wl,-single_module conftest.c" >&5
8491 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8492 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8494 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8495 lt_cv_apple_cc_single_mod=yes
8497 cat conftest.err >&5
8499 rm -rf libconftest.dylib*
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8506 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8507 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8508 $as_echo_n "(cached) " >&6
8510 lt_cv_ld_exported_symbols_list=no
8511 save_LDFLAGS=$LDFLAGS
8512 echo "_main" > conftest.sym
8513 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 lt_cv_ld_exported_symbols_list=yes
8528 lt_cv_ld_exported_symbols_list=no
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LDFLAGS="$save_LDFLAGS"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8536 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8538 rhapsody* | darwin1.[012])
8539 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8542 darwin*) # darwin 5.x on
8543 # if running on 10.5 or later, the deployment target defaults
8544 # to the OS version, if on x86, and 10.4, the deployment
8545 # target defaults to 10.4. Don't you love it?
8546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8548 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8557 _lt_dar_single_mod='$single_module'
8559 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8560 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8564 if test "$DSYMUTIL" != ":"; then
8565 _lt_dsymutil='~$DSYMUTIL $lib || :'
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8573 $as_echo_n "checking for ANSI C header files... " >&6; }
8574 if ${ac_cv_header_stdc+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 ac_cv_header_stdc=yes
8595 ac_cv_header_stdc=no
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 if test $ac_cv_header_stdc = yes; then
8600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607 $EGREP "memchr" >/dev/null 2>&1; then :
8610 ac_cv_header_stdc=no
8616 if test $ac_cv_header_stdc = yes; then
8617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8624 $EGREP "free" >/dev/null 2>&1; then :
8627 ac_cv_header_stdc=no
8633 if test $ac_cv_header_stdc = yes; then
8634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8635 if test "$cross_compiling" = yes; then :
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8642 #if ((' ' & 0x0FF) == 0x020)
8643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8646 # define ISLOWER(c) \
8647 (('a' <= (c) && (c) <= 'i') \
8648 || ('j' <= (c) && (c) <= 'r') \
8649 || ('s' <= (c) && (c) <= 'z'))
8650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8658 for (i = 0; i < 256; i++)
8659 if (XOR (islower (i), ISLOWER (i))
8660 || toupper (i) != TOUPPER (i))
8665 if ac_fn_c_try_run "$LINENO"; then :
8668 ac_cv_header_stdc=no
8670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8671 conftest.$ac_objext conftest.beam conftest.$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8677 $as_echo "$ac_cv_header_stdc" >&6; }
8678 if test $ac_cv_header_stdc = yes; then
8680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8686 inttypes.h stdint.h unistd.h
8688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8692 cat >>confdefs.h <<_ACEOF
8693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701 for ac_header in dlfcn.h
8703 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8705 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_DLFCN_H 1
8717 ac_cpp='$CXXCPP $CPPFLAGS'
8718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8721 if test -z "$CXX"; then
8722 if test -n "$CCC"; then
8725 if test -n "$ac_tool_prefix"; then
8726 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_prog_CXX+:} false; then :
8733 $as_echo_n "(cached) " >&6
8735 if test -n "$CXX"; then
8736 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 if test -n "$CXX"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8758 $as_echo "$CXX" >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8765 test -n "$CXX" && break
8768 if test -z "$CXX"; then
8770 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8772 # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 if test -n "$ac_ct_CXX"; then
8780 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_ac_ct_CXX="$ac_prog"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8800 if test -n "$ac_ct_CXX"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8802 $as_echo "$ac_ct_CXX" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8809 test -n "$ac_ct_CXX" && break
8812 if test "x$ac_ct_CXX" = x; then
8815 case $cross_compiling:$ac_tool_warned in
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819 ac_tool_warned=yes ;;
8827 # Provide some information about the compiler.
8828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8831 for ac_option in --version -v -V -qversion; do
8832 { { ac_try="$ac_compiler $ac_option >&5"
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8838 $as_echo "$ac_try_echo"; } >&5
8839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8841 if test -s conftest.err; then
8843 ... rest of stderr output deleted ...
8844 10q' conftest.err >conftest.er1
8845 cat conftest.er1 >&5
8847 rm -f conftest.er1 conftest.err
8848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8849 test $ac_status = 0; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8853 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8854 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8855 $as_echo_n "(cached) " >&6
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8871 if ac_fn_cxx_try_compile "$LINENO"; then :
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8881 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8882 if test $ac_compiler_gnu = yes; then
8887 ac_test_CXXFLAGS=${CXXFLAGS+set}
8888 ac_save_CXXFLAGS=$CXXFLAGS
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8890 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8891 if ${ac_cv_prog_cxx_g+:} false; then :
8892 $as_echo_n "(cached) " >&6
8894 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8895 ac_cxx_werror_flag=yes
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8909 if ac_fn_cxx_try_compile "$LINENO"; then :
8910 ac_cv_prog_cxx_g=yes
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8924 if ac_fn_cxx_try_compile "$LINENO"; then :
8927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8940 if ac_fn_cxx_try_compile "$LINENO"; then :
8941 ac_cv_prog_cxx_g=yes
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8951 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8952 if test "$ac_test_CXXFLAGS" = set; then
8953 CXXFLAGS=$ac_save_CXXFLAGS
8954 elif test $ac_cv_prog_cxx_g = yes; then
8955 if test "$GXX" = yes; then
8961 if test "$GXX" = yes; then
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8975 (test "X$CXX" != "Xg++"))) ; then
8977 ac_cpp='$CXXCPP $CPPFLAGS'
8978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8982 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8983 if test -z "$CXXCPP"; then
8984 if ${ac_cv_prog_CXXCPP+:} false; then :
8985 $as_echo_n "(cached) " >&6
8987 # Double quotes because CXXCPP needs to be expanded
8988 for CXXCPP in "$CXX -E" "/lib/cpp"
8991 for ac_cxx_preproc_warn_flag in '' yes
8993 # Use a header file that comes with gcc, so configuring glibc
8994 # with a fresh cross-compiler works.
8995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8996 # <limits.h> exists even on freestanding compilers.
8997 # On the NeXT, cc -E runs the code through the compiler's parser,
8998 # not just through cpp. "Syntax error" is here to catch this case.
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 # include <limits.h>
9004 # include <assert.h>
9008 if ac_fn_cxx_try_cpp "$LINENO"; then :
9011 # Broken: fails on valid input.
9014 rm -f conftest.err conftest.i conftest.$ac_ext
9016 # OK, works on sane cases. Now check whether nonexistent headers
9017 # can be detected and how.
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 #include <ac_nonexistent.h>
9022 if ac_fn_cxx_try_cpp "$LINENO"; then :
9023 # Broken: success on invalid input.
9026 # Passes both tests.
9030 rm -f conftest.err conftest.i conftest.$ac_ext
9033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9034 rm -f conftest.i conftest.err conftest.$ac_ext
9035 if $ac_preproc_ok; then :
9040 ac_cv_prog_CXXCPP=$CXXCPP
9043 CXXCPP=$ac_cv_prog_CXXCPP
9045 ac_cv_prog_CXXCPP=$CXXCPP
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9048 $as_echo "$CXXCPP" >&6; }
9050 for ac_cxx_preproc_warn_flag in '' yes
9052 # Use a header file that comes with gcc, so configuring glibc
9053 # with a fresh cross-compiler works.
9054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9055 # <limits.h> exists even on freestanding compilers.
9056 # On the NeXT, cc -E runs the code through the compiler's parser,
9057 # not just through cpp. "Syntax error" is here to catch this case.
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 # include <limits.h>
9063 # include <assert.h>
9067 if ac_fn_cxx_try_cpp "$LINENO"; then :
9070 # Broken: fails on valid input.
9073 rm -f conftest.err conftest.i conftest.$ac_ext
9075 # OK, works on sane cases. Now check whether nonexistent headers
9076 # can be detected and how.
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <ac_nonexistent.h>
9081 if ac_fn_cxx_try_cpp "$LINENO"; then :
9082 # Broken: success on invalid input.
9085 # Passes both tests.
9089 rm -f conftest.err conftest.i conftest.$ac_ext
9092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9093 rm -f conftest.i conftest.err conftest.$ac_ext
9094 if $ac_preproc_ok; then :
9097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9099 _lt_caught_CXX_error=yes; }
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109 _lt_caught_CXX_error=yes
9117 # Check whether --enable-shared was given.
9118 if test "${enable_shared+set}" = set; then :
9119 enableval=$enable_shared; p=${PACKAGE-default}
9121 yes) enable_shared=yes ;;
9122 no) enable_shared=no ;;
9125 # Look at the argument we got. We use all the common list separators.
9126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9127 for pkg in $enableval; do
9129 if test "X$pkg" = "X$p"; then
9146 # Check whether --enable-static was given.
9147 if test "${enable_static+set}" = set; then :
9148 enableval=$enable_static; p=${PACKAGE-default}
9150 yes) enable_static=yes ;;
9151 no) enable_static=no ;;
9154 # Look at the argument we got. We use all the common list separators.
9155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9156 for pkg in $enableval; do
9158 if test "X$pkg" = "X$p"; then
9187 # Check whether --with-pic was given.
9188 if test "${with_pic+set}" = set; then :
9189 withval=$with_pic; pic_mode="$withval"
9195 test -z "$pic_mode" && pic_mode=default
9203 # Check whether --enable-fast-install was given.
9204 if test "${enable_fast_install+set}" = set; then :
9205 enableval=$enable_fast_install; p=${PACKAGE-default}
9207 yes) enable_fast_install=yes ;;
9208 no) enable_fast_install=no ;;
9210 enable_fast_install=no
9211 # Look at the argument we got. We use all the common list separators.
9212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9213 for pkg in $enableval; do
9215 if test "X$pkg" = "X$p"; then
9216 enable_fast_install=yes
9223 enable_fast_install=yes
9236 # This can be used to rebuild libtool when needed
9237 LIBTOOL_DEPS="$ltmain"
9239 # Always use our own libtool.
9240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9266 test -z "$LN_S" && LN_S="ln -s"
9281 if test -n "${ZSH_VERSION+set}" ; then
9282 setopt NO_GLOB_SUBST
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9286 $as_echo_n "checking for objdir... " >&6; }
9287 if ${lt_cv_objdir+:} false; then :
9288 $as_echo_n "(cached) " >&6
9290 rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9295 # MS-DOS does not allow filenames that begin with a dot.
9298 rmdir .libs 2>/dev/null
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9301 $as_echo "$lt_cv_objdir" >&6; }
9302 objdir=$lt_cv_objdir
9308 cat >>confdefs.h <<_ACEOF
9309 #define LT_OBJDIR "$lt_cv_objdir/"
9330 # AIX sometimes has problems with the GCC collect2 program. For some
9331 # reason, if we set the COLLECT_NAMES environment variable, the problems
9332 # vanish in a puff of smoke.
9333 if test "X${COLLECT_NAMES+set}" != Xset; then
9335 export COLLECT_NAMES
9340 # Sed substitution that helps us do robust quoting. It backslashifies
9341 # metacharacters that are still active within double-quoted strings.
9342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9344 # Same as above, but do not quote variable references.
9345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9347 # Sed substitution to delay expansion of an escaped shell variable in a
9348 # double_quote_subst'ed string.
9349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9351 # Sed substitution to delay expansion of an escaped single quote.
9352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9354 # Sed substitution to avoid accidental globbing in evaled expressions
9355 no_glob_subst='s/\*/\\\*/g'
9359 can_build_shared=yes
9361 # All known linkers require a `.a' archive for static linking (except MSVC,
9362 # which needs '.lib').
9365 with_gnu_ld="$lt_cv_prog_gnu_ld"
9368 old_CFLAGS="$CFLAGS"
9370 # Set sane defaults for various variables
9371 test -z "$CC" && CC=cc
9372 test -z "$LTCC" && LTCC=$CC
9373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9374 test -z "$LD" && LD=ld
9375 test -z "$ac_objext" && ac_objext=o
9377 for cc_temp in $compiler""; do
9379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9385 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9388 # Only perform the check for file, if the check method requires it
9389 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9390 case $deplibs_check_method in
9392 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9394 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9395 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9396 $as_echo_n "(cached) " >&6
9400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9403 lt_save_MAGIC_CMD="$MAGIC_CMD"
9404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9406 for ac_dir in $ac_dummy; do
9408 test -z "$ac_dir" && ac_dir=.
9409 if test -f $ac_dir/${ac_tool_prefix}file; then
9410 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9411 if test -n "$file_magic_test_file"; then
9412 case $deplibs_check_method in
9414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9417 $EGREP "$file_magic_regex" > /dev/null; then
9422 *** Warning: the command libtool uses to detect shared libraries,
9423 *** $file_magic_cmd, produces output that libtool cannot recognize.
9424 *** The result is that libtool may fail to recognize shared libraries
9425 *** as such. This will affect the creation of libtool libraries that
9426 *** depend on shared libraries, but programs linked with such libtool
9427 *** libraries will work regardless of this problem. Nevertheless, you
9428 *** may want to report the problem to your system manager and/or to
9429 *** bug-libtool@gnu.org
9439 MAGIC_CMD="$lt_save_MAGIC_CMD"
9444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9445 if test -n "$MAGIC_CMD"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9447 $as_echo "$MAGIC_CMD" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9457 if test -z "$lt_cv_path_MAGIC_CMD"; then
9458 if test -n "$ac_tool_prefix"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9460 $as_echo_n "checking for file... " >&6; }
9461 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9462 $as_echo_n "(cached) " >&6
9466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9469 lt_save_MAGIC_CMD="$MAGIC_CMD"
9470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9472 for ac_dir in $ac_dummy; do
9474 test -z "$ac_dir" && ac_dir=.
9475 if test -f $ac_dir/file; then
9476 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9477 if test -n "$file_magic_test_file"; then
9478 case $deplibs_check_method in
9480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9483 $EGREP "$file_magic_regex" > /dev/null; then
9488 *** Warning: the command libtool uses to detect shared libraries,
9489 *** $file_magic_cmd, produces output that libtool cannot recognize.
9490 *** The result is that libtool may fail to recognize shared libraries
9491 *** as such. This will affect the creation of libtool libraries that
9492 *** depend on shared libraries, but programs linked with such libtool
9493 *** libraries will work regardless of this problem. Nevertheless, you
9494 *** may want to report the problem to your system manager and/or to
9495 *** bug-libtool@gnu.org
9505 MAGIC_CMD="$lt_save_MAGIC_CMD"
9510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9511 if test -n "$MAGIC_CMD"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9513 $as_echo "$MAGIC_CMD" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9529 # Use C for the default configuration in the libtool script
9533 ac_cpp='$CPP $CPPFLAGS'
9534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539 # Source file extension for C test sources.
9542 # Object file extension for compiled C test sources.
9546 # Code to be used in simple compile tests
9547 lt_simple_compile_test_code="int some_variable = 0;"
9549 # Code to be used in simple link tests
9550 lt_simple_link_test_code='int main(){return(0);}'
9558 # If no C compiler was specified, use CC.
9561 # If no C compiler flags were specified, use CFLAGS.
9562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9564 # Allow CC to be a program name with arguments.
9567 # Save the default compiler, since it gets overwritten when the other
9568 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9569 compiler_DEFAULT=$CC
9571 # save warnings/boilerplate of simple test code
9572 ac_outfile=conftest.$ac_objext
9573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9575 _lt_compiler_boilerplate=`cat conftest.err`
9578 ac_outfile=conftest.$ac_objext
9579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9581 _lt_linker_boilerplate=`cat conftest.err`
9586 ## There is no encapsulation within the following macros, do not change
9587 ## the running order or otherwise move them around unless you know exactly
9588 ## what you are doing...
9589 if test -n "$compiler"; then
9591 lt_prog_compiler_no_builtin_flag=
9593 if test "$GCC" = yes; then
9594 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9597 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9598 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9599 $as_echo_n "(cached) " >&6
9601 lt_cv_prog_compiler_rtti_exceptions=no
9602 ac_outfile=conftest.$ac_objext
9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604 lt_compiler_flag="-fno-rtti -fno-exceptions"
9605 # Insert the option either (1) after the last *FLAGS variable, or
9606 # (2) before a word containing "conftest.", or (3) at the end.
9607 # Note that $ac_compile itself does not contain backslashes and begins
9608 # with a dollar sign (not a hyphen), so the echo should work correctly.
9609 # The option is referenced via a variable to avoid confusing sed.
9610 lt_compile=`echo "$ac_compile" | $SED \
9611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9613 -e 's:$: $lt_compiler_flag:'`
9614 (eval echo "\"\$as_me:9614: $lt_compile\"" >&5)
9615 (eval "$lt_compile" 2>conftest.err)
9617 cat conftest.err >&5
9618 echo "$as_me:9618: \$? = $ac_status" >&5
9619 if (exit $ac_status) && test -s "$ac_outfile"; then
9620 # The compiler can only warn and ignore the option if not recognized
9621 # So say no if there are warnings other than the usual output.
9622 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9625 lt_cv_prog_compiler_rtti_exceptions=yes
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9632 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9634 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9635 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9647 lt_prog_compiler_wl=
9648 lt_prog_compiler_pic=
9649 lt_prog_compiler_static=
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9652 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9654 if test "$GCC" = yes; then
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_static='-static'
9660 # All AIX code is PIC.
9661 if test "$host_cpu" = ia64; then
9662 # AIX 5 now supports IA64 processor
9663 lt_prog_compiler_static='-Bstatic'
9670 # see comment about AmigaOS4 .so support
9671 lt_prog_compiler_pic='-fPIC'
9674 # FIXME: we need at least 68020 code to build shared libraries, but
9675 # adding the `-m68020' flag to GCC prevents building anything better,
9677 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9682 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9683 # PIC is the default for these OSes.
9686 mingw* | cygwin* | pw32* | os2* | cegcc*)
9687 # This hack is so that the source file can tell whether it is being
9688 # built for inclusion in a dll (and should export symbols for example).
9689 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9690 # (--disable-auto-import) libraries
9691 lt_prog_compiler_pic='-DDLL_EXPORT'
9694 darwin* | rhapsody*)
9695 # PIC is the default on this platform
9696 # Common symbols not allowed in MH_DYLIB files
9697 lt_prog_compiler_pic='-fno-common'
9701 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9702 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9703 # sets the default TLS model and affects inlining.
9709 lt_prog_compiler_pic='-fPIC'
9715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9716 # Instead, we relocate shared libraries at runtime.
9720 # Just because we use GCC doesn't mean we suddenly get shared libraries
9721 # on systems that don't support them.
9722 lt_prog_compiler_can_build_shared=no
9727 # QNX uses GNU C++, but need to define -shared option too, otherwise
9729 lt_prog_compiler_pic='-fPIC -shared'
9733 if test -d /usr/nec; then
9734 lt_prog_compiler_pic=-Kconform_pic
9739 lt_prog_compiler_pic='-fPIC'
9743 # PORTME Check for flag to pass linker flags through the system compiler.
9746 lt_prog_compiler_wl='-Wl,'
9747 if test "$host_cpu" = ia64; then
9748 # AIX 5 now supports IA64 processor
9749 lt_prog_compiler_static='-Bstatic'
9751 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9755 mingw* | cygwin* | pw32* | os2* | cegcc*)
9756 # This hack is so that the source file can tell whether it is being
9757 # built for inclusion in a dll (and should export symbols for example).
9758 lt_prog_compiler_pic='-DDLL_EXPORT'
9761 hpux9* | hpux10* | hpux11*)
9762 lt_prog_compiler_wl='-Wl,'
9763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9770 lt_prog_compiler_pic='+Z'
9773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9774 lt_prog_compiler_static='${wl}-a ${wl}archive'
9777 irix5* | irix6* | nonstopux*)
9778 lt_prog_compiler_wl='-Wl,'
9779 # PIC (with -KPIC) is the default.
9780 lt_prog_compiler_static='-non_shared'
9783 linux* | k*bsd*-gnu)
9784 case $cc_basename in
9785 # old Intel for x86_64 which still supported -KPIC.
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-static'
9791 # icc used to be incompatible with GCC.
9792 # ICC 10 doesn't accept -KPIC any more.
9794 lt_prog_compiler_wl='-Wl,'
9795 lt_prog_compiler_pic='-fPIC'
9796 lt_prog_compiler_static='-static'
9798 # Lahey Fortran 8.1.
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='--shared'
9802 lt_prog_compiler_static='--static'
9804 pgcc* | pgf77* | pgf90* | pgf95*)
9805 # Portland Group compilers (*not* the Pentium gcc compiler,
9806 # which looks to be a dead project)
9807 lt_prog_compiler_wl='-Wl,'
9808 lt_prog_compiler_pic='-fpic'
9809 lt_prog_compiler_static='-Bstatic'
9812 lt_prog_compiler_wl='-Wl,'
9813 # All Alpha code is PIC.
9814 lt_prog_compiler_static='-non_shared'
9817 # IBM XL C 8.0/Fortran 10.1 on PPC
9818 lt_prog_compiler_wl='-Wl,'
9819 lt_prog_compiler_pic='-qpic'
9820 lt_prog_compiler_static='-qstaticlink'
9823 case `$CC -V 2>&1 | sed 5q` in
9826 lt_prog_compiler_pic='-KPIC'
9827 lt_prog_compiler_static='-Bstatic'
9828 lt_prog_compiler_wl='-Wl,'
9831 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9832 lt_prog_compiler_pic='-KPIC'
9833 lt_prog_compiler_static='-Bstatic'
9834 lt_prog_compiler_wl=''
9842 lt_prog_compiler_pic='-KPIC'
9843 lt_prog_compiler_static='-Bstatic'
9847 # QNX uses GNU C++, but need to define -shared option too, otherwise
9849 lt_prog_compiler_pic='-fPIC -shared'
9852 osf3* | osf4* | osf5*)
9853 lt_prog_compiler_wl='-Wl,'
9854 # All OSF/1 code is PIC.
9855 lt_prog_compiler_static='-non_shared'
9859 lt_prog_compiler_static='-non_shared'
9863 lt_prog_compiler_pic='-KPIC'
9864 lt_prog_compiler_static='-Bstatic'
9865 case $cc_basename in
9867 lt_prog_compiler_wl='-Qoption ld ';;
9869 lt_prog_compiler_wl='-Wl,';;
9874 lt_prog_compiler_wl='-Qoption ld '
9875 lt_prog_compiler_pic='-PIC'
9876 lt_prog_compiler_static='-Bstatic'
9879 sysv4 | sysv4.2uw2* | sysv4.3*)
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-KPIC'
9882 lt_prog_compiler_static='-Bstatic'
9886 if test -d /usr/nec ;then
9887 lt_prog_compiler_pic='-Kconform_pic'
9888 lt_prog_compiler_static='-Bstatic'
9892 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-KPIC'
9895 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_can_build_shared=no
9904 lt_prog_compiler_pic='-pic'
9905 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_can_build_shared=no
9915 # For platforms which do not support PIC, -DPIC is meaningless:
9917 lt_prog_compiler_pic=
9920 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9924 $as_echo "$lt_prog_compiler_pic" >&6; }
9932 # Check to make sure the PIC flag actually works.
9934 if test -n "$lt_prog_compiler_pic"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9937 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9938 $as_echo_n "(cached) " >&6
9940 lt_cv_prog_compiler_pic_works=no
9941 ac_outfile=conftest.$ac_objext
9942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9944 # Insert the option either (1) after the last *FLAGS variable, or
9945 # (2) before a word containing "conftest.", or (3) at the end.
9946 # Note that $ac_compile itself does not contain backslashes and begins
9947 # with a dollar sign (not a hyphen), so the echo should work correctly.
9948 # The option is referenced via a variable to avoid confusing sed.
9949 lt_compile=`echo "$ac_compile" | $SED \
9950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9952 -e 's:$: $lt_compiler_flag:'`
9953 (eval echo "\"\$as_me:9953: $lt_compile\"" >&5)
9954 (eval "$lt_compile" 2>conftest.err)
9956 cat conftest.err >&5
9957 echo "$as_me:9957: \$? = $ac_status" >&5
9958 if (exit $ac_status) && test -s "$ac_outfile"; then
9959 # The compiler can only warn and ignore the option if not recognized
9960 # So say no if there are warnings other than the usual output.
9961 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9964 lt_cv_prog_compiler_pic_works=yes
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9971 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9973 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9974 case $lt_prog_compiler_pic in
9976 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9979 lt_prog_compiler_pic=
9980 lt_prog_compiler_can_build_shared=no
9991 # Check to make sure the static flag actually works.
9993 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9996 if ${lt_cv_prog_compiler_static_works+:} false; then :
9997 $as_echo_n "(cached) " >&6
9999 lt_cv_prog_compiler_static_works=no
10000 save_LDFLAGS="$LDFLAGS"
10001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10004 # The linker can only warn and ignore the option if not recognized
10005 # So say no if there are warnings
10006 if test -s conftest.err; then
10007 # Append any errors to the config.log.
10008 cat conftest.err 1>&5
10009 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10011 if diff conftest.exp conftest.er2 >/dev/null; then
10012 lt_cv_prog_compiler_static_works=yes
10015 lt_cv_prog_compiler_static_works=yes
10019 LDFLAGS="$save_LDFLAGS"
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10023 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10025 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10028 lt_prog_compiler_static=
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10039 if ${lt_cv_prog_compiler_c_o+:} false; then :
10040 $as_echo_n "(cached) " >&6
10042 lt_cv_prog_compiler_c_o=no
10043 $RM -r conftest 2>/dev/null
10047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10049 lt_compiler_flag="-o out/conftest2.$ac_objext"
10050 # Insert the option either (1) after the last *FLAGS variable, or
10051 # (2) before a word containing "conftest.", or (3) at the end.
10052 # Note that $ac_compile itself does not contain backslashes and begins
10053 # with a dollar sign (not a hyphen), so the echo should work correctly.
10054 lt_compile=`echo "$ac_compile" | $SED \
10055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057 -e 's:$: $lt_compiler_flag:'`
10058 (eval echo "\"\$as_me:10058: $lt_compile\"" >&5)
10059 (eval "$lt_compile" 2>out/conftest.err)
10061 cat out/conftest.err >&5
10062 echo "$as_me:10062: \$? = $ac_status" >&5
10063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10065 # The compiler can only warn and ignore the option if not recognized
10066 # So say no if there are warnings
10067 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10070 lt_cv_prog_compiler_c_o=yes
10075 # SGI C++ compiler will create directory out/ii_files/ for
10076 # template instantiation
10077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10078 $RM out/* && rmdir out
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10085 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10094 if ${lt_cv_prog_compiler_c_o+:} false; then :
10095 $as_echo_n "(cached) " >&6
10097 lt_cv_prog_compiler_c_o=no
10098 $RM -r conftest 2>/dev/null
10102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10104 lt_compiler_flag="-o out/conftest2.$ac_objext"
10105 # Insert the option either (1) after the last *FLAGS variable, or
10106 # (2) before a word containing "conftest.", or (3) at the end.
10107 # Note that $ac_compile itself does not contain backslashes and begins
10108 # with a dollar sign (not a hyphen), so the echo should work correctly.
10109 lt_compile=`echo "$ac_compile" | $SED \
10110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10112 -e 's:$: $lt_compiler_flag:'`
10113 (eval echo "\"\$as_me:10113: $lt_compile\"" >&5)
10114 (eval "$lt_compile" 2>out/conftest.err)
10116 cat out/conftest.err >&5
10117 echo "$as_me:10117: \$? = $ac_status" >&5
10118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10120 # The compiler can only warn and ignore the option if not recognized
10121 # So say no if there are warnings
10122 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10125 lt_cv_prog_compiler_c_o=yes
10130 # SGI C++ compiler will create directory out/ii_files/ for
10131 # template instantiation
10132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10133 $RM out/* && rmdir out
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10140 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10145 hard_links="nottested"
10146 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10147 # do not overwrite the value of need_locks provided by the user
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10149 $as_echo_n "checking if we can lock with hard links... " >&6; }
10152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10154 ln conftest.a conftest.b 2>&5 || hard_links=no
10155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10157 $as_echo "$hard_links" >&6; }
10158 if test "$hard_links" = no; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10160 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10176 allow_undefined_flag=
10177 always_export_symbols=no
10179 archive_expsym_cmds=
10180 compiler_needs_object=no
10181 enable_shared_with_static_runtimes=no
10182 export_dynamic_flag_spec=
10183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10184 hardcode_automatic=no
10186 hardcode_direct_absolute=no
10187 hardcode_libdir_flag_spec=
10188 hardcode_libdir_flag_spec_ld=
10189 hardcode_libdir_separator=
10190 hardcode_minus_L=no
10191 hardcode_shlibpath_var=unsupported
10193 link_all_deplibs=unknown
10195 module_expsym_cmds=
10196 old_archive_from_new_cmds=
10197 old_archive_from_expsyms_cmds=
10198 thread_safe_flag_spec=
10199 whole_archive_flag_spec=
10200 # include_expsyms should be a list of space-separated symbols to be *always*
10201 # included in the symbol list
10203 # exclude_expsyms can be an extended regexp of symbols to exclude
10204 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10206 # as well as any symbol that contains `d'.
10207 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10209 # platforms (ab)use it in PIC code, but their linkers get confused if
10210 # the symbol is explicitly referenced. Since portable code cannot
10211 # rely on this symbol name, it's probably fine to never include it in
10212 # preloaded symbol tables.
10213 # Exclude shared library initialization/finalization symbols.
10214 extract_expsyms_cmds=
10217 cygwin* | mingw* | pw32* | cegcc*)
10218 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10219 # When not using gcc, we currently assume that we are using
10220 # Microsoft Visual C++.
10221 if test "$GCC" != yes; then
10226 # we just hope/assume this is gcc and not c89 (= MSVC++)
10235 if test "$with_gnu_ld" = yes; then
10236 # If archive_cmds runs LD, not CC, wlarc should be empty
10239 # Set some defaults for GNU ld with shared library support. These
10240 # are reset later if shared libraries are not supported. Putting them
10241 # here allows them to be overridden if necessary.
10242 runpath_var=LD_RUN_PATH
10243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10244 export_dynamic_flag_spec='${wl}--export-dynamic'
10245 # ancient GNU ld didn't support --whole-archive et. al.
10246 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10249 whole_archive_flag_spec=
10251 supports_anon_versioning=no
10252 case `$LD -v 2>&1` in
10253 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10254 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10255 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10256 *\ 2.11.*) ;; # other 2.11 versions
10257 *) supports_anon_versioning=yes ;;
10260 # See if GNU ld supports shared libraries.
10263 # On AIX/PPC, the GNU linker is very broken
10264 if test "$host_cpu" != ia64; then
10268 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10269 *** to be unable to reliably create shared libraries on AIX.
10270 *** Therefore, libtool is disabling shared libraries support. If you
10271 *** really care for shared libraries, you may want to modify your PATH
10272 *** so that a non-GNU linker is found, and then restart.
10281 # see comment about AmigaOS4 .so support
10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283 archive_expsym_cmds=''
10286 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)'
10287 hardcode_libdir_flag_spec='-L$libdir'
10288 hardcode_minus_L=yes
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 allow_undefined_flag=unsupported
10296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10297 # support --undefined. This deserves some investigation. FIXME
10298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10306 # as there is no search path for DLLs.
10307 hardcode_libdir_flag_spec='-L$libdir'
10308 allow_undefined_flag=unsupported
10309 always_export_symbols=no
10310 enable_shared_with_static_runtimes=yes
10311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10315 # If the export-symbols file already is a .def file (1st line
10316 # is EXPORTS), use it as is; otherwise, prepend...
10317 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10318 cp $export_symbols $output_objdir/$soname.def;
10320 echo EXPORTS > $output_objdir/$soname.def;
10321 cat $export_symbols >> $output_objdir/$soname.def;
10323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10331 hardcode_shlibpath_var=no
10332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333 export_dynamic_flag_spec='${wl}-E'
10334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10335 # Instead, shared libraries are loaded at an image base (0x10000000 by
10336 # default) and relocated if they conflict, which is a slow very memory
10337 # consuming and fragmenting process. To avoid this, we pick a random,
10338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10339 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10341 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'
10344 gnu* | linux* | tpf* | k*bsd*-gnu)
10346 if test "$host_os" = linux-dietlibc; then
10347 case $cc_basename in
10348 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10351 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10352 && test "$tmp_diet" = no
10355 tmp_sharedflag='-shared'
10356 case $cc_basename,$host_cpu in
10357 pgcc*) # Portland Group C compiler
10358 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'
10359 tmp_addflag=' $pic_flag'
10361 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10362 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'
10363 tmp_addflag=' $pic_flag -Mnomain' ;;
10364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10365 tmp_addflag=' -i_dynamic' ;;
10366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10367 tmp_addflag=' -i_dynamic -nofor_main' ;;
10368 ifc* | ifort*) # Intel Fortran compiler
10369 tmp_addflag=' -nofor_main' ;;
10370 lf95*) # Lahey Fortran 8.1
10371 whole_archive_flag_spec=
10372 tmp_sharedflag='--shared' ;;
10373 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10374 tmp_sharedflag='-qmkshrobj'
10377 case `$CC -V 2>&1 | sed 5q` in
10378 *Sun\ C*) # Sun C 5.9
10379 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'
10380 compiler_needs_object=yes
10381 tmp_sharedflag='-G' ;;
10382 *Sun\ F*) # Sun Fortran 8.3
10383 tmp_sharedflag='-G' ;;
10385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10387 if test "x$supports_anon_versioning" = xyes; then
10388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10390 echo "local: *; };" >> $output_objdir/$libname.ver~
10391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10394 case $cc_basename in
10396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10398 hardcode_libdir_flag_spec=
10399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10400 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10401 if test "x$supports_anon_versioning" = xyes; then
10402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10404 echo "local: *; };" >> $output_objdir/$libname.ver~
10405 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10430 *** create shared libraries on Solaris systems. Therefore, libtool
10431 *** is disabling shared libraries support. We urge you to upgrade GNU
10432 *** binutils to release 2.9.1 or newer. Another option is to modify
10433 *** your PATH or compiler configuration so that the native linker is
10434 *** used, and then restart.
10437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10446 case `$LD -v 2>&1` in
10447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10452 *** reliably create shared libraries on SCO systems. Therefore, libtool
10453 *** is disabling shared libraries support. We urge you to upgrade GNU
10454 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10455 *** your PATH or compiler configuration so that the native linker is
10456 *** used, and then restart.
10461 # For security reasons, it is highly recommended that you always
10462 # use absolute paths for naming shared libraries, and exclude the
10463 # DT_RUNPATH tag from executables and libraries. But doing so
10464 # requires that you compile everything twice, which is a pain.
10465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10493 if test "$ld_shlibs" = no; then
10495 hardcode_libdir_flag_spec=
10496 export_dynamic_flag_spec=
10497 whole_archive_flag_spec=
10500 # PORTME fill in a description of your system's linker (not GNU ld)
10503 allow_undefined_flag=unsupported
10504 always_export_symbols=yes
10505 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'
10506 # Note: this linker hardcodes the directories in LIBPATH if there
10507 # are no directories specified by -L.
10508 hardcode_minus_L=yes
10509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10510 # Neither direct hardcoding nor static linking is supported with a
10512 hardcode_direct=unsupported
10517 if test "$host_cpu" = ia64; then
10518 # On IA64, the linker does run time linking by default, so we don't
10519 # have to do anything special.
10520 aix_use_runtimelinking=no
10521 exp_sym_flag='-Bexport'
10524 # If we're using GNU nm, then we don't want the "-C" option.
10525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10527 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'
10529 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'
10531 aix_use_runtimelinking=no
10533 # Test if we are trying to use run time linking or normal
10534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10535 # need to do runtime linking.
10536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10537 for ld_flag in $LDFLAGS; do
10538 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10539 aix_use_runtimelinking=yes
10546 exp_sym_flag='-bexport'
10547 no_entry_flag='-bnoentry'
10550 # When large executables or shared objects are built, AIX ld can
10551 # have problems creating the table of contents. If linking a library
10552 # or program results in "error TOC overflow" add -mminimal-toc to
10553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10557 hardcode_direct=yes
10558 hardcode_direct_absolute=yes
10559 hardcode_libdir_separator=':'
10560 link_all_deplibs=yes
10561 file_list_spec='${wl}-f,'
10563 if test "$GCC" = yes; then
10564 case $host_os in aix4.[012]|aix4.[012].*)
10565 # We only want to do this on AIX 4.2 and lower, the check
10566 # below for broken collect2 doesn't work under 4.3+
10567 collect2name=`${CC} -print-prog-name=collect2`
10568 if test -f "$collect2name" &&
10569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10571 # We have reworked collect2
10574 # We have old collect2
10575 hardcode_direct=unsupported
10576 # It fails to find uninstalled libraries when the uninstalled
10577 # path is not listed in the libpath. Setting hardcode_minus_L
10578 # to unsupported forces relinking
10579 hardcode_minus_L=yes
10580 hardcode_libdir_flag_spec='-L$libdir'
10581 hardcode_libdir_separator=
10585 shared_flag='-shared'
10586 if test "$aix_use_runtimelinking" = yes; then
10587 shared_flag="$shared_flag "'${wl}-G'
10591 if test "$host_cpu" = ia64; then
10592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10593 # chokes on -Wl,-G. The following line is correct:
10596 if test "$aix_use_runtimelinking" = yes; then
10597 shared_flag='${wl}-G'
10599 shared_flag='${wl}-bM:SRE'
10604 export_dynamic_flag_spec='${wl}-bexpall'
10605 # It seems that -bexpall does not export symbols beginning with
10606 # underscore (_), so it is better to generate a list of symbols to export.
10607 always_export_symbols=yes
10608 if test "$aix_use_runtimelinking" = yes; then
10609 # Warning - without using the other runtime loading flags (-brtl),
10610 # -berok will link without error, but may produce a broken library.
10611 allow_undefined_flag='-berok'
10612 # Determine the default libpath from the value encoded in an
10613 # empty executable.
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10625 if ac_fn_c_try_link "$LINENO"; then :
10627 lt_aix_libpath_sed='
10628 /Import File Strings/,/^$/ {
10634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10635 # Check for a 64-bit object if we didn't find anything.
10636 if test -z "$aix_libpath"; then
10637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10640 rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10645 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"
10647 if test "$host_cpu" = ia64; then
10648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10649 allow_undefined_flag="-z nodefs"
10650 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"
10652 # Determine the default libpath from the value encoded in an
10653 # empty executable.
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10665 if ac_fn_c_try_link "$LINENO"; then :
10667 lt_aix_libpath_sed='
10668 /Import File Strings/,/^$/ {
10674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10675 # Check for a 64-bit object if we didn't find anything.
10676 if test -z "$aix_libpath"; then
10677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10685 # Warning - without using the other run time loading flags,
10686 # -berok will link without error, but may produce a broken library.
10687 no_undefined_flag=' ${wl}-bernotok'
10688 allow_undefined_flag=' ${wl}-berok'
10689 # Exported symbols can be pulled into shared objects from archives
10690 whole_archive_flag_spec='$convenience'
10691 archive_cmds_need_lc=yes
10692 # This is similar to how AIX traditionally builds its shared libraries.
10693 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'
10701 # see comment about AmigaOS4 .so support
10702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10703 archive_expsym_cmds=''
10706 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)'
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 hardcode_minus_L=yes
10714 export_dynamic_flag_spec=-rdynamic
10717 cygwin* | mingw* | pw32* | cegcc*)
10718 # When not using gcc, we currently assume that we are using
10719 # Microsoft Visual C++.
10720 # hardcode_libdir_flag_spec is actually meaningless, as there is
10721 # no search path for DLLs.
10722 hardcode_libdir_flag_spec=' '
10723 allow_undefined_flag=unsupported
10724 # Tell ltmain to make .lib files, not .a files.
10726 # Tell ltmain to make .dll files, not .so files.
10728 # FIXME: Setting linknames here is a bad hack.
10729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10730 # The linker will automatically build a .lib file if we build a DLL.
10731 old_archive_from_new_cmds='true'
10732 # FIXME: Should let the user specify the lib program.
10733 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10734 fix_srcfile_path='`cygpath -w "$srcfile"`'
10735 enable_shared_with_static_runtimes=yes
10738 darwin* | rhapsody*)
10741 archive_cmds_need_lc=no
10743 hardcode_automatic=yes
10744 hardcode_shlibpath_var=unsupported
10745 whole_archive_flag_spec=''
10746 link_all_deplibs=yes
10747 allow_undefined_flag="$_lt_dar_allow_undefined"
10748 case $cc_basename in
10749 ifort*) _lt_dar_can_shared=yes ;;
10750 *) _lt_dar_can_shared=$GCC ;;
10752 if test "$_lt_dar_can_shared" = "yes"; then
10753 output_verbose_link_cmd=echo
10754 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10755 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10756 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}"
10757 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}"
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_libdir_flag_spec='-L$libdir'
10768 hardcode_shlibpath_var=no
10775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10776 # support. Future versions do this automatically, but an explicit c++rt0.o
10777 # does not break anything, and helps significantly (at the cost of a little
10780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10781 hardcode_libdir_flag_spec='-R$libdir'
10782 hardcode_direct=yes
10783 hardcode_shlibpath_var=no
10786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_direct=yes
10790 hardcode_minus_L=yes
10791 hardcode_shlibpath_var=no
10794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10795 freebsd* | dragonfly*)
10796 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10797 hardcode_libdir_flag_spec='-R$libdir'
10798 hardcode_direct=yes
10799 hardcode_shlibpath_var=no
10803 if test "$GCC" = yes; then
10804 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'
10806 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'
10808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10809 hardcode_libdir_separator=:
10810 hardcode_direct=yes
10812 # hardcode_minus_L: Not really in the search PATH,
10813 # but as the default location of the library.
10814 hardcode_minus_L=yes
10815 export_dynamic_flag_spec='${wl}-E'
10819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10824 if test "$with_gnu_ld" = no; then
10825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10826 hardcode_libdir_flag_spec_ld='+b $libdir'
10827 hardcode_libdir_separator=:
10828 hardcode_direct=yes
10829 hardcode_direct_absolute=yes
10830 export_dynamic_flag_spec='${wl}-E'
10831 # hardcode_minus_L: Not really in the search PATH,
10832 # but as the default location of the library.
10833 hardcode_minus_L=yes
10838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10841 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10863 if test "$with_gnu_ld" = no; then
10864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10865 hardcode_libdir_separator=:
10870 hardcode_shlibpath_var=no
10873 hardcode_direct=yes
10874 hardcode_direct_absolute=yes
10875 export_dynamic_flag_spec='${wl}-E'
10877 # hardcode_minus_L: Not really in the search PATH,
10878 # but as the default location of the library.
10879 hardcode_minus_L=yes
10885 irix5* | irix6* | nonstopux*)
10886 if test "$GCC" = yes; then
10887 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'
10888 # Try to use the -exported_symbol ld option, if it does not
10889 # work, assume that -exports_file does not work either and
10890 # implicitly export all symbols.
10891 save_LDFLAGS="$LDFLAGS"
10892 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 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'
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LDFLAGS="$save_LDFLAGS"
10905 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'
10906 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'
10908 archive_cmds_need_lc='no'
10909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10910 hardcode_libdir_separator=:
10912 link_all_deplibs=yes
10916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10919 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10921 hardcode_libdir_flag_spec='-R$libdir'
10922 hardcode_direct=yes
10923 hardcode_shlibpath_var=no
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_direct=yes
10929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10930 hardcode_libdir_separator=:
10931 hardcode_shlibpath_var=no
10938 if test -f /usr/libexec/ld.so; then
10939 hardcode_direct=yes
10940 hardcode_shlibpath_var=no
10941 hardcode_direct_absolute=yes
10942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10946 export_dynamic_flag_spec='${wl}-E'
10949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_libdir_flag_spec='-R$libdir'
10954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10955 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_minus_L=yes
10967 allow_undefined_flag=unsupported
10968 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'
10969 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10973 if test "$GCC" = yes; then
10974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10975 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'
10977 allow_undefined_flag=' -expect_unresolved \*'
10978 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'
10980 archive_cmds_need_lc='no'
10981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10982 hardcode_libdir_separator=:
10985 osf4* | osf5*) # as osf3* with the addition of -msym flag
10986 if test "$GCC" = yes; then
10987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10988 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'
10989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10991 allow_undefined_flag=' -expect_unresolved \*'
10992 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'
10993 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~
10994 $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'
10996 # Both c and cxx compiler support -rpath directly
10997 hardcode_libdir_flag_spec='-rpath $libdir'
10999 archive_cmds_need_lc='no'
11000 hardcode_libdir_separator=:
11004 no_undefined_flag=' -z defs'
11005 if test "$GCC" = yes; then
11007 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11009 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11011 case `$CC -V 2>&1` in
11014 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11020 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11022 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11026 hardcode_libdir_flag_spec='-R$libdir'
11027 hardcode_shlibpath_var=no
11029 solaris2.[0-5] | solaris2.[0-5].*) ;;
11031 # The compiler driver will combine and reorder linker options,
11032 # but understands `-z linker_flag'. GCC discards it without `$wl',
11033 # but is careful enough not to reorder.
11034 # Supported since Solaris 2.6 (maybe 2.5.1?)
11035 if test "$GCC" = yes; then
11036 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11038 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11042 link_all_deplibs=yes
11046 if test "x$host_vendor" = xsequent; then
11047 # Use $CC to link under sequent, because it throws in some extra .o
11048 # files that make .init and .fini sections work.
11049 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11053 hardcode_libdir_flag_spec='-L$libdir'
11054 hardcode_direct=yes
11055 hardcode_minus_L=yes
11056 hardcode_shlibpath_var=no
11060 case $host_vendor in
11062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11063 hardcode_direct=yes # is this really true???
11066 ## LD is ld it makes a PLAMLIB
11067 ## CC just makes a GrossModule.
11068 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11069 reload_cmds='$CC -r -o $output$reload_objs'
11073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11074 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11077 runpath_var='LD_RUN_PATH'
11078 hardcode_shlibpath_var=no
11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_shlibpath_var=no
11084 export_dynamic_flag_spec='-Bexport'
11088 if test -d /usr/nec; then
11089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11090 hardcode_shlibpath_var=no
11091 runpath_var=LD_RUN_PATH
11092 hardcode_runpath_var=yes
11097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11098 no_undefined_flag='${wl}-z,text'
11099 archive_cmds_need_lc=no
11100 hardcode_shlibpath_var=no
11101 runpath_var='LD_RUN_PATH'
11103 if test "$GCC" = yes; then
11104 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11107 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112 sysv5* | sco3.2v5* | sco5v6*)
11113 # Note: We can NOT use -z defs as we might desire, because we do not
11114 # link with -lc, and that would cause any symbols used from libc to
11115 # always be unresolved, which means just about no library would
11116 # ever link correctly. If we're not using GNU ld we use -z text
11117 # though, which does catch some bad symbols but isn't as heavy-handed
11119 no_undefined_flag='${wl}-z,text'
11120 allow_undefined_flag='${wl}-z,nodefs'
11121 archive_cmds_need_lc=no
11122 hardcode_shlibpath_var=no
11123 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11124 hardcode_libdir_separator=':'
11125 link_all_deplibs=yes
11126 export_dynamic_flag_spec='${wl}-Bexport'
11127 runpath_var='LD_RUN_PATH'
11129 if test "$GCC" = yes; then
11130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_libdir_flag_spec='-L$libdir'
11141 hardcode_shlibpath_var=no
11149 if test x$host_vendor = xsni; then
11151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11152 export_dynamic_flag_spec='${wl}-Blargedynsym'
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11159 $as_echo "$ld_shlibs" >&6; }
11160 test "$ld_shlibs" = no && can_build_shared=no
11162 with_gnu_ld=$with_gnu_ld
11179 # Do we need to explicitly link libc?
11181 case "x$archive_cmds_need_lc" in
11183 # Assume -lc should be added
11184 archive_cmds_need_lc=yes
11186 if test "$enable_shared" = yes && test "$GCC" = yes; then
11187 case $archive_cmds in
11189 # FIXME: we may have to deal with multi-command sequences.
11192 # Test whether the compiler implicitly links with -lc since on some
11193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194 # to ld, don't add -lc before -lgcc.
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11201 (eval $ac_compile) 2>&5
11203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204 test $ac_status = 0; } 2>conftest.err; then
11207 libobjs=conftest.$ac_objext
11209 wl=$lt_prog_compiler_wl
11210 pic_flag=$lt_prog_compiler_pic
11216 lt_save_allow_undefined_flag=$allow_undefined_flag
11217 allow_undefined_flag=
11218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11219 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; }
11224 archive_cmds_need_lc=no
11226 archive_cmds_need_lc=yes
11228 allow_undefined_flag=$lt_save_allow_undefined_flag
11230 cat conftest.err 1>&5
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11234 $as_echo "$archive_cmds_need_lc" >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11398 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11400 if test "$GCC" = yes; then
11402 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11403 *) lt_awk_arg="/^libraries:/" ;;
11405 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11406 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11407 # if the path contains ";" then we assume it to be the separator
11408 # otherwise default to the standard path separator (i.e. ":") - it is
11409 # assumed that no part of a normal pathname contains ";" but that should
11410 # okay in the real world where ";" in dirpaths is itself problematic.
11411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11415 # Ok, now we have the path, separated by spaces, we can step through it
11416 # and add multilib dir if necessary.
11417 lt_tmp_lt_search_path_spec=
11418 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11419 for lt_sys_path in $lt_search_path_spec; do
11420 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11423 test -d "$lt_sys_path" && \
11424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11427 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11428 BEGIN {RS=" "; FS="/|\n";} {
11431 for (lt_i = NF; lt_i > 0; lt_i--) {
11432 if ($lt_i != "" && $lt_i != ".") {
11433 if ($lt_i == "..") {
11436 if (lt_count == 0) {
11437 lt_foo="/" $lt_i lt_foo;
11444 if (lt_foo != "") { lt_freq[lt_foo]++; }
11445 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11447 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11451 library_names_spec=
11452 libname_spec='lib$name'
11456 postuninstall_cmds=
11460 shlibpath_overrides_runpath=unknown
11462 dynamic_linker="$host_os ld.so"
11463 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11464 need_lib_prefix=unknown
11465 hardcode_into_libs=no
11467 # when you set need_version to no, make sure it does not cause -set_version
11468 # flags to be left without arguments
11469 need_version=unknown
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11475 shlibpath_var=LIBPATH
11477 # AIX 3 has no versioning support, so we append a major version to the name.
11478 soname_spec='${libname}${release}${shared_ext}$major'
11485 hardcode_into_libs=yes
11486 if test "$host_cpu" = ia64; then
11487 # AIX 5 supports IA64
11488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11489 shlibpath_var=LD_LIBRARY_PATH
11491 # With GCC up to 2.95.x, collect2 would create an import file
11492 # for dependence libraries. The import file would start with
11493 # the line `#! .'. This would cause the generated library to
11494 # depend on `.', always an invalid library. This was fixed in
11495 # development snapshots of GCC prior to 3.0.
11497 aix4 | aix4.[01] | aix4.[01].*)
11498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11500 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11503 can_build_shared=no
11507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11508 # soname into executable. Probably we can add versioning support to
11509 # collect2, so additional links can be useful in future.
11510 if test "$aix_use_runtimelinking" = yes; then
11511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11512 # instead of lib<name>.a to let people know that these are not
11513 # typical AIX shared libraries.
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 # We preserve .a as extension for shared libraries through AIX4.2
11517 # and later when we are not doing run time linking.
11518 library_names_spec='${libname}${release}.a $libname.a'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LIBPATH
11528 # Since July 2007 AmigaOS4 officially supports .so libraries.
11529 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 library_names_spec='$libname.ixlibrary $libname.a'
11534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11535 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'
11541 library_names_spec='${libname}${shared_ext}'
11542 dynamic_linker="$host_os ld.so"
11543 shlibpath_var=LIBRARY_PATH
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11555 # the default ld.so.conf also contains /usr/contrib/lib and
11556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11557 # libtool to hard-code these into programs
11560 cygwin* | mingw* | pw32* | cegcc*)
11561 version_type=windows
11566 case $GCC,$host_os in
11567 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \${file}`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11582 shlibpath_overrides_runpath=yes
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11591 # MinGW DLLs use traditional 'lib' prefix
11592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11593 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11594 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11595 # It is most probably a Windows format PATH printed by
11596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11597 # path with ; separators, and with drive letters. We can handle the
11598 # drive letters (cygwin fileutils understands them), so leave them,
11599 # especially as we might pass files found there to a mingw objdump,
11600 # which wouldn't understand a cygwinified path. Ahh.
11601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11607 # pw32 DLLs use 'pw' prefix rather than 'lib'
11608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11617 dynamic_linker='Win32 ld.exe'
11618 # FIXME: first we should search . and the directory the executable is in
11622 darwin* | rhapsody*)
11623 dynamic_linker="$host_os dyld"
11624 version_type=darwin
11627 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11628 soname_spec='${libname}${release}${major}$shared_ext'
11629 shlibpath_overrides_runpath=yes
11630 shlibpath_var=DYLD_LIBRARY_PATH
11631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11634 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11650 freebsd* | dragonfly*)
11651 # DragonFly does not have aout. When/if they implement a new
11652 # versioning mechanism, adjust this.
11653 if test -x /usr/bin/objformat; then
11654 objformat=`/usr/bin/objformat`
11657 freebsd[123]*) objformat=aout ;;
11658 *) objformat=elf ;;
11661 version_type=freebsd-$objformat
11662 case $version_type in
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11673 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=yes
11678 freebsd3.[01]* | freebsdelf3.[01]*)
11679 shlibpath_overrides_runpath=yes
11680 hardcode_into_libs=yes
11682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11684 shlibpath_overrides_runpath=no
11685 hardcode_into_libs=yes
11687 *) # from 4.6 on, and DragonFly
11688 shlibpath_overrides_runpath=yes
11689 hardcode_into_libs=yes
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11699 soname_spec='${libname}${release}${shared_ext}$major'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 hardcode_into_libs=yes
11704 hpux9* | hpux10* | hpux11*)
11705 # Give a soname corresponding to the major version so that dld.sl refuses to
11706 # link against other versions.
11713 hardcode_into_libs=yes
11714 dynamic_linker="$host_os dld.so"
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 if test "X$HPUX_IA64_MODE" = X32; then
11720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11728 hardcode_into_libs=yes
11729 dynamic_linker="$host_os dld.sl"
11730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11739 dynamic_linker="$host_os dld.sl"
11740 shlibpath_var=SHLIB_PATH
11741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11746 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11747 postinstall_cmds='chmod 555 $lib'
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11762 irix5* | irix6* | nonstopux*)
11764 nonstopux*) version_type=nonstopux ;;
11766 if test "$lt_cv_prog_gnu_ld" = yes; then
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11777 irix5* | nonstopux*)
11778 libsuff= shlibsuff=
11781 case $LD in # libtool.m4 will add one of these switches to LD
11782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11783 libsuff= shlibsuff= libmagic=32-bit;;
11784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11785 libsuff=32 shlibsuff=N32 libmagic=N32;;
11786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11788 *) libsuff= shlibsuff= libmagic=never-match;;
11792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11793 shlibpath_overrides_runpath=no
11794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11796 hardcode_into_libs=yes
11799 # No shared lib support for Linux oldld, aout, or coff.
11800 linux*oldld* | linux*aout* | linux*coff*)
11804 # This must be Linux ELF.
11805 linux* | k*bsd*-gnu)
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 # Some binutils ld are patched to set DT_RUNPATH
11815 save_LDFLAGS=$LDFLAGS
11816 save_libdir=$libdir
11817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11832 shlibpath_overrides_runpath=yes
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LDFLAGS=$save_LDFLAGS
11838 libdir=$save_libdir
11840 # This implies no fast_install, which is unacceptable.
11841 # Some rework will be needed to allow for fast_install
11842 # before this can be enabled.
11843 hardcode_into_libs=yes
11845 # Append ld.so.conf contents to the search path
11846 if test -f /etc/ld.so.conf; then
11847 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' ' '`
11848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11851 # We used to test for /lib/ld.so.1 and disable shared libraries on
11852 # powerpc, because MkLinux only supported shared libraries with the
11853 # GNU dynamic linker. Since this was broken with cross compilers,
11854 # most powerpc-linux boxes support dynamic linking these days and
11855 # people can always --disable-shared, the test was removed, and we
11856 # assume the GNU/Linux dynamic linker is in use.
11857 dynamic_linker='GNU/Linux ld.so'
11864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867 dynamic_linker='NetBSD (a.out) ld.so'
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 dynamic_linker='NetBSD ld.elf_so'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='ldqnx.so'
11899 sys_lib_dlsearch_path_spec="/usr/lib"
11901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11904 *) need_version=no ;;
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11911 openbsd2.[89] | openbsd2.[89].*)
11912 shlibpath_overrides_runpath=no
11915 shlibpath_overrides_runpath=yes
11919 shlibpath_overrides_runpath=yes
11924 libname_spec='$name'
11927 library_names_spec='$libname${shared_ext} $libname.a'
11928 dynamic_linker='OS/2 ld.exe'
11929 shlibpath_var=LIBPATH
11932 osf3* | osf4* | osf5*)
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 shlibpath_var=LD_LIBRARY_PATH
11939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=yes
11955 hardcode_into_libs=yes
11956 # ldd complains unless libraries are executable
11957 postinstall_cmds='chmod +x $lib'
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=yes
11966 if test "$with_gnu_ld" = yes; then
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 case $host_vendor in
11979 shlibpath_overrides_runpath=no
11981 runpath_var=LD_RUN_PATH
11989 shlibpath_overrides_runpath=no
11990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11996 if test -d /usr/nec ;then
11998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11999 soname_spec='$libname${shared_ext}.$major'
12000 shlibpath_var=LD_LIBRARY_PATH
12004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12005 version_type=freebsd-elf
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12009 soname_spec='${libname}${release}${shared_ext}$major'
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=yes
12012 hardcode_into_libs=yes
12013 if test "$with_gnu_ld" = yes; then
12014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12016 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12023 sys_lib_dlsearch_path_spec='/usr/lib'
12027 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=no
12034 hardcode_into_libs=yes
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12049 $as_echo "$dynamic_linker" >&6; }
12050 test "$dynamic_linker" = no && can_build_shared=no
12052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12053 if test "$GCC" = yes; then
12054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12058 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12060 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12061 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12153 if test -n "$hardcode_libdir_flag_spec" ||
12154 test -n "$runpath_var" ||
12155 test "X$hardcode_automatic" = "Xyes" ; then
12157 # We can hardcode non-existent directories.
12158 if test "$hardcode_direct" != no &&
12159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12160 # have to relink, otherwise we might link with an installed library
12161 # when we should be linking with a yet-to-be-installed one
12162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12163 test "$hardcode_minus_L" != no; then
12164 # Linking always hardcodes the temporary library directory.
12165 hardcode_action=relink
12167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12168 hardcode_action=immediate
12171 # We cannot hardcode anything, or else we can only hardcode existing
12173 hardcode_action=unsupported
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12176 $as_echo "$hardcode_action" >&6; }
12178 if test "$hardcode_action" = relink ||
12179 test "$inherit_rpath" = yes; then
12180 # Fast installation is not supported
12181 enable_fast_install=no
12182 elif test "$shlibpath_overrides_runpath" = yes ||
12183 test "$enable_shared" = no; then
12184 # Fast installation is not necessary
12185 enable_fast_install=needless
12193 if test "x$enable_dlopen" != xyes; then
12194 enable_dlopen=unknown
12195 enable_dlopen_self=unknown
12196 enable_dlopen_self_static=unknown
12203 lt_cv_dlopen="load_add_on"
12205 lt_cv_dlopen_self=yes
12208 mingw* | pw32* | cegcc*)
12209 lt_cv_dlopen="LoadLibrary"
12214 lt_cv_dlopen="dlopen"
12219 # if libdl is installed we need to link against it
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12222 if ${ac_cv_lib_dl_dlopen+:} false; then :
12223 $as_echo_n "(cached) " >&6
12225 ac_check_lib_save_LIBS=$LIBS
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_dl_dlopen=yes
12248 ac_cv_lib_dl_dlopen=no
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12260 lt_cv_dlopen="dyld"
12262 lt_cv_dlopen_self=yes
12269 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12270 if test "x$ac_cv_func_shl_load" = xyes; then :
12271 lt_cv_dlopen="shl_load"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12274 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12275 if ${ac_cv_lib_dld_shl_load+:} false; then :
12276 $as_echo_n "(cached) " >&6
12278 ac_check_lib_save_LIBS=$LIBS
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12293 return shl_load ();
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_lib_dld_shl_load=yes
12301 ac_cv_lib_dld_shl_load=no
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12308 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12309 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12310 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12312 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12313 if test "x$ac_cv_func_dlopen" = xyes; then :
12314 lt_cv_dlopen="dlopen"
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12318 if ${ac_cv_lib_dl_dlopen+:} false; then :
12319 $as_echo_n "(cached) " >&6
12321 ac_check_lib_save_LIBS=$LIBS
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12341 if ac_fn_c_try_link "$LINENO"; then :
12342 ac_cv_lib_dl_dlopen=yes
12344 ac_cv_lib_dl_dlopen=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12352 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12356 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12357 if ${ac_cv_lib_svld_dlopen+:} false; then :
12358 $as_echo_n "(cached) " >&6
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lsvld $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12380 if ac_fn_c_try_link "$LINENO"; then :
12381 ac_cv_lib_svld_dlopen=yes
12383 ac_cv_lib_svld_dlopen=no
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12390 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12391 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12395 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12396 if ${ac_cv_lib_dld_dld_link+:} false; then :
12397 $as_echo_n "(cached) " >&6
12399 ac_check_lib_save_LIBS=$LIBS
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12414 return dld_link ();
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_lib_dld_dld_link=yes
12422 ac_cv_lib_dld_dld_link=no
12424 rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12429 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12430 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12452 if test "x$lt_cv_dlopen" != xno; then
12458 case $lt_cv_dlopen in
12460 save_CPPFLAGS="$CPPFLAGS"
12461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12463 save_LDFLAGS="$LDFLAGS"
12464 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12467 LIBS="$lt_cv_dlopen_libs $LIBS"
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12470 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12471 if ${lt_cv_dlopen_self+:} false; then :
12472 $as_echo_n "(cached) " >&6
12474 if test "$cross_compiling" = yes; then :
12475 lt_cv_dlopen_self=cross
12477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478 lt_status=$lt_dlunknown
12479 cat > conftest.$ac_ext <<_LT_EOF
12480 #line 12480 "configure"
12481 #include "confdefs.h"
12490 # define LT_DLGLOBAL RTLD_GLOBAL
12493 # define LT_DLGLOBAL DL_GLOBAL
12495 # define LT_DLGLOBAL 0
12499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500 find out it does not work in some platform. */
12501 #ifndef LT_DLLAZY_OR_NOW
12503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12506 # define LT_DLLAZY_OR_NOW DL_LAZY
12509 # define LT_DLLAZY_OR_NOW RTLD_NOW
12512 # define LT_DLLAZY_OR_NOW DL_NOW
12514 # define LT_DLLAZY_OR_NOW 0
12521 void fnord() { int i=42;}
12524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12525 int status = $lt_dlunknown;
12529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12531 /* dlclose (self); */
12539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12540 (eval $ac_link) 2>&5
12542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12544 (./conftest; exit; ) >&5 2>/dev/null
12546 case x$lt_status in
12547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12549 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12552 # compilation failed
12553 lt_cv_dlopen_self=no
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12561 $as_echo "$lt_cv_dlopen_self" >&6; }
12563 if test "x$lt_cv_dlopen_self" = xyes; then
12564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12566 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12567 if ${lt_cv_dlopen_self_static+:} false; then :
12568 $as_echo_n "(cached) " >&6
12570 if test "$cross_compiling" = yes; then :
12571 lt_cv_dlopen_self_static=cross
12573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12574 lt_status=$lt_dlunknown
12575 cat > conftest.$ac_ext <<_LT_EOF
12576 #line 12576 "configure"
12577 #include "confdefs.h"
12586 # define LT_DLGLOBAL RTLD_GLOBAL
12589 # define LT_DLGLOBAL DL_GLOBAL
12591 # define LT_DLGLOBAL 0
12595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12596 find out it does not work in some platform. */
12597 #ifndef LT_DLLAZY_OR_NOW
12599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12602 # define LT_DLLAZY_OR_NOW DL_LAZY
12605 # define LT_DLLAZY_OR_NOW RTLD_NOW
12608 # define LT_DLLAZY_OR_NOW DL_NOW
12610 # define LT_DLLAZY_OR_NOW 0
12617 void fnord() { int i=42;}
12620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12621 int status = $lt_dlunknown;
12625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12627 /* dlclose (self); */
12635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12636 (eval $ac_link) 2>&5
12638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12640 (./conftest; exit; ) >&5 2>/dev/null
12642 case x$lt_status in
12643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12645 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12648 # compilation failed
12649 lt_cv_dlopen_self_static=no
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12660 CPPFLAGS="$save_CPPFLAGS"
12661 LDFLAGS="$save_LDFLAGS"
12666 case $lt_cv_dlopen_self in
12667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12668 *) enable_dlopen_self=unknown ;;
12671 case $lt_cv_dlopen_self_static in
12672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12673 *) enable_dlopen_self_static=unknown ;;
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12696 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12697 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12698 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12699 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701 $as_echo "yes" >&6; }
12703 # FIXME - insert some real tests, host_os isn't really good enough
12706 if test -n "$STRIP" ; then
12707 striplib="$STRIP -x"
12708 old_striplib="$STRIP -S"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710 $as_echo "yes" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12734 # Report which library types will actually be built
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12736 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12738 $as_echo "$can_build_shared" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12741 $as_echo_n "checking whether to build shared libraries... " >&6; }
12742 test "$can_build_shared" = "no" && enable_shared=no
12744 # On AIX, shared libraries and static libraries use the same namespace, and
12745 # are all built from PIC.
12748 test "$enable_shared" = yes && enable_static=no
12749 if test -n "$RANLIB"; then
12750 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12751 postinstall_cmds='$RANLIB $lib'
12756 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12757 test "$enable_shared" = yes && enable_static=no
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12762 $as_echo "$enable_shared" >&6; }
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12765 $as_echo_n "checking whether to build static libraries... " >&6; }
12766 # Make sure either enable_shared or enable_static is yes.
12767 test "$enable_shared" = yes || enable_static=yes
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12769 $as_echo "$enable_static" >&6; }
12776 ac_cpp='$CPP $CPPFLAGS'
12777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785 ac_cpp='$CXXCPP $CPPFLAGS'
12786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12790 archive_cmds_need_lc_CXX=no
12791 allow_undefined_flag_CXX=
12792 always_export_symbols_CXX=no
12793 archive_expsym_cmds_CXX=
12794 compiler_needs_object_CXX=no
12795 export_dynamic_flag_spec_CXX=
12796 hardcode_direct_CXX=no
12797 hardcode_direct_absolute_CXX=no
12798 hardcode_libdir_flag_spec_CXX=
12799 hardcode_libdir_flag_spec_ld_CXX=
12800 hardcode_libdir_separator_CXX=
12801 hardcode_minus_L_CXX=no
12802 hardcode_shlibpath_var_CXX=unsupported
12803 hardcode_automatic_CXX=no
12804 inherit_rpath_CXX=no
12806 module_expsym_cmds_CXX=
12807 link_all_deplibs_CXX=unknown
12808 old_archive_cmds_CXX=$old_archive_cmds
12809 no_undefined_flag_CXX=
12810 whole_archive_flag_spec_CXX=
12811 enable_shared_with_static_runtimes_CXX=no
12813 # Source file extension for C++ test sources.
12816 # Object file extension for compiled C++ test sources.
12820 # No sense in running all these tests if we already determined that
12821 # the CXX compiler isn't working. Some variables (like enable_shared)
12822 # are currently assumed to apply to all compilers on this platform,
12823 # and will be corrupted by setting them based on a non-working compiler.
12824 if test "$_lt_caught_CXX_error" != yes; then
12825 # Code to be used in simple compile tests
12826 lt_simple_compile_test_code="int some_variable = 0;"
12828 # Code to be used in simple link tests
12829 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12831 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12838 # If no C compiler was specified, use CC.
12841 # If no C compiler flags were specified, use CFLAGS.
12842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12844 # Allow CC to be a program name with arguments.
12848 # save warnings/boilerplate of simple test code
12849 ac_outfile=conftest.$ac_objext
12850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12852 _lt_compiler_boilerplate=`cat conftest.err`
12855 ac_outfile=conftest.$ac_objext
12856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12858 _lt_linker_boilerplate=`cat conftest.err`
12862 # Allow CC to be a program name with arguments.
12867 lt_save_with_gnu_ld=$with_gnu_ld
12868 lt_save_path_LD=$lt_cv_path_LD
12869 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12870 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12872 $as_unset lt_cv_prog_gnu_ld
12874 if test -n "${lt_cv_path_LDCXX+set}"; then
12875 lt_cv_path_LD=$lt_cv_path_LDCXX
12877 $as_unset lt_cv_path_LD
12879 test -z "${LDCXX+set}" || LD=$LDCXX
12883 for cc_temp in $compiler""; do
12885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12891 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12894 if test -n "$compiler"; then
12895 # We don't want -fno-exception when compiling C++ code, so set the
12896 # no_builtin_flag separately
12897 if test "$GXX" = yes; then
12898 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12900 lt_prog_compiler_no_builtin_flag_CXX=
12903 if test "$GXX" = yes; then
12904 # Set up default GNU C++ configuration
12908 # Check whether --with-gnu-ld was given.
12909 if test "${with_gnu_ld+set}" = set; then :
12910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12916 if test "$GCC" = yes; then
12917 # Check if gcc -print-prog-name=ld gives a path.
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12919 $as_echo_n "checking for ld used by $CC... " >&6; }
12922 # gcc leaves a trailing carriage return which upsets mingw
12923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12928 # Accept absolute paths.
12930 re_direlt='/[^/][^/]*/\.\./'
12931 # Canonicalize the pathname of ld
12932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12936 test -z "$LD" && LD="$ac_prog"
12939 # If it fails, then pretend we aren't using GCC.
12943 # If it is relative, then search for the first ld in PATH.
12944 with_gnu_ld=unknown
12947 elif test "$with_gnu_ld" = yes; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12949 $as_echo_n "checking for GNU ld... " >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12952 $as_echo_n "checking for non-GNU ld... " >&6; }
12954 if ${lt_cv_path_LD+:} false; then :
12955 $as_echo_n "(cached) " >&6
12957 if test -z "$LD"; then
12958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12959 for ac_dir in $PATH; do
12961 test -z "$ac_dir" && ac_dir=.
12962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12963 lt_cv_path_LD="$ac_dir/$ac_prog"
12964 # Check to see if the program is GNU ld. I'd rather use --version,
12965 # but apparently some variants of GNU ld only accept -v.
12966 # Break only if it was the GNU/non-GNU ld that we prefer.
12967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12968 *GNU* | *'with BFD'*)
12969 test "$with_gnu_ld" != no && break
12972 test "$with_gnu_ld" != yes && break
12979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12983 LD="$lt_cv_path_LD"
12984 if test -n "$LD"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12986 $as_echo "$LD" >&6; }
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12994 if ${lt_cv_prog_gnu_ld+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12998 case `$LD -v 2>&1 </dev/null` in
12999 *GNU* | *'with BFD'*)
13000 lt_cv_prog_gnu_ld=yes
13003 lt_cv_prog_gnu_ld=no
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13009 with_gnu_ld=$lt_cv_prog_gnu_ld
13017 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13018 # archiving commands below assume that GNU ld is being used.
13019 if test "$with_gnu_ld" = yes; then
13020 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 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'
13023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13026 # If archive_cmds runs LD, not CC, wlarc should be empty
13027 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13028 # investigate it a little bit more. (MM)
13031 # ancient GNU ld didn't support --whole-archive et. al.
13032 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13033 $GREP 'no-whole-archive' > /dev/null; then
13034 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13036 whole_archive_flag_spec_CXX=
13042 # A generic and very simple default shared library creation
13043 # command for GNU C++ for the case where it uses the native
13044 # linker, instead of GNU ld. If possible, this setting should
13045 # overridden to take advantage of the native linker features on
13046 # the platform it is being used on.
13047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13050 # Commands to make compiler produce verbose output that lists
13051 # what "hidden" libraries, object files and flags are used when
13052 # linking a shared library.
13053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13061 # PORTME: fill in a description of your system's C++ link characteristics
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13067 # FIXME: insert proper C++ library support
13071 if test "$host_cpu" = ia64; then
13072 # On IA64, the linker does run time linking by default, so we don't
13073 # have to do anything special.
13074 aix_use_runtimelinking=no
13075 exp_sym_flag='-Bexport'
13078 aix_use_runtimelinking=no
13080 # Test if we are trying to use run time linking or normal
13081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13082 # need to do runtime linking.
13083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13084 for ld_flag in $LDFLAGS; do
13087 aix_use_runtimelinking=yes
13095 exp_sym_flag='-bexport'
13096 no_entry_flag='-bnoentry'
13099 # When large executables or shared objects are built, AIX ld can
13100 # have problems creating the table of contents. If linking a library
13101 # or program results in "error TOC overflow" add -mminimal-toc to
13102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13105 archive_cmds_CXX=''
13106 hardcode_direct_CXX=yes
13107 hardcode_direct_absolute_CXX=yes
13108 hardcode_libdir_separator_CXX=':'
13109 link_all_deplibs_CXX=yes
13110 file_list_spec_CXX='${wl}-f,'
13112 if test "$GXX" = yes; then
13113 case $host_os in aix4.[012]|aix4.[012].*)
13114 # We only want to do this on AIX 4.2 and lower, the check
13115 # below for broken collect2 doesn't work under 4.3+
13116 collect2name=`${CC} -print-prog-name=collect2`
13117 if test -f "$collect2name" &&
13118 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13120 # We have reworked collect2
13123 # We have old collect2
13124 hardcode_direct_CXX=unsupported
13125 # It fails to find uninstalled libraries when the uninstalled
13126 # path is not listed in the libpath. Setting hardcode_minus_L
13127 # to unsupported forces relinking
13128 hardcode_minus_L_CXX=yes
13129 hardcode_libdir_flag_spec_CXX='-L$libdir'
13130 hardcode_libdir_separator_CXX=
13133 shared_flag='-shared'
13134 if test "$aix_use_runtimelinking" = yes; then
13135 shared_flag="$shared_flag "'${wl}-G'
13139 if test "$host_cpu" = ia64; then
13140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13141 # chokes on -Wl,-G. The following line is correct:
13144 if test "$aix_use_runtimelinking" = yes; then
13145 shared_flag='${wl}-G'
13147 shared_flag='${wl}-bM:SRE'
13152 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13153 # It seems that -bexpall does not export symbols beginning with
13154 # underscore (_), so it is better to generate a list of symbols to
13156 always_export_symbols_CXX=yes
13157 if test "$aix_use_runtimelinking" = yes; then
13158 # Warning - without using the other runtime loading flags (-brtl),
13159 # -berok will link without error, but may produce a broken library.
13160 allow_undefined_flag_CXX='-berok'
13161 # Determine the default libpath from the value encoded in an empty
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13174 if ac_fn_cxx_try_link "$LINENO"; then :
13176 lt_aix_libpath_sed='
13177 /Import File Strings/,/^$/ {
13183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 # Check for a 64-bit object if we didn't find anything.
13185 if test -z "$aix_libpath"; then
13186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13193 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13195 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"
13197 if test "$host_cpu" = ia64; then
13198 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13199 allow_undefined_flag_CXX="-z nodefs"
13200 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"
13202 # Determine the default libpath from the value encoded in an
13203 # empty executable.
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13215 if ac_fn_cxx_try_link "$LINENO"; then :
13217 lt_aix_libpath_sed='
13218 /Import File Strings/,/^$/ {
13224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13225 # Check for a 64-bit object if we didn't find anything.
13226 if test -z "$aix_libpath"; then
13227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13234 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13235 # Warning - without using the other run time loading flags,
13236 # -berok will link without error, but may produce a broken library.
13237 no_undefined_flag_CXX=' ${wl}-bernotok'
13238 allow_undefined_flag_CXX=' ${wl}-berok'
13239 # Exported symbols can be pulled into shared objects from archives
13240 whole_archive_flag_spec_CXX='$convenience'
13241 archive_cmds_need_lc_CXX=yes
13242 # This is similar to how AIX traditionally builds its shared
13244 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'
13250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13251 allow_undefined_flag_CXX=unsupported
13252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13253 # support --undefined. This deserves some investigation. FIXME
13254 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 case $cc_basename in
13263 # FIXME: insert proper C++ library support
13269 cygwin* | mingw* | pw32* | cegcc*)
13270 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13271 # as there is no search path for DLLs.
13272 hardcode_libdir_flag_spec_CXX='-L$libdir'
13273 allow_undefined_flag_CXX=unsupported
13274 always_export_symbols_CXX=no
13275 enable_shared_with_static_runtimes_CXX=yes
13277 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13278 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'
13279 # If the export-symbols file already is a .def file (1st line
13280 # is EXPORTS), use it as is; otherwise, prepend...
13281 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13282 cp $export_symbols $output_objdir/$soname.def;
13284 echo EXPORTS > $output_objdir/$soname.def;
13285 cat $export_symbols >> $output_objdir/$soname.def;
13287 $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'
13292 darwin* | rhapsody*)
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_direct_CXX=no
13297 hardcode_automatic_CXX=yes
13298 hardcode_shlibpath_var_CXX=unsupported
13299 whole_archive_flag_spec_CXX=''
13300 link_all_deplibs_CXX=yes
13301 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13302 case $cc_basename in
13303 ifort*) _lt_dar_can_shared=yes ;;
13304 *) _lt_dar_can_shared=$GCC ;;
13306 if test "$_lt_dar_can_shared" = "yes"; then
13307 output_verbose_link_cmd=echo
13308 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}"
13309 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13310 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}"
13311 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}"
13312 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13313 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}"
13314 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}"
13324 case $cc_basename in
13326 # FIXME: insert proper C++ library support
13330 # Green Hills C++ Compiler
13331 # FIXME: insert proper C++ library support
13335 # FIXME: insert proper C++ library support
13342 # C++ shared libraries reported to be fairly broken before
13348 archive_cmds_need_lc_CXX=no
13351 freebsd* | dragonfly*)
13352 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13362 hardcode_libdir_separator_CXX=:
13363 export_dynamic_flag_spec_CXX='${wl}-E'
13364 hardcode_direct_CXX=yes
13365 hardcode_minus_L_CXX=yes # Not in the search PATH,
13366 # but as the default
13367 # location of the library.
13369 case $cc_basename in
13371 # FIXME: insert proper C++ library support
13375 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'
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13380 # There doesn't appear to be a way to prevent this compiler from
13381 # explicitly linking system object files so we need to strip them
13382 # from the output so that they don't get included in the library
13384 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'
13387 if test "$GXX" = yes; then
13388 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'
13390 # FIXME: insert proper C++ library support
13398 if test $with_gnu_ld = no; then
13399 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13400 hardcode_libdir_separator_CXX=:
13406 export_dynamic_flag_spec_CXX='${wl}-E'
13412 hardcode_direct_CXX=no
13413 hardcode_shlibpath_var_CXX=no
13416 hardcode_direct_CXX=yes
13417 hardcode_direct_absolute_CXX=yes
13418 hardcode_minus_L_CXX=yes # Not in the search PATH,
13419 # but as the default
13420 # location of the library.
13424 case $cc_basename in
13426 # FIXME: insert proper C++ library support
13432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441 # Commands to make compiler produce verbose output that lists
13442 # what "hidden" libraries, object files and flags are used when
13443 # linking a shared library.
13445 # There doesn't appear to be a way to prevent this compiler from
13446 # explicitly linking system object files so we need to strip them
13447 # from the output so that they don't get included in the library
13449 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'
13452 if test "$GXX" = yes; then
13453 if test $with_gnu_ld = no; then
13456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13462 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'
13467 # FIXME: insert proper C++ library support
13475 hardcode_direct_CXX=no
13476 hardcode_shlibpath_var_CXX=no
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13478 export_dynamic_flag_spec_CXX='${wl}-E'
13479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13480 # Instead, shared libraries are loaded at an image base (0x10000000 by
13481 # default) and relocated if they conflict, which is a slow very memory
13482 # consuming and fragmenting process. To avoid this, we pick a random,
13483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13485 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'
13486 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'
13489 case $cc_basename in
13492 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'
13494 # Archives containing C++ object files must be created using
13495 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13496 # necessary to make sure instantiated templates are included
13498 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13501 if test "$GXX" = yes; then
13502 if test "$with_gnu_ld" = no; then
13503 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'
13505 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13508 link_all_deplibs_CXX=yes
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13512 hardcode_libdir_separator_CXX=:
13513 inherit_rpath_CXX=yes
13516 linux* | k*bsd*-gnu)
13517 case $cc_basename in
13519 # Kuck and Associates, Inc. (KAI) C++ Compiler
13521 # KCC will only create a shared library if the output file
13522 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13523 # to its proper name (with version) after linking.
13524 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'
13525 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'
13526 # Commands to make compiler produce verbose output that lists
13527 # what "hidden" libraries, object files and flags are used when
13528 # linking a shared library.
13530 # There doesn't appear to be a way to prevent this compiler from
13531 # explicitly linking system object files so we need to strip them
13532 # from the output so that they don't get included in the library
13534 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'
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539 # Archives containing C++ object files must be created using
13540 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13541 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13546 # version 8.0 and above of icpc choke on multiply defined symbols
13547 # if we add $predep_objects and $postdep_objects, however 7.1 and
13548 # earlier do not add the objects themselves.
13549 case `$CC -V 2>&1` in
13551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 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'
13554 *) # Version 8.0 or newer
13557 ia64*) tmp_idyn=' -i_dynamic';;
13559 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560 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'
13563 archive_cmds_need_lc_CXX=no
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13569 # Portland Group C++ compiler
13571 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13572 prelink_cmds_CXX='tpldir=Template.dir~
13574 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13575 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13576 old_archive_cmds_CXX='tpldir=Template.dir~
13578 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13579 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13581 archive_cmds_CXX='tpldir=Template.dir~
13583 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13584 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13585 archive_expsym_cmds_CXX='tpldir=Template.dir~
13587 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13588 $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'
13590 *) # Version 6 will use weak symbols
13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13592 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'
13596 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13598 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'
13602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 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'
13605 runpath_var=LD_RUN_PATH
13606 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13607 hardcode_libdir_separator_CXX=:
13609 # Commands to make compiler produce verbose output that lists
13610 # what "hidden" libraries, object files and flags are used when
13611 # linking a shared library.
13613 # There doesn't appear to be a way to prevent this compiler from
13614 # explicitly linking system object files so we need to strip them
13615 # from the output so that they don't get included in the library
13617 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'
13620 # IBM XL 8.0 on PPC, with GNU ld
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13623 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624 if test "x$supports_anon_versioning" = xyes; then
13625 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13627 echo "local: *; };" >> $output_objdir/$libname.ver~
13628 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13632 case `$CC -V 2>&1 | sed 5q` in
13635 no_undefined_flag_CXX=' -zdefs'
13636 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13637 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'
13638 hardcode_libdir_flag_spec_CXX='-R$libdir'
13639 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'
13640 compiler_needs_object_CXX=yes
13642 # Not sure whether something based on
13643 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13645 output_verbose_link_cmd='echo'
13647 # Archives containing C++ object files must be created using
13648 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13649 # necessary to make sure instantiated templates are included
13651 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13659 # FIXME: insert proper C++ library support
13664 # FIXME: insert proper C++ library support
13669 case $cc_basename in
13671 # FIXME: insert proper C++ library support
13675 # FIXME: insert proper C++ library support
13682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13683 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13685 hardcode_libdir_flag_spec_CXX='-R$libdir'
13686 hardcode_direct_CXX=yes
13687 hardcode_shlibpath_var_CXX=no
13689 # Workaround some broken pre-1.5 toolchains
13690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13698 # C++ shared libraries are fairly broken
13703 if test -f /usr/libexec/ld.so; then
13704 hardcode_direct_CXX=yes
13705 hardcode_shlibpath_var_CXX=no
13706 hardcode_direct_absolute_CXX=yes
13707 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13710 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13711 export_dynamic_flag_spec_CXX='${wl}-E'
13712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13714 output_verbose_link_cmd=echo
13720 osf3* | osf4* | osf5*)
13721 case $cc_basename in
13723 # Kuck and Associates, Inc. (KAI) C++ Compiler
13725 # KCC will only create a shared library if the output file
13726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13727 # to its proper name (with version) after linking.
13728 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'
13730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731 hardcode_libdir_separator_CXX=:
13733 # Archives containing C++ object files must be created using
13734 # the KAI C++ compiler.
13736 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13737 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13741 # Rational C++ 2.4.1
13742 # FIXME: insert proper C++ library support
13748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13749 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'
13750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13753 allow_undefined_flag_CXX=' -expect_unresolved \*'
13754 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'
13755 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13756 echo "-hidden">> $lib.exp~
13757 $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~
13759 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13763 hardcode_libdir_separator_CXX=:
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13769 # There doesn't appear to be a way to prevent this compiler from
13770 # explicitly linking system object files so we need to strip them
13771 # from the output so that they don't get included in the library
13773 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'
13776 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13777 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13780 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'
13783 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'
13787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13788 hardcode_libdir_separator_CXX=:
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13796 # FIXME: insert proper C++ library support
13804 # FIXME: insert proper C++ library support
13809 case $cc_basename in
13812 # FIXME: insert proper C++ library support
13817 # FIXME: insert proper C++ library support
13821 # FIXME: insert proper C++ library support
13828 case $cc_basename in
13830 # Sun C++ 4.2, 5.x and Centerline C++
13831 archive_cmds_need_lc_CXX=yes
13832 no_undefined_flag_CXX=' -zdefs'
13833 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13834 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13835 $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'
13837 hardcode_libdir_flag_spec_CXX='-R$libdir'
13838 hardcode_shlibpath_var_CXX=no
13840 solaris2.[0-5] | solaris2.[0-5].*) ;;
13842 # The compiler driver will combine and reorder linker options,
13843 # but understands `-z linker_flag'.
13844 # Supported since Solaris 2.6 (maybe 2.5.1?)
13845 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13848 link_all_deplibs_CXX=yes
13850 output_verbose_link_cmd='echo'
13852 # Archives containing C++ object files must be created using
13853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13854 # necessary to make sure instantiated templates are included
13856 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13859 # Green Hills C++ Compiler
13860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13862 # The C++ compiler must be used to create the archive.
13863 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13866 # GNU C++ compiler with Solaris linker
13867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13868 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13869 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13870 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13871 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13872 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13874 # Commands to make compiler produce verbose output that lists
13875 # what "hidden" libraries, object files and flags are used when
13876 # linking a shared library.
13877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13879 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13881 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13882 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
13888 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13891 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13893 solaris2.[0-5] | solaris2.[0-5].*) ;;
13895 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13904 no_undefined_flag_CXX='${wl}-z,text'
13905 archive_cmds_need_lc_CXX=no
13906 hardcode_shlibpath_var_CXX=no
13907 runpath_var='LD_RUN_PATH'
13909 case $cc_basename in
13911 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13916 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13921 sysv5* | sco3.2v5* | sco5v6*)
13922 # Note: We can NOT use -z defs as we might desire, because we do not
13923 # link with -lc, and that would cause any symbols used from libc to
13924 # always be unresolved, which means just about no library would
13925 # ever link correctly. If we're not using GNU ld we use -z text
13926 # though, which does catch some bad symbols but isn't as heavy-handed
13928 no_undefined_flag_CXX='${wl}-z,text'
13929 allow_undefined_flag_CXX='${wl}-z,nodefs'
13930 archive_cmds_need_lc_CXX=no
13931 hardcode_shlibpath_var_CXX=no
13932 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13933 hardcode_libdir_separator_CXX=':'
13934 link_all_deplibs_CXX=yes
13935 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13936 runpath_var='LD_RUN_PATH'
13938 case $cc_basename in
13940 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 case $cc_basename in
13953 # NonStop-UX NCC 3.20
13954 # FIXME: insert proper C++ library support
13958 # FIXME: insert proper C++ library support
13965 # FIXME: insert proper C++ library support
13970 # FIXME: insert proper C++ library support
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13976 $as_echo "$ld_shlibs_CXX" >&6; }
13977 test "$ld_shlibs_CXX" = no && can_build_shared=no
13983 ## There is no encapsulation within the following macros, do not change
13984 ## the running order or otherwise move them around unless you know exactly
13985 ## what you are doing...
13986 # Dependencies to place before and after the object being linked:
13987 predep_objects_CXX=
13988 postdep_objects_CXX=
13991 compiler_lib_search_path_CXX=
13993 cat > conftest.$ac_ext <<_LT_EOF
13997 Foo (void) { a = 0; }
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004 (eval $ac_compile) 2>&5
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; }; then
14008 # Parse the compiler output and extract the necessary
14009 # objects, libraries and library flags.
14011 # Sentinel used to keep track of whether or not we are before
14012 # the conftest object file.
14013 pre_test_object_deps_done=no
14015 for p in `eval "$output_verbose_link_cmd"`; do
14019 # Some compilers place space between "-{L,R}" and the path.
14020 # Remove the space.
14021 if test $p = "-L" ||
14022 test $p = "-R"; then
14029 if test "$pre_test_object_deps_done" = no; then
14032 # Internal compiler library paths should come after those
14033 # provided the user. The postdeps already come after the
14034 # user supplied libs so there is no need to process them.
14035 if test -z "$compiler_lib_search_path_CXX"; then
14036 compiler_lib_search_path_CXX="${prev}${p}"
14038 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14041 # The "-l" case would never come before the object being
14042 # linked, so don't bother handling this case.
14045 if test -z "$postdeps_CXX"; then
14046 postdeps_CXX="${prev}${p}"
14048 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14054 # This assumes that the test object file only shows up
14055 # once in the compiler output.
14056 if test "$p" = "conftest.$objext"; then
14057 pre_test_object_deps_done=yes
14061 if test "$pre_test_object_deps_done" = no; then
14062 if test -z "$predep_objects_CXX"; then
14063 predep_objects_CXX="$p"
14065 predep_objects_CXX="$predep_objects_CXX $p"
14068 if test -z "$postdep_objects_CXX"; then
14069 postdep_objects_CXX="$p"
14071 postdep_objects_CXX="$postdep_objects_CXX $p"
14076 *) ;; # Ignore the rest.
14084 echo "libtool.m4: error: problem compiling CXX test program"
14087 $RM -f confest.$objext
14089 # PORTME: override above test on systems where it is broken
14092 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14093 # hack all around it, let's just trust "g++" to DTRT.
14094 predep_objects_CXX=
14095 postdep_objects_CXX=
14100 case `$CC -V 2>&1 | sed 5q` in
14104 # The more standards-conforming stlport4 library is
14105 # incompatible with the Cstd library. Avoid specifying
14106 # it if it's in CXXFLAGS. Ignore libCrun as
14107 # -library=stlport4 depends on it.
14108 case " $CXX $CXXFLAGS " in
14109 *" -library=stlport4 "*)
14110 solaris_use_stlport4=yes
14114 if test "$solaris_use_stlport4" != yes; then
14115 postdeps_CXX='-library=Cstd -library=Crun'
14122 case $cc_basename in
14124 # The more standards-conforming stlport4 library is
14125 # incompatible with the Cstd library. Avoid specifying
14126 # it if it's in CXXFLAGS. Ignore libCrun as
14127 # -library=stlport4 depends on it.
14128 case " $CXX $CXXFLAGS " in
14129 *" -library=stlport4 "*)
14130 solaris_use_stlport4=yes
14134 # Adding this requires a known-good setup of shared libraries for
14135 # Sun compiler versions before 5.6, else PIC objects from an old
14136 # archive will be linked into the output, leading to subtle bugs.
14137 if test "$solaris_use_stlport4" != yes; then
14138 postdeps_CXX='-library=Cstd -library=Crun'
14146 case " $postdeps_CXX " in
14147 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14149 compiler_lib_search_dirs_CXX=
14150 if test -n "${compiler_lib_search_path_CXX}"; then
14151 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14184 lt_prog_compiler_wl_CXX=
14185 lt_prog_compiler_pic_CXX=
14186 lt_prog_compiler_static_CXX=
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14191 # C++ specific cases for pic, static, wl, etc.
14192 if test "$GXX" = yes; then
14193 lt_prog_compiler_wl_CXX='-Wl,'
14194 lt_prog_compiler_static_CXX='-static'
14198 # All AIX code is PIC.
14199 if test "$host_cpu" = ia64; then
14200 # AIX 5 now supports IA64 processor
14201 lt_prog_compiler_static_CXX='-Bstatic'
14208 # see comment about AmigaOS4 .so support
14209 lt_prog_compiler_pic_CXX='-fPIC'
14212 # FIXME: we need at least 68020 code to build shared libraries, but
14213 # adding the `-m68020' flag to GCC prevents building anything better,
14215 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14221 # PIC is the default for these OSes.
14223 mingw* | cygwin* | os2* | pw32* | cegcc*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14227 # (--disable-auto-import) libraries
14228 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14230 darwin* | rhapsody*)
14231 # PIC is the default on this platform
14232 # Common symbols not allowed in MH_DYLIB files
14233 lt_prog_compiler_pic_CXX='-fno-common'
14236 # DJGPP does not support shared libraries at all
14237 lt_prog_compiler_pic_CXX=
14240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14241 # Instead, we relocate shared libraries at runtime.
14244 if test -d /usr/nec; then
14245 lt_prog_compiler_pic_CXX=-Kconform_pic
14249 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14250 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14251 # sets the default TLS model and affects inlining.
14256 lt_prog_compiler_pic_CXX='-fPIC'
14261 # QNX uses GNU C++, but need to define -shared option too, otherwise
14262 # it will coredump.
14263 lt_prog_compiler_pic_CXX='-fPIC -shared'
14266 lt_prog_compiler_pic_CXX='-fPIC'
14272 # All AIX code is PIC.
14273 if test "$host_cpu" = ia64; then
14274 # AIX 5 now supports IA64 processor
14275 lt_prog_compiler_static_CXX='-Bstatic'
14277 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14281 case $cc_basename in
14283 # Green Hills C++ Compiler
14284 # _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"
14289 case $cc_basename in
14291 lt_prog_compiler_pic_CXX='-KPIC'
14294 # Green Hills C++ Compiler
14295 lt_prog_compiler_pic_CXX='-pic'
14301 freebsd* | dragonfly*)
14302 # FreeBSD uses GNU C++
14304 hpux9* | hpux10* | hpux11*)
14305 case $cc_basename in
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14309 if test "$host_cpu" != ia64; then
14310 lt_prog_compiler_pic_CXX='+Z'
14314 lt_prog_compiler_wl_CXX='-Wl,'
14315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14321 lt_prog_compiler_pic_CXX='+Z'
14330 # This is c89, which is MS Visual C++ (no shared libs)
14331 # Anyone wants to do a port?
14333 irix5* | irix6* | nonstopux*)
14334 case $cc_basename in
14336 lt_prog_compiler_wl_CXX='-Wl,'
14337 lt_prog_compiler_static_CXX='-non_shared'
14338 # CC pic flag -KPIC is the default.
14344 linux* | k*bsd*-gnu)
14345 case $cc_basename in
14348 lt_prog_compiler_wl_CXX='--backend -Wl,'
14349 lt_prog_compiler_pic_CXX='-fPIC'
14352 # old Intel C++ for x86_64 which still supported -KPIC.
14353 lt_prog_compiler_wl_CXX='-Wl,'
14354 lt_prog_compiler_pic_CXX='-KPIC'
14355 lt_prog_compiler_static_CXX='-static'
14358 # Intel C++, used to be incompatible with GCC.
14359 # ICC 10 doesn't accept -KPIC any more.
14360 lt_prog_compiler_wl_CXX='-Wl,'
14361 lt_prog_compiler_pic_CXX='-fPIC'
14362 lt_prog_compiler_static_CXX='-static'
14365 # Portland Group C++ compiler
14366 lt_prog_compiler_wl_CXX='-Wl,'
14367 lt_prog_compiler_pic_CXX='-fpic'
14368 lt_prog_compiler_static_CXX='-Bstatic'
14372 # Make sure the PIC flag is empty. It appears that all Alpha
14373 # Linux and Compaq Tru64 Unix objects are PIC.
14374 lt_prog_compiler_pic_CXX=
14375 lt_prog_compiler_static_CXX='-non_shared'
14378 # IBM XL 8.0 on PPC
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_pic_CXX='-qpic'
14381 lt_prog_compiler_static_CXX='-qstaticlink'
14384 case `$CC -V 2>&1 | sed 5q` in
14387 lt_prog_compiler_pic_CXX='-KPIC'
14388 lt_prog_compiler_static_CXX='-Bstatic'
14389 lt_prog_compiler_wl_CXX='-Qoption ld '
14400 case $cc_basename in
14402 lt_prog_compiler_pic_CXX='-W c,exportall'
14411 # QNX uses GNU C++, but need to define -shared option too, otherwise
14412 # it will coredump.
14413 lt_prog_compiler_pic_CXX='-fPIC -shared'
14415 osf3* | osf4* | osf5*)
14416 case $cc_basename in
14418 lt_prog_compiler_wl_CXX='--backend -Wl,'
14421 # Rational C++ 2.4.1
14422 lt_prog_compiler_pic_CXX='-pic'
14425 # Digital/Compaq C++
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 # Make sure the PIC flag is empty. It appears that all Alpha
14428 # Linux and Compaq Tru64 Unix objects are PIC.
14429 lt_prog_compiler_pic_CXX=
14430 lt_prog_compiler_static_CXX='-non_shared'
14439 case $cc_basename in
14441 # Sun C++ 4.2, 5.x and Centerline C++
14442 lt_prog_compiler_pic_CXX='-KPIC'
14443 lt_prog_compiler_static_CXX='-Bstatic'
14444 lt_prog_compiler_wl_CXX='-Qoption ld '
14447 # Green Hills C++ Compiler
14448 lt_prog_compiler_pic_CXX='-PIC'
14455 case $cc_basename in
14458 lt_prog_compiler_pic_CXX='-pic'
14459 lt_prog_compiler_static_CXX='-Bstatic'
14463 lt_prog_compiler_pic_CXX='-pic'
14469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14470 case $cc_basename in
14472 lt_prog_compiler_wl_CXX='-Wl,'
14473 lt_prog_compiler_pic_CXX='-KPIC'
14474 lt_prog_compiler_static_CXX='-Bstatic'
14479 case $cc_basename in
14481 # NonStop-UX NCC 3.20
14482 lt_prog_compiler_pic_CXX='-KPIC'
14491 lt_prog_compiler_can_build_shared_CXX=no
14497 # For platforms which do not support PIC, -DPIC is meaningless:
14499 lt_prog_compiler_pic_CXX=
14502 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14506 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14511 # Check to make sure the PIC flag actually works.
14513 if test -n "$lt_prog_compiler_pic_CXX"; then
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14516 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14517 $as_echo_n "(cached) " >&6
14519 lt_cv_prog_compiler_pic_works_CXX=no
14520 ac_outfile=conftest.$ac_objext
14521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14523 # Insert the option either (1) after the last *FLAGS variable, or
14524 # (2) before a word containing "conftest.", or (3) at the end.
14525 # Note that $ac_compile itself does not contain backslashes and begins
14526 # with a dollar sign (not a hyphen), so the echo should work correctly.
14527 # The option is referenced via a variable to avoid confusing sed.
14528 lt_compile=`echo "$ac_compile" | $SED \
14529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531 -e 's:$: $lt_compiler_flag:'`
14532 (eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533 (eval "$lt_compile" 2>conftest.err)
14535 cat conftest.err >&5
14536 echo "$as_me:14536: \$? = $ac_status" >&5
14537 if (exit $ac_status) && test -s "$ac_outfile"; then
14538 # The compiler can only warn and ignore the option if not recognized
14539 # So say no if there are warnings other than the usual output.
14540 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14543 lt_cv_prog_compiler_pic_works_CXX=yes
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14550 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14552 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14553 case $lt_prog_compiler_pic_CXX in
14555 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14558 lt_prog_compiler_pic_CXX=
14559 lt_prog_compiler_can_build_shared_CXX=no
14567 # Check to make sure the static flag actually works.
14569 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14571 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14572 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14573 $as_echo_n "(cached) " >&6
14575 lt_cv_prog_compiler_static_works_CXX=no
14576 save_LDFLAGS="$LDFLAGS"
14577 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14578 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14580 # The linker can only warn and ignore the option if not recognized
14581 # So say no if there are warnings
14582 if test -s conftest.err; then
14583 # Append any errors to the config.log.
14584 cat conftest.err 1>&5
14585 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14587 if diff conftest.exp conftest.er2 >/dev/null; then
14588 lt_cv_prog_compiler_static_works_CXX=yes
14591 lt_cv_prog_compiler_static_works_CXX=yes
14595 LDFLAGS="$save_LDFLAGS"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14599 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14601 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14604 lt_prog_compiler_static_CXX=
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14612 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14613 $as_echo_n "(cached) " >&6
14615 lt_cv_prog_compiler_c_o_CXX=no
14616 $RM -r conftest 2>/dev/null
14620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="-o out/conftest2.$ac_objext"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 lt_compile=`echo "$ac_compile" | $SED \
14628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630 -e 's:$: $lt_compiler_flag:'`
14631 (eval echo "\"\$as_me:14631: $lt_compile\"" >&5)
14632 (eval "$lt_compile" 2>out/conftest.err)
14634 cat out/conftest.err >&5
14635 echo "$as_me:14635: \$? = $ac_status" >&5
14636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14643 lt_cv_prog_compiler_c_o_CXX=yes
14648 # SGI C++ compiler will create directory out/ii_files/ for
14649 # template instantiation
14650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14651 $RM out/* && rmdir out
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14658 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14664 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14665 $as_echo_n "(cached) " >&6
14667 lt_cv_prog_compiler_c_o_CXX=no
14668 $RM -r conftest 2>/dev/null
14672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674 lt_compiler_flag="-o out/conftest2.$ac_objext"
14675 # Insert the option either (1) after the last *FLAGS variable, or
14676 # (2) before a word containing "conftest.", or (3) at the end.
14677 # Note that $ac_compile itself does not contain backslashes and begins
14678 # with a dollar sign (not a hyphen), so the echo should work correctly.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
14683 (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
14684 (eval "$lt_compile" 2>out/conftest.err)
14686 cat out/conftest.err >&5
14687 echo "$as_me:14687: \$? = $ac_status" >&5
14688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690 # The compiler can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
14692 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_c_o_CXX=yes
14700 # SGI C++ compiler will create directory out/ii_files/ for
14701 # template instantiation
14702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14703 $RM out/* && rmdir out
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14715 hard_links="nottested"
14716 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14717 # do not overwrite the value of need_locks provided by the user
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14719 $as_echo_n "checking if we can lock with hard links... " >&6; }
14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724 ln conftest.a conftest.b 2>&5 || hard_links=no
14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14727 $as_echo "$hard_links" >&6; }
14728 if test "$hard_links" = no; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14730 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14745 # If we're using GNU nm, then we don't want the "-C" option.
14746 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14747 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14748 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'
14750 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'
14754 export_symbols_cmds_CXX="$ltdll_cmds"
14756 cygwin* | mingw* | cegcc*)
14757 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'
14760 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14763 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14766 $as_echo "$ld_shlibs_CXX" >&6; }
14767 test "$ld_shlibs_CXX" = no && can_build_shared=no
14769 with_gnu_ld_CXX=$with_gnu_ld
14777 # Do we need to explicitly link libc?
14779 case "x$archive_cmds_need_lc_CXX" in
14781 # Assume -lc should be added
14782 archive_cmds_need_lc_CXX=yes
14784 if test "$enable_shared" = yes && test "$GCC" = yes; then
14785 case $archive_cmds_CXX in
14787 # FIXME: we may have to deal with multi-command sequences.
14790 # Test whether the compiler implicitly links with -lc since on some
14791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14792 # to ld, don't add -lc before -lgcc.
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14799 (eval $ac_compile) 2>&5
14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; } 2>conftest.err; then
14805 libobjs=conftest.$ac_objext
14807 wl=$lt_prog_compiler_wl_CXX
14808 pic_flag=$lt_prog_compiler_pic_CXX
14814 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14815 allow_undefined_flag_CXX=
14816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14817 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14820 test $ac_status = 0; }
14822 archive_cmds_need_lc_CXX=no
14824 archive_cmds_need_lc_CXX=yes
14826 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14828 cat conftest.err 1>&5
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14832 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14903 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14905 library_names_spec=
14906 libname_spec='lib$name'
14910 postuninstall_cmds=
14914 shlibpath_overrides_runpath=unknown
14916 dynamic_linker="$host_os ld.so"
14917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14918 need_lib_prefix=unknown
14919 hardcode_into_libs=no
14921 # when you set need_version to no, make sure it does not cause -set_version
14922 # flags to be left without arguments
14923 need_version=unknown
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14929 shlibpath_var=LIBPATH
14931 # AIX 3 has no versioning support, so we append a major version to the name.
14932 soname_spec='${libname}${release}${shared_ext}$major'
14939 hardcode_into_libs=yes
14940 if test "$host_cpu" = ia64; then
14941 # AIX 5 supports IA64
14942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14943 shlibpath_var=LD_LIBRARY_PATH
14945 # With GCC up to 2.95.x, collect2 would create an import file
14946 # for dependence libraries. The import file would start with
14947 # the line `#! .'. This would cause the generated library to
14948 # depend on `.', always an invalid library. This was fixed in
14949 # development snapshots of GCC prior to 3.0.
14951 aix4 | aix4.[01] | aix4.[01].*)
14952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14954 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14957 can_build_shared=no
14961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14962 # soname into executable. Probably we can add versioning support to
14963 # collect2, so additional links can be useful in future.
14964 if test "$aix_use_runtimelinking" = yes; then
14965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14966 # instead of lib<name>.a to let people know that these are not
14967 # typical AIX shared libraries.
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 # We preserve .a as extension for shared libraries through AIX4.2
14971 # and later when we are not doing run time linking.
14972 library_names_spec='${libname}${release}.a $libname.a'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LIBPATH
14982 # Since July 2007 AmigaOS4 officially supports .so libraries.
14983 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 library_names_spec='$libname.ixlibrary $libname.a'
14988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14989 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'
14995 library_names_spec='${libname}${shared_ext}'
14996 dynamic_linker="$host_os ld.so"
14997 shlibpath_var=LIBRARY_PATH
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15009 # the default ld.so.conf also contains /usr/contrib/lib and
15010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15011 # libtool to hard-code these into programs
15014 cygwin* | mingw* | pw32* | cegcc*)
15015 version_type=windows
15020 case $GCC,$host_os in
15021 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15022 library_names_spec='$libname.dll.a'
15023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15024 postinstall_cmds='base_file=`basename \${file}`~
15025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15026 dldir=$destdir/`dirname \$dlpath`~
15027 test -d \$dldir || mkdir -p \$dldir~
15028 $install_prog $dir/$dlname \$dldir/$dlname~
15029 chmod a+x \$dldir/$dlname~
15030 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15031 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034 dlpath=$dir/\$dldll~
15036 shlibpath_overrides_runpath=yes
15040 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15045 # MinGW DLLs use traditional 'lib' prefix
15046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15049 # It is most probably a Windows format PATH printed by
15050 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051 # path with ; separators, and with drive letters. We can handle the
15052 # drive letters (cygwin fileutils understands them), so leave them,
15053 # especially as we might pass files found there to a mingw objdump,
15054 # which wouldn't understand a cygwinified path. Ahh.
15055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15061 # pw32 DLLs use 'pw' prefix rather than 'lib'
15062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15071 dynamic_linker='Win32 ld.exe'
15072 # FIXME: first we should search . and the directory the executable is in
15076 darwin* | rhapsody*)
15077 dynamic_linker="$host_os dyld"
15078 version_type=darwin
15081 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082 soname_spec='${libname}${release}${major}$shared_ext'
15083 shlibpath_overrides_runpath=yes
15084 shlibpath_var=DYLD_LIBRARY_PATH
15085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15103 freebsd* | dragonfly*)
15104 # DragonFly does not have aout. When/if they implement a new
15105 # versioning mechanism, adjust this.
15106 if test -x /usr/bin/objformat; then
15107 objformat=`/usr/bin/objformat`
15110 freebsd[123]*) objformat=aout ;;
15111 *) objformat=elf ;;
15114 version_type=freebsd-$objformat
15115 case $version_type in
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15126 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=yes
15131 freebsd3.[01]* | freebsdelf3.[01]*)
15132 shlibpath_overrides_runpath=yes
15133 hardcode_into_libs=yes
15135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15137 shlibpath_overrides_runpath=no
15138 hardcode_into_libs=yes
15140 *) # from 4.6 on, and DragonFly
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 hardcode_into_libs=yes
15157 hpux9* | hpux10* | hpux11*)
15158 # Give a soname corresponding to the major version so that dld.sl refuses to
15159 # link against other versions.
15166 hardcode_into_libs=yes
15167 dynamic_linker="$host_os dld.so"
15168 shlibpath_var=LD_LIBRARY_PATH
15169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 if test "X$HPUX_IA64_MODE" = X32; then
15173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15181 hardcode_into_libs=yes
15182 dynamic_linker="$host_os dld.sl"
15183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=SHLIB_PATH
15194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15200 postinstall_cmds='chmod 555 $lib'
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=no
15212 hardcode_into_libs=yes
15215 irix5* | irix6* | nonstopux*)
15217 nonstopux*) version_type=nonstopux ;;
15219 if test "$lt_cv_prog_gnu_ld" = yes; then
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 irix5* | nonstopux*)
15231 libsuff= shlibsuff=
15234 case $LD in # libtool.m4 will add one of these switches to LD
15235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236 libsuff= shlibsuff= libmagic=32-bit;;
15237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238 libsuff=32 shlibsuff=N32 libmagic=N32;;
15239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241 *) libsuff= shlibsuff= libmagic=never-match;;
15245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246 shlibpath_overrides_runpath=no
15247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249 hardcode_into_libs=yes
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15257 # This must be Linux ELF.
15258 linux* | k*bsd*-gnu)
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 # Some binutils ld are patched to set DT_RUNPATH
15268 save_LDFLAGS=$LDFLAGS
15269 save_libdir=$libdir
15270 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15271 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15283 if ac_fn_cxx_try_link "$LINENO"; then :
15284 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15285 shlibpath_overrides_runpath=yes
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15290 LDFLAGS=$save_LDFLAGS
15291 libdir=$save_libdir
15293 # This implies no fast_install, which is unacceptable.
15294 # Some rework will be needed to allow for fast_install
15295 # before this can be enabled.
15296 hardcode_into_libs=yes
15298 # Append ld.so.conf contents to the search path
15299 if test -f /etc/ld.so.conf; then
15300 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' ' '`
15301 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15304 # We used to test for /lib/ld.so.1 and disable shared libraries on
15305 # powerpc, because MkLinux only supported shared libraries with the
15306 # GNU dynamic linker. Since this was broken with cross compilers,
15307 # most powerpc-linux boxes support dynamic linking these days and
15308 # people can always --disable-shared, the test was removed, and we
15309 # assume the GNU/Linux dynamic linker is in use.
15310 dynamic_linker='GNU/Linux ld.so'
15317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15320 dynamic_linker='NetBSD (a.out) ld.so'
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 dynamic_linker='NetBSD ld.elf_so'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15328 hardcode_into_libs=yes
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=yes
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=no
15346 hardcode_into_libs=yes
15347 dynamic_linker='ldqnx.so'
15352 sys_lib_dlsearch_path_spec="/usr/lib"
15354 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15356 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15357 *) need_version=no ;;
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15364 openbsd2.[89] | openbsd2.[89].*)
15365 shlibpath_overrides_runpath=no
15368 shlibpath_overrides_runpath=yes
15372 shlibpath_overrides_runpath=yes
15377 libname_spec='$name'
15380 library_names_spec='$libname${shared_ext} $libname.a'
15381 dynamic_linker='OS/2 ld.exe'
15382 shlibpath_var=LIBPATH
15385 osf3* | osf4* | osf5*)
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15409 # ldd complains unless libraries are executable
15410 postinstall_cmds='chmod +x $lib'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 if test "$with_gnu_ld" = yes; then
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 case $host_vendor in
15432 shlibpath_overrides_runpath=no
15434 runpath_var=LD_RUN_PATH
15442 shlibpath_overrides_runpath=no
15443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15449 if test -d /usr/nec ;then
15451 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15452 soname_spec='$libname${shared_ext}.$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15458 version_type=freebsd-elf
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=yes
15465 hardcode_into_libs=yes
15466 if test "$with_gnu_ld" = yes; then
15467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15476 sys_lib_dlsearch_path_spec='/usr/lib'
15480 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 shlibpath_var=LD_LIBRARY_PATH
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15502 $as_echo "$dynamic_linker" >&6; }
15503 test "$dynamic_linker" = no && can_build_shared=no
15505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15506 if test "$GCC" = yes; then
15507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15510 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15511 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15513 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15514 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15553 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15554 hardcode_action_CXX=
15555 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15556 test -n "$runpath_var_CXX" ||
15557 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15559 # We can hardcode non-existent directories.
15560 if test "$hardcode_direct_CXX" != no &&
15561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15562 # have to relink, otherwise we might link with an installed library
15563 # when we should be linking with a yet-to-be-installed one
15564 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15565 test "$hardcode_minus_L_CXX" != no; then
15566 # Linking always hardcodes the temporary library directory.
15567 hardcode_action_CXX=relink
15569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15570 hardcode_action_CXX=immediate
15573 # We cannot hardcode anything, or else we can only hardcode existing
15575 hardcode_action_CXX=unsupported
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15578 $as_echo "$hardcode_action_CXX" >&6; }
15580 if test "$hardcode_action_CXX" = relink ||
15581 test "$inherit_rpath_CXX" = yes; then
15582 # Fast installation is not supported
15583 enable_fast_install=no
15584 elif test "$shlibpath_overrides_runpath" = yes ||
15585 test "$enable_shared" = no; then
15586 # Fast installation is not necessary
15587 enable_fast_install=needless
15596 fi # test -n "$compiler"
15602 with_gnu_ld=$lt_save_with_gnu_ld
15603 lt_cv_path_LDCXX=$lt_cv_path_LD
15604 lt_cv_path_LD=$lt_save_path_LD
15605 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15606 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15607 fi # test "$_lt_caught_CXX_error" != yes
15610 ac_cpp='$CPP $CPPFLAGS'
15611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15627 ac_config_commands="$ac_config_commands libtool"
15632 # Only expand once:
15637 if test x$use_libtool != xno; then
15638 DEFAULT_OBJECT_TYPE=".lo"
15639 DEFAULT_ARCHIVE_TYPE=".la"
15640 DEFAULT_SHARED_OBJECT_TYPE=".la"
15641 LIBTOOL="\$(LIBTOOL)"
15642 LIBTOOL_INSTALL_TARGET="libtool-install"
15643 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15644 LIBTOOL_CLEAN_TARGET="libtool-clean"
15645 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15646 FD_PLUGIN_DIR="src/plugins/fd"
15649 DEFAULT_OBJECT_TYPE=".o"
15650 DEFAULT_ARCHIVE_TYPE=".a"
15651 DEFAULT_SHARED_OBJECT_TYPE=".so"
15652 LIBTOOL="# \$(LIBTOOL)"
15653 LIBTOOL_INSTALL_TARGET=""
15654 LIBTOOL_UNINSTALL_TARGET=""
15655 LIBTOOL_CLEAN_TARGET=""
15656 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15671 # Check whether --enable-includes was given.
15672 if test "${enable_includes+set}" = set; then :
15673 enableval=$enable_includes;
15674 if test x$enableval = xyes; then
15675 install_includes=yes
15683 if test x$use_libtool != xno -a x$install_includes = xyes; then
15684 INCLUDE_INSTALL_TARGET="install-includes"
15685 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15687 INCLUDE_INSTALL_TARGET=""
15688 INCLUDE_UNINSTALL_TARGET=""
15696 *cygwin* ) CYGWIN=yes;;
15700 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15706 HAVE_SUN_OS_FALSE='#'
15708 HAVE_SUN_OS_TRUE='#'
15711 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15718 HAVE_SUN_OS_FALSE='#'
15720 HAVE_SUN_OS_TRUE='#'
15725 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15731 HAVE_OSF1_OS_FALSE='#'
15733 HAVE_OSF1_OS_TRUE='#'
15734 HAVE_OSF1_OS_FALSE=
15736 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15743 HAVE_OSF1_OS_FALSE='#'
15745 HAVE_OSF1_OS_TRUE='#'
15746 HAVE_OSF1_OS_FALSE=
15750 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15756 HAVE_AIX_OS_FALSE='#'
15758 HAVE_AIX_OS_TRUE='#'
15761 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15768 HAVE_AIX_OS_FALSE='#'
15770 HAVE_AIX_OS_TRUE='#'
15775 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15781 HAVE_HPUX_OS_FALSE='#'
15783 HAVE_HPUX_OS_TRUE='#'
15784 HAVE_HPUX_OS_FALSE=
15786 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15793 HAVE_HPUX_OS_FALSE='#'
15795 HAVE_HPUX_OS_TRUE='#'
15796 HAVE_HPUX_OS_FALSE=
15800 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15805 HAVE_LINUX_OS_TRUE=
15806 HAVE_LINUX_OS_FALSE='#'
15808 HAVE_LINUX_OS_TRUE='#'
15809 HAVE_LINUX_OS_FALSE=
15811 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15817 HAVE_LINUX_OS_TRUE=
15818 HAVE_LINUX_OS_FALSE='#'
15820 HAVE_LINUX_OS_TRUE='#'
15821 HAVE_LINUX_OS_FALSE=
15825 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15830 HAVE_FREEBSD_OS_TRUE=
15831 HAVE_FREEBSD_OS_FALSE='#'
15833 HAVE_FREEBSD_OS_TRUE='#'
15834 HAVE_FREEBSD_OS_FALSE=
15836 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15842 HAVE_FREEBSD_OS_TRUE=
15843 HAVE_FREEBSD_OS_FALSE='#'
15845 HAVE_FREEBSD_OS_TRUE='#'
15846 HAVE_FREEBSD_OS_FALSE=
15850 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15855 HAVE_NETBSD_OS_TRUE=
15856 HAVE_NETBSD_OS_FALSE='#'
15858 HAVE_NETBSD_OS_TRUE='#'
15859 HAVE_NETBSD_OS_FALSE=
15861 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15867 HAVE_NETBSD_OS_TRUE=
15868 HAVE_NETBSD_OS_FALSE='#'
15870 HAVE_NETBSD_OS_TRUE='#'
15871 HAVE_NETBSD_OS_FALSE=
15875 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15880 HAVE_OPENBSD_OS_TRUE=
15881 HAVE_OPENBSD_OS_FALSE='#'
15883 HAVE_OPENBSD_OS_TRUE='#'
15884 HAVE_OPENBSD_OS_FALSE=
15886 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15892 HAVE_OPENBSD_OS_TRUE=
15893 HAVE_OPENBSD_OS_FALSE='#'
15895 HAVE_OPENBSD_OS_TRUE='#'
15896 HAVE_OPENBSD_OS_FALSE=
15900 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15906 HAVE_BSDI_OS_FALSE='#'
15908 HAVE_BSDI_OS_TRUE='#'
15909 HAVE_BSDI_OS_FALSE=
15911 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15918 HAVE_BSDI_OS_FALSE='#'
15920 HAVE_BSDI_OS_TRUE='#'
15921 HAVE_BSDI_OS_FALSE=
15925 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15931 HAVE_SGI_OS_FALSE='#'
15933 HAVE_SGI_OS_TRUE='#'
15936 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15943 HAVE_SGI_OS_FALSE='#'
15945 HAVE_SGI_OS_TRUE='#'
15950 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15956 HAVE_IRIX_OS_FALSE='#'
15958 HAVE_IRIX_OS_TRUE='#'
15959 HAVE_IRIX_OS_FALSE=
15961 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15968 HAVE_IRIX_OS_FALSE='#'
15970 HAVE_IRIX_OS_TRUE='#'
15971 HAVE_IRIX_OS_FALSE=
15975 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15980 HAVE_DARWIN_OS_TRUE=
15981 HAVE_DARWIN_OS_FALSE='#'
15983 HAVE_DARWIN_OS_TRUE='#'
15984 HAVE_DARWIN_OS_FALSE=
15986 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15992 HAVE_DARWIN_OS_TRUE=
15993 HAVE_DARWIN_OS_FALSE='#'
15995 HAVE_DARWIN_OS_TRUE='#'
15996 HAVE_DARWIN_OS_FALSE=
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16002 $as_echo_n "checking for Operating System Distribution... " >&6; }
16003 if test "x$DISTNAME" != "x"
16005 echo "distname set to $DISTNAME"
16006 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16009 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16012 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16015 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16018 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16021 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16024 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16027 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16030 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16033 elif test -f /etc/SuSE-release
16036 elif test -d /etc/SuSEconfig
16039 elif test -f /etc/mandrake-release
16042 elif test -f /etc/whitebox-release
16045 elif test -f /etc/redhat-release
16048 elif test -f /etc/gentoo-release
16051 elif test -f /etc/debian_version
16054 elif test -f /etc/slackware-version
16057 elif test x$host_vendor = xapple
16060 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16063 elif test -f /etc/engarde-version
16066 elif test -f /etc/arch-release
16069 elif test "$CYGWIN" = yes
16072 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16078 $as_echo "done" >&6; }
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16082 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16084 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16085 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16086 $as_echo_n "(cached) " >&6
16088 cat >conftest.make <<\_ACEOF
16091 @echo '@@@%%%=$(MAKE)=@@@%%%'
16093 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16095 *@@@%%%=?*=@@@%%%*)
16096 eval ac_cv_prog_make_${ac_make}_set=yes;;
16098 eval ac_cv_prog_make_${ac_make}_set=no;;
16100 rm -f conftest.make
16102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104 $as_echo "yes" >&6; }
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109 SET_MAKE="MAKE=${MAKE-make}"
16115 if test -n "$ac_aux_dir"; then
16116 case "$ac_aux_dir" in
16117 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16118 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16121 if test -z "$MKINSTALLDIRS"; then
16122 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16128 $as_echo_n "checking whether NLS is requested... " >&6; }
16129 # Check whether --enable-nls was given.
16130 if test "${enable_nls+set}" = set; then :
16131 enableval=$enable_nls; USE_NLS=$enableval
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16137 $as_echo "$USE_NLS" >&6; }
16144 # Prepare PATH_SEPARATOR.
16145 # The user is always right.
16146 if test "${PATH_SEPARATOR+set}" != set; then
16147 echo "#! /bin/sh" >conf$$.sh
16148 echo "exit 0" >>conf$$.sh
16150 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16158 # Find out how to test for executable files. Don't use a zero-byte file,
16159 # as systems may use methods other than mode bits to determine executability.
16160 cat >conf$$.file <<_ASEOF
16164 chmod +x conf$$.file
16165 if test -x conf$$.file >/dev/null 2>&1; then
16166 ac_executable_p="test -x"
16168 ac_executable_p="test -f"
16172 # Extract the first word of "msgfmt", so it can be a program name with args.
16173 set dummy msgfmt; ac_word=$2
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175 $as_echo_n "checking for $ac_word... " >&6; }
16176 if ${ac_cv_path_MSGFMT+:} false; then :
16177 $as_echo_n "(cached) " >&6
16181 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16184 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16185 for ac_dir in $PATH; do
16187 test -z "$ac_dir" && ac_dir=.
16188 for ac_exec_ext in '' $ac_executable_extensions; do
16189 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16190 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16191 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16192 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16193 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16200 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16204 MSGFMT="$ac_cv_path_MSGFMT"
16205 if test "$MSGFMT" != ":"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16207 $as_echo "$MSGFMT" >&6; }
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16213 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16214 set dummy gmsgfmt; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if ${ac_cv_path_GMSGFMT+:} false; then :
16218 $as_echo_n "(cached) " >&6
16222 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16229 test -z "$as_dir" && as_dir=.
16230 for ac_exec_ext in '' $ac_executable_extensions; do
16231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16232 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16240 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16244 GMSGFMT=$ac_cv_path_GMSGFMT
16245 if test -n "$GMSGFMT"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16247 $as_echo "$GMSGFMT" >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16256 # Prepare PATH_SEPARATOR.
16257 # The user is always right.
16258 if test "${PATH_SEPARATOR+set}" != set; then
16259 echo "#! /bin/sh" >conf$$.sh
16260 echo "exit 0" >>conf$$.sh
16262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16270 # Find out how to test for executable files. Don't use a zero-byte file,
16271 # as systems may use methods other than mode bits to determine executability.
16272 cat >conf$$.file <<_ASEOF
16276 chmod +x conf$$.file
16277 if test -x conf$$.file >/dev/null 2>&1; then
16278 ac_executable_p="test -x"
16280 ac_executable_p="test -f"
16284 # Extract the first word of "xgettext", so it can be a program name with args.
16285 set dummy xgettext; ac_word=$2
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16287 $as_echo_n "checking for $ac_word... " >&6; }
16288 if ${ac_cv_path_XGETTEXT+:} false; then :
16289 $as_echo_n "(cached) " >&6
16291 case "$XGETTEXT" in
16293 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16296 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16297 for ac_dir in $PATH; do
16299 test -z "$ac_dir" && ac_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16302 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16303 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16304 (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
16305 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16312 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16316 XGETTEXT="$ac_cv_path_XGETTEXT"
16317 if test "$XGETTEXT" != ":"; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16319 $as_echo "$XGETTEXT" >&6; }
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16328 # Prepare PATH_SEPARATOR.
16329 # The user is always right.
16330 if test "${PATH_SEPARATOR+set}" != set; then
16331 echo "#! /bin/sh" >conf$$.sh
16332 echo "exit 0" >>conf$$.sh
16334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16342 # Find out how to test for executable files. Don't use a zero-byte file,
16343 # as systems may use methods other than mode bits to determine executability.
16344 cat >conf$$.file <<_ASEOF
16348 chmod +x conf$$.file
16349 if test -x conf$$.file >/dev/null 2>&1; then
16350 ac_executable_p="test -x"
16352 ac_executable_p="test -f"
16356 # Extract the first word of "msgmerge", so it can be a program name with args.
16357 set dummy msgmerge; ac_word=$2
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16359 $as_echo_n "checking for $ac_word... " >&6; }
16360 if ${ac_cv_path_MSGMERGE+:} false; then :
16361 $as_echo_n "(cached) " >&6
16363 case "$MSGMERGE" in
16365 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16368 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16369 for ac_dir in $PATH; do
16371 test -z "$ac_dir" && ac_dir=.
16372 for ac_exec_ext in '' $ac_executable_extensions; do
16373 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16374 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16375 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16376 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16383 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16387 MSGMERGE="$ac_cv_path_MSGMERGE"
16388 if test "$MSGMERGE" != ":"; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16390 $as_echo "$MSGMERGE" >&6; }
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393 $as_echo "no" >&6; }
16397 if test "$GMSGFMT" != ":"; then
16398 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16399 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16402 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16404 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16409 if test "$XGETTEXT" != ":"; then
16410 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16411 (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
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16415 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16421 ac_config_commands="$ac_config_commands default-1"
16425 if test "X$prefix" = "XNONE"; then
16426 acl_final_prefix="$ac_default_prefix"
16428 acl_final_prefix="$prefix"
16430 if test "X$exec_prefix" = "XNONE"; then
16431 acl_final_exec_prefix='${prefix}'
16433 acl_final_exec_prefix="$exec_prefix"
16435 acl_save_prefix="$prefix"
16436 prefix="$acl_final_prefix"
16437 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16438 prefix="$acl_save_prefix"
16441 # Check whether --with-gnu-ld was given.
16442 if test "${with_gnu_ld+set}" = set; then :
16443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16448 # Prepare PATH_SEPARATOR.
16449 # The user is always right.
16450 if test "${PATH_SEPARATOR+set}" != set; then
16451 echo "#! /bin/sh" >conf$$.sh
16452 echo "exit 0" >>conf$$.sh
16454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16462 if test "$GCC" = yes; then
16463 # Check if gcc -print-prog-name=ld gives a path.
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16465 $as_echo_n "checking for ld used by GCC... " >&6; }
16468 # gcc leaves a trailing carriage return which upsets mingw
16469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16474 # Accept absolute paths.
16475 [\\/]* | [A-Za-z]:[\\/]*)
16476 re_direlt='/[^/][^/]*/\.\./'
16477 # Canonicalize the path of ld
16478 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16480 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16482 test -z "$LD" && LD="$ac_prog"
16485 # If it fails, then pretend we aren't using GCC.
16489 # If it is relative, then search for the first ld in PATH.
16490 with_gnu_ld=unknown
16493 elif test "$with_gnu_ld" = yes; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16495 $as_echo_n "checking for GNU ld... " >&6; }
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16498 $as_echo_n "checking for non-GNU ld... " >&6; }
16500 if ${acl_cv_path_LD+:} false; then :
16501 $as_echo_n "(cached) " >&6
16503 if test -z "$LD"; then
16504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16505 for ac_dir in $PATH; do
16506 test -z "$ac_dir" && ac_dir=.
16507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16508 acl_cv_path_LD="$ac_dir/$ac_prog"
16509 # Check to see if the program is GNU ld. I'd rather use --version,
16510 # but apparently some GNU ld's only accept -v.
16511 # Break only if it was the GNU/non-GNU ld that we prefer.
16512 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16513 *GNU* | *'with BFD'*)
16514 test "$with_gnu_ld" != no && break ;;
16516 test "$with_gnu_ld" != yes && break ;;
16522 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16526 LD="$acl_cv_path_LD"
16527 if test -n "$LD"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16529 $as_echo "$LD" >&6; }
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16537 if ${acl_cv_prog_gnu_ld+:} false; then :
16538 $as_echo_n "(cached) " >&6
16540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16541 case `$LD -v 2>&1 </dev/null` in
16542 *GNU* | *'with BFD'*)
16543 acl_cv_prog_gnu_ld=yes ;;
16545 acl_cv_prog_gnu_ld=no ;;
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16549 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16550 with_gnu_ld=$acl_cv_prog_gnu_ld
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16556 $as_echo_n "checking for shared library run path origin... " >&6; }
16557 if ${acl_cv_rpath+:} false; then :
16558 $as_echo_n "(cached) " >&6
16561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16564 rm -f ./conftest.sh
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16569 $as_echo "$acl_cv_rpath" >&6; }
16571 libext="$acl_cv_libext"
16572 shlibext="$acl_cv_shlibext"
16573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16575 hardcode_direct="$acl_cv_hardcode_direct"
16576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16577 # Check whether --enable-rpath was given.
16578 if test "${enable_rpath+set}" = set; then :
16579 enableval=$enable_rpath; :
16593 acl_save_prefix="$prefix"
16594 prefix="$acl_final_prefix"
16595 acl_save_exec_prefix="$exec_prefix"
16596 exec_prefix="$acl_final_exec_prefix"
16598 eval additional_includedir=\"$includedir\"
16599 eval additional_libdir=\"$libdir\"
16601 exec_prefix="$acl_save_exec_prefix"
16602 prefix="$acl_save_prefix"
16605 # Check whether --with-libiconv-prefix was given.
16606 if test "${with_libiconv_prefix+set}" = set; then :
16607 withval=$with_libiconv_prefix;
16608 if test "X$withval" = "Xno"; then
16611 if test "X$withval" = "X"; then
16613 acl_save_prefix="$prefix"
16614 prefix="$acl_final_prefix"
16615 acl_save_exec_prefix="$exec_prefix"
16616 exec_prefix="$acl_final_exec_prefix"
16618 eval additional_includedir=\"$includedir\"
16619 eval additional_libdir=\"$libdir\"
16621 exec_prefix="$acl_save_exec_prefix"
16622 prefix="$acl_save_prefix"
16625 additional_includedir="$withval/include"
16626 additional_libdir="$withval/lib"
16637 names_already_handled=
16638 names_next_round='iconv '
16639 while test -n "$names_next_round"; do
16640 names_this_round="$names_next_round"
16642 for name in $names_this_round; do
16644 for n in $names_already_handled; do
16645 if test "$n" = "$name"; then
16646 already_handled=yes
16650 if test -z "$already_handled"; then
16651 names_already_handled="$names_already_handled $name"
16652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16653 eval value=\"\$HAVE_LIB$uppername\"
16654 if test -n "$value"; then
16655 if test "$value" = yes; then
16656 eval value=\"\$LIB$uppername\"
16657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16658 eval value=\"\$LTLIB$uppername\"
16659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16668 if test $use_additional = yes; then
16669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16670 found_dir="$additional_libdir"
16671 found_so="$additional_libdir/lib$name.$shlibext"
16672 if test -f "$additional_libdir/lib$name.la"; then
16673 found_la="$additional_libdir/lib$name.la"
16676 if test -f "$additional_libdir/lib$name.$libext"; then
16677 found_dir="$additional_libdir"
16678 found_a="$additional_libdir/lib$name.$libext"
16679 if test -f "$additional_libdir/lib$name.la"; then
16680 found_la="$additional_libdir/lib$name.la"
16685 if test "X$found_dir" = "X"; then
16686 for x in $LDFLAGS $LTLIBICONV; do
16688 acl_save_prefix="$prefix"
16689 prefix="$acl_final_prefix"
16690 acl_save_exec_prefix="$exec_prefix"
16691 exec_prefix="$acl_final_exec_prefix"
16693 exec_prefix="$acl_save_exec_prefix"
16694 prefix="$acl_save_prefix"
16698 dir=`echo "X$x" | sed -e 's/^X-L//'`
16699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16701 found_so="$dir/lib$name.$shlibext"
16702 if test -f "$dir/lib$name.la"; then
16703 found_la="$dir/lib$name.la"
16706 if test -f "$dir/lib$name.$libext"; then
16708 found_a="$dir/lib$name.$libext"
16709 if test -f "$dir/lib$name.la"; then
16710 found_la="$dir/lib$name.la"
16716 if test "X$found_dir" != "X"; then
16721 if test "X$found_dir" != "X"; then
16722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16723 if test "X$found_so" != "X"; then
16724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16728 for x in $ltrpathdirs; do
16729 if test "X$x" = "X$found_dir"; then
16734 if test -z "$haveit"; then
16735 ltrpathdirs="$ltrpathdirs $found_dir"
16737 if test "$hardcode_direct" = yes; then
16738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16743 for x in $rpathdirs; do
16744 if test "X$x" = "X$found_dir"; then
16749 if test -z "$haveit"; then
16750 rpathdirs="$rpathdirs $found_dir"
16754 for x in $LDFLAGS $LIBICONV; do
16756 acl_save_prefix="$prefix"
16757 prefix="$acl_final_prefix"
16758 acl_save_exec_prefix="$exec_prefix"
16759 exec_prefix="$acl_final_exec_prefix"
16761 exec_prefix="$acl_save_exec_prefix"
16762 prefix="$acl_save_prefix"
16764 if test "X$x" = "X-L$found_dir"; then
16769 if test -z "$haveit"; then
16770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16772 if test "$hardcode_minus_L" != no; then
16773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16781 if test "X$found_a" != "X"; then
16782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16787 additional_includedir=
16788 case "$found_dir" in
16790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16791 additional_includedir="$basedir/include"
16794 if test "X$additional_includedir" != "X"; then
16795 if test "X$additional_includedir" != "X/usr/include"; then
16797 if test "X$additional_includedir" = "X/usr/local/include"; then
16798 if test -n "$GCC"; then
16800 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16804 if test -z "$haveit"; then
16805 for x in $CPPFLAGS $INCICONV; do
16807 acl_save_prefix="$prefix"
16808 prefix="$acl_final_prefix"
16809 acl_save_exec_prefix="$exec_prefix"
16810 exec_prefix="$acl_final_exec_prefix"
16812 exec_prefix="$acl_save_exec_prefix"
16813 prefix="$acl_save_prefix"
16815 if test "X$x" = "X-I$additional_includedir"; then
16820 if test -z "$haveit"; then
16821 if test -d "$additional_includedir"; then
16822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16828 if test -n "$found_la"; then
16829 save_libdir="$libdir"
16830 case "$found_la" in
16831 */* | *\\*) . "$found_la" ;;
16832 *) . "./$found_la" ;;
16834 libdir="$save_libdir"
16835 for dep in $dependency_libs; do
16838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16839 if test "X$additional_libdir" != "X/usr/lib"; then
16841 if test "X$additional_libdir" = "X/usr/local/lib"; then
16842 if test -n "$GCC"; then
16844 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16848 if test -z "$haveit"; then
16850 for x in $LDFLAGS $LIBICONV; do
16852 acl_save_prefix="$prefix"
16853 prefix="$acl_final_prefix"
16854 acl_save_exec_prefix="$exec_prefix"
16855 exec_prefix="$acl_final_exec_prefix"
16857 exec_prefix="$acl_save_exec_prefix"
16858 prefix="$acl_save_prefix"
16860 if test "X$x" = "X-L$additional_libdir"; then
16865 if test -z "$haveit"; then
16866 if test -d "$additional_libdir"; then
16867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16871 for x in $LDFLAGS $LTLIBICONV; do
16873 acl_save_prefix="$prefix"
16874 prefix="$acl_final_prefix"
16875 acl_save_exec_prefix="$exec_prefix"
16876 exec_prefix="$acl_final_exec_prefix"
16878 exec_prefix="$acl_save_exec_prefix"
16879 prefix="$acl_save_prefix"
16881 if test "X$x" = "X-L$additional_libdir"; then
16886 if test -z "$haveit"; then
16887 if test -d "$additional_libdir"; then
16888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16896 if test "$enable_rpath" != no; then
16898 for x in $rpathdirs; do
16899 if test "X$x" = "X$dir"; then
16904 if test -z "$haveit"; then
16905 rpathdirs="$rpathdirs $dir"
16908 for x in $ltrpathdirs; do
16909 if test "X$x" = "X$dir"; then
16914 if test -z "$haveit"; then
16915 ltrpathdirs="$ltrpathdirs $dir"
16920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16940 if test "X$rpathdirs" != "X"; then
16941 if test -n "$hardcode_libdir_separator"; then
16943 for found_dir in $rpathdirs; do
16944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16946 acl_save_libdir="$libdir"
16948 eval flag=\"$hardcode_libdir_flag_spec\"
16949 libdir="$acl_save_libdir"
16950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16952 for found_dir in $rpathdirs; do
16953 acl_save_libdir="$libdir"
16954 libdir="$found_dir"
16955 eval flag=\"$hardcode_libdir_flag_spec\"
16956 libdir="$acl_save_libdir"
16957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16961 if test "X$ltrpathdirs" != "X"; then
16962 for found_dir in $ltrpathdirs; do
16963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16985 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16986 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16987 $as_echo_n "(cached) " >&6
16989 gt_save_CPPFLAGS="$CPPFLAGS"
16990 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16991 gt_save_LIBS="$LIBS"
16992 LIBS="$LIBS -framework CoreFoundation"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <CFPreferences.h>
16999 CFPreferencesCopyAppValue(NULL, NULL)
17004 if ac_fn_c_try_link "$LINENO"; then :
17005 gt_cv_func_CFPreferencesCopyAppValue=yes
17007 gt_cv_func_CFPreferencesCopyAppValue=no
17009 rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17011 CPPFLAGS="$gt_save_CPPFLAGS"
17012 LIBS="$gt_save_LIBS"
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17015 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17016 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17018 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17022 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17023 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17024 $as_echo_n "(cached) " >&6
17026 gt_save_CPPFLAGS="$CPPFLAGS"
17027 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17028 gt_save_LIBS="$LIBS"
17029 LIBS="$LIBS -framework CoreFoundation"
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17032 #include <CFLocale.h>
17036 CFLocaleCopyCurrent();
17041 if ac_fn_c_try_link "$LINENO"; then :
17042 gt_cv_func_CFLocaleCopyCurrent=yes
17044 gt_cv_func_CFLocaleCopyCurrent=no
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048 CPPFLAGS="$gt_save_CPPFLAGS"
17049 LIBS="$gt_save_LIBS"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17052 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17053 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17055 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17059 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17060 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17067 $as_echo_n "checking whether NLS is requested... " >&6; }
17068 # Check whether --enable-nls was given.
17069 if test "${enable_nls+set}" = set; then :
17070 enableval=$enable_nls; USE_NLS=$enableval
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17076 $as_echo "$USE_NLS" >&6; }
17085 if test "$USE_NLS" = "yes"; then
17086 gt_use_preinstalled_gnugettext=no
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17094 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17095 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17096 $as_echo_n "(cached) " >&6
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17100 #include <libintl.h>
17101 extern int _nl_msg_cat_cntr;
17102 extern int *_nl_domain_bindings;
17106 bindtextdomain ("", "");
17107 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17112 if ac_fn_c_try_link "$LINENO"; then :
17113 gt_cv_func_gnugettext1_libc=yes
17115 gt_cv_func_gnugettext1_libc=no
17117 rm -f core conftest.err conftest.$ac_objext \
17118 conftest$ac_exeext conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17121 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17123 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17129 am_save_CPPFLAGS="$CPPFLAGS"
17131 for element in $INCICONV; do
17133 for x in $CPPFLAGS; do
17135 acl_save_prefix="$prefix"
17136 prefix="$acl_final_prefix"
17137 acl_save_exec_prefix="$exec_prefix"
17138 exec_prefix="$acl_final_exec_prefix"
17140 exec_prefix="$acl_save_exec_prefix"
17141 prefix="$acl_save_prefix"
17143 if test "X$x" = "X$element"; then
17148 if test -z "$haveit"; then
17149 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17155 $as_echo_n "checking for iconv... " >&6; }
17156 if ${am_cv_func_iconv+:} false; then :
17157 $as_echo_n "(cached) " >&6
17160 am_cv_func_iconv="no, consider installing GNU libiconv"
17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h. */
17164 #include <stdlib.h>
17169 iconv_t cd = iconv_open("","");
17170 iconv(cd,NULL,NULL,NULL,NULL);
17176 if ac_fn_c_try_link "$LINENO"; then :
17177 am_cv_func_iconv=yes
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 if test "$am_cv_func_iconv" != yes; then
17182 am_save_LIBS="$LIBS"
17183 LIBS="$LIBS $LIBICONV"
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17186 #include <stdlib.h>
17191 iconv_t cd = iconv_open("","");
17192 iconv(cd,NULL,NULL,NULL,NULL);
17198 if ac_fn_c_try_link "$LINENO"; then :
17199 am_cv_lib_iconv=yes
17200 am_cv_func_iconv=yes
17202 rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS="$am_save_LIBS"
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17209 $as_echo "$am_cv_func_iconv" >&6; }
17210 if test "$am_cv_func_iconv" = yes; then
17212 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17215 if test "$am_cv_lib_iconv" = yes; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17217 $as_echo_n "checking how to link with libiconv... " >&6; }
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17219 $as_echo "$LIBICONV" >&6; }
17221 CPPFLAGS="$am_save_CPPFLAGS"
17233 acl_save_prefix="$prefix"
17234 prefix="$acl_final_prefix"
17235 acl_save_exec_prefix="$exec_prefix"
17236 exec_prefix="$acl_final_exec_prefix"
17238 eval additional_includedir=\"$includedir\"
17239 eval additional_libdir=\"$libdir\"
17241 exec_prefix="$acl_save_exec_prefix"
17242 prefix="$acl_save_prefix"
17245 # Check whether --with-libintl-prefix was given.
17246 if test "${with_libintl_prefix+set}" = set; then :
17247 withval=$with_libintl_prefix;
17248 if test "X$withval" = "Xno"; then
17251 if test "X$withval" = "X"; then
17253 acl_save_prefix="$prefix"
17254 prefix="$acl_final_prefix"
17255 acl_save_exec_prefix="$exec_prefix"
17256 exec_prefix="$acl_final_exec_prefix"
17258 eval additional_includedir=\"$includedir\"
17259 eval additional_libdir=\"$libdir\"
17261 exec_prefix="$acl_save_exec_prefix"
17262 prefix="$acl_save_prefix"
17265 additional_includedir="$withval/include"
17266 additional_libdir="$withval/lib"
17277 names_already_handled=
17278 names_next_round='intl '
17279 while test -n "$names_next_round"; do
17280 names_this_round="$names_next_round"
17282 for name in $names_this_round; do
17284 for n in $names_already_handled; do
17285 if test "$n" = "$name"; then
17286 already_handled=yes
17290 if test -z "$already_handled"; then
17291 names_already_handled="$names_already_handled $name"
17292 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17293 eval value=\"\$HAVE_LIB$uppername\"
17294 if test -n "$value"; then
17295 if test "$value" = yes; then
17296 eval value=\"\$LIB$uppername\"
17297 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17298 eval value=\"\$LTLIB$uppername\"
17299 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17308 if test $use_additional = yes; then
17309 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17310 found_dir="$additional_libdir"
17311 found_so="$additional_libdir/lib$name.$shlibext"
17312 if test -f "$additional_libdir/lib$name.la"; then
17313 found_la="$additional_libdir/lib$name.la"
17316 if test -f "$additional_libdir/lib$name.$libext"; then
17317 found_dir="$additional_libdir"
17318 found_a="$additional_libdir/lib$name.$libext"
17319 if test -f "$additional_libdir/lib$name.la"; then
17320 found_la="$additional_libdir/lib$name.la"
17325 if test "X$found_dir" = "X"; then
17326 for x in $LDFLAGS $LTLIBINTL; do
17328 acl_save_prefix="$prefix"
17329 prefix="$acl_final_prefix"
17330 acl_save_exec_prefix="$exec_prefix"
17331 exec_prefix="$acl_final_exec_prefix"
17333 exec_prefix="$acl_save_exec_prefix"
17334 prefix="$acl_save_prefix"
17338 dir=`echo "X$x" | sed -e 's/^X-L//'`
17339 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17341 found_so="$dir/lib$name.$shlibext"
17342 if test -f "$dir/lib$name.la"; then
17343 found_la="$dir/lib$name.la"
17346 if test -f "$dir/lib$name.$libext"; then
17348 found_a="$dir/lib$name.$libext"
17349 if test -f "$dir/lib$name.la"; then
17350 found_la="$dir/lib$name.la"
17356 if test "X$found_dir" != "X"; then
17361 if test "X$found_dir" != "X"; then
17362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17363 if test "X$found_so" != "X"; then
17364 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17365 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17368 for x in $ltrpathdirs; do
17369 if test "X$x" = "X$found_dir"; then
17374 if test -z "$haveit"; then
17375 ltrpathdirs="$ltrpathdirs $found_dir"
17377 if test "$hardcode_direct" = yes; then
17378 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17380 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17383 for x in $rpathdirs; do
17384 if test "X$x" = "X$found_dir"; then
17389 if test -z "$haveit"; then
17390 rpathdirs="$rpathdirs $found_dir"
17394 for x in $LDFLAGS $LIBINTL; do
17396 acl_save_prefix="$prefix"
17397 prefix="$acl_final_prefix"
17398 acl_save_exec_prefix="$exec_prefix"
17399 exec_prefix="$acl_final_exec_prefix"
17401 exec_prefix="$acl_save_exec_prefix"
17402 prefix="$acl_save_prefix"
17404 if test "X$x" = "X-L$found_dir"; then
17409 if test -z "$haveit"; then
17410 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17412 if test "$hardcode_minus_L" != no; then
17413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17415 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17421 if test "X$found_a" != "X"; then
17422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17424 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17427 additional_includedir=
17428 case "$found_dir" in
17430 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17431 additional_includedir="$basedir/include"
17434 if test "X$additional_includedir" != "X"; then
17435 if test "X$additional_includedir" != "X/usr/include"; then
17437 if test "X$additional_includedir" = "X/usr/local/include"; then
17438 if test -n "$GCC"; then
17440 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17444 if test -z "$haveit"; then
17445 for x in $CPPFLAGS $INCINTL; do
17447 acl_save_prefix="$prefix"
17448 prefix="$acl_final_prefix"
17449 acl_save_exec_prefix="$exec_prefix"
17450 exec_prefix="$acl_final_exec_prefix"
17452 exec_prefix="$acl_save_exec_prefix"
17453 prefix="$acl_save_prefix"
17455 if test "X$x" = "X-I$additional_includedir"; then
17460 if test -z "$haveit"; then
17461 if test -d "$additional_includedir"; then
17462 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17468 if test -n "$found_la"; then
17469 save_libdir="$libdir"
17470 case "$found_la" in
17471 */* | *\\*) . "$found_la" ;;
17472 *) . "./$found_la" ;;
17474 libdir="$save_libdir"
17475 for dep in $dependency_libs; do
17478 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17479 if test "X$additional_libdir" != "X/usr/lib"; then
17481 if test "X$additional_libdir" = "X/usr/local/lib"; then
17482 if test -n "$GCC"; then
17484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17488 if test -z "$haveit"; then
17490 for x in $LDFLAGS $LIBINTL; do
17492 acl_save_prefix="$prefix"
17493 prefix="$acl_final_prefix"
17494 acl_save_exec_prefix="$exec_prefix"
17495 exec_prefix="$acl_final_exec_prefix"
17497 exec_prefix="$acl_save_exec_prefix"
17498 prefix="$acl_save_prefix"
17500 if test "X$x" = "X-L$additional_libdir"; then
17505 if test -z "$haveit"; then
17506 if test -d "$additional_libdir"; then
17507 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17511 for x in $LDFLAGS $LTLIBINTL; do
17513 acl_save_prefix="$prefix"
17514 prefix="$acl_final_prefix"
17515 acl_save_exec_prefix="$exec_prefix"
17516 exec_prefix="$acl_final_exec_prefix"
17518 exec_prefix="$acl_save_exec_prefix"
17519 prefix="$acl_save_prefix"
17521 if test "X$x" = "X-L$additional_libdir"; then
17526 if test -z "$haveit"; then
17527 if test -d "$additional_libdir"; then
17528 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17535 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17536 if test "$enable_rpath" != no; then
17538 for x in $rpathdirs; do
17539 if test "X$x" = "X$dir"; then
17544 if test -z "$haveit"; then
17545 rpathdirs="$rpathdirs $dir"
17548 for x in $ltrpathdirs; do
17549 if test "X$x" = "X$dir"; then
17554 if test -z "$haveit"; then
17555 ltrpathdirs="$ltrpathdirs $dir"
17560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17566 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17573 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17580 if test "X$rpathdirs" != "X"; then
17581 if test -n "$hardcode_libdir_separator"; then
17583 for found_dir in $rpathdirs; do
17584 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17586 acl_save_libdir="$libdir"
17588 eval flag=\"$hardcode_libdir_flag_spec\"
17589 libdir="$acl_save_libdir"
17590 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17592 for found_dir in $rpathdirs; do
17593 acl_save_libdir="$libdir"
17594 libdir="$found_dir"
17595 eval flag=\"$hardcode_libdir_flag_spec\"
17596 libdir="$acl_save_libdir"
17597 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17601 if test "X$ltrpathdirs" != "X"; then
17602 for found_dir in $ltrpathdirs; do
17603 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17608 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17609 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17610 $as_echo_n "(cached) " >&6
17612 gt_save_CPPFLAGS="$CPPFLAGS"
17613 CPPFLAGS="$CPPFLAGS $INCINTL"
17614 gt_save_LIBS="$LIBS"
17615 LIBS="$LIBS $LIBINTL"
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 #include <libintl.h>
17619 extern int _nl_msg_cat_cntr;
17624 const char *_nl_expand_alias (const char *);
17628 bindtextdomain ("", "");
17629 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17634 if ac_fn_c_try_link "$LINENO"; then :
17635 gt_cv_func_gnugettext1_libintl=yes
17637 gt_cv_func_gnugettext1_libintl=no
17639 rm -f core conftest.err conftest.$ac_objext \
17640 conftest$ac_exeext conftest.$ac_ext
17641 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17642 LIBS="$LIBS $LIBICONV"
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17645 #include <libintl.h>
17646 extern int _nl_msg_cat_cntr;
17651 const char *_nl_expand_alias (const char *);
17655 bindtextdomain ("", "");
17656 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17661 if ac_fn_c_try_link "$LINENO"; then :
17662 LIBINTL="$LIBINTL $LIBICONV"
17663 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17664 gt_cv_func_gnugettext1_libintl=yes
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17670 CPPFLAGS="$gt_save_CPPFLAGS"
17671 LIBS="$gt_save_LIBS"
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17674 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17677 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17678 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17679 && test "$PACKAGE" != gettext-runtime \
17680 && test "$PACKAGE" != gettext-tools; }; then
17681 gt_use_preinstalled_gnugettext=yes
17690 if test -n "$INTL_MACOSX_LIBS"; then
17691 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17692 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17693 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17694 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17698 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17699 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17701 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17709 $as_echo_n "checking whether to use NLS... " >&6; }
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17711 $as_echo "$USE_NLS" >&6; }
17712 if test "$USE_NLS" = "yes"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17714 $as_echo_n "checking where the gettext function comes from... " >&6; }
17715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17716 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17717 gt_source="external libintl"
17722 gt_source="included intl directory"
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17725 $as_echo "$gt_source" >&6; }
17728 if test "$USE_NLS" = "yes"; then
17730 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17731 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17733 $as_echo_n "checking how to link with libintl... " >&6; }
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17735 $as_echo "$LIBINTL" >&6; }
17737 for element in $INCINTL; do
17739 for x in $CPPFLAGS; do
17741 acl_save_prefix="$prefix"
17742 prefix="$acl_final_prefix"
17743 acl_save_exec_prefix="$exec_prefix"
17744 exec_prefix="$acl_final_exec_prefix"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17749 if test "X$x" = "X$element"; then
17754 if test -z "$haveit"; then
17755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17762 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17765 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17774 INTLLIBS="$LIBINTL"
17782 os_name=`uname -s 2>/dev/null`
17783 if test x${prefix} = xNONE ; then
17784 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17785 sysconfdir=/etc/bacula
17788 if test `eval echo ${libdir}` = NONE/lib ; then
17791 os_processor=`uname -p 2>/dev/null`
17792 case ${os_processor} in
17807 if test `eval echo ${includedir}` = NONE/include ; then
17808 includedir=/usr/include
17811 if test `eval echo ${datarootdir}` = NONE/share ; then
17812 datarootdir=/usr/share
17817 if test x${exec_prefix} = xNONE ; then
17818 exec_prefix=${prefix}
17821 sysconfdir=`eval echo ${sysconfdir}`
17822 datarootdir=`eval echo ${datarootdir}`
17823 docdir=`eval echo ${docdir}`
17824 htmldir=`eval echo ${htmldir}`
17825 libdir=`eval echo ${libdir}`
17826 includedir=`eval echo ${includedir}`
17827 localedir=`eval echo ${datarootdir}/locale`
17828 cat >>confdefs.h <<_ACEOF
17829 #define SYSCONFDIR "$sysconfdir"
17832 cat >>confdefs.h <<_ACEOF
17833 #define LOCALEDIR "$localedir"
17837 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17838 sbindir=${exec_prefix}/sbin
17840 sbindir=`eval echo ${sbindir}`
17842 if test x$mandir = x'${prefix}/man' ; then
17843 mandir=/usr/share/man
17846 if test x$htmldir = x${docdir} ; then
17847 htmldir=`eval echo ${docdir}bacula/html`
17850 if test x$docdir = x'/usr/share/doc/' ; then
17851 docdir=`eval echo ${docdir}bacula`
17855 for ac_prog in msgfmt
17857 # Extract the first word of "$ac_prog", so it can be a program name with args.
17858 set dummy $ac_prog; ac_word=$2
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17860 $as_echo_n "checking for $ac_word... " >&6; }
17861 if ${ac_cv_path_MSGFMT+:} false; then :
17862 $as_echo_n "(cached) " >&6
17866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17870 for as_dir in $PATH
17873 test -z "$as_dir" && as_dir=.
17874 for ac_exec_ext in '' $ac_executable_extensions; do
17875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17876 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17887 MSGFMT=$ac_cv_path_MSGFMT
17888 if test -n "$MSGFMT"; then
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17890 $as_echo "$MSGFMT" >&6; }
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 $as_echo "no" >&6; }
17897 test -n "$MSGFMT" && break
17899 test -n "$MSGFMT" || MSGFMT="no"
17901 if test "$MSGFMT" = "no"
17903 echo 'msgfmt program not found, disabling NLS !'
17905 USE_INCLUDED_LIBINTL=no
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17909 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17910 if ${ac_cv_gnu_library_2+:} false; then :
17911 $as_echo_n "(cached) " >&6
17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h. */
17916 #include <features.h>
17917 #ifdef __GNU_LIBRARY__
17918 #if (__GLIBC__ >= 2)
17924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17925 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17926 ac_cv_gnu_library_2=yes
17928 ac_cv_gnu_library_2=no
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17936 $as_echo "$ac_cv_gnu_library_2" >&6; }
17938 GLIBC2="$ac_cv_gnu_library_2"
17941 if test -n "$ac_tool_prefix"; then
17942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_RANLIB+:} false; then :
17947 $as_echo_n "(cached) " >&6
17949 if test -n "$RANLIB"; then
17950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17969 RANLIB=$ac_cv_prog_RANLIB
17970 if test -n "$RANLIB"; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17972 $as_echo "$RANLIB" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17980 if test -z "$ac_cv_prog_RANLIB"; then
17981 ac_ct_RANLIB=$RANLIB
17982 # Extract the first word of "ranlib", so it can be a program name with args.
17983 set dummy ranlib; ac_word=$2
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17985 $as_echo_n "checking for $ac_word... " >&6; }
17986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17987 $as_echo_n "(cached) " >&6
17989 if test -n "$ac_ct_RANLIB"; then
17990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH
17996 test -z "$as_dir" && as_dir=.
17997 for ac_exec_ext in '' $ac_executable_extensions; do
17998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17999 ac_cv_prog_ac_ct_RANLIB="ranlib"
18000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18010 if test -n "$ac_ct_RANLIB"; then
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18012 $as_echo "$ac_ct_RANLIB" >&6; }
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 $as_echo "no" >&6; }
18018 if test "x$ac_ct_RANLIB" = x; then
18021 case $cross_compiling:$ac_tool_warned in
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18025 ac_tool_warned=yes ;;
18027 RANLIB=$ac_ct_RANLIB
18030 RANLIB="$ac_cv_prog_RANLIB"
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18035 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18036 if ${ac_cv_lib_cposix_strerror+:} false; then :
18037 $as_echo_n "(cached) " >&6
18039 ac_check_lib_save_LIBS=$LIBS
18040 LIBS="-lcposix $LIBS"
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18044 /* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18054 return strerror ();
18059 if ac_fn_c_try_link "$LINENO"; then :
18060 ac_cv_lib_cposix_strerror=yes
18062 ac_cv_lib_cposix_strerror=no
18064 rm -f core conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18069 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18070 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18071 LIBS="$LIBS -lcposix"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18077 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18078 if ${ac_cv_c_const+:} false; then :
18079 $as_echo_n "(cached) " >&6
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18087 /* FIXME: Include the comments suggested by Paul. */
18088 #ifndef __cplusplus
18089 /* Ultrix mips cc rejects this. */
18090 typedef int charset[2];
18092 /* SunOS 4.1.1 cc rejects this. */
18093 char const *const *pcpcc;
18095 /* NEC SVR4.0.2 mips cc rejects this. */
18096 struct point {int x, y;};
18097 static struct point const zero = {0,0};
18098 /* AIX XL C 1.02.0.0 rejects this.
18099 It does not let you subtract one const X* pointer from another in
18100 an arm of an if-expression whose if-part is not a constant
18102 const char *g = "string";
18103 pcpcc = &g + (g ? g-g : 0);
18104 /* HPUX 7.0 cc rejects these. */
18106 ppc = (char**) pcpcc;
18107 pcpcc = (char const *const *) ppc;
18108 { /* SCO 3.2v4 cc rejects this. */
18110 char const *s = 0 ? (char *) 0 : (char const *) 0;
18115 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18116 int x[] = {25, 17};
18117 const int *foo = &x[0];
18120 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18121 typedef const int *iptr;
18125 { /* AIX XL C 1.02.0.0 rejects this saying
18126 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18127 struct s { int j; const int *ap[3]; };
18128 struct s *b; b->j = 5;
18130 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18131 const int foo = 10;
18132 if (!foo) return 0;
18134 return !cs[0] && !zero.x;
18141 if ac_fn_c_try_compile "$LINENO"; then :
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18149 $as_echo "$ac_cv_c_const" >&6; }
18150 if test $ac_cv_c_const = no; then
18152 $as_echo "#define const /**/" >>confdefs.h
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18158 $as_echo_n "checking for signed... " >&6; }
18159 if ${bh_cv_c_signed+:} false; then :
18160 $as_echo_n "(cached) " >&6
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18173 if ac_fn_c_try_compile "$LINENO"; then :
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18181 $as_echo "$bh_cv_c_signed" >&6; }
18182 if test $bh_cv_c_signed = no; then
18184 $as_echo "#define signed /**/" >>confdefs.h
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18189 $as_echo_n "checking for inline... " >&6; }
18190 if ${ac_cv_c_inline+:} false; then :
18191 $as_echo_n "(cached) " >&6
18194 for ac_kw in inline __inline__ __inline; do
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 #ifndef __cplusplus
18199 static $ac_kw foo_t static_foo () {return 0; }
18200 $ac_kw foo_t foo () {return 0; }
18204 if ac_fn_c_try_compile "$LINENO"; then :
18205 ac_cv_c_inline=$ac_kw
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208 test "$ac_cv_c_inline" != no && break
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18213 $as_echo "$ac_cv_c_inline" >&6; }
18215 case $ac_cv_c_inline in
18218 case $ac_cv_c_inline in
18220 *) ac_val=$ac_cv_c_inline;;
18222 cat >>confdefs.h <<_ACEOF
18223 #ifndef __cplusplus
18224 #define inline $ac_val
18230 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18231 if test "x$ac_cv_type_off_t" = xyes; then :
18235 cat >>confdefs.h <<_ACEOF
18236 #define off_t long int
18241 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18242 if test "x$ac_cv_type_size_t" = xyes; then :
18246 cat >>confdefs.h <<_ACEOF
18247 #define size_t unsigned int
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18254 $as_echo_n "checking for long long... " >&6; }
18255 if ${ac_cv_type_long_long+:} false; then :
18256 $as_echo_n "(cached) " >&6
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 long long ll = 1LL; int i = 63;
18264 long long llmax = (long long) -1;
18265 return ll << i | ll >> i | llmax / ll | llmax % ll;
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 ac_cv_type_long_long=yes
18273 ac_cv_type_long_long=no
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18279 $as_echo "$ac_cv_type_long_long" >&6; }
18280 if test $ac_cv_type_long_long = yes; then
18282 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18288 $as_echo_n "checking for long double... " >&6; }
18289 if ${gt_cv_c_long_double+:} false; then :
18290 $as_echo_n "(cached) " >&6
18292 if test "$GCC" = yes; then
18293 gt_cv_c_long_double=yes
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18299 long double foo = 0.0;
18300 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18301 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18311 if ac_fn_c_try_compile "$LINENO"; then :
18312 gt_cv_c_long_double=yes
18314 gt_cv_c_long_double=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18320 $as_echo "$gt_cv_c_long_double" >&6; }
18321 if test $gt_cv_c_long_double = yes; then
18323 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18329 $as_echo_n "checking for wchar_t... " >&6; }
18330 if ${gt_cv_c_wchar_t+:} false; then :
18331 $as_echo_n "(cached) " >&6
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335 #include <stddef.h>
18336 wchar_t foo = (wchar_t)'\0';
18345 if ac_fn_c_try_compile "$LINENO"; then :
18346 gt_cv_c_wchar_t=yes
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18353 $as_echo "$gt_cv_c_wchar_t" >&6; }
18354 if test $gt_cv_c_wchar_t = yes; then
18356 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18362 $as_echo_n "checking for wint_t... " >&6; }
18363 if ${gt_cv_c_wint_t+:} false; then :
18364 $as_echo_n "(cached) " >&6
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 wint_t foo = (wchar_t)'\0';
18378 if ac_fn_c_try_compile "$LINENO"; then :
18383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18386 $as_echo "$gt_cv_c_wint_t" >&6; }
18387 if test $gt_cv_c_wint_t = yes; then
18389 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18395 $as_echo_n "checking for inttypes.h... " >&6; }
18396 if ${gl_cv_header_inttypes_h+:} false; then :
18397 $as_echo_n "(cached) " >&6
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #include <sys/types.h>
18402 #include <inttypes.h>
18406 uintmax_t i = (uintmax_t) -1;
18411 if ac_fn_c_try_compile "$LINENO"; then :
18412 gl_cv_header_inttypes_h=yes
18414 gl_cv_header_inttypes_h=no
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18419 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18420 if test $gl_cv_header_inttypes_h = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18430 $as_echo_n "checking for stdint.h... " >&6; }
18431 if ${gl_cv_header_stdint_h+:} false; then :
18432 $as_echo_n "(cached) " >&6
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436 #include <sys/types.h>
18437 #include <stdint.h>
18441 uintmax_t i = (uintmax_t) -1;
18446 if ac_fn_c_try_compile "$LINENO"; then :
18447 gl_cv_header_stdint_h=yes
18449 gl_cv_header_stdint_h=no
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18454 $as_echo "$gl_cv_header_stdint_h" >&6; }
18455 if test $gl_cv_header_stdint_h = yes; then
18457 cat >>confdefs.h <<_ACEOF
18458 #define HAVE_STDINT_H_WITH_UINTMAX 1
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18467 $as_echo_n "checking for intmax_t... " >&6; }
18468 if ${gt_cv_c_intmax_t+:} false; then :
18469 $as_echo_n "(cached) " >&6
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18474 #include <stddef.h>
18475 #include <stdlib.h>
18476 #if HAVE_STDINT_H_WITH_UINTMAX
18477 #include <stdint.h>
18479 #if HAVE_INTTYPES_H_WITH_UINTMAX
18480 #include <inttypes.h>
18491 if ac_fn_c_try_compile "$LINENO"; then :
18492 gt_cv_c_intmax_t=yes
18494 gt_cv_c_intmax_t=no
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18499 $as_echo "$gt_cv_c_intmax_t" >&6; }
18500 if test $gt_cv_c_intmax_t = yes; then
18502 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18509 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18510 if ${gt_cv_func_printf_posix+:} false; then :
18511 $as_echo_n "(cached) " >&6
18514 if test "$cross_compiling" = yes; then :
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18519 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18525 $EGREP "notposix" >/dev/null 2>&1; then :
18526 gt_cv_func_printf_posix="guessing no"
18528 gt_cv_func_printf_posix="guessing yes"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18538 #include <string.h>
18539 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18540 dollar expansion (possibly an autoconf bug). */
18541 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18542 static char buf[100];
18545 sprintf (buf, format, 33, 55);
18546 return (strcmp (buf, "55 33") != 0);
18549 if ac_fn_c_try_run "$LINENO"; then :
18550 gt_cv_func_printf_posix=yes
18552 gt_cv_func_printf_posix=no
18554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18555 conftest.$ac_objext conftest.beam conftest.$ac_ext
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18561 $as_echo "$gt_cv_func_printf_posix" >&6; }
18562 case $gt_cv_func_printf_posix in
18565 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18571 # for constant arguments. Useless!
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18573 $as_echo_n "checking for working alloca.h... " >&6; }
18574 if ${ac_cv_working_alloca_h+:} false; then :
18575 $as_echo_n "(cached) " >&6
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <alloca.h>
18583 char *p = (char *) alloca (2 * sizeof (int));
18589 if ac_fn_c_try_link "$LINENO"; then :
18590 ac_cv_working_alloca_h=yes
18592 ac_cv_working_alloca_h=no
18594 rm -f core conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18598 $as_echo "$ac_cv_working_alloca_h" >&6; }
18599 if test $ac_cv_working_alloca_h = yes; then
18601 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18606 $as_echo_n "checking for alloca... " >&6; }
18607 if ${ac_cv_func_alloca_works+:} false; then :
18608 $as_echo_n "(cached) " >&6
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 # define alloca __builtin_alloca
18616 # include <malloc.h>
18617 # define alloca _alloca
18619 # ifdef HAVE_ALLOCA_H
18620 # include <alloca.h>
18625 # ifndef alloca /* predefined by HP cc +Olibcalls */
18626 void *alloca (size_t);
18636 char *p = (char *) alloca (1);
18642 if ac_fn_c_try_link "$LINENO"; then :
18643 ac_cv_func_alloca_works=yes
18645 ac_cv_func_alloca_works=no
18647 rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18651 $as_echo "$ac_cv_func_alloca_works" >&6; }
18653 if test $ac_cv_func_alloca_works = yes; then
18655 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18659 # that cause trouble. Some versions do not even contain alloca or
18660 # contain a buggy version. If you still want to use their alloca,
18661 # use ar to extract alloca.o from them instead of compiling alloca.c.
18663 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18665 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18669 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18670 if ${ac_cv_os_cray+:} false; then :
18671 $as_echo_n "(cached) " >&6
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18675 #if defined CRAY && ! defined CRAY2
18682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18683 $EGREP "webecray" >/dev/null 2>&1; then :
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18692 $as_echo "$ac_cv_os_cray" >&6; }
18693 if test $ac_cv_os_cray = yes; then
18694 for ac_func in _getb67 GETB67 getb67; do
18695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18699 cat >>confdefs.h <<_ACEOF
18700 #define CRAY_STACKSEG_END $ac_func
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18710 $as_echo_n "checking stack direction for C alloca... " >&6; }
18711 if ${ac_cv_c_stack_direction+:} false; then :
18712 $as_echo_n "(cached) " >&6
18714 if test "$cross_compiling" = yes; then :
18715 ac_cv_c_stack_direction=0
18717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718 /* end confdefs.h. */
18719 $ac_includes_default
18721 find_stack_direction ()
18723 static char *addr = 0;
18728 return find_stack_direction ();
18731 return (&dummy > addr) ? 1 : -1;
18737 return find_stack_direction () < 0;
18740 if ac_fn_c_try_run "$LINENO"; then :
18741 ac_cv_c_stack_direction=1
18743 ac_cv_c_stack_direction=-1
18745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18746 conftest.$ac_objext conftest.beam conftest.$ac_ext
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18751 $as_echo "$ac_cv_c_stack_direction" >&6; }
18752 cat >>confdefs.h <<_ACEOF
18753 #define STACK_DIRECTION $ac_cv_c_stack_direction
18762 for ac_header in $ac_header_list
18764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18765 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18768 cat >>confdefs.h <<_ACEOF
18769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18783 for ac_func in getpagesize
18785 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18786 if test "x$ac_cv_func_getpagesize" = xyes; then :
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_GETPAGESIZE 1
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18795 $as_echo_n "checking for working mmap... " >&6; }
18796 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18797 $as_echo_n "(cached) " >&6
18799 if test "$cross_compiling" = yes; then :
18800 ac_cv_func_mmap_fixed_mapped=no
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804 $ac_includes_default
18805 /* malloc might have been renamed as rpl_malloc. */
18808 /* Thanks to Mike Haertel and Jim Avera for this test.
18809 Here is a matrix of mmap possibilities:
18810 mmap private not fixed
18811 mmap private fixed at somewhere currently unmapped
18812 mmap private fixed at somewhere already mapped
18813 mmap shared not fixed
18814 mmap shared fixed at somewhere currently unmapped
18815 mmap shared fixed at somewhere already mapped
18816 For private mappings, we should verify that changes cannot be read()
18817 back from the file, nor mmap's back from the file at a different
18818 address. (There have been systems where private was not correctly
18819 implemented like the infamous i386 svr4.0, and systems where the
18820 VM page cache was not coherent with the file system buffer cache
18821 like early versions of FreeBSD and possibly contemporary NetBSD.)
18822 For shared mappings, we should conversely verify that changes get
18823 propagated back to all the places they're supposed to be.
18825 Grep wants private fixed already mapped.
18826 The main things grep needs to know about mmap are:
18827 * does it exist and is it safe to write into the mmap'd area
18828 * how to use it (BSD variants) */
18831 #include <sys/mman.h>
18833 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18837 /* This mess was copied from the GNU getpagesize.h. */
18838 #ifndef HAVE_GETPAGESIZE
18839 # ifdef _SC_PAGESIZE
18840 # define getpagesize() sysconf(_SC_PAGESIZE)
18841 # else /* no _SC_PAGESIZE */
18842 # ifdef HAVE_SYS_PARAM_H
18843 # include <sys/param.h>
18844 # ifdef EXEC_PAGESIZE
18845 # define getpagesize() EXEC_PAGESIZE
18846 # else /* no EXEC_PAGESIZE */
18848 # define getpagesize() NBPG * CLSIZE
18851 # endif /* no CLSIZE */
18852 # else /* no NBPG */
18854 # define getpagesize() NBPC
18855 # else /* no NBPC */
18857 # define getpagesize() PAGESIZE
18858 # endif /* PAGESIZE */
18859 # endif /* no NBPC */
18860 # endif /* no NBPG */
18861 # endif /* no EXEC_PAGESIZE */
18862 # else /* no HAVE_SYS_PARAM_H */
18863 # define getpagesize() 8192 /* punt totally */
18864 # endif /* no HAVE_SYS_PARAM_H */
18865 # endif /* no _SC_PAGESIZE */
18867 #endif /* no HAVE_GETPAGESIZE */
18872 char *data, *data2, *data3;
18873 const char *cdata2;
18877 pagesize = getpagesize ();
18879 /* First, make a file with some known garbage in it. */
18880 data = (char *) malloc (pagesize);
18883 for (i = 0; i < pagesize; ++i)
18884 *(data + i) = rand ();
18886 fd = creat ("conftest.mmap", 0600);
18889 if (write (fd, data, pagesize) != pagesize)
18893 /* Next, check that the tail of a page is zero-filled. File must have
18894 non-zero length, otherwise we risk SIGBUS for entire page. */
18895 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18899 if (write (fd2, cdata2, 1) != 1)
18901 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18902 if (data2 == MAP_FAILED)
18904 for (i = 0; i < pagesize; ++i)
18908 if (munmap (data2, pagesize))
18911 /* Next, try to mmap the file at a fixed address which already has
18912 something else allocated at it. If we can, also make sure that
18913 we see the same garbage. */
18914 fd = open ("conftest.mmap", O_RDWR);
18917 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18918 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18920 for (i = 0; i < pagesize; ++i)
18921 if (*(data + i) != *(data2 + i))
18924 /* Finally, make sure that changes to the mapped area do not
18925 percolate back to the file as seen by read(). (This is a bug on
18926 some variants of i386 svr4.0.) */
18927 for (i = 0; i < pagesize; ++i)
18928 *(data2 + i) = *(data2 + i) + 1;
18929 data3 = (char *) malloc (pagesize);
18932 if (read (fd, data3, pagesize) != pagesize)
18934 for (i = 0; i < pagesize; ++i)
18935 if (*(data + i) != *(data3 + i))
18941 if ac_fn_c_try_run "$LINENO"; then :
18942 ac_cv_func_mmap_fixed_mapped=yes
18944 ac_cv_func_mmap_fixed_mapped=no
18946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18947 conftest.$ac_objext conftest.beam conftest.$ac_ext
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18952 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18955 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18958 rm -f conftest.mmap conftest.txt
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18962 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18963 if ${ac_cv_gnu_library_2_1+:} false; then :
18964 $as_echo_n "(cached) " >&6
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18969 #include <features.h>
18970 #ifdef __GNU_LIBRARY__
18971 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18978 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18979 ac_cv_gnu_library_2_1=yes
18981 ac_cv_gnu_library_2_1=no
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18989 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18991 GLIBC21="$ac_cv_gnu_library_2_1"
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18997 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18998 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18999 $as_echo_n "(cached) " >&6
19002 if test "$cross_compiling" = yes; then :
19004 # Guess based on the CPU.
19005 case "$host_cpu" in
19006 alpha* | i3456786 | m68k | s390*)
19007 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19009 gt_cv_int_divbyzero_sigfpe="guessing no";;
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19016 #include <stdlib.h>
19017 #include <signal.h>
19021 sigfpe_handler (int sig)
19023 sigfpe_handler (sig) int sig;
19026 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19027 exit (sig != SIGFPE);
19037 signal (SIGFPE, sigfpe_handler);
19038 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19039 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19040 signal (SIGTRAP, sigfpe_handler);
19042 /* Linux/SPARC yields signal SIGILL. */
19043 #if defined (__sparc__) && defined (__linux__)
19044 signal (SIGILL, sigfpe_handler);
19053 if ac_fn_c_try_run "$LINENO"; then :
19054 gt_cv_int_divbyzero_sigfpe=yes
19056 gt_cv_int_divbyzero_sigfpe=no
19058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19059 conftest.$ac_objext conftest.beam conftest.$ac_ext
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19065 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19066 case "$gt_cv_int_divbyzero_sigfpe" in
19071 cat >>confdefs.h <<_ACEOF
19072 #define INTDIV0_RAISES_SIGFPE $value
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19078 $as_echo_n "checking for unsigned long long... " >&6; }
19079 if ${ac_cv_type_unsigned_long_long+:} false; then :
19080 $as_echo_n "(cached) " >&6
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 unsigned long long ull = 1ULL; int i = 63;
19088 unsigned long long ullmax = (unsigned long long) -1;
19089 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19094 if ac_fn_c_try_link "$LINENO"; then :
19095 ac_cv_type_unsigned_long_long=yes
19097 ac_cv_type_unsigned_long_long=no
19099 rm -f core conftest.err conftest.$ac_objext \
19100 conftest$ac_exeext conftest.$ac_ext
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19103 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19104 if test $ac_cv_type_unsigned_long_long = yes; then
19106 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19113 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19115 test $ac_cv_type_unsigned_long_long = yes \
19116 && ac_type='unsigned long long' \
19117 || ac_type='unsigned long'
19119 cat >>confdefs.h <<_ACEOF
19120 #define uintmax_t $ac_type
19125 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19131 $as_echo_n "checking for inttypes.h... " >&6; }
19132 if ${gt_cv_header_inttypes_h+:} false; then :
19133 $as_echo_n "(cached) " >&6
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19138 #include <sys/types.h>
19139 #include <inttypes.h>
19148 if ac_fn_c_try_compile "$LINENO"; then :
19149 gt_cv_header_inttypes_h=yes
19151 gt_cv_header_inttypes_h=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19157 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19158 if test $gt_cv_header_inttypes_h = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define HAVE_INTTYPES_H 1
19168 if test $gt_cv_header_inttypes_h = yes; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19170 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19171 if ${gt_cv_inttypes_pri_broken+:} false; then :
19172 $as_echo_n "(cached) " >&6
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19177 #include <inttypes.h>
19190 if ac_fn_c_try_compile "$LINENO"; then :
19191 gt_cv_inttypes_pri_broken=no
19193 gt_cv_inttypes_pri_broken=yes
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19199 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19201 if test "$gt_cv_inttypes_pri_broken" = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define PRI_MACROS_BROKEN 1
19210 for ac_header in stdint.h
19212 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19213 if test "x$ac_cv_header_stdint_h" = xyes; then :
19214 cat >>confdefs.h <<_ACEOF
19215 #define HAVE_STDINT_H 1
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19223 $as_echo_n "checking for SIZE_MAX... " >&6; }
19225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h. */
19228 #include <limits.h>
19230 #include <stdint.h>
19237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19238 $EGREP "Found it" >/dev/null 2>&1; then :
19243 if test -z "$result"; then
19244 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19251 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19258 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19265 if test "$fits_in_uint" = 1; then
19266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h. */
19268 #include <stddef.h>
19270 extern unsigned long foo;
19280 if ac_fn_c_try_compile "$LINENO"; then :
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 if test -z "$result"; then
19286 if test "$fits_in_uint" = 1; then
19287 result="$res_hi$res_lo"U
19289 result="$res_hi$res_lo"UL
19292 result='~(size_t)0'
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19296 $as_echo "$result" >&6; }
19297 if test "$result" != yes; then
19299 cat >>confdefs.h <<_ACEOF
19300 #define SIZE_MAX $result
19308 for ac_header in stdint.h
19310 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19311 if test "x$ac_cv_header_stdint_h" = xyes; then :
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_STDINT_H 1
19327 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19328 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19332 $as_echo "#define ptrdiff_t long" >>confdefs.h
19337 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19338 stdlib.h string.h unistd.h sys/param.h
19340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19343 cat >>confdefs.h <<_ACEOF
19344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19351 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19352 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19353 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19359 cat >>confdefs.h <<_ACEOF
19360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19369 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19370 if ${ac_cv_have_decl__snprintf+:} false; then :
19371 $as_echo_n "(cached) " >&6
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19381 char *p = (char *) _snprintf;
19388 if ac_fn_c_try_compile "$LINENO"; then :
19389 ac_cv_have_decl__snprintf=yes
19391 ac_cv_have_decl__snprintf=no
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19396 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19397 if test $ac_cv_have_decl__snprintf = yes; then
19403 cat >>confdefs.h <<_ACEOF
19404 #define HAVE_DECL__SNPRINTF $gt_value
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19410 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19411 if ${ac_cv_have_decl__snwprintf+:} false; then :
19412 $as_echo_n "(cached) " >&6
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19422 char *p = (char *) _snwprintf;
19429 if ac_fn_c_try_compile "$LINENO"; then :
19430 ac_cv_have_decl__snwprintf=yes
19432 ac_cv_have_decl__snwprintf=no
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19437 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19438 if test $ac_cv_have_decl__snwprintf = yes; then
19444 cat >>confdefs.h <<_ACEOF
19445 #define HAVE_DECL__SNWPRINTF $gt_value
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19452 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19453 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19454 $as_echo_n "(cached) " >&6
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19463 #ifndef feof_unlocked
19464 char *p = (char *) feof_unlocked;
19471 if ac_fn_c_try_compile "$LINENO"; then :
19472 ac_cv_have_decl_feof_unlocked=yes
19474 ac_cv_have_decl_feof_unlocked=no
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19479 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19480 if test $ac_cv_have_decl_feof_unlocked = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19493 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19494 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19495 $as_echo_n "(cached) " >&6
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19504 #ifndef fgets_unlocked
19505 char *p = (char *) fgets_unlocked;
19512 if ac_fn_c_try_compile "$LINENO"; then :
19513 ac_cv_have_decl_fgets_unlocked=yes
19515 ac_cv_have_decl_fgets_unlocked=no
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19520 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19521 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19534 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19535 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19536 $as_echo_n "(cached) " >&6
19538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h. */
19545 #ifndef getc_unlocked
19546 char *p = (char *) getc_unlocked;
19553 if ac_fn_c_try_compile "$LINENO"; then :
19554 ac_cv_have_decl_getc_unlocked=yes
19556 ac_cv_have_decl_getc_unlocked=no
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19561 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19562 if test $ac_cv_have_decl_getc_unlocked = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19574 case $gt_cv_func_printf_posix in
19575 *yes) HAVE_POSIX_PRINTF=1 ;;
19576 *) HAVE_POSIX_PRINTF=0 ;;
19579 if test "$ac_cv_func_asprintf" = yes; then
19585 if test "$ac_cv_func_snprintf" = yes; then
19591 if test "$ac_cv_func_wprintf" = yes; then
19603 am_save_CPPFLAGS="$CPPFLAGS"
19605 for element in $INCICONV; do
19607 for x in $CPPFLAGS; do
19609 acl_save_prefix="$prefix"
19610 prefix="$acl_final_prefix"
19611 acl_save_exec_prefix="$exec_prefix"
19612 exec_prefix="$acl_final_exec_prefix"
19614 exec_prefix="$acl_save_exec_prefix"
19615 prefix="$acl_save_prefix"
19617 if test "X$x" = "X$element"; then
19622 if test -z "$haveit"; then
19623 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19629 $as_echo_n "checking for iconv... " >&6; }
19630 if ${am_cv_func_iconv+:} false; then :
19631 $as_echo_n "(cached) " >&6
19634 am_cv_func_iconv="no, consider installing GNU libiconv"
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638 #include <stdlib.h>
19643 iconv_t cd = iconv_open("","");
19644 iconv(cd,NULL,NULL,NULL,NULL);
19650 if ac_fn_c_try_link "$LINENO"; then :
19651 am_cv_func_iconv=yes
19653 rm -f core conftest.err conftest.$ac_objext \
19654 conftest$ac_exeext conftest.$ac_ext
19655 if test "$am_cv_func_iconv" != yes; then
19656 am_save_LIBS="$LIBS"
19657 LIBS="$LIBS $LIBICONV"
19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h. */
19660 #include <stdlib.h>
19665 iconv_t cd = iconv_open("","");
19666 iconv(cd,NULL,NULL,NULL,NULL);
19672 if ac_fn_c_try_link "$LINENO"; then :
19673 am_cv_lib_iconv=yes
19674 am_cv_func_iconv=yes
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS="$am_save_LIBS"
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19683 $as_echo "$am_cv_func_iconv" >&6; }
19684 if test "$am_cv_func_iconv" = yes; then
19686 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19689 if test "$am_cv_lib_iconv" = yes; then
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19691 $as_echo_n "checking how to link with libiconv... " >&6; }
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19693 $as_echo "$LIBICONV" >&6; }
19695 CPPFLAGS="$am_save_CPPFLAGS"
19702 if test "$am_cv_func_iconv" = yes; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19704 $as_echo_n "checking for iconv declaration... " >&6; }
19705 if ${am_cv_proto_iconv+:} false; then :
19706 $as_echo_n "(cached) " >&6
19709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h. */
19712 #include <stdlib.h>
19718 #if defined(__STDC__) || defined(__cplusplus)
19719 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19732 if ac_fn_c_try_compile "$LINENO"; then :
19733 am_cv_proto_iconv_arg1=""
19735 am_cv_proto_iconv_arg1="const"
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 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);"
19741 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19743 }$am_cv_proto_iconv" >&5
19745 }$am_cv_proto_iconv" >&6; }
19747 cat >>confdefs.h <<_ACEOF
19748 #define ICONV_CONST $am_cv_proto_iconv_arg1
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19755 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19756 if ${am_cv_langinfo_codeset+:} false; then :
19757 $as_echo_n "(cached) " >&6
19759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h. */
19761 #include <langinfo.h>
19765 char* cs = nl_langinfo(CODESET);
19770 if ac_fn_c_try_link "$LINENO"; then :
19771 am_cv_langinfo_codeset=yes
19773 am_cv_langinfo_codeset=no
19775 rm -f core conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19780 $as_echo "$am_cv_langinfo_codeset" >&6; }
19781 if test $am_cv_langinfo_codeset = yes; then
19783 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19787 if test $ac_cv_header_locale_h = yes; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19790 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19791 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19792 $as_echo_n "(cached) " >&6
19794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h. */
19796 #include <locale.h>
19805 if ac_fn_c_try_link "$LINENO"; then :
19806 gt_cv_val_LC_MESSAGES=yes
19808 gt_cv_val_LC_MESSAGES=no
19810 rm -f core conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19814 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19815 if test $gt_cv_val_LC_MESSAGES = yes; then
19817 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19823 if test -n "$INTL_MACOSX_LIBS"; then
19824 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19827 for ac_prog in bison
19829 # Extract the first word of "$ac_prog", so it can be a program name with args.
19830 set dummy $ac_prog; ac_word=$2
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19832 $as_echo_n "checking for $ac_word... " >&6; }
19833 if ${ac_cv_prog_INTLBISON+:} false; then :
19834 $as_echo_n "(cached) " >&6
19836 if test -n "$INTLBISON"; then
19837 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19840 for as_dir in $PATH
19843 test -z "$as_dir" && as_dir=.
19844 for ac_exec_ext in '' $ac_executable_extensions; do
19845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19846 ac_cv_prog_INTLBISON="$ac_prog"
19847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19856 INTLBISON=$ac_cv_prog_INTLBISON
19857 if test -n "$INTLBISON"; then
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19859 $as_echo "$INTLBISON" >&6; }
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19866 test -n "$INTLBISON" && break
19869 if test -z "$INTLBISON"; then
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19873 $as_echo_n "checking version of bison... " >&6; }
19874 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19875 case $ac_prog_version in
19876 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19877 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19878 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19879 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19882 $as_echo "$ac_prog_version" >&6; }
19884 if test $ac_verc_fail = yes; then
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19904 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19905 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19906 $as_echo_n "(cached) " >&6
19908 gt_save_CPPFLAGS="$CPPFLAGS"
19909 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19910 gt_save_LIBS="$LIBS"
19911 LIBS="$LIBS -framework CoreFoundation"
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914 #include <CFPreferences.h>
19918 CFPreferencesCopyAppValue(NULL, NULL)
19923 if ac_fn_c_try_link "$LINENO"; then :
19924 gt_cv_func_CFPreferencesCopyAppValue=yes
19926 gt_cv_func_CFPreferencesCopyAppValue=no
19928 rm -f core conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
19930 CPPFLAGS="$gt_save_CPPFLAGS"
19931 LIBS="$gt_save_LIBS"
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19934 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19935 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19937 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19941 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19942 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19943 $as_echo_n "(cached) " >&6
19945 gt_save_CPPFLAGS="$CPPFLAGS"
19946 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19947 gt_save_LIBS="$LIBS"
19948 LIBS="$LIBS -framework CoreFoundation"
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19951 #include <CFLocale.h>
19955 CFLocaleCopyCurrent();
19960 if ac_fn_c_try_link "$LINENO"; then :
19961 gt_cv_func_CFLocaleCopyCurrent=yes
19963 gt_cv_func_CFLocaleCopyCurrent=no
19965 rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19967 CPPFLAGS="$gt_save_CPPFLAGS"
19968 LIBS="$gt_save_LIBS"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19971 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19972 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19974 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19978 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19979 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19986 $as_echo_n "checking whether NLS is requested... " >&6; }
19987 # Check whether --enable-nls was given.
19988 if test "${enable_nls+set}" = set; then :
19989 enableval=$enable_nls; USE_NLS=$enableval
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19995 $as_echo "$USE_NLS" >&6; }
20000 BUILD_INCLUDED_LIBINTL=no
20001 USE_INCLUDED_LIBINTL=no
20007 if test "$USE_NLS" = "yes"; then
20008 gt_use_preinstalled_gnugettext=no
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20011 $as_echo_n "checking whether included gettext is requested... " >&6; }
20013 # Check whether --with-included-gettext was given.
20014 if test "${with_included_gettext+set}" = set; then :
20015 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20017 nls_cv_force_use_gnu_gettext=no
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20021 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20023 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20024 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20032 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20033 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20034 $as_echo_n "(cached) " >&6
20036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h. */
20038 #include <libintl.h>
20039 extern int _nl_msg_cat_cntr;
20040 extern int *_nl_domain_bindings;
20044 bindtextdomain ("", "");
20045 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 gt_cv_func_gnugettext1_libc=yes
20053 gt_cv_func_gnugettext1_libc=no
20055 rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20059 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20061 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20067 acl_save_prefix="$prefix"
20068 prefix="$acl_final_prefix"
20069 acl_save_exec_prefix="$exec_prefix"
20070 exec_prefix="$acl_final_exec_prefix"
20072 eval additional_includedir=\"$includedir\"
20073 eval additional_libdir=\"$libdir\"
20075 exec_prefix="$acl_save_exec_prefix"
20076 prefix="$acl_save_prefix"
20079 # Check whether --with-libintl-prefix was given.
20080 if test "${with_libintl_prefix+set}" = set; then :
20081 withval=$with_libintl_prefix;
20082 if test "X$withval" = "Xno"; then
20085 if test "X$withval" = "X"; then
20087 acl_save_prefix="$prefix"
20088 prefix="$acl_final_prefix"
20089 acl_save_exec_prefix="$exec_prefix"
20090 exec_prefix="$acl_final_exec_prefix"
20092 eval additional_includedir=\"$includedir\"
20093 eval additional_libdir=\"$libdir\"
20095 exec_prefix="$acl_save_exec_prefix"
20096 prefix="$acl_save_prefix"
20099 additional_includedir="$withval/include"
20100 additional_libdir="$withval/lib"
20111 names_already_handled=
20112 names_next_round='intl '
20113 while test -n "$names_next_round"; do
20114 names_this_round="$names_next_round"
20116 for name in $names_this_round; do
20118 for n in $names_already_handled; do
20119 if test "$n" = "$name"; then
20120 already_handled=yes
20124 if test -z "$already_handled"; then
20125 names_already_handled="$names_already_handled $name"
20126 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20127 eval value=\"\$HAVE_LIB$uppername\"
20128 if test -n "$value"; then
20129 if test "$value" = yes; then
20130 eval value=\"\$LIB$uppername\"
20131 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20132 eval value=\"\$LTLIB$uppername\"
20133 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20142 if test $use_additional = yes; then
20143 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20144 found_dir="$additional_libdir"
20145 found_so="$additional_libdir/lib$name.$shlibext"
20146 if test -f "$additional_libdir/lib$name.la"; then
20147 found_la="$additional_libdir/lib$name.la"
20150 if test -f "$additional_libdir/lib$name.$libext"; then
20151 found_dir="$additional_libdir"
20152 found_a="$additional_libdir/lib$name.$libext"
20153 if test -f "$additional_libdir/lib$name.la"; then
20154 found_la="$additional_libdir/lib$name.la"
20159 if test "X$found_dir" = "X"; then
20160 for x in $LDFLAGS $LTLIBINTL; do
20162 acl_save_prefix="$prefix"
20163 prefix="$acl_final_prefix"
20164 acl_save_exec_prefix="$exec_prefix"
20165 exec_prefix="$acl_final_exec_prefix"
20167 exec_prefix="$acl_save_exec_prefix"
20168 prefix="$acl_save_prefix"
20172 dir=`echo "X$x" | sed -e 's/^X-L//'`
20173 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20175 found_so="$dir/lib$name.$shlibext"
20176 if test -f "$dir/lib$name.la"; then
20177 found_la="$dir/lib$name.la"
20180 if test -f "$dir/lib$name.$libext"; then
20182 found_a="$dir/lib$name.$libext"
20183 if test -f "$dir/lib$name.la"; then
20184 found_la="$dir/lib$name.la"
20190 if test "X$found_dir" != "X"; then
20195 if test "X$found_dir" != "X"; then
20196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20197 if test "X$found_so" != "X"; then
20198 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20199 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20202 for x in $ltrpathdirs; do
20203 if test "X$x" = "X$found_dir"; then
20208 if test -z "$haveit"; then
20209 ltrpathdirs="$ltrpathdirs $found_dir"
20211 if test "$hardcode_direct" = yes; then
20212 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20214 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20215 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20217 for x in $rpathdirs; do
20218 if test "X$x" = "X$found_dir"; then
20223 if test -z "$haveit"; then
20224 rpathdirs="$rpathdirs $found_dir"
20228 for x in $LDFLAGS $LIBINTL; do
20230 acl_save_prefix="$prefix"
20231 prefix="$acl_final_prefix"
20232 acl_save_exec_prefix="$exec_prefix"
20233 exec_prefix="$acl_final_exec_prefix"
20235 exec_prefix="$acl_save_exec_prefix"
20236 prefix="$acl_save_prefix"
20238 if test "X$x" = "X-L$found_dir"; then
20243 if test -z "$haveit"; then
20244 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20246 if test "$hardcode_minus_L" != no; then
20247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20249 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20255 if test "X$found_a" != "X"; then
20256 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20258 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20261 additional_includedir=
20262 case "$found_dir" in
20264 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20265 additional_includedir="$basedir/include"
20268 if test "X$additional_includedir" != "X"; then
20269 if test "X$additional_includedir" != "X/usr/include"; then
20271 if test "X$additional_includedir" = "X/usr/local/include"; then
20272 if test -n "$GCC"; then
20274 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20278 if test -z "$haveit"; then
20279 for x in $CPPFLAGS $INCINTL; do
20281 acl_save_prefix="$prefix"
20282 prefix="$acl_final_prefix"
20283 acl_save_exec_prefix="$exec_prefix"
20284 exec_prefix="$acl_final_exec_prefix"
20286 exec_prefix="$acl_save_exec_prefix"
20287 prefix="$acl_save_prefix"
20289 if test "X$x" = "X-I$additional_includedir"; then
20294 if test -z "$haveit"; then
20295 if test -d "$additional_includedir"; then
20296 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20302 if test -n "$found_la"; then
20303 save_libdir="$libdir"
20304 case "$found_la" in
20305 */* | *\\*) . "$found_la" ;;
20306 *) . "./$found_la" ;;
20308 libdir="$save_libdir"
20309 for dep in $dependency_libs; do
20312 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20313 if test "X$additional_libdir" != "X/usr/lib"; then
20315 if test "X$additional_libdir" = "X/usr/local/lib"; then
20316 if test -n "$GCC"; then
20318 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20322 if test -z "$haveit"; then
20324 for x in $LDFLAGS $LIBINTL; do
20326 acl_save_prefix="$prefix"
20327 prefix="$acl_final_prefix"
20328 acl_save_exec_prefix="$exec_prefix"
20329 exec_prefix="$acl_final_exec_prefix"
20331 exec_prefix="$acl_save_exec_prefix"
20332 prefix="$acl_save_prefix"
20334 if test "X$x" = "X-L$additional_libdir"; then
20339 if test -z "$haveit"; then
20340 if test -d "$additional_libdir"; then
20341 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20345 for x in $LDFLAGS $LTLIBINTL; do
20347 acl_save_prefix="$prefix"
20348 prefix="$acl_final_prefix"
20349 acl_save_exec_prefix="$exec_prefix"
20350 exec_prefix="$acl_final_exec_prefix"
20352 exec_prefix="$acl_save_exec_prefix"
20353 prefix="$acl_save_prefix"
20355 if test "X$x" = "X-L$additional_libdir"; then
20360 if test -z "$haveit"; then
20361 if test -d "$additional_libdir"; then
20362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20369 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20370 if test "$enable_rpath" != no; then
20372 for x in $rpathdirs; do
20373 if test "X$x" = "X$dir"; then
20378 if test -z "$haveit"; then
20379 rpathdirs="$rpathdirs $dir"
20382 for x in $ltrpathdirs; do
20383 if test "X$x" = "X$dir"; then
20388 if test -z "$haveit"; then
20389 ltrpathdirs="$ltrpathdirs $dir"
20394 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20397 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20400 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20401 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20407 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20408 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20414 if test "X$rpathdirs" != "X"; then
20415 if test -n "$hardcode_libdir_separator"; then
20417 for found_dir in $rpathdirs; do
20418 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20420 acl_save_libdir="$libdir"
20422 eval flag=\"$hardcode_libdir_flag_spec\"
20423 libdir="$acl_save_libdir"
20424 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20426 for found_dir in $rpathdirs; do
20427 acl_save_libdir="$libdir"
20428 libdir="$found_dir"
20429 eval flag=\"$hardcode_libdir_flag_spec\"
20430 libdir="$acl_save_libdir"
20431 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20435 if test "X$ltrpathdirs" != "X"; then
20436 for found_dir in $ltrpathdirs; do
20437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20442 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20443 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20444 $as_echo_n "(cached) " >&6
20446 gt_save_CPPFLAGS="$CPPFLAGS"
20447 CPPFLAGS="$CPPFLAGS $INCINTL"
20448 gt_save_LIBS="$LIBS"
20449 LIBS="$LIBS $LIBINTL"
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h. */
20452 #include <libintl.h>
20453 extern int _nl_msg_cat_cntr;
20458 const char *_nl_expand_alias (const char *);
20462 bindtextdomain ("", "");
20463 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20468 if ac_fn_c_try_link "$LINENO"; then :
20469 gt_cv_func_gnugettext1_libintl=yes
20471 gt_cv_func_gnugettext1_libintl=no
20473 rm -f core conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20475 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20476 LIBS="$LIBS $LIBICONV"
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479 #include <libintl.h>
20480 extern int _nl_msg_cat_cntr;
20485 const char *_nl_expand_alias (const char *);
20489 bindtextdomain ("", "");
20490 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20495 if ac_fn_c_try_link "$LINENO"; then :
20496 LIBINTL="$LIBINTL $LIBICONV"
20497 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20498 gt_cv_func_gnugettext1_libintl=yes
20501 rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20504 CPPFLAGS="$gt_save_CPPFLAGS"
20505 LIBS="$gt_save_LIBS"
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20508 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20511 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20512 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20513 && test "$PACKAGE" != gettext-runtime \
20514 && test "$PACKAGE" != gettext-tools; }; then
20515 gt_use_preinstalled_gnugettext=yes
20523 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20524 nls_cv_use_gnu_gettext=yes
20528 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20529 BUILD_INCLUDED_LIBINTL=yes
20530 USE_INCLUDED_LIBINTL=yes
20531 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20532 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20533 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20537 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20538 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20543 if test -n "$INTL_MACOSX_LIBS"; then
20544 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20545 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20546 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20547 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20551 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20552 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20554 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20562 $as_echo_n "checking whether to use NLS... " >&6; }
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20564 $as_echo "$USE_NLS" >&6; }
20565 if test "$USE_NLS" = "yes"; then
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20567 $as_echo_n "checking where the gettext function comes from... " >&6; }
20568 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20569 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20570 gt_source="external libintl"
20575 gt_source="included intl directory"
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20578 $as_echo "$gt_source" >&6; }
20581 if test "$USE_NLS" = "yes"; then
20583 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20584 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20586 $as_echo_n "checking how to link with libintl... " >&6; }
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20588 $as_echo "$LIBINTL" >&6; }
20590 for element in $INCINTL; do
20592 for x in $CPPFLAGS; do
20594 acl_save_prefix="$prefix"
20595 prefix="$acl_final_prefix"
20596 acl_save_exec_prefix="$exec_prefix"
20597 exec_prefix="$acl_final_exec_prefix"
20599 exec_prefix="$acl_save_exec_prefix"
20600 prefix="$acl_save_prefix"
20602 if test "X$x" = "X$element"; then
20607 if test -z "$haveit"; then
20608 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20615 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20618 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20626 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20627 BUILD_INCLUDED_LIBINTL=yes
20634 nls_cv_header_intl=
20635 nls_cv_header_libgt=
20647 if test "$USE_INCLUDED_LIBINTL" = yes; then
20648 INTLOBJS="\$(GETTOBJS)"
20652 INTL_LIBTOOL_SUFFIX_PREFIX=
20656 INTLLIBS="$LIBINTL"
20665 support_smartalloc=yes
20666 support_readline=yes
20670 support_wx_console=no
20671 support_tray_monitor=no
20676 support_static_tools=no
20677 support_static_fd=no
20678 support_static_sd=no
20679 support_static_dir=no
20680 support_static_cons=no
20682 build_client_only=no
20689 # Check whether --enable-gnome was given.
20690 if test "${enable_gnome+set}" = set; then :
20691 enableval=$enable_gnome;
20692 if test x$enableval = xyes; then
20701 if test x$support_gnome = xyes; then
20702 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20703 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20705 # AC_SUBST(GNOME_DIR)
20707 # Check whether --enable-bat was given.
20708 if test "${enable_bat+set}" = set; then :
20709 enableval=$enable_bat;
20710 if test x$enableval = xyes; then
20712 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20722 if test x$support_bat = xyes; then
20723 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20725 if test $pkg = 0; then
20726 BAT_DIR=src/qt-console
20728 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20746 # Check whether --enable-bwx-console was given.
20747 if test "${enable_bwx_console+set}" = set; then :
20748 enableval=$enable_bwx_console;
20749 if test x$enableval = xyes; then
20750 support_wx_console=yes
20758 if test x$support_wx_console = xyes; then
20759 abc=`$WXCONFIG $WXFLAGS --cppflags`
20761 if test $pkg = 0; then
20762 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20763 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20764 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20768 WX_DIR="src/wx-console"
20771 echo "wx-config program not found. bwx-console disabled."
20773 support_wx_console=no
20778 # Check whether --enable-tray-monitor was given.
20779 if test "${enable_tray_monitor+set}" = set; then :
20780 enableval=$enable_tray_monitor;
20781 if test x$enableval = xyes; then
20782 support_tray_monitor=yes
20790 if test x$support_tray_monitor = xyes; then
20791 abc=`$PKGCONFIG --exists gtk+-2.0`
20793 if test $pkg = 0; then
20794 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20795 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20798 TRAY_MONITOR_DIR=src/tray-monitor
20799 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20801 if test $pkg = 0; then
20803 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20810 # Check whether --enable-smartalloc was given.
20811 if test "${enable_smartalloc+set}" = set; then :
20812 enableval=$enable_smartalloc;
20813 if test x$enableval = xno; then
20814 support_smartalloc=no
20821 if test x$support_smartalloc = xyes; then
20823 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20827 # Check whether --enable-lockmgr was given.
20828 if test "${enable_lockmgr+set}" = set; then :
20829 enableval=$enable_lockmgr;
20830 if test x$enableval = xyes; then
20831 support_lockmgr=yes
20838 if test x$support_lockmgr = xyes; then
20840 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20845 # Check whether --enable-static-tools was given.
20846 if test "${enable_static_tools+set}" = set; then :
20847 enableval=$enable_static_tools;
20848 if test x$enableval = xyes; then
20849 if test x$use_libtool = xyes; then
20850 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20851 please rerun configure with --disable-libtool" "$LINENO" 5
20853 support_static_tools=yes
20861 if test x$support_static_tools = xyes; then
20862 TTOOL_LDFLAGS="-static"
20866 # Check whether --enable-static-fd was given.
20867 if test "${enable_static_fd+set}" = set; then :
20868 enableval=$enable_static_fd;
20869 if test x$enableval = xyes; then
20870 if test x$use_libtool = xyes; then
20871 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20872 please rerun configure with --disable-libtool" "$LINENO" 5
20874 support_static_fd=yes
20882 if test x$support_static_fd = xyes; then
20883 STATIC_FD="static-bacula-fd"
20887 # Check whether --enable-static-sd was given.
20888 if test "${enable_static_sd+set}" = set; then :
20889 enableval=$enable_static_sd;
20890 if test x$enableval = xyes; then
20891 if test x$use_libtool = xyes; then
20892 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20893 please rerun configure with --disable-libtool" "$LINENO" 5
20895 support_static_sd=yes
20903 if test x$support_static_sd = xyes; then
20904 STATIC_SD="static-bacula-sd"
20908 # Check whether --enable-static-dir was given.
20909 if test "${enable_static_dir+set}" = set; then :
20910 enableval=$enable_static_dir;
20911 if test x$enableval = xyes; then
20912 if test x$use_libtool = xyes; then
20913 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20914 please rerun configure with --disable-libtool" "$LINENO" 5
20916 support_static_dir=yes
20924 if test x$support_static_dir = xyes; then
20925 STATIC_DIR="static-bacula-dir"
20929 # Check whether --enable-static-cons was given.
20930 if test "${enable_static_cons+set}" = set; then :
20931 enableval=$enable_static_cons;
20932 if test x$enableval = xyes; then
20933 if test x$use_libtool = xyes; then
20934 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20935 please rerun configure with --disable-libtool" "$LINENO" 5
20937 support_static_cons=yes
20947 if test x$support_static_cons = xyes; then
20948 STATIC_CONS="static-bconsole"
20949 STATIC_GNOME_CONS="static-bgnome-console"
20950 STATIC_WX_CONS="static-bwx-console"
20956 # Check whether --enable-client-only was given.
20957 if test "${enable_client_only+set}" = set; then :
20958 enableval=$enable_client_only;
20959 if test x$enableval = xyes; then
20960 build_client_only=yes
20968 if test x$build_client_only = xno; then
20975 # Check whether --enable-build-dird was given.
20976 if test "${enable_build_dird+set}" = set; then :
20977 enableval=$enable_build_dird;
20978 if test x$enableval = xno; then
20985 if test x$build_dird = xyes; then
20986 DIRD_DIR="src/dird"
20987 DIR_TOOLS="DIRTOOLS"
20990 DIR_TOOLS="NODIRTOOLS"
20995 # Check whether --enable-build-stored was given.
20996 if test "${enable_build_stored+set}" = set; then :
20997 enableval=$enable_build_stored;
20998 if test x$enableval = xno; then
21005 if test x$build_stored = xyes; then
21006 STORED_DIR="src/stored"
21012 # Check whether --enable-conio was given.
21013 if test "${enable_conio+set}" = set; then :
21014 enableval=$enable_conio;
21015 if test x$enableval = xno; then
21025 # Check whether --enable-ipv6 was given.
21026 if test "${enable_ipv6+set}" = set; then :
21027 enableval=$enable_ipv6;
21028 if test x$enableval = xno; then
21036 if test x$support_ipv6 = xyes; then
21037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h. */
21039 #include <sys/types.h>
21040 #include <sys/socket.h>
21041 #include <netinet/in.h>
21045 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21050 if ac_fn_c_try_link "$LINENO"; then :
21055 rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21059 if test x$support_ipv6 = xyes; then
21061 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21066 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21067 if test "x$ac_cv_header_curses_h" = xyes; then :
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21070 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21071 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21072 $as_echo_n "(cached) " >&6
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ltinfo $LIBS"
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21079 /* Override any GCC internal prototype to avoid an error.
21080 Use char because int might match the return type of a GCC
21081 builtin and then its argument prototype would still apply. */
21094 if ac_fn_c_try_link "$LINENO"; then :
21095 ac_cv_lib_tinfo_tgetent=yes
21097 ac_cv_lib_tinfo_tgetent=no
21099 rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21104 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21105 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21110 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21111 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21112 $as_echo_n "(cached) " >&6
21114 ac_check_lib_save_LIBS=$LIBS
21115 LIBS="-lncurses $LIBS"
21116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h. */
21119 /* Override any GCC internal prototype to avoid an error.
21120 Use char because int might match the return type of a GCC
21121 builtin and then its argument prototype would still apply. */
21134 if ac_fn_c_try_link "$LINENO"; then :
21135 ac_cv_lib_ncurses_tgetent=yes
21137 ac_cv_lib_ncurses_tgetent=no
21139 rm -f core conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21144 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21145 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21146 TERM_LIB="-lncurses"
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21150 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21151 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21152 $as_echo_n "(cached) " >&6
21154 ac_check_lib_save_LIBS=$LIBS
21155 LIBS="-ltermcap $LIBS"
21156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h. */
21159 /* Override any GCC internal prototype to avoid an error.
21160 Use char because int might match the return type of a GCC
21161 builtin and then its argument prototype would still apply. */
21174 if ac_fn_c_try_link "$LINENO"; then :
21175 ac_cv_lib_termcap_tgetent=yes
21177 ac_cv_lib_termcap_tgetent=no
21179 rm -f core conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21181 LIBS=$ac_check_lib_save_LIBS
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21184 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21185 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21186 TERM_LIB="-ltermcap"
21197 for ac_header in curses.h
21199 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21200 if test "x$ac_cv_header_curses_h" = xyes; then :
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_CURSES_H 1
21209 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21210 if test "x$ac_cv_header_term_h" = xyes; then :
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21212 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21213 if ${ac_cv_lib_curses_tgetent+:} false; then :
21214 $as_echo_n "(cached) " >&6
21216 ac_check_lib_save_LIBS=$LIBS
21217 LIBS="-lcurses $LIBS"
21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h. */
21221 /* Override any GCC internal prototype to avoid an error.
21222 Use char because int might match the return type of a GCC
21223 builtin and then its argument prototype would still apply. */
21236 if ac_fn_c_try_link "$LINENO"; then :
21237 ac_cv_lib_curses_tgetent=yes
21239 ac_cv_lib_curses_tgetent=no
21241 rm -f core conftest.err conftest.$ac_objext \
21242 conftest$ac_exeext conftest.$ac_ext
21243 LIBS=$ac_check_lib_save_LIBS
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21246 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21247 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21248 TERM_LIB="-lcurses"
21262 if test x$support_conio = xyes; then
21263 if test x$TERM_LIB != x; then
21264 CONS_LIBS=$TERM_LIB
21268 support_readline=no
21270 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21273 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21278 # Check whether --enable-readline was given.
21279 if test "${enable_readline+set}" = set; then :
21280 enableval=$enable_readline;
21281 if test x$enableval = xno; then
21282 support_readline=no
21288 if test x$TERM_LIB = x ; then
21289 support_readline=no
21294 if test x$support_readline = xyes; then
21296 # Check whether --with-readline was given.
21297 if test "${with_readline+set}" = set; then :
21298 withval=$with_readline;
21299 case "$with_readline" in
21304 if test -f ${with_readline}/readline.h; then
21305 CONS_INC="-I${with_readline}"
21306 CONS_LDFLAGS="-L$with_readline"
21307 elif test -f ${with_readline}/include/readline/readline.h; then
21308 CONS_INC="-I${with_readline}/include/readline"
21309 CONS_LDFLAGS="-L${with_readline}/lib"
21310 with_readline="${with_readline}/include/readline"
21312 with_readline="/usr/include/readline"
21315 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21316 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21320 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21322 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21328 echo "readline.h not found. readline turned off ..."
21340 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21341 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21344 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21347 CONS_INC="-I/usr/include/readline"
21348 CONS_LIBS="-lreadline $TERM_LIB"
21352 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21353 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21357 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21360 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21361 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21362 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21363 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21368 echo "readline.h not found. readline turned off ..."
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21397 if ${ac_cv_header_stat_broken+:} false; then :
21398 $as_echo_n "(cached) " >&6
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21402 #include <sys/types.h>
21403 #include <sys/stat.h>
21405 #if defined S_ISBLK && defined S_IFDIR
21406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21409 #if defined S_ISBLK && defined S_IFCHR
21410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21413 #if defined S_ISLNK && defined S_IFREG
21414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21417 #if defined S_ISSOCK && defined S_IFREG
21418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21422 if ac_fn_c_try_compile "$LINENO"; then :
21423 ac_cv_header_stat_broken=no
21425 ac_cv_header_stat_broken=yes
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21430 $as_echo "$ac_cv_header_stat_broken" >&6; }
21431 if test $ac_cv_header_stat_broken = yes; then
21433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21437 ac_header_dirent=no
21438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21439 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21441 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21442 if eval \${$as_ac_Header+:} false; then :
21443 $as_echo_n "(cached) " >&6
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h. */
21447 #include <sys/types.h>
21459 if ac_fn_c_try_compile "$LINENO"; then :
21460 eval "$as_ac_Header=yes"
21462 eval "$as_ac_Header=no"
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466 eval ac_res=\$$as_ac_Header
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21468 $as_echo "$ac_res" >&6; }
21469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21470 cat >>confdefs.h <<_ACEOF
21471 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21474 ac_header_dirent=$ac_hdr; break
21478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21479 if test $ac_header_dirent = dirent.h; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21481 $as_echo_n "checking for library containing opendir... " >&6; }
21482 if ${ac_cv_search_opendir+:} false; then :
21483 $as_echo_n "(cached) " >&6
21485 ac_func_search_save_LIBS=$LIBS
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21489 /* Override any GCC internal prototype to avoid an error.
21490 Use char because int might match the return type of a GCC
21491 builtin and then its argument prototype would still apply. */
21504 for ac_lib in '' dir; do
21505 if test -z "$ac_lib"; then
21506 ac_res="none required"
21509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21511 if ac_fn_c_try_link "$LINENO"; then :
21512 ac_cv_search_opendir=$ac_res
21514 rm -f core conftest.err conftest.$ac_objext \
21516 if ${ac_cv_search_opendir+:} false; then :
21520 if ${ac_cv_search_opendir+:} false; then :
21523 ac_cv_search_opendir=no
21525 rm conftest.$ac_ext
21526 LIBS=$ac_func_search_save_LIBS
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21529 $as_echo "$ac_cv_search_opendir" >&6; }
21530 ac_res=$ac_cv_search_opendir
21531 if test "$ac_res" != no; then :
21532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21538 $as_echo_n "checking for library containing opendir... " >&6; }
21539 if ${ac_cv_search_opendir+:} false; then :
21540 $as_echo_n "(cached) " >&6
21542 ac_func_search_save_LIBS=$LIBS
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21561 for ac_lib in '' x; do
21562 if test -z "$ac_lib"; then
21563 ac_res="none required"
21566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21568 if ac_fn_c_try_link "$LINENO"; then :
21569 ac_cv_search_opendir=$ac_res
21571 rm -f core conftest.err conftest.$ac_objext \
21573 if ${ac_cv_search_opendir+:} false; then :
21577 if ${ac_cv_search_opendir+:} false; then :
21580 ac_cv_search_opendir=no
21582 rm conftest.$ac_ext
21583 LIBS=$ac_func_search_save_LIBS
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21586 $as_echo "$ac_cv_search_opendir" >&6; }
21587 ac_res=$ac_cv_search_opendir
21588 if test "$ac_res" != no; then :
21589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21595 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21600 cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21607 for ac_func in nanosleep nl_langinfo
21609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21612 cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21619 for ac_header in varargs.h
21621 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21622 if test "x$ac_cv_header_varargs_h" = xyes; then :
21623 cat >>confdefs.h <<_ACEOF
21624 #define HAVE_VARARGS_H 1
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21634 $as_echo_n "checking for Python support... " >&6; }
21636 # Check whether --with-python was given.
21637 if test "${with_python+set}" = set; then :
21638 withval=$with_python;
21641 if test "$withval" != "no"; then
21642 if test "$withval" = "yes"; then
21643 if test -e /usr/bin/python-config ; then
21644 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21645 PYTHON_LIBS=`/usr/bin/python-config --libs`
21647 for python_root in /usr /usr/local /usr/sfw; do
21648 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21649 if test -f $python_root/include/${ver}/Python.h; then
21650 PYTHON_INCDIR=-I$python_root/include/${ver}
21651 if test -d $python_root/lib64/${ver}/config; then
21652 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21654 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21661 if test x$PYTHON_INCDIR = x; then
21662 if test -f $prefix/include/Python.h; then
21663 PYTHON_INCDIR=-I$prefix/include
21664 if test -d $prefix/lib64/config; then
21665 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21667 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21677 if test -e $withval/bin/python-config ; then
21678 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21679 PYTHON_LIBS=`$withval/bin/python-config --libs`
21680 elif test -f $withval/Python.h; then
21681 PYTHON_INCDIR=-I$withval
21682 PYTHON_LIBS="-L$withval/config -lpython"
21683 elif test -f $withval/include/Python.h; then
21684 PYTHON_INCDIR=-I$withval/include
21685 if test -d $withval/lib64/config; then
21686 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21688 PYTHON_LIBS="-L$withval/lib/config -lpython"
21690 elif test -f $withval/include/python/Python.h; then
21691 PYTHON_INCDIR=-I$withval/include/python
21692 if test -d $withval/lib64/python/config; then
21693 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21695 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21699 $as_echo "no" >&6; }
21700 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21704 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21707 $as_echo "yes" >&6; }
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21710 $as_echo "$as_me: checking for more Python libs" >&6;}
21711 saved_LIBS="$LIBS"; LIBS=
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21713 $as_echo_n "checking for library containing shm_open... " >&6; }
21714 if ${ac_cv_search_shm_open+:} false; then :
21715 $as_echo_n "(cached) " >&6
21717 ac_func_search_save_LIBS=$LIBS
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21721 /* Override any GCC internal prototype to avoid an error.
21722 Use char because int might match the return type of a GCC
21723 builtin and then its argument prototype would still apply. */
21731 return shm_open ();
21736 for ac_lib in '' rt; do
21737 if test -z "$ac_lib"; then
21738 ac_res="none required"
21741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21743 if ac_fn_c_try_link "$LINENO"; then :
21744 ac_cv_search_shm_open=$ac_res
21746 rm -f core conftest.err conftest.$ac_objext \
21748 if ${ac_cv_search_shm_open+:} false; then :
21752 if ${ac_cv_search_shm_open+:} false; then :
21755 ac_cv_search_shm_open=no
21757 rm conftest.$ac_ext
21758 LIBS=$ac_func_search_save_LIBS
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21761 $as_echo "$ac_cv_search_shm_open" >&6; }
21762 ac_res=$ac_cv_search_shm_open
21763 if test "$ac_res" != no; then :
21764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21769 $as_echo_n "checking for openpty in -lutil... " >&6; }
21770 if ${ac_cv_lib_util_openpty+:} false; then :
21771 $as_echo_n "(cached) " >&6
21773 ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lutil $LIBS"
21775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* end confdefs.h. */
21778 /* Override any GCC internal prototype to avoid an error.
21779 Use char because int might match the return type of a GCC
21780 builtin and then its argument prototype would still apply. */
21793 if ac_fn_c_try_link "$LINENO"; then :
21794 ac_cv_lib_util_openpty=yes
21796 ac_cv_lib_util_openpty=no
21798 rm -f core conftest.err conftest.$ac_objext \
21799 conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_lib_save_LIBS
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21803 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21804 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21805 cat >>confdefs.h <<_ACEOF
21806 #define HAVE_LIBUTIL 1
21809 LIBS="-lutil $LIBS"
21813 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21817 $as_echo "no" >&6; }
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 $as_echo "no" >&6; }
21831 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21832 if test "x$ac_cv_func_socket" = xyes; then :
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21834 $as_echo "using libc's socket" >&6; }
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21837 $as_echo_n "checking for socket in -lxnet... " >&6; }
21838 if ${ac_cv_lib_xnet_socket+:} false; then :
21839 $as_echo_n "(cached) " >&6
21841 ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lxnet $LIBS"
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h. */
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21861 if ac_fn_c_try_link "$LINENO"; then :
21862 ac_cv_lib_xnet_socket=yes
21864 ac_cv_lib_xnet_socket=no
21866 rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21871 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21872 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21873 cat >>confdefs.h <<_ACEOF
21874 #define HAVE_LIBXNET 1
21877 LIBS="-lxnet $LIBS"
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21882 $as_echo_n "checking for socket in -lsocket... " >&6; }
21883 if ${ac_cv_lib_socket_socket+:} false; then :
21884 $as_echo_n "(cached) " >&6
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lsocket $LIBS"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21891 /* Override any GCC internal prototype to avoid an error.
21892 Use char because int might match the return type of a GCC
21893 builtin and then its argument prototype would still apply. */
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 ac_cv_lib_socket_socket=yes
21909 ac_cv_lib_socket_socket=no
21911 rm -f core conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21913 LIBS=$ac_check_lib_save_LIBS
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21916 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21917 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21918 cat >>confdefs.h <<_ACEOF
21919 #define HAVE_LIBSOCKET 1
21922 LIBS="-lsocket $LIBS"
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21927 $as_echo_n "checking for socket in -linet... " >&6; }
21928 if ${ac_cv_lib_inet_socket+:} false; then :
21929 $as_echo_n "(cached) " >&6
21931 ac_check_lib_save_LIBS=$LIBS
21932 LIBS="-linet $LIBS"
21933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h. */
21936 /* Override any GCC internal prototype to avoid an error.
21937 Use char because int might match the return type of a GCC
21938 builtin and then its argument prototype would still apply. */
21951 if ac_fn_c_try_link "$LINENO"; then :
21952 ac_cv_lib_inet_socket=yes
21954 ac_cv_lib_inet_socket=no
21956 rm -f core conftest.err conftest.$ac_objext \
21957 conftest$ac_exeext conftest.$ac_ext
21958 LIBS=$ac_check_lib_save_LIBS
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21961 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21962 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_LIBINET 1
21967 LIBS="-linet $LIBS"
21977 # Check whether --with-tcp-wrappers was given.
21978 if test "${with_tcp_wrappers+set}" = set; then :
21979 withval=$with_tcp_wrappers;
21980 if test "x$withval" != "xno" ; then
21982 LIBS="$saved_LIBS -lwrap"
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21984 $as_echo_n "checking for library containing nanosleep... " >&6; }
21985 if ${ac_cv_search_nanosleep+:} false; then :
21986 $as_echo_n "(cached) " >&6
21988 ac_func_search_save_LIBS=$LIBS
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
22002 return nanosleep ();
22007 for ac_lib in '' rt; do
22008 if test -z "$ac_lib"; then
22009 ac_res="none required"
22012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22014 if ac_fn_c_try_link "$LINENO"; then :
22015 ac_cv_search_nanosleep=$ac_res
22017 rm -f core conftest.err conftest.$ac_objext \
22019 if ${ac_cv_search_nanosleep+:} false; then :
22023 if ${ac_cv_search_nanosleep+:} false; then :
22026 ac_cv_search_nanosleep=no
22028 rm conftest.$ac_ext
22029 LIBS=$ac_func_search_save_LIBS
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22032 $as_echo "$ac_cv_search_nanosleep" >&6; }
22033 ac_res=$ac_cv_search_nanosleep
22034 if test "$ac_res" != no; then :
22035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22040 $as_echo_n "checking for libwrap... " >&6; }
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22044 #include <sys/types.h>
22046 int deny_severity = 0;
22047 int allow_severity = 0;
22048 struct request_info *req;
22060 if ac_fn_c_try_link "$LINENO"; then :
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22063 $as_echo "yes" >&6; }
22065 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22073 LIBS="$saved_LIBS -lwrap -lnsl"
22074 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22078 #include <sys/types.h>
22080 int deny_severity = 0;
22081 int allow_severity = 0;
22082 struct request_info *req;
22094 if ac_fn_c_try_link "$LINENO"; then :
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22097 $as_echo "yes" >&6; }
22099 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22107 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22111 rm -f core conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22116 rm -f core conftest.err conftest.$ac_objext \
22117 conftest$ac_exeext conftest.$ac_ext
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22125 $as_echo_n "checking for OpenSSL... " >&6; }
22127 # Check whether --with-openssl was given.
22128 if test "${with_openssl+set}" = set; then :
22129 withval=$with_openssl;
22130 with_openssl_directory=${withval}
22136 if test "x$with_openssl_directory" != "xno"; then
22137 OPENSSL_LIBS="-lssl -lcrypto"
22140 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22142 # Make sure the $with_openssl_directory also makes sense
22144 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22145 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22146 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22150 saved_LIBS="${LIBS}"
22151 saved_CFLAGS="${CFLAGS}"
22152 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22153 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h. */
22158 #include <openssl/ssl.h>
22164 CRYPTO_set_id_callback(NULL);
22170 if ac_fn_c_try_link "$LINENO"; then :
22173 support_crypto="yes"
22178 support_crypto="no"
22182 rm -f core conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h. */
22188 #include <openssl/evp.h>
22200 if ac_fn_c_try_link "$LINENO"; then :
22202 ac_cv_openssl_sha2="yes"
22206 ac_cv_openssl_sha2="no"
22210 rm -f core conftest.err conftest.$ac_objext \
22211 conftest$ac_exeext conftest.$ac_ext
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22216 #include <openssl/evp.h>
22228 if ac_fn_c_try_link "$LINENO"; then :
22230 ac_cv_openssl_export="no"
22234 ac_cv_openssl_export="yes"
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22241 if test "$support_tls" = "yes"; then
22243 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22246 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22249 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22253 if test "$ac_cv_openssl_sha2" = "yes"; then
22255 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22259 if test "$ac_cv_openssl_export" = "yes"; then
22261 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22265 if test "$support_crypto" = "yes"; then
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22267 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22268 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22269 $as_echo_n "(cached) " >&6
22271 ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lcrypto $LIBS"
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22282 char EVP_PKEY_encrypt_old ();
22286 return EVP_PKEY_encrypt_old ();
22291 if ac_fn_c_try_link "$LINENO"; then :
22292 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22294 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22296 rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22298 LIBS=$ac_check_lib_save_LIBS
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22301 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22302 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22304 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22310 LIBS="${saved_LIBS}"
22311 CFLAGS="${saved_CFLAGS}"
22314 support_crypto="no"
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22319 $as_echo "$support_tls" >&6; }
22321 if test "$support_tls" = "no"; then
22325 if test "$support_crypto" = "no"; then
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22334 $as_echo_n "checking for library containing dlopen... " >&6; }
22335 if ${ac_cv_search_dlopen+:} false; then :
22336 $as_echo_n "(cached) " >&6
22338 ac_func_search_save_LIBS=$LIBS
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22342 /* Override any GCC internal prototype to avoid an error.
22343 Use char because int might match the return type of a GCC
22344 builtin and then its argument prototype would still apply. */
22357 for ac_lib in '' dl; do
22358 if test -z "$ac_lib"; then
22359 ac_res="none required"
22362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22364 if ac_fn_c_try_link "$LINENO"; then :
22365 ac_cv_search_dlopen=$ac_res
22367 rm -f core conftest.err conftest.$ac_objext \
22369 if ${ac_cv_search_dlopen+:} false; then :
22373 if ${ac_cv_search_dlopen+:} false; then :
22376 ac_cv_search_dlopen=no
22378 rm conftest.$ac_ext
22379 LIBS=$ac_func_search_save_LIBS
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22382 $as_echo "$ac_cv_search_dlopen" >&6; }
22383 ac_res=$ac_cv_search_dlopen
22384 if test "$ac_res" != no; then :
22385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22390 working_dir=`eval echo ${prefix}/var/bacula/working`
22392 # Check whether --with-working-dir was given.
22393 if test "${with_working_dir+set}" = set; then :
22394 withval=$with_working_dir;
22395 if test "x$withval" != "xno" ; then
22396 working_dir=$withval
22407 # Check whether --with-archivedir was given.
22408 if test "${with_archivedir+set}" = set; then :
22409 withval=$with_archivedir;
22410 if test "x$withval" != "xno" ; then
22411 archivedir=$withval
22420 basename=`hostname`
22422 # Check whether --with-basename was given.
22423 if test "${with_basename+set}" = set; then :
22424 withval=$with_basename;
22425 if test "x$withval" != "xno" ; then
22435 hostname=`uname -n | cut -d '.' -f 1`
22436 if test x${hostname} = x ; then
22437 hostname="localhost"
22440 # Check whether --with-hostname was given.
22441 if test "${with_hostname+set}" = set; then :
22442 withval=$with_hostname;
22443 if test "x$withval" != "xno" ; then
22454 scriptdir=`eval echo ${sysconfdir}`
22456 # Check whether --with-scriptdir was given.
22457 if test "${with_scriptdir+set}" = set; then :
22458 withval=$with_scriptdir;
22459 if test "x$withval" != "xno" ; then
22472 # Check whether --with-bsrdir was given.
22473 if test "${with_bsrdir+set}" = set; then :
22474 withval=$with_bsrdir;
22475 if test "x$withval" != "xno" ; then
22487 # Check whether --with-logdir was given.
22488 if test "${with_logdir+set}" = set; then :
22489 withval=$with_logdir;
22490 if test "x$withval" != "xno" ; then
22501 # ------------------------------------------
22502 # Where to place plugindir (plugin files)
22503 # ------------------------------------------
22504 plugindir=`eval echo ${libdir}`
22506 # Check whether --with-plugindir was given.
22507 if test "${with_plugindir+set}" = set; then :
22508 withval=$with_plugindir;
22509 if test "x$withval" != "xno" ; then
22519 dump_email=root@localhost
22521 # Check whether --with-dump-email was given.
22522 if test "${with_dump_email+set}" = set; then :
22523 withval=$with_dump_email;
22524 if test "x$withval" != "xno" ; then
22525 dump_email=$withval
22534 job_email=root@localhost
22536 # Check whether --with-job-email was given.
22537 if test "${with_job_email+set}" = set; then :
22538 withval=$with_job_email;
22539 if test "x$withval" != "xno" ; then
22549 smtp_host=localhost
22551 # Check whether --with-smtp_host was given.
22552 if test "${with_smtp_host+set}" = set; then :
22553 withval=$with_smtp_host;
22554 if test "x$withval" != "xno" ; then
22566 # Check whether --with-pid-dir was given.
22567 if test "${with_pid_dir+set}" = set; then :
22568 withval=$with_pid_dir;
22569 if test "x$withval" != "xno" ; then
22577 cat >>confdefs.h <<_ACEOF
22578 #define _PATH_BACULA_PIDDIR "$piddir"
22583 subsysdir=/var/run/subsys
22584 if test -d /var/run/subsys; then
22585 subsysdir=/var/run/subsys
22586 elif test -d /var/lock/subsys; then
22587 subsysdir=/var/lock/subsys
22589 subsysdir=/var/run/subsys
22592 # Check whether --with-subsys-dir was given.
22593 if test "${with_subsys_dir+set}" = set; then :
22594 withval=$with_subsys_dir;
22595 if test "x$withval" != "xno" ; then
22607 # Check whether --with-baseport was given.
22608 if test "${with_baseport+set}" = set; then :
22609 withval=$with_baseport;
22610 if test "x$withval" != "xno" ; then
22619 dir_port=`expr $baseport`
22620 fd_port=`expr $baseport + 1`
22621 sd_port=`expr $fd_port + 1`
22629 # Check whether --with-dir-password was given.
22630 if test "${with_dir_password+set}" = set; then :
22631 withval=$with_dir_password;
22632 if test "x$withval" != "xno" ; then
22633 dir_password=$withval
22640 if test "x$dir_password" = "x" ; then
22641 if test "x$OPENSSL" = "xnone" ; then
22642 key=`autoconf/randpass 33`
22644 key=`openssl rand -base64 33`
22651 # Check whether --with-fd-password was given.
22652 if test "${with_fd_password+set}" = set; then :
22653 withval=$with_fd_password;
22654 if test "x$withval" != "xno" ; then
22655 fd_password=$withval
22662 if test "x$fd_password" = "x" ; then
22663 if test "x$OPENSSL" = "xnone" ; then
22664 key=`autoconf/randpass 37`
22666 key=`openssl rand -base64 33`
22673 # Check whether --with-sd-password was given.
22674 if test "${with_sd_password+set}" = set; then :
22675 withval=$with_sd_password;
22676 if test "x$withval" != "xno" ; then
22677 sd_password=$withval
22684 if test "x$sd_password" = "x" ; then
22685 if test "x$OPENSSL" = "xnone" ; then
22686 key=`autoconf/randpass 41`
22688 key=`openssl rand -base64 33`
22695 # Check whether --with-mon-dir-password was given.
22696 if test "${with_mon_dir_password+set}" = set; then :
22697 withval=$with_mon_dir_password;
22698 if test "x$withval" != "xno" ; then
22699 mon_dir_password=$withval
22706 if test "x$mon_dir_password" = "x" ; then
22707 if test "x$OPENSSL" = "xnone" ; then
22708 key=`autoconf/randpass 33`
22710 key=`openssl rand -base64 33`
22712 mon_dir_password=$key
22717 # Check whether --with-mon-fd-password was given.
22718 if test "${with_mon_fd_password+set}" = set; then :
22719 withval=$with_mon_fd_password;
22720 if test "x$withval" != "xno" ; then
22721 mon_fd_password=$withval
22728 if test "x$mon_fd_password" = "x" ; then
22729 if test "x$OPENSSL" = "xnone" ; then
22730 key=`autoconf/randpass 37`
22732 key=`openssl rand -base64 33`
22734 mon_fd_password=$key
22739 # Check whether --with-mon-sd-password was given.
22740 if test "${with_mon_sd_password+set}" = set; then :
22741 withval=$with_mon_sd_password;
22742 if test "x$withval" != "xno" ; then
22743 mon_sd_password=$withval
22750 if test "x$mon_sd_password" = "x" ; then
22751 if test "x$OPENSSL" = "xnone" ; then
22752 key=`autoconf/randpass 41`
22754 key=`openssl rand -base64 33`
22756 mon_sd_password=$key
22768 # Check whether --with-db_name was given.
22769 if test "${with_db_name+set}" = set; then :
22770 withval=$with_db_name;
22771 if test "x$withval" != "x" ; then
22782 # Check whether --with-db_user was given.
22783 if test "${with_db_user+set}" = set; then :
22784 withval=$with_db_user;
22785 if test "x$withval" != "x" ; then
22796 # Check whether --with-db_password was given.
22797 if test "${with_db_password+set}" = set; then :
22798 withval=$with_db_password;
22799 if test "x$withval" != "x" ; then
22800 db_password=$withval
22810 # Check whether --with-db_port was given.
22811 if test "${with_db_port+set}" = set; then :
22812 withval=$with_db_port;
22813 if test "x$withval" != "x" ; then
22823 # Handle users and groups for each daemon
22827 # Check whether --with-dir_user was given.
22828 if test "${with_dir_user+set}" = set; then :
22829 withval=$with_dir_user;
22830 if test "x$withval" != "x" ; then
22840 # Check whether --with-dir_group was given.
22841 if test "${with_dir_group+set}" = set; then :
22842 withval=$with_dir_group;
22843 if test "x$withval" != "x" ; then
22853 # Check whether --with-sd_user was given.
22854 if test "${with_sd_user+set}" = set; then :
22855 withval=$with_sd_user;
22856 if test "x$withval" != "x" ; then
22866 # Check whether --with-sd_group was given.
22867 if test "${with_sd_group+set}" = set; then :
22868 withval=$with_sd_group;
22869 if test "x$withval" != "x" ; then
22879 # Check whether --with-fd_user was given.
22880 if test "${with_fd_user+set}" = set; then :
22881 withval=$with_fd_user;
22882 if test "x$withval" != "x" ; then
22892 # Check whether --with-fd_group was given.
22893 if test "${with_fd_group+set}" = set; then :
22894 withval=$with_fd_group;
22895 if test "x$withval" != "x" ; then
22912 # Check whether --with-sbin-perm was given.
22913 if test "${with_sbin_perm+set}" = set; then :
22914 withval=$with_sbin_perm;
22915 if test "x$withval" != "x" ; then
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22927 $as_echo_n "checking for PostgreSQL support... " >&6; }
22929 # Check whether --with-postgresql was given.
22930 if test "${with_postgresql+set}" = set; then :
22931 withval=$with_postgresql;
22932 if test "$withval" != "no"; then
22933 if test "$withval" = "yes"; then
22934 PG_CONFIG=`which pg_config`
22935 if test -n "$PG_CONFIG"; then
22936 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22937 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22938 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22939 elif test -f /usr/local/include/libpq-fe.h; then
22940 POSTGRESQL_INCDIR=/usr/local/include
22941 if test -d /usr/local/lib64; then
22942 POSTGRESQL_LIBDIR=/usr/local/lib64
22944 POSTGRESQL_LIBDIR=/usr/local/lib
22946 POSTGRESQL_BINDIR=/usr/local/bin
22947 elif test -f /usr/include/libpq-fe.h; then
22948 POSTGRESQL_INCDIR=/usr/include
22949 if test -d /usr/lib64; then
22950 POSTGRESQL_LIBDIR=/usr/lib64
22952 POSTGRESQL_LIBDIR=/usr/lib
22954 POSTGRESQL_BINDIR=/usr/bin
22955 elif test -f /usr/include/pgsql/libpq-fe.h; then
22956 POSTGRESQL_INCDIR=/usr/include/pgsql
22957 if test -d /usr/lib64/pgsql; then
22958 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22960 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22962 POSTGRESQL_BINDIR=/usr/bin
22963 elif test -f /usr/include/postgresql/libpq-fe.h; then
22964 POSTGRESQL_INCDIR=/usr/include/postgresql
22965 if test -d /usr/lib64/postgresql; then
22966 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22968 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22970 POSTGRESQL_BINDIR=/usr/bin
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22974 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22976 elif test -f $withval/include/libpq-fe.h; then
22977 POSTGRESQL_INCDIR=$withval/include
22978 POSTGRESQL_LIBDIR=$withval/lib
22979 POSTGRESQL_BINDIR=$withval/bin
22980 elif test -f $withval/include/postgresql/libpq-fe.h; then
22981 POSTGRESQL_INCDIR=$withval/include/postgresql
22982 if test -d $withval/lib64; then
22983 POSTGRESQL_LIBDIR=$withval/lib64
22985 POSTGRESQL_LIBDIR=$withval/lib
22987 POSTGRESQL_BINDIR=$withval/bin
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22990 $as_echo "no" >&6; }
22991 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22994 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22997 $as_echo "yes" >&6; }
22999 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23000 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23001 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23002 if test "x$ac_cv_func_crypt" = xyes; then :
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23006 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23007 if ${ac_cv_lib_crypt_crypt+:} false; then :
23008 $as_echo_n "(cached) " >&6
23010 ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-lcrypt $LIBS"
23012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23013 /* end confdefs.h. */
23015 /* Override any GCC internal prototype to avoid an error.
23016 Use char because int might match the return type of a GCC
23017 builtin and then its argument prototype would still apply. */
23030 if ac_fn_c_try_link "$LINENO"; then :
23031 ac_cv_lib_crypt_crypt=yes
23033 ac_cv_lib_crypt_crypt=no
23035 rm -f core conftest.err conftest.$ac_objext \
23036 conftest$ac_exeext conftest.$ac_ext
23037 LIBS=$ac_check_lib_save_LIBS
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23040 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23041 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23042 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23047 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23048 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23050 if test -z "${db_backends}"; then
23051 db_backends="PostgreSQL"
23053 db_backends="${db_backends} PostgreSQL"
23055 if test -z "${DB_BACKENDS}"; then
23056 DB_BACKENDS="postgresql"
23058 DB_BACKENDS="${DB_BACKENDS} postgresql"
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23062 $as_echo "no" >&6; }
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23068 $as_echo "no" >&6; }
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23080 $as_echo_n "checking for MySQL support... " >&6; }
23082 # Check whether --with-mysql was given.
23083 if test "${with_mysql+set}" = set; then :
23084 withval=$with_mysql;
23085 if test "$withval" != "no"; then
23086 if test "$withval" = "yes"; then
23087 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23088 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23089 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23090 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23091 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23093 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23095 MYSQL_BINDIR=/usr/local/mysql/bin
23096 elif test -f /usr/include/mysql/mysql.h; then
23097 MYSQL_INCDIR=/usr/include/mysql
23098 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23099 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23100 MYSQL_LIBDIR=/usr/lib64/mysql
23101 elif test -f /usr/lib64/libmysqlclient_r.a \
23102 -o -f /usr/lib64/libmysqlclient_r.so; then
23103 MYSQL_LIBDIR=/usr/lib64
23104 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23105 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23106 MYSQL_LIBDIR=/usr/lib/mysql
23108 MYSQL_LIBDIR=/usr/lib
23110 MYSQL_BINDIR=/usr/bin
23111 elif test -f /usr/include/mysql.h; then
23112 MYSQL_INCDIR=/usr/include
23113 if test -f /usr/lib64/libmysqlclient_r.a \
23114 -o -f /usr/lib64/libmysqlclient_r.so; then
23115 MYSQL_LIBDIR=/usr/lib64
23117 MYSQL_LIBDIR=/usr/lib
23119 MYSQL_BINDIR=/usr/bin
23120 elif test -f /usr/local/include/mysql/mysql.h; then
23121 MYSQL_INCDIR=/usr/local/include/mysql
23122 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23123 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23124 MYSQL_LIBDIR=/usr/local/lib64/mysql
23126 MYSQL_LIBDIR=/usr/local/lib/mysql
23128 MYSQL_BINDIR=/usr/local/bin
23129 elif test -f /usr/local/include/mysql.h; then
23130 MYSQL_INCDIR=/usr/local/include
23131 if test -f /usr/local/lib64/libmysqlclient_r.a \
23132 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23133 MYSQL_LIBDIR=/usr/local/lib64
23135 MYSQL_LIBDIR=/usr/local/lib
23137 MYSQL_BINDIR=/usr/local/bin
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23144 if test -f $withval/include/mysql/mysql.h; then
23145 MYSQL_INCDIR=$withval/include/mysql
23146 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23147 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23148 MYSQL_LIBDIR=$withval/lib64/mysql
23149 elif test -f $withval/lib64/libmysqlclient_r.a \
23150 -o -f $withval/lib64/libmysqlclient_r.so; then
23151 MYSQL_LIBDIR=$withval/lib64
23152 elif test -f $withval/lib/libmysqlclient_r.a \
23153 -o -f $withval/lib/libmysqlclient_r.so; then
23154 MYSQL_LIBDIR=$withval/lib
23156 MYSQL_LIBDIR=$withval/lib/mysql
23158 MYSQL_BINDIR=$withval/bin
23159 elif test -f $withval/include/mysql.h; then
23160 MYSQL_INCDIR=$withval/include
23161 if test -f $withval/lib64/libmysqlclient_r.a \
23162 -o -f $withval/lib64/libmysqlclient_r.so; then
23163 MYSQL_LIBDIR=$withval/lib64
23165 MYSQL_LIBDIR=$withval/lib
23167 MYSQL_BINDIR=$withval/bin
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23170 $as_echo "no" >&6; }
23171 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23174 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23175 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23176 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23177 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23179 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23181 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23183 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23186 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189 $as_echo "yes" >&6; }
23191 if test -z "${db_backends}" ; then
23192 db_backends="MySQL"
23194 db_backends="${db_backends} MySQL"
23196 if test -z "${DB_BACKENDS}" ; then
23197 DB_BACKENDS="mysql"
23199 DB_BACKENDS="${DB_BACKENDS} mysql"
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23203 $as_echo "no" >&6; }
23211 # Check whether --with-embedded-mysql was given.
23212 if test "${with_embedded_mysql+set}" = set; then :
23213 withval=$with_embedded_mysql;
23214 if test "$withval" != "no"; then
23215 if test "$withval" = "yes"; then
23216 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23217 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23218 if test -d /usr/local/mysql/lib64/mysql; then
23219 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23221 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23223 MYSQL_BINDIR=/usr/local/mysql/bin
23224 elif test -f /usr/include/mysql/mysql.h; then
23225 MYSQL_INCDIR=/usr/include/mysql
23226 if test -d /usr/lib64/mysql; then
23227 MYSQL_LIBDIR=/usr/lib64/mysql
23229 MYSQL_LIBDIR=/usr/lib/mysql
23231 MYSQL_BINDIR=/usr/bin
23232 elif test -f /usr/include/mysql.h; then
23233 MYSQL_INCDIR=/usr/include
23234 if test -d /usr/lib64; then
23235 MYSQL_LIBDIR=/usr/lib64
23237 MYSQL_LIBDIR=/usr/lib
23239 MYSQL_BINDIR=/usr/bin
23240 elif test -f /usr/local/include/mysql/mysql.h; then
23241 MYSQL_INCDIR=/usr/local/include/mysql
23242 if test -d /usr/local/lib64/mysql; then
23243 MYSQL_LIBDIR=/usr/local/lib64/mysql
23245 MYSQL_LIBDIR=/usr/local/lib/mysql
23247 MYSQL_BINDIR=/usr/local/bin
23248 elif test -f /usr/local/include/mysql.h; then
23249 MYSQL_INCDIR=/usr/local/include
23250 if test -d /usr/local/lib64; then
23251 MYSQL_LIBDIR=/usr/local/lib64
23253 MYSQL_LIBDIR=/usr/local/lib
23255 MYSQL_BINDIR=/usr/local/bin
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23259 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23262 if test -f $withval/include/mysql/mysql.h; then
23263 MYSQL_INCDIR=$withval/include/mysql
23264 if test -d $withval/lib64/mysql; then
23265 MYSQL_LIBDIR=$withval/lib64/mysql
23267 MYSQL_LIBDIR=$withval/lib/mysql
23269 MYSQL_BINDIR=$withval/bin
23270 elif test -f $withval/include/mysql.h; then
23271 MYSQL_INCDIR=$withval/include
23272 if test -d $withval/lib64; then
23273 MYSQL_LIBDIR=$withval/lib64
23275 MYSQL_LIBDIR=$withval/lib
23277 MYSQL_BINDIR=$withval/bin
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23280 $as_echo "no" >&6; }
23281 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23284 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23285 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23286 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23287 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23290 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23293 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23296 $as_echo "yes" >&6; }
23298 if test -z "${db_backends}"; then
23299 db_backends="MySQL"
23301 db_backends="${db_backends} MySQL"
23303 if test -z "${DB_BACKENDS}"; then
23304 DB_BACKENDS="mysql"
23306 DB_BACKENDS="${DB_BACKENDS} mysql"
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23310 $as_echo "no" >&6; }
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23325 $as_echo_n "checking for SQLite3 support... " >&6; }
23327 # Check whether --with-sqlite3 was given.
23328 if test "${with_sqlite3+set}" = set; then :
23329 withval=$with_sqlite3;
23330 if test "$withval" != "no"; then
23331 if test "$withval" = "yes"; then
23332 if test -f /usr/local/include/sqlite3.h; then
23333 SQLITE_INCDIR=/usr/local/include
23334 if test -d /usr/local/lib64; then
23335 SQLITE_LIBDIR=/usr/local/lib64
23337 SQLITE_LIBDIR=/usr/local/lib
23339 SQLITE_BINDIR=/usr/local/bin
23340 elif test -f /usr/include/sqlite3.h; then
23341 SQLITE_INCDIR=/usr/include
23342 if test -d /usr/lib64; then
23343 SQLITE_LIBDIR=/usr/lib64
23345 SQLITE_LIBDIR=/usr/lib
23347 SQLITE_BINDIR=/usr/bin
23348 elif test -f $prefix/include/sqlite3.h; then
23349 SQLITE_INCDIR=$prefix/include
23350 if test -d $prefix/lib64; then
23351 SQLITE_LIBDIR=$prefix/lib64
23353 SQLITE_LIBDIR=$prefix/lib
23355 SQLITE_BINDIR=$prefix/bin
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23358 $as_echo "no" >&6; }
23359 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23362 if test -f $withval/sqlite3.h; then
23363 SQLITE_INCDIR=$withval
23364 SQLITE_LIBDIR=$withval
23365 SQLITE_BINDIR=$withval
23366 elif test -f $withval/include/sqlite3.h; then
23367 SQLITE_INCDIR=$withval/include
23368 if test -d $withval/lib64; then
23369 SQLITE_LIBDIR=$withval/lib64
23371 SQLITE_LIBDIR=$withval/lib
23373 SQLITE_BINDIR=$withval/bin
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23380 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23381 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23382 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23383 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23386 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23389 $as_echo "yes" >&6; }
23391 if test -z "${db_backends}"; then
23392 db_backends="SQLite3"
23394 db_backends="${db_backends} SQLite3"
23396 if test -z "${DB_BACKENDS}"; then
23397 DB_BACKENDS="sqlite3"
23399 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23409 $as_echo "no" >&6; }
23419 #BA_CHECK_INGRES_DB
23423 #BA_CHECK_DBI_DRIVER
23425 if test "x${db_backends}" = "x" ; then
23428 echo "You have not specified either --enable-client-only or one of the"
23429 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23430 echo "This is not permitted. Please reconfigure."
23432 echo "Aborting the configuration ..."
23438 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23440 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23441 if test x$use_libtool = xno; then
23442 SHARED_CATALOG_TARGETS=""
23444 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23448 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23450 if test x$use_libtool = xno; then
23453 echo "You have specified two or more of the"
23454 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23455 echo "This is not permitted when not using libtool Please reconfigure."
23457 echo "Aborting the configuration ..."
23463 SHARED_CATALOG_TARGETS=""
23464 for db_type in ${DB_BACKENDS}
23466 if test -z "${SHARED_CATALOG_TARGETS}"; then
23467 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23469 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23475 if test x$use_libtool = xyes; then
23484 support_batch_insert=yes
23485 # Check whether --enable-batch-insert was given.
23486 if test "${enable_batch_insert+set}" = set; then :
23487 enableval=$enable_batch_insert;
23488 if test x$enableval = xno; then
23489 support_batch_insert=no
23496 if test x$support_batch_insert = xyes; then
23498 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23502 if test ! -z "$MYSQL_LIB"; then
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23504 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23505 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23506 $as_echo_n "(cached) " >&6
23508 ac_check_lib_save_LIBS=$LIBS
23509 LIBS="-lmysql_r $LIBS"
23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511 /* end confdefs.h. */
23513 /* Override any GCC internal prototype to avoid an error.
23514 Use char because int might match the return type of a GCC
23515 builtin and then its argument prototype would still apply. */
23519 char mysql_thread_safe ();
23523 return mysql_thread_safe ();
23528 if ac_fn_c_try_link "$LINENO"; then :
23529 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23531 ac_cv_lib_mysql_r_mysql_thread_safe=no
23533 rm -f core conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
23535 LIBS=$ac_check_lib_save_LIBS
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23538 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23539 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23541 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23547 if test ! -z "SQLITE_LIB"; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23549 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23550 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23551 $as_echo_n "(cached) " >&6
23553 ac_check_lib_save_LIBS=$LIBS
23554 LIBS="-lsqlite3 $LIBS"
23555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h. */
23558 /* Override any GCC internal prototype to avoid an error.
23559 Use char because int might match the return type of a GCC
23560 builtin and then its argument prototype would still apply. */
23564 char sqlite3_threadsafe ();
23568 return sqlite3_threadsafe ();
23573 if ac_fn_c_try_link "$LINENO"; then :
23574 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23576 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23578 rm -f core conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23580 LIBS=$ac_check_lib_save_LIBS
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23583 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23584 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23586 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23592 if test ! -z "$POSTGRESQL_LIB"; then
23593 saved_LIBS="${LIBS}"
23594 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23597 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23598 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23599 $as_echo_n "(cached) " >&6
23601 ac_check_lib_save_LIBS=$LIBS
23603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604 /* end confdefs.h. */
23606 /* Override any GCC internal prototype to avoid an error.
23607 Use char because int might match the return type of a GCC
23608 builtin and then its argument prototype would still apply. */
23612 char PQisthreadsafe ();
23616 return PQisthreadsafe ();
23621 if ac_fn_c_try_link "$LINENO"; then :
23622 ac_cv_lib_pq_PQisthreadsafe=yes
23624 ac_cv_lib_pq_PQisthreadsafe=no
23626 rm -f core conftest.err conftest.$ac_objext \
23627 conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23631 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23632 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23634 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23639 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23640 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23641 $as_echo_n "(cached) " >&6
23643 ac_check_lib_save_LIBS=$LIBS
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23648 /* Override any GCC internal prototype to avoid an error.
23649 Use char because int might match the return type of a GCC
23650 builtin and then its argument prototype would still apply. */
23654 char PQputCopyData ();
23658 return PQputCopyData ();
23663 if ac_fn_c_try_link "$LINENO"; then :
23664 ac_cv_lib_pq_PQputCopyData=yes
23666 ac_cv_lib_pq_PQputCopyData=no
23668 rm -f core conftest.err conftest.$ac_objext \
23669 conftest$ac_exeext conftest.$ac_ext
23670 LIBS=$ac_check_lib_save_LIBS
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23673 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23674 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23676 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23680 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23681 if test $support_batch_insert = yes ; then
23683 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23688 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23690 echo "WARNING: Your PostgreSQL client library is too old to detect "
23691 echo "if it was compiled with --enable-thread-safety, consider to "
23692 echo "upgrade it in order to avoid problems with Batch insert mode"
23696 LIBS="${saved_LIBS}"
23699 if test ! -z "$DBI_LIBS"; then
23700 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23702 if test $DB_PROG = postgresql; then
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23704 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23705 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23706 $as_echo_n "(cached) " >&6
23708 ac_check_lib_save_LIBS=$LIBS
23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23711 /* end confdefs.h. */
23713 /* Override any GCC internal prototype to avoid an error.
23714 Use char because int might match the return type of a GCC
23715 builtin and then its argument prototype would still apply. */
23719 char PQisthreadsafe ();
23723 return PQisthreadsafe ();
23728 if ac_fn_c_try_link "$LINENO"; then :
23729 ac_cv_lib_pq_PQisthreadsafe=yes
23731 ac_cv_lib_pq_PQisthreadsafe=no
23733 rm -f core conftest.err conftest.$ac_objext \
23734 conftest$ac_exeext conftest.$ac_ext
23735 LIBS=$ac_check_lib_save_LIBS
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23738 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23739 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23740 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23745 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23746 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23747 $as_echo_n "(cached) " >&6
23749 ac_check_lib_save_LIBS=$LIBS
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23754 /* Override any GCC internal prototype to avoid an error.
23755 Use char because int might match the return type of a GCC
23756 builtin and then its argument prototype would still apply. */
23760 char PQputCopyData ();
23764 return PQputCopyData ();
23769 if ac_fn_c_try_link "$LINENO"; then :
23770 ac_cv_lib_pq_PQputCopyData=yes
23772 ac_cv_lib_pq_PQputCopyData=no
23774 rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23779 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23780 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23781 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23785 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23787 if test $pkg = 0; then
23788 if test $support_batch_insert = yes ; then
23790 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23801 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23804 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23805 if test -z "$CCOPTS"; then
23806 CCOPTS='-g -O2 -Wall'
23813 largefile_support="no"
23815 # Check whether --enable-largefile was given.
23816 if test "${enable_largefile+set}" = set; then :
23817 enableval=$enable_largefile;
23820 if test "$enable_largefile" != no; then
23821 if test -n "$ac_tool_prefix"; then
23822 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23823 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23825 $as_echo_n "checking for $ac_word... " >&6; }
23826 if ${ac_cv_prog_GETCONF+:} false; then :
23827 $as_echo_n "(cached) " >&6
23829 if test -n "$GETCONF"; then
23830 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23833 for as_dir in $PATH
23836 test -z "$as_dir" && as_dir=.
23837 for ac_exec_ext in '' $ac_executable_extensions; do
23838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23839 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23849 GETCONF=$ac_cv_prog_GETCONF
23850 if test -n "$GETCONF"; then
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23852 $as_echo "$GETCONF" >&6; }
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855 $as_echo "no" >&6; }
23860 if test -z "$ac_cv_prog_GETCONF"; then
23861 ac_ct_GETCONF=$GETCONF
23862 # Extract the first word of "getconf", so it can be a program name with args.
23863 set dummy getconf; ac_word=$2
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23865 $as_echo_n "checking for $ac_word... " >&6; }
23866 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
23867 $as_echo_n "(cached) " >&6
23869 if test -n "$ac_ct_GETCONF"; then
23870 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873 for as_dir in $PATH
23876 test -z "$as_dir" && as_dir=.
23877 for ac_exec_ext in '' $ac_executable_extensions; do
23878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23879 ac_cv_prog_ac_ct_GETCONF="getconf"
23880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23889 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23890 if test -n "$ac_ct_GETCONF"; then
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23892 $as_echo "$ac_ct_GETCONF" >&6; }
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23898 if test "x$ac_ct_GETCONF" = x; then
23901 case $cross_compiling:$ac_tool_warned in
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23905 ac_tool_warned=yes ;;
23907 GETCONF=$ac_ct_GETCONF
23910 GETCONF="$ac_cv_prog_GETCONF"
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23914 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23915 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
23916 $as_echo_n "(cached) " >&6
23918 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23919 ac_cv_sys_largefile_CFLAGS=no
23921 # IRIX 6.2 and later require cc -n32.
23922 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23923 if test "$GCC" != yes; then
23924 ac_cv_sys_largefile_CFLAGS=-n32
23927 CC="$CC $ac_cv_sys_largefile_CFLAGS"
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h. */
23939 if ac_fn_c_try_link "$LINENO"; then :
23942 ac_cv_sys_largefile_CFLAGS=no
23944 rm -f core conftest.err conftest.$ac_objext \
23945 conftest$ac_exeext conftest.$ac_ext
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23951 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23953 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23954 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
23955 $as_echo_n "(cached) " >&6
23957 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23958 ac_cv_sys_largefile_LDFLAGS=no
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23963 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23965 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23966 if ${ac_cv_sys_largefile_LIBS+:} false; then :
23967 $as_echo_n "(cached) " >&6
23969 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23970 ac_cv_sys_largefile_LIBS=no
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23975 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23977 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23980 -D_FILE_OFFSET_BITS=*) ;;
23981 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23982 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23987 case "$CPPFLAGS" in
23988 '') CPPFLAGS="$ac_flag" ;;
23989 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23997 '') CFLAGS="$ac_flag" ;;
23998 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24003 case "$ac_cv_sys_largefile_LDFLAGS" in
24007 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24008 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24011 case "$ac_cv_sys_largefile_LIBS" in
24015 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24016 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24020 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24021 if ${ac_cv_sys_file_offset_bits+:} false; then :
24022 $as_echo_n "(cached) " >&6
24024 ac_cv_sys_file_offset_bits=no
24025 ac_cv_sys_file_offset_bits=64
24026 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24028 -D_FILE_OFFSET_BITS)
24029 ac_cv_sys_file_offset_bits=1 ;;
24030 -D_FILE_OFFSET_BITS=*)
24031 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24037 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24038 if test "$ac_cv_sys_file_offset_bits" != no; then
24040 cat >>confdefs.h <<_ACEOF
24041 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24046 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24047 if ${ac_cv_sys_largefile_source+:} false; then :
24048 $as_echo_n "(cached) " >&6
24050 ac_cv_sys_largefile_source=no
24051 ac_cv_sys_largefile_source=1
24052 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24054 -D_LARGEFILE_SOURCE)
24055 ac_cv_sys_largefile_source=1 ;;
24056 -D_LARGEFILE_SOURCE=*)
24057 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24063 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24064 if test "$ac_cv_sys_largefile_source" != no; then
24066 cat >>confdefs.h <<_ACEOF
24067 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24072 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24073 if ${ac_cv_sys_large_files+:} false; then :
24074 $as_echo_n "(cached) " >&6
24076 ac_cv_sys_large_files=no
24077 ac_cv_sys_large_files=1
24078 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24081 ac_cv_sys_large_files=1 ;;
24083 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24089 $as_echo "$ac_cv_sys_large_files" >&6; }
24090 if test "$ac_cv_sys_large_files" != no; then
24092 cat >>confdefs.h <<_ACEOF
24093 #define _LARGE_FILES $ac_cv_sys_large_files
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24101 $as_echo_n "checking for X... " >&6; }
24104 # Check whether --with-x was given.
24105 if test "${with_x+set}" = set; then :
24109 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24110 if test "x$with_x" = xno; then
24111 # The user explicitly disabled X.
24114 case $x_includes,$x_libraries in #(
24115 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24116 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24117 $as_echo_n "(cached) " >&6
24119 # One or both of the vars are not set, and there is no cached value.
24120 ac_x_includes=no ac_x_libraries=no
24121 rm -f -r conftest.dir
24122 if mkdir conftest.dir; then
24124 cat >Imakefile <<'_ACEOF'
24126 @echo incroot='${INCROOT}'
24128 @echo usrlibdir='${USRLIBDIR}'
24130 @echo libdir='${LIBDIR}'
24132 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24133 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24134 for ac_var in incroot usrlibdir libdir; do
24135 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24137 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24138 for ac_extension in a so sl dylib la dll; do
24139 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24140 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24141 ac_im_usrlibdir=$ac_im_libdir; break
24144 # Screen out bogus values from the imake configuration. They are
24145 # bogus both because they are the default anyway, and because
24146 # using them would break gcc on systems where it needs fixed includes.
24147 case $ac_im_incroot in
24148 /usr/include) ac_x_includes= ;;
24149 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24151 case $ac_im_usrlibdir in
24152 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24153 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24157 rm -f -r conftest.dir
24160 # Standard set of common directories for X headers.
24161 # Check X11 before X11Rn because it is often a symlink to the current release.
24175 /usr/local/X11/include
24176 /usr/local/X11R7/include
24177 /usr/local/X11R6/include
24178 /usr/local/X11R5/include
24179 /usr/local/X11R4/include
24181 /usr/local/include/X11
24182 /usr/local/include/X11R7
24183 /usr/local/include/X11R6
24184 /usr/local/include/X11R5
24185 /usr/local/include/X11R4
24189 /usr/XFree86/include/X11
24193 /usr/unsupported/include
24194 /usr/athena/include
24195 /usr/local/x11r5/include
24196 /usr/lpp/Xamples/include
24198 /usr/openwin/include
24199 /usr/openwin/share/include'
24201 if test "$ac_x_includes" = no; then
24202 # Guess where to find include files, by looking for Xlib.h.
24203 # First, try using that file with no special directory specified.
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h. */
24206 #include <X11/Xlib.h>
24208 if ac_fn_c_try_cpp "$LINENO"; then :
24209 # We can compile using X headers with no special include directory.
24212 for ac_dir in $ac_x_header_dirs; do
24213 if test -r "$ac_dir/X11/Xlib.h"; then
24214 ac_x_includes=$ac_dir
24219 rm -f conftest.err conftest.i conftest.$ac_ext
24220 fi # $ac_x_includes = no
24222 if test "$ac_x_libraries" = no; then
24223 # Check for the libraries.
24224 # See if we find them without any special options.
24225 # Don't add to $LIBS permanently.
24228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h. */
24230 #include <X11/Xlib.h>
24239 if ac_fn_c_try_link "$LINENO"; then :
24241 # We can link X programs with no special library path.
24245 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24247 # Don't even attempt the hair of trying to link an X program!
24248 for ac_extension in a so sl dylib la dll; do
24249 if test -r "$ac_dir/libX11.$ac_extension"; then
24250 ac_x_libraries=$ac_dir
24256 rm -f core conftest.err conftest.$ac_objext \
24257 conftest$ac_exeext conftest.$ac_ext
24258 fi # $ac_x_libraries = no
24260 case $ac_x_includes,$ac_x_libraries in #(
24261 no,* | *,no | *\'*)
24262 # Didn't find X, or a directory has "'" in its name.
24263 ac_cv_have_x="have_x=no";; #(
24265 # Record where we found X for the cache.
24266 ac_cv_have_x="have_x=yes\
24267 ac_x_includes='$ac_x_includes'\
24268 ac_x_libraries='$ac_x_libraries'"
24274 eval "$ac_cv_have_x"
24277 if test "$have_x" != yes; then
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24279 $as_echo "$have_x" >&6; }
24282 # If each of the values was on the command line, it overrides each guess.
24283 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24284 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24285 # Update the cache value to reflect the command line values.
24286 ac_cv_have_x="have_x=yes\
24287 ac_x_includes='$x_includes'\
24288 ac_x_libraries='$x_libraries'"
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24290 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24293 if test "$no_x" = yes; then
24294 # Not all programs may use this symbol, but it does not hurt to define it.
24296 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24298 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24300 if test -n "$x_includes"; then
24301 X_CFLAGS="$X_CFLAGS -I$x_includes"
24304 # It would also be nice to do this for all -L options, not just this one.
24305 if test -n "$x_libraries"; then
24306 X_LIBS="$X_LIBS -L$x_libraries"
24307 # For Solaris; some versions of Sun CC require a space after -R and
24308 # others require no space. Words are not sufficient . . . .
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24310 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24311 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24312 ac_xsave_c_werror_flag=$ac_c_werror_flag
24313 ac_c_werror_flag=yes
24314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24325 if ac_fn_c_try_link "$LINENO"; then :
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24327 $as_echo "no" >&6; }
24328 X_LIBS="$X_LIBS -R$x_libraries"
24330 LIBS="$ac_xsave_LIBS -R $x_libraries"
24331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332 /* end confdefs.h. */
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24344 $as_echo "yes" >&6; }
24345 X_LIBS="$X_LIBS -R $x_libraries"
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24348 $as_echo "neither works" >&6; }
24350 rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
24353 rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24355 ac_c_werror_flag=$ac_xsave_c_werror_flag
24356 LIBS=$ac_xsave_LIBS
24359 # Check for system-dependent libraries X programs must link with.
24360 # Do this before checking for the system-independent R6 libraries
24361 # (-lICE), since we may need -lsocket or whatever for X linking.
24363 if test "$ISC" = yes; then
24364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24366 # Martyn Johnson says this is needed for Ultrix, if the X
24367 # libraries were built with DECnet support. And Karl Berry says
24368 # the Alpha needs dnet_stub (dnet does not exist).
24369 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24373 /* Override any GCC internal prototype to avoid an error.
24374 Use char because int might match the return type of a GCC
24375 builtin and then its argument prototype would still apply. */
24379 char XOpenDisplay ();
24383 return XOpenDisplay ();
24388 if ac_fn_c_try_link "$LINENO"; then :
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24392 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24393 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24394 $as_echo_n "(cached) " >&6
24396 ac_check_lib_save_LIBS=$LIBS
24397 LIBS="-ldnet $LIBS"
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h. */
24401 /* Override any GCC internal prototype to avoid an error.
24402 Use char because int might match the return type of a GCC
24403 builtin and then its argument prototype would still apply. */
24411 return dnet_ntoa ();
24416 if ac_fn_c_try_link "$LINENO"; then :
24417 ac_cv_lib_dnet_dnet_ntoa=yes
24419 ac_cv_lib_dnet_dnet_ntoa=no
24421 rm -f core conftest.err conftest.$ac_objext \
24422 conftest$ac_exeext conftest.$ac_ext
24423 LIBS=$ac_check_lib_save_LIBS
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24426 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24427 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24428 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24431 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24433 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24434 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24435 $as_echo_n "(cached) " >&6
24437 ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-ldnet_stub $LIBS"
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h. */
24442 /* Override any GCC internal prototype to avoid an error.
24443 Use char because int might match the return type of a GCC
24444 builtin and then its argument prototype would still apply. */
24452 return dnet_ntoa ();
24457 if ac_fn_c_try_link "$LINENO"; then :
24458 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24460 ac_cv_lib_dnet_stub_dnet_ntoa=no
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24467 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24468 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24469 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24474 rm -f core conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24476 LIBS="$ac_xsave_LIBS"
24478 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24479 # to get the SysV transport functions.
24480 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24482 # The nsl library prevents programs from opening the X display
24483 # on Irix 5.2, according to T.E. Dickey.
24484 # The functions gethostbyname, getservbyname, and inet_addr are
24485 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24486 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24487 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24491 if test $ac_cv_func_gethostbyname = no; then
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24493 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24494 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24495 $as_echo_n "(cached) " >&6
24497 ac_check_lib_save_LIBS=$LIBS
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h. */
24502 /* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24508 char gethostbyname ();
24512 return gethostbyname ();
24517 if ac_fn_c_try_link "$LINENO"; then :
24518 ac_cv_lib_nsl_gethostbyname=yes
24520 ac_cv_lib_nsl_gethostbyname=no
24522 rm -f core conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
24524 LIBS=$ac_check_lib_save_LIBS
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24527 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24528 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24532 if test $ac_cv_lib_nsl_gethostbyname = no; then
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24534 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24535 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24536 $as_echo_n "(cached) " >&6
24538 ac_check_lib_save_LIBS=$LIBS
24540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541 /* end confdefs.h. */
24543 /* Override any GCC internal prototype to avoid an error.
24544 Use char because int might match the return type of a GCC
24545 builtin and then its argument prototype would still apply. */
24549 char gethostbyname ();
24553 return gethostbyname ();
24558 if ac_fn_c_try_link "$LINENO"; then :
24559 ac_cv_lib_bsd_gethostbyname=yes
24561 ac_cv_lib_bsd_gethostbyname=no
24563 rm -f core conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
24565 LIBS=$ac_check_lib_save_LIBS
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24568 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24569 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24576 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24577 # socket/setsockopt and other routines are undefined under SCO ODT
24578 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24579 # on later versions), says Simon Leinen: it contains gethostby*
24580 # variants that don't use the name server (or something). -lsocket
24581 # must be given before -lnsl if both are needed. We assume that
24582 # if connect needs -lnsl, so does gethostbyname.
24583 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24584 if test "x$ac_cv_func_connect" = xyes; then :
24588 if test $ac_cv_func_connect = no; then
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24590 $as_echo_n "checking for connect in -lsocket... " >&6; }
24591 if ${ac_cv_lib_socket_connect+:} false; then :
24592 $as_echo_n "(cached) " >&6
24594 ac_check_lib_save_LIBS=$LIBS
24595 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h. */
24599 /* Override any GCC internal prototype to avoid an error.
24600 Use char because int might match the return type of a GCC
24601 builtin and then its argument prototype would still apply. */
24614 if ac_fn_c_try_link "$LINENO"; then :
24615 ac_cv_lib_socket_connect=yes
24617 ac_cv_lib_socket_connect=no
24619 rm -f core conftest.err conftest.$ac_objext \
24620 conftest$ac_exeext conftest.$ac_ext
24621 LIBS=$ac_check_lib_save_LIBS
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24624 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24625 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24626 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24631 # Guillermo Gomez says -lposix is necessary on A/UX.
24632 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24633 if test "x$ac_cv_func_remove" = xyes; then :
24637 if test $ac_cv_func_remove = no; then
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24639 $as_echo_n "checking for remove in -lposix... " >&6; }
24640 if ${ac_cv_lib_posix_remove+:} false; then :
24641 $as_echo_n "(cached) " >&6
24643 ac_check_lib_save_LIBS=$LIBS
24644 LIBS="-lposix $LIBS"
24645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24646 /* end confdefs.h. */
24648 /* Override any GCC internal prototype to avoid an error.
24649 Use char because int might match the return type of a GCC
24650 builtin and then its argument prototype would still apply. */
24663 if ac_fn_c_try_link "$LINENO"; then :
24664 ac_cv_lib_posix_remove=yes
24666 ac_cv_lib_posix_remove=no
24668 rm -f core conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
24670 LIBS=$ac_check_lib_save_LIBS
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24673 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24674 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24680 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24681 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24682 if test "x$ac_cv_func_shmat" = xyes; then :
24686 if test $ac_cv_func_shmat = no; then
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24688 $as_echo_n "checking for shmat in -lipc... " >&6; }
24689 if ${ac_cv_lib_ipc_shmat+:} false; then :
24690 $as_echo_n "(cached) " >&6
24692 ac_check_lib_save_LIBS=$LIBS
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h. */
24697 /* Override any GCC internal prototype to avoid an error.
24698 Use char because int might match the return type of a GCC
24699 builtin and then its argument prototype would still apply. */
24712 if ac_fn_c_try_link "$LINENO"; then :
24713 ac_cv_lib_ipc_shmat=yes
24715 ac_cv_lib_ipc_shmat=no
24717 rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24722 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24723 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
24724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24730 # Check for libraries that X11R6 Xt/Xaw programs need.
24731 ac_save_LDFLAGS=$LDFLAGS
24732 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24733 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24734 # check for ICE first), but we must link in the order -lSM -lICE or
24735 # we get undefined symbols. So assume we have SM if we have ICE.
24736 # These have to be linked with before -lX11, unlike the other
24737 # libraries we check for below, so use a different variable.
24738 # John Interrante, Karl Berry
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24740 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24741 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
24742 $as_echo_n "(cached) " >&6
24744 ac_check_lib_save_LIBS=$LIBS
24745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24749 /* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24755 char IceConnectionNumber ();
24759 return IceConnectionNumber ();
24764 if ac_fn_c_try_link "$LINENO"; then :
24765 ac_cv_lib_ICE_IceConnectionNumber=yes
24767 ac_cv_lib_ICE_IceConnectionNumber=no
24769 rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24774 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24775 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
24776 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24779 LDFLAGS=$ac_save_LDFLAGS
24816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24819 cat >>confdefs.h <<_ACEOF
24820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24828 $as_echo_n "checking for ANSI C header files... " >&6; }
24829 if ${ac_cv_header_stdc+:} false; then :
24830 $as_echo_n "(cached) " >&6
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h. */
24834 #include <stdlib.h>
24835 #include <stdarg.h>
24836 #include <string.h>
24847 if ac_fn_c_try_compile "$LINENO"; then :
24848 ac_cv_header_stdc=yes
24850 ac_cv_header_stdc=no
24852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854 if test $ac_cv_header_stdc = yes; then
24855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24858 #include <string.h>
24861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24862 $EGREP "memchr" >/dev/null 2>&1; then :
24865 ac_cv_header_stdc=no
24871 if test $ac_cv_header_stdc = yes; then
24872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24875 #include <stdlib.h>
24878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24879 $EGREP "free" >/dev/null 2>&1; then :
24882 ac_cv_header_stdc=no
24888 if test $ac_cv_header_stdc = yes; then
24889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24890 if test "$cross_compiling" = yes; then :
24893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24894 /* end confdefs.h. */
24896 #include <stdlib.h>
24897 #if ((' ' & 0x0FF) == 0x020)
24898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24901 # define ISLOWER(c) \
24902 (('a' <= (c) && (c) <= 'i') \
24903 || ('j' <= (c) && (c) <= 'r') \
24904 || ('s' <= (c) && (c) <= 'z'))
24905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24913 for (i = 0; i < 256; i++)
24914 if (XOR (islower (i), ISLOWER (i))
24915 || toupper (i) != TOUPPER (i))
24920 if ac_fn_c_try_run "$LINENO"; then :
24923 ac_cv_header_stdc=no
24925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24926 conftest.$ac_objext conftest.beam conftest.$ac_ext
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24932 $as_echo "$ac_cv_header_stdc" >&6; }
24933 if test $ac_cv_header_stdc = yes; then
24935 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24940 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24941 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
24942 $as_echo_n "(cached) " >&6
24944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24945 /* end confdefs.h. */
24946 #include <sys/types.h>
24950 return makedev(0, 0);
24955 if ac_fn_c_try_link "$LINENO"; then :
24956 ac_cv_header_sys_types_h_makedev=yes
24958 ac_cv_header_sys_types_h_makedev=no
24960 rm -f core conftest.err conftest.$ac_objext \
24961 conftest$ac_exeext conftest.$ac_ext
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24965 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24967 if test $ac_cv_header_sys_types_h_makedev = no; then
24968 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24969 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
24971 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24977 if test $ac_cv_header_sys_mkdev_h = no; then
24978 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24979 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
24981 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24989 ac_header_dirent=no
24990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24991 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24993 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24994 if eval \${$as_ac_Header+:} false; then :
24995 $as_echo_n "(cached) " >&6
24997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h. */
24999 #include <sys/types.h>
25011 if ac_fn_c_try_compile "$LINENO"; then :
25012 eval "$as_ac_Header=yes"
25014 eval "$as_ac_Header=no"
25016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 eval ac_res=\$$as_ac_Header
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25020 $as_echo "$ac_res" >&6; }
25021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25022 cat >>confdefs.h <<_ACEOF
25023 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25026 ac_header_dirent=$ac_hdr; break
25030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25031 if test $ac_header_dirent = dirent.h; then
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25033 $as_echo_n "checking for library containing opendir... " >&6; }
25034 if ${ac_cv_search_opendir+:} false; then :
25035 $as_echo_n "(cached) " >&6
25037 ac_func_search_save_LIBS=$LIBS
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h. */
25041 /* Override any GCC internal prototype to avoid an error.
25042 Use char because int might match the return type of a GCC
25043 builtin and then its argument prototype would still apply. */
25056 for ac_lib in '' dir; do
25057 if test -z "$ac_lib"; then
25058 ac_res="none required"
25061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25063 if ac_fn_c_try_link "$LINENO"; then :
25064 ac_cv_search_opendir=$ac_res
25066 rm -f core conftest.err conftest.$ac_objext \
25068 if ${ac_cv_search_opendir+:} false; then :
25072 if ${ac_cv_search_opendir+:} false; then :
25075 ac_cv_search_opendir=no
25077 rm conftest.$ac_ext
25078 LIBS=$ac_func_search_save_LIBS
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25081 $as_echo "$ac_cv_search_opendir" >&6; }
25082 ac_res=$ac_cv_search_opendir
25083 if test "$ac_res" != no; then :
25084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25090 $as_echo_n "checking for library containing opendir... " >&6; }
25091 if ${ac_cv_search_opendir+:} false; then :
25092 $as_echo_n "(cached) " >&6
25094 ac_func_search_save_LIBS=$LIBS
25095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h. */
25098 /* Override any GCC internal prototype to avoid an error.
25099 Use char because int might match the return type of a GCC
25100 builtin and then its argument prototype would still apply. */
25113 for ac_lib in '' x; do
25114 if test -z "$ac_lib"; then
25115 ac_res="none required"
25118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25120 if ac_fn_c_try_link "$LINENO"; then :
25121 ac_cv_search_opendir=$ac_res
25123 rm -f core conftest.err conftest.$ac_objext \
25125 if ${ac_cv_search_opendir+:} false; then :
25129 if ${ac_cv_search_opendir+:} false; then :
25132 ac_cv_search_opendir=no
25134 rm conftest.$ac_ext
25135 LIBS=$ac_func_search_save_LIBS
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25138 $as_echo "$ac_cv_search_opendir" >&6; }
25139 ac_res=$ac_cv_search_opendir
25140 if test "$ac_res" != no; then :
25141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25148 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25149 if ${ac_cv_header_stat_broken+:} false; then :
25150 $as_echo_n "(cached) " >&6
25152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153 /* end confdefs.h. */
25154 #include <sys/types.h>
25155 #include <sys/stat.h>
25157 #if defined S_ISBLK && defined S_IFDIR
25158 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25161 #if defined S_ISBLK && defined S_IFCHR
25162 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25165 #if defined S_ISLNK && defined S_IFREG
25166 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25169 #if defined S_ISSOCK && defined S_IFREG
25170 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25174 if ac_fn_c_try_compile "$LINENO"; then :
25175 ac_cv_header_stat_broken=no
25177 ac_cv_header_stat_broken=yes
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25182 $as_echo "$ac_cv_header_stat_broken" >&6; }
25183 if test $ac_cv_header_stat_broken = yes; then
25185 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25190 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25191 if ${ac_cv_header_sys_wait_h+:} false; then :
25192 $as_echo_n "(cached) " >&6
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <sys/types.h>
25197 #include <sys/wait.h>
25198 #ifndef WEXITSTATUS
25199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25210 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25215 if ac_fn_c_try_compile "$LINENO"; then :
25216 ac_cv_header_sys_wait_h=yes
25218 ac_cv_header_sys_wait_h=no
25220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25223 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25224 if test $ac_cv_header_sys_wait_h = yes; then
25226 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25232 if ${ac_cv_header_time+:} false; then :
25233 $as_echo_n "(cached) " >&6
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25237 #include <sys/types.h>
25238 #include <sys/time.h>
25244 if ((struct tm *) 0)
25250 if ac_fn_c_try_compile "$LINENO"; then :
25251 ac_cv_header_time=yes
25253 ac_cv_header_time=no
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25258 $as_echo "$ac_cv_header_time" >&6; }
25259 if test $ac_cv_header_time = yes; then
25261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25265 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25266 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25273 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25278 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25279 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25286 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25289 case " $LIBOBJS " in
25290 *" fileblocks.$ac_objext "* ) ;;
25291 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25299 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25300 if ${ac_cv_struct_tm+:} false; then :
25301 $as_echo_n "(cached) " >&6
25303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25304 /* end confdefs.h. */
25305 #include <sys/types.h>
25312 int *p = &tm.tm_sec;
25318 if ac_fn_c_try_compile "$LINENO"; then :
25319 ac_cv_struct_tm=time.h
25321 ac_cv_struct_tm=sys/time.h
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25326 $as_echo "$ac_cv_struct_tm" >&6; }
25327 if test $ac_cv_struct_tm = sys/time.h; then
25329 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25333 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25334 #include <$ac_cv_struct_tm>
25337 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25339 cat >>confdefs.h <<_ACEOF
25340 #define HAVE_STRUCT_TM_TM_ZONE 1
25346 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25348 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25351 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25353 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25359 cat >>confdefs.h <<_ACEOF
25360 #define HAVE_DECL_TZNAME $ac_have_decl
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25364 $as_echo_n "checking for tzname... " >&6; }
25365 if ${ac_cv_var_tzname+:} false; then :
25366 $as_echo_n "(cached) " >&6
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25371 #if !HAVE_DECL_TZNAME
25372 extern char *tzname[];
25378 return tzname[0][0];
25383 if ac_fn_c_try_link "$LINENO"; then :
25384 ac_cv_var_tzname=yes
25386 ac_cv_var_tzname=no
25388 rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25392 $as_echo "$ac_cv_var_tzname" >&6; }
25393 if test $ac_cv_var_tzname = yes; then
25395 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25402 $as_echo_n "checking for utime.h... " >&6; }
25403 if ${ba_cv_header_utime_h+:} false; then :
25404 $as_echo_n "(cached) " >&6
25407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* end confdefs.h. */
25410 #include <sys/types.h>
25423 if ac_fn_c_try_compile "$LINENO"; then :
25425 ba_cv_header_utime_h=yes
25429 ba_cv_header_utime_h=no
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25438 $as_echo "$ba_cv_header_utime_h" >&6; }
25439 test $ba_cv_header_utime_h = yes &&
25440 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25444 $as_echo_n "checking for socklen_t... " >&6; }
25445 if ${ba_cv_header_socklen_t+:} false; then :
25446 $as_echo_n "(cached) " >&6
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25452 #include <sys/types.h>
25453 #include <sys/socket.h>
25465 if ac_fn_c_try_compile "$LINENO"; then :
25467 ba_cv_header_socklen_t=yes
25471 ba_cv_header_socklen_t=no
25475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25480 $as_echo "$ba_cv_header_socklen_t" >&6; }
25481 test $ba_cv_header_socklen_t = yes &&
25482 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25486 ac_cpp='$CXXCPP $CPPFLAGS'
25487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25492 $as_echo_n "checking for ioctl_req_t... " >&6; }
25493 if ${ba_cv_header_ioctl_req_t+:} false; then :
25494 $as_echo_n "(cached) " >&6
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25500 #include <unistd.h>
25501 #include <sys/types.h>
25502 #include <sys/ioctl.h>
25508 int (*d_ioctl)(int fd, unsigned long int request, ...);
25515 if ac_fn_cxx_try_compile "$LINENO"; then :
25517 ba_cv_header_ioctl_req_t=yes
25521 ba_cv_header_ioctl_req_t=no
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25530 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25531 test $ba_cv_header_ioctl_req_t = yes &&
25532 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25536 ac_cpp='$CPP $CPPFLAGS'
25537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25543 ac_cpp='$CXXCPP $CPPFLAGS'
25544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25549 $as_echo_n "checking for typeof... " >&6; }
25550 if ${ba_cv_have_typeof+:} false; then :
25551 $as_echo_n "(cached) " >&6
25554 if test "$cross_compiling" = yes; then :
25556 ba_cv_have_typeof=no
25560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25561 /* end confdefs.h. */
25563 main(){char *a = 0; a = (typeof a)a;}
25566 if ac_fn_cxx_try_run "$LINENO"; then :
25568 ba_cv_have_typeof=yes
25572 ba_cv_have_typeof=no
25575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25576 conftest.$ac_objext conftest.beam conftest.$ac_ext
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25583 $as_echo "$ba_cv_have_typeof" >&6; }
25584 test $ba_cv_have_typeof = yes &&
25585 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25588 ac_cpp='$CPP $CPPFLAGS'
25589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25596 if ${ac_cv_c_const+:} false; then :
25597 $as_echo_n "(cached) " >&6
25599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25600 /* end confdefs.h. */
25605 /* FIXME: Include the comments suggested by Paul. */
25606 #ifndef __cplusplus
25607 /* Ultrix mips cc rejects this. */
25608 typedef int charset[2];
25610 /* SunOS 4.1.1 cc rejects this. */
25611 char const *const *pcpcc;
25613 /* NEC SVR4.0.2 mips cc rejects this. */
25614 struct point {int x, y;};
25615 static struct point const zero = {0,0};
25616 /* AIX XL C 1.02.0.0 rejects this.
25617 It does not let you subtract one const X* pointer from another in
25618 an arm of an if-expression whose if-part is not a constant
25620 const char *g = "string";
25621 pcpcc = &g + (g ? g-g : 0);
25622 /* HPUX 7.0 cc rejects these. */
25624 ppc = (char**) pcpcc;
25625 pcpcc = (char const *const *) ppc;
25626 { /* SCO 3.2v4 cc rejects this. */
25628 char const *s = 0 ? (char *) 0 : (char const *) 0;
25633 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25634 int x[] = {25, 17};
25635 const int *foo = &x[0];
25638 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25639 typedef const int *iptr;
25643 { /* AIX XL C 1.02.0.0 rejects this saying
25644 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25645 struct s { int j; const int *ap[3]; };
25646 struct s *b; b->j = 5;
25648 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25649 const int foo = 10;
25650 if (!foo) return 0;
25652 return !cs[0] && !zero.x;
25659 if ac_fn_c_try_compile "$LINENO"; then :
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25667 $as_echo "$ac_cv_c_const" >&6; }
25668 if test $ac_cv_c_const = no; then
25670 $as_echo "#define const /**/" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25677 if ${ac_cv_c_bigendian+:} false; then :
25678 $as_echo_n "(cached) " >&6
25680 ac_cv_c_bigendian=unknown
25681 # See if we're dealing with a universal compiler.
25682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683 /* end confdefs.h. */
25684 #ifndef __APPLE_CC__
25685 not a universal capable compiler
25690 if ac_fn_c_try_compile "$LINENO"; then :
25692 # Check for potential -arch flags. It is not universal unless
25693 # there are at least two -arch flags with different values.
25696 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25697 if test -n "$ac_prev"; then
25699 i?86 | x86_64 | ppc | ppc64)
25700 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25703 ac_cv_c_bigendian=universal
25709 elif test "x$ac_word" = "x-arch"; then
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 if test $ac_cv_c_bigendian = unknown; then
25716 # See if sys/param.h defines the BYTE_ORDER macro.
25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h. */
25719 #include <sys/types.h>
25720 #include <sys/param.h>
25725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25726 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25728 bogus endian macros
25735 if ac_fn_c_try_compile "$LINENO"; then :
25736 # It does; now see whether it defined to BIG_ENDIAN or not.
25737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25738 /* end confdefs.h. */
25739 #include <sys/types.h>
25740 #include <sys/param.h>
25745 #if BYTE_ORDER != BIG_ENDIAN
25753 if ac_fn_c_try_compile "$LINENO"; then :
25754 ac_cv_c_bigendian=yes
25756 ac_cv_c_bigendian=no
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 if test $ac_cv_c_bigendian = unknown; then
25763 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25765 /* end confdefs.h. */
25766 #include <limits.h>
25771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25772 bogus endian macros
25779 if ac_fn_c_try_compile "$LINENO"; then :
25780 # It does; now see whether it defined to _BIG_ENDIAN or not.
25781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h. */
25783 #include <limits.h>
25788 #ifndef _BIG_ENDIAN
25796 if ac_fn_c_try_compile "$LINENO"; then :
25797 ac_cv_c_bigendian=yes
25799 ac_cv_c_bigendian=no
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805 if test $ac_cv_c_bigendian = unknown; then
25806 # Compile a test program.
25807 if test "$cross_compiling" = yes; then :
25808 # Try to guess by grepping values from an object file.
25809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810 /* end confdefs.h. */
25811 short int ascii_mm[] =
25812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25813 short int ascii_ii[] =
25814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25815 int use_ascii (int i) {
25816 return ascii_mm[i] + ascii_ii[i];
25818 short int ebcdic_ii[] =
25819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25820 short int ebcdic_mm[] =
25821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25822 int use_ebcdic (int i) {
25823 return ebcdic_mm[i] + ebcdic_ii[i];
25830 return use_ascii (foo) == use_ebcdic (foo);
25835 if ac_fn_c_try_compile "$LINENO"; then :
25836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25837 ac_cv_c_bigendian=yes
25839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25840 if test "$ac_cv_c_bigendian" = unknown; then
25841 ac_cv_c_bigendian=no
25843 # finding both strings is unlikely to happen, but who knows?
25844 ac_cv_c_bigendian=unknown
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25852 $ac_includes_default
25857 /* Are we little or big endian? From Harbison&Steele. */
25861 char c[sizeof (long int)];
25864 return u.c[sizeof (long int) - 1] == 1;
25870 if ac_fn_c_try_run "$LINENO"; then :
25871 ac_cv_c_bigendian=no
25873 ac_cv_c_bigendian=yes
25875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25876 conftest.$ac_objext conftest.beam conftest.$ac_ext
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25882 $as_echo "$ac_cv_c_bigendian" >&6; }
25883 case $ac_cv_c_bigendian in #(
25886 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25890 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25898 as_fn_error $? "unknown endianness
25899 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25904 $as_echo_n "checking how to get filesystem type... " >&6; }
25906 # The order of these tests is important.
25907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h. */
25910 #include <sys/statvfs.h>
25911 #include <sys/fstyp.h>
25914 if ac_fn_c_try_cpp "$LINENO"; then :
25915 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25919 rm -f conftest.err conftest.i conftest.$ac_ext
25920 if test $fstype = no; then
25921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h. */
25924 #include <sys/statfs.h>
25925 #include <sys/fstyp.h>
25928 if ac_fn_c_try_cpp "$LINENO"; then :
25929 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25933 rm -f conftest.err conftest.i conftest.$ac_ext
25935 if test $fstype = no; then
25936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937 /* end confdefs.h. */
25939 #include <sys/statfs.h>
25940 #include <sys/vmount.h>
25943 if ac_fn_c_try_cpp "$LINENO"; then :
25944 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25948 rm -f conftest.err conftest.i conftest.$ac_ext
25950 if test $fstype = no; then
25951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h. */
25954 #include <mntent.h>
25957 if ac_fn_c_try_cpp "$LINENO"; then :
25958 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25962 rm -f conftest.err conftest.i conftest.$ac_ext
25964 if test $fstype = no; then
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25967 #include <sys/mount.h>
25970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25971 $EGREP "f_type;" >/dev/null 2>&1; then :
25972 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25978 if test $fstype = no; then
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25982 #include <sys/mount.h>
25983 #include <sys/fs_types.h>
25986 if ac_fn_c_try_cpp "$LINENO"; then :
25987 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25991 rm -f conftest.err conftest.i conftest.$ac_ext
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25994 $as_echo "$fstype" >&6; }
25996 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25997 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
25999 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26006 ac_cpp='$CXXCPP $CPPFLAGS'
26007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26012 for ac_header in cxxabi.h execinfo.h
26014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26015 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26017 cat >>confdefs.h <<_ACEOF
26018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26021 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26028 ac_cpp='$CPP $CPPFLAGS'
26029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26035 $as_echo_n "checking return type of signal handlers... " >&6; }
26036 if ${ac_cv_type_signal+:} false; then :
26037 $as_echo_n "(cached) " >&6
26039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26040 /* end confdefs.h. */
26041 #include <sys/types.h>
26042 #include <signal.h>
26047 return *(signal (0, 0)) (0) == 1;
26052 if ac_fn_c_try_compile "$LINENO"; then :
26053 ac_cv_type_signal=int
26055 ac_cv_type_signal=void
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26060 $as_echo "$ac_cv_type_signal" >&6; }
26062 cat >>confdefs.h <<_ACEOF
26063 #define RETSIGTYPE $ac_cv_type_signal
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26069 $as_echo_n "checking for type of signal functions... " >&6; }
26070 if ${bash_cv_signal_vintage+:} false; then :
26071 $as_echo_n "(cached) " >&6
26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h. */
26076 #include <signal.h>
26082 struct sigaction sa;
26083 sigemptyset(&ss); sigsuspend(&ss);
26084 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26085 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26091 if ac_fn_c_try_link "$LINENO"; then :
26092 bash_cv_signal_vintage="posix"
26095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h. */
26097 #include <signal.h>
26102 int mask = sigmask(SIGINT);
26103 sigsetmask(mask); sigblock(mask); sigpause(mask);
26109 if ac_fn_c_try_link "$LINENO"; then :
26110 bash_cv_signal_vintage="4.2bsd"
26113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114 /* end confdefs.h. */
26116 #include <signal.h>
26117 RETSIGTYPE foo() { }
26122 int mask = sigmask(SIGINT);
26123 sigset(SIGINT, foo); sigrelse(SIGINT);
26124 sighold(SIGINT); sigpause(SIGINT);
26130 if ac_fn_c_try_link "$LINENO"; then :
26131 bash_cv_signal_vintage="svr3"
26133 bash_cv_signal_vintage="v7"
26136 rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
26140 rm -f core conftest.err conftest.$ac_objext \
26141 conftest$ac_exeext conftest.$ac_ext
26144 rm -f core conftest.err conftest.$ac_objext \
26145 conftest$ac_exeext conftest.$ac_ext
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26150 $as_echo "$bash_cv_signal_vintage" >&6; }
26151 if test "$bash_cv_signal_vintage" = "posix"; then
26152 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26154 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26155 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26157 elif test "$bash_cv_signal_vintage" = "svr3"; then
26158 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26162 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26163 if test "x$ac_cv_type_mode_t" = xyes; then :
26167 cat >>confdefs.h <<_ACEOF
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26174 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26175 if ${ac_cv_type_uid_t+:} false; then :
26176 $as_echo_n "(cached) " >&6
26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h. */
26180 #include <sys/types.h>
26183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26184 $EGREP "uid_t" >/dev/null 2>&1; then :
26185 ac_cv_type_uid_t=yes
26187 ac_cv_type_uid_t=no
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26193 $as_echo "$ac_cv_type_uid_t" >&6; }
26194 if test $ac_cv_type_uid_t = no; then
26196 $as_echo "#define uid_t int" >>confdefs.h
26199 $as_echo "#define gid_t int" >>confdefs.h
26203 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26204 if test "x$ac_cv_type_size_t" = xyes; then :
26208 cat >>confdefs.h <<_ACEOF
26209 #define size_t unsigned int
26214 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26215 if test "x$ac_cv_type_pid_t" = xyes; then :
26219 cat >>confdefs.h <<_ACEOF
26225 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26226 if test "x$ac_cv_type_off_t" = xyes; then :
26230 cat >>confdefs.h <<_ACEOF
26231 #define off_t long int
26237 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26238 if test "x$ac_cv_type_intptr_t" = xyes; then :
26240 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26243 for ac_type in 'int' 'long int' 'long long int'; do
26244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h. */
26246 $ac_includes_default
26250 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26257 if ac_fn_c_try_compile "$LINENO"; then :
26259 cat >>confdefs.h <<_ACEOF
26260 #define intptr_t $ac_type
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 test -z "$ac_type" && break
26272 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26273 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26275 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26278 for ac_type in 'unsigned int' 'unsigned long int' \
26279 'unsigned long long int'; do
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h. */
26282 $ac_includes_default
26286 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26293 if ac_fn_c_try_compile "$LINENO"; then :
26295 cat >>confdefs.h <<_ACEOF
26296 #define uintptr_t $ac_type
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 test -z "$ac_type" && break
26307 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26308 if test "x$ac_cv_type_ino_t" = xyes; then :
26312 cat >>confdefs.h <<_ACEOF
26313 #define ino_t unsigned long
26318 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26319 if test "x$ac_cv_type_dev_t" = xyes; then :
26323 cat >>confdefs.h <<_ACEOF
26324 #define dev_t unsigned long
26329 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26330 if test "x$ac_cv_type_daddr_t" = xyes; then :
26334 cat >>confdefs.h <<_ACEOF
26335 #define daddr_t long
26340 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26341 if test "x$ac_cv_type_major_t" = xyes; then :
26345 cat >>confdefs.h <<_ACEOF
26346 #define major_t int
26351 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26352 if test "x$ac_cv_type_minor_t" = xyes; then :
26356 cat >>confdefs.h <<_ACEOF
26357 #define minor_t int
26362 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26363 if test "x$ac_cv_type_ssize_t" = xyes; then :
26367 cat >>confdefs.h <<_ACEOF
26368 #define ssize_t int
26373 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26374 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26376 cat >>confdefs.h <<_ACEOF
26377 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26381 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26384 case " $LIBOBJS " in
26385 *" fileblocks.$ac_objext "* ) ;;
26386 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26393 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26394 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26396 cat >>confdefs.h <<_ACEOF
26397 #define HAVE_STRUCT_STAT_ST_RDEV 1
26401 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26407 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26408 if ${ac_cv_struct_tm+:} false; then :
26409 $as_echo_n "(cached) " >&6
26411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412 /* end confdefs.h. */
26413 #include <sys/types.h>
26420 int *p = &tm.tm_sec;
26426 if ac_fn_c_try_compile "$LINENO"; then :
26427 ac_cv_struct_tm=time.h
26429 ac_cv_struct_tm=sys/time.h
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26434 $as_echo "$ac_cv_struct_tm" >&6; }
26435 if test $ac_cv_struct_tm = sys/time.h; then
26437 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26442 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26443 if ${ac_cv_c_const+:} false; then :
26444 $as_echo_n "(cached) " >&6
26446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26447 /* end confdefs.h. */
26452 /* FIXME: Include the comments suggested by Paul. */
26453 #ifndef __cplusplus
26454 /* Ultrix mips cc rejects this. */
26455 typedef int charset[2];
26457 /* SunOS 4.1.1 cc rejects this. */
26458 char const *const *pcpcc;
26460 /* NEC SVR4.0.2 mips cc rejects this. */
26461 struct point {int x, y;};
26462 static struct point const zero = {0,0};
26463 /* AIX XL C 1.02.0.0 rejects this.
26464 It does not let you subtract one const X* pointer from another in
26465 an arm of an if-expression whose if-part is not a constant
26467 const char *g = "string";
26468 pcpcc = &g + (g ? g-g : 0);
26469 /* HPUX 7.0 cc rejects these. */
26471 ppc = (char**) pcpcc;
26472 pcpcc = (char const *const *) ppc;
26473 { /* SCO 3.2v4 cc rejects this. */
26475 char const *s = 0 ? (char *) 0 : (char const *) 0;
26480 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26481 int x[] = {25, 17};
26482 const int *foo = &x[0];
26485 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26486 typedef const int *iptr;
26490 { /* AIX XL C 1.02.0.0 rejects this saying
26491 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26492 struct s { int j; const int *ap[3]; };
26493 struct s *b; b->j = 5;
26495 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26496 const int foo = 10;
26497 if (!foo) return 0;
26499 return !cs[0] && !zero.x;
26506 if ac_fn_c_try_compile "$LINENO"; then :
26511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26514 $as_echo "$ac_cv_c_const" >&6; }
26515 if test $ac_cv_c_const = no; then
26517 $as_echo "#define const /**/" >>confdefs.h
26522 # The cast to long int works around a bug in the HP C Compiler
26523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26525 # This bug is HP SR number 8606223364.
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26527 $as_echo_n "checking size of char... " >&6; }
26528 if ${ac_cv_sizeof_char+:} false; then :
26529 $as_echo_n "(cached) " >&6
26531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26534 if test "$ac_cv_type_char" = yes; then
26535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26537 as_fn_error 77 "cannot compute sizeof (char)
26538 See \`config.log' for more details" "$LINENO" 5; }
26540 ac_cv_sizeof_char=0
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26546 $as_echo "$ac_cv_sizeof_char" >&6; }
26550 cat >>confdefs.h <<_ACEOF
26551 #define SIZEOF_CHAR $ac_cv_sizeof_char
26555 # The cast to long int works around a bug in the HP C Compiler
26556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26558 # This bug is HP SR number 8606223364.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26560 $as_echo_n "checking size of short int... " >&6; }
26561 if ${ac_cv_sizeof_short_int+:} false; then :
26562 $as_echo_n "(cached) " >&6
26564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26567 if test "$ac_cv_type_short_int" = yes; then
26568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26570 as_fn_error 77 "cannot compute sizeof (short int)
26571 See \`config.log' for more details" "$LINENO" 5; }
26573 ac_cv_sizeof_short_int=0
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26579 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26583 cat >>confdefs.h <<_ACEOF
26584 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26588 # The cast to long int works around a bug in the HP C Compiler
26589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26591 # This bug is HP SR number 8606223364.
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26593 $as_echo_n "checking size of int... " >&6; }
26594 if ${ac_cv_sizeof_int+:} false; then :
26595 $as_echo_n "(cached) " >&6
26597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26600 if test "$ac_cv_type_int" = yes; then
26601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26603 as_fn_error 77 "cannot compute sizeof (int)
26604 See \`config.log' for more details" "$LINENO" 5; }
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26612 $as_echo "$ac_cv_sizeof_int" >&6; }
26616 cat >>confdefs.h <<_ACEOF
26617 #define SIZEOF_INT $ac_cv_sizeof_int
26621 # The cast to long int works around a bug in the HP C Compiler
26622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26624 # This bug is HP SR number 8606223364.
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26626 $as_echo_n "checking size of long int... " >&6; }
26627 if ${ac_cv_sizeof_long_int+:} false; then :
26628 $as_echo_n "(cached) " >&6
26630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26633 if test "$ac_cv_type_long_int" = yes; then
26634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26636 as_fn_error 77 "cannot compute sizeof (long int)
26637 See \`config.log' for more details" "$LINENO" 5; }
26639 ac_cv_sizeof_long_int=0
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26645 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26649 cat >>confdefs.h <<_ACEOF
26650 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26654 # The cast to long int works around a bug in the HP C Compiler
26655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26657 # This bug is HP SR number 8606223364.
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26659 $as_echo_n "checking size of long long int... " >&6; }
26660 if ${ac_cv_sizeof_long_long_int+:} false; then :
26661 $as_echo_n "(cached) " >&6
26663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26666 if test "$ac_cv_type_long_long_int" = yes; then
26667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26669 as_fn_error 77 "cannot compute sizeof (long long int)
26670 See \`config.log' for more details" "$LINENO" 5; }
26672 ac_cv_sizeof_long_long_int=0
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26678 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26682 cat >>confdefs.h <<_ACEOF
26683 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26687 # The cast to long int works around a bug in the HP C Compiler
26688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26690 # This bug is HP SR number 8606223364.
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26692 $as_echo_n "checking size of int *... " >&6; }
26693 if ${ac_cv_sizeof_int_p+:} false; then :
26694 $as_echo_n "(cached) " >&6
26696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26699 if test "$ac_cv_type_int_p" = yes; then
26700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26702 as_fn_error 77 "cannot compute sizeof (int *)
26703 See \`config.log' for more details" "$LINENO" 5; }
26705 ac_cv_sizeof_int_p=0
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26711 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26715 cat >>confdefs.h <<_ACEOF
26716 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26722 $as_echo_n "checking for u_int type... " >&6; }
26723 if ${ac_cv_have_u_int+:} false; then :
26724 $as_echo_n "(cached) " >&6
26727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26728 /* end confdefs.h. */
26730 #include <sys/types.h>
26742 if ac_fn_c_try_compile "$LINENO"; then :
26744 ac_cv_have_u_int="yes"
26748 ac_cv_have_u_int="no"
26752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26757 $as_echo "$ac_cv_have_u_int" >&6; }
26758 if test "x$ac_cv_have_u_int" = "xyes" ; then
26759 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26765 $as_echo_n "checking for intmax_t type... " >&6; }
26766 if ${ac_cv_have_intmax_t+:} false; then :
26767 $as_echo_n "(cached) " >&6
26770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26771 /* end confdefs.h. */
26773 #include <sys/types.h>
26785 if ac_fn_c_try_compile "$LINENO"; then :
26787 ac_cv_have_intmax_t="yes"
26791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h. */
26794 #include <stdint.h>
26806 if ac_fn_c_try_compile "$LINENO"; then :
26808 ac_cv_have_intmax_t="yes"
26812 ac_cv_have_intmax_t="no"
26816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26825 $as_echo "$ac_cv_have_intmax_t" >&6; }
26826 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26827 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26833 $as_echo_n "checking for u_intmax_t type... " >&6; }
26834 if ${ac_cv_have_u_intmax_t+:} false; then :
26835 $as_echo_n "(cached) " >&6
26838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26841 #include <sys/types.h>
26847 u_intmax_t a; a = 1;
26853 if ac_fn_c_try_compile "$LINENO"; then :
26855 ac_cv_have_u_intmax_t="yes"
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h. */
26862 #include <stdint.h>
26868 u_intmax_t a; a = 1;
26874 if ac_fn_c_try_compile "$LINENO"; then :
26876 ac_cv_have_u_intmax_t="yes"
26880 ac_cv_have_u_intmax_t="no"
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26893 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26894 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26895 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26901 $as_echo_n "checking for intXX_t types... " >&6; }
26902 if ${ac_cv_have_intxx_t+:} false; then :
26903 $as_echo_n "(cached) " >&6
26906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h. */
26909 #include <sys/types.h>
26915 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26921 if ac_fn_c_try_compile "$LINENO"; then :
26923 ac_cv_have_intxx_t="yes"
26927 ac_cv_have_intxx_t="no"
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26936 $as_echo "$ac_cv_have_intxx_t" >&6; }
26937 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26938 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26944 $as_echo_n "checking for int64_t type... " >&6; }
26945 if ${ac_cv_have_int64_t+:} false; then :
26946 $as_echo_n "(cached) " >&6
26949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26950 /* end confdefs.h. */
26952 #include <sys/types.h>
26964 if ac_fn_c_try_compile "$LINENO"; then :
26966 ac_cv_have_int64_t="yes"
26970 ac_cv_have_int64_t="no"
26974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26979 $as_echo "$ac_cv_have_int64_t" >&6; }
26980 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26981 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26987 $as_echo_n "checking for u_intXX_t types... " >&6; }
26988 if ${ac_cv_have_u_intxx_t+:} false; then :
26989 $as_echo_n "(cached) " >&6
26992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26995 #include <sys/types.h>
27001 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27007 if ac_fn_c_try_compile "$LINENO"; then :
27009 ac_cv_have_u_intxx_t="yes"
27013 ac_cv_have_u_intxx_t="no"
27017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27022 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27023 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27024 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27030 $as_echo_n "checking for u_int64_t types... " >&6; }
27031 if ${ac_cv_have_u_int64_t+:} false; then :
27032 $as_echo_n "(cached) " >&6
27035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h. */
27038 #include <sys/types.h>
27044 u_int64_t a; a = 1;
27050 if ac_fn_c_try_compile "$LINENO"; then :
27052 ac_cv_have_u_int64_t="yes"
27056 ac_cv_have_u_int64_t="no"
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27065 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27066 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27067 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27072 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27073 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27076 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27080 #include <sys/bitypes.h>
27086 int8_t a; int16_t b; int32_t c;
27087 u_int8_t e; u_int16_t f; u_int32_t g;
27088 a = b = c = e = f = g = 1;
27094 if ac_fn_c_try_compile "$LINENO"; then :
27096 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27098 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27100 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27103 $as_echo "yes" >&6; }
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108 $as_echo "no" >&6; }
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 if test -z "$have_u_intxx_t" ; then
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27117 $as_echo_n "checking for uintXX_t types... " >&6; }
27118 if ${ac_cv_have_uintxx_t+:} false; then :
27119 $as_echo_n "(cached) " >&6
27122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27123 /* end confdefs.h. */
27125 #include <sys/types.h>
27131 uint8_t a; uint16_t b;
27132 uint32_t c; a = b = c = 1;
27138 if ac_fn_c_try_compile "$LINENO"; then :
27140 ac_cv_have_uintxx_t="yes"
27144 ac_cv_have_uintxx_t="no"
27148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27153 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27154 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27155 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27160 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27161 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27164 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27166 /* end confdefs.h. */
27168 #include <sys/bitypes.h>
27174 int64_t a; u_int64_t b;
27181 if ac_fn_c_try_compile "$LINENO"; then :
27183 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27185 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27188 $as_echo "yes" >&6; }
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27193 $as_echo "no" >&6; }
27197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27200 if (test -z "$have_uintxx_t" && \
27201 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27204 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27208 #include <sys/bitypes.h>
27214 uint8_t a; uint16_t b;
27215 uint32_t c; a = b = c = 1;
27221 if ac_fn_c_try_compile "$LINENO"; then :
27223 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27231 $as_echo "no" >&6; }
27235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27257 cat >>confdefs.h <<_ACEOF
27258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27262 echo 'configure: cannot find needed function.'; exit 1
27268 for ac_func in getpagesize
27270 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27271 if test "x$ac_cv_func_getpagesize" = xyes; then :
27272 cat >>confdefs.h <<_ACEOF
27273 #define HAVE_GETPAGESIZE 1
27276 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27281 for ac_func in malloc_trim
27283 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27284 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27285 cat >>confdefs.h <<_ACEOF
27286 #define HAVE_MALLOC_TRIM 1
27289 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27295 for ac_func in fchdir
27297 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27298 if test "x$ac_cv_func_fchdir" = xyes; then :
27299 cat >>confdefs.h <<_ACEOF
27300 #define HAVE_FCHDIR 1
27302 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27307 for ac_func in strtoll
27309 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27310 if test "x$ac_cv_func_strtoll" = xyes; then :
27311 cat >>confdefs.h <<_ACEOF
27312 #define HAVE_STRTOLL 1
27314 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27319 for ac_func in posix_fadvise
27321 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27322 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27323 cat >>confdefs.h <<_ACEOF
27324 #define HAVE_POSIX_FADVISE 1
27330 for ac_func in fdatasync
27332 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27333 if test "x$ac_cv_func_fdatasync" = xyes; then :
27334 cat >>confdefs.h <<_ACEOF
27335 #define HAVE_FDATASYNC 1
27342 for ac_func in chflags
27344 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27345 if test "x$ac_cv_func_chflags" = xyes; then :
27346 cat >>confdefs.h <<_ACEOF
27347 #define HAVE_CHFLAGS 1
27354 for ac_func in snprintf vsnprintf gethostid fseeko
27356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27359 cat >>confdefs.h <<_ACEOF
27360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27368 $as_echo_n "checking for va_copy... " >&6; }
27369 if ${ba_cv_va_copy+:} false; then :
27370 $as_echo_n "(cached) " >&6
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27376 #include <stdarg.h>
27377 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27378 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27384 call_use_va_copy(1,2,3)
27390 if ac_fn_c_try_link "$LINENO"; then :
27400 rm -f core conftest.err conftest.$ac_objext \
27401 conftest$ac_exeext conftest.$ac_ext
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27406 $as_echo "$ba_cv_va_copy" >&6; }
27407 test $ba_cv_va_copy = yes &&
27408 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27411 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27416 cat >>confdefs.h <<_ACEOF
27417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27424 # If resolver functions are not in libc check for -lnsl or -lresolv.
27425 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27426 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27428 $as_echo "using libc's resolver" >&6; }
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27431 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27432 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27433 $as_echo_n "(cached) " >&6
27435 ac_check_lib_save_LIBS=$LIBS
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h. */
27440 /* Override any GCC internal prototype to avoid an error.
27441 Use char because int might match the return type of a GCC
27442 builtin and then its argument prototype would still apply. */
27446 char gethostbyname_r ();
27450 return gethostbyname_r ();
27455 if ac_fn_c_try_link "$LINENO"; then :
27456 ac_cv_lib_nsl_gethostbyname_r=yes
27458 ac_cv_lib_nsl_gethostbyname_r=no
27460 rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27465 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27466 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27467 cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBNSL 1
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27476 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27477 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27478 $as_echo_n "(cached) " >&6
27480 ac_check_lib_save_LIBS=$LIBS
27481 LIBS="-lresolv $LIBS"
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h. */
27485 /* Override any GCC internal prototype to avoid an error.
27486 Use char because int might match the return type of a GCC
27487 builtin and then its argument prototype would still apply. */
27491 char gethostbyname_r ();
27495 return gethostbyname_r ();
27500 if ac_fn_c_try_link "$LINENO"; then :
27501 ac_cv_lib_resolv_gethostbyname_r=yes
27503 ac_cv_lib_resolv_gethostbyname_r=no
27505 rm -f core conftest.err conftest.$ac_objext \
27506 conftest$ac_exeext conftest.$ac_ext
27507 LIBS=$ac_check_lib_save_LIBS
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27510 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27511 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27512 cat >>confdefs.h <<_ACEOF
27513 #define HAVE_LIBRESOLV 1
27516 LIBS="-lresolv $LIBS"
27523 for ac_func in inet_pton
27525 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27526 if test "x$ac_cv_func_inet_pton" = xyes; then :
27527 cat >>confdefs.h <<_ACEOF
27528 #define HAVE_INET_PTON 1
27530 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27535 for ac_func in inet_ntop
27537 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27538 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27539 cat >>confdefs.h <<_ACEOF
27540 #define HAVE_INET_NTOP 1
27542 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27547 for ac_func in gethostbyname2
27549 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27550 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27551 cat >>confdefs.h <<_ACEOF
27552 #define HAVE_GETHOSTBYNAME2 1
27554 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27561 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27562 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27563 $as_echo_n "(cached) " >&6
27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27569 #include <sys/socket.h>
27575 struct sockaddr s; s.sa_len;
27581 if ac_fn_c_try_compile "$LINENO"; then :
27583 ac_cv_struct_sockaddr_sa_len=yes
27586 ac_cv_struct_sockaddr_sa_len=no
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27595 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27597 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27599 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27603 for ac_func in strftime
27605 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27606 if test "x$ac_cv_func_strftime" = xyes; then :
27607 cat >>confdefs.h <<_ACEOF
27608 #define HAVE_STRFTIME 1
27612 # strftime is in -lintl on SCO UNIX.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27614 $as_echo_n "checking for strftime in -lintl... " >&6; }
27615 if ${ac_cv_lib_intl_strftime+:} false; then :
27616 $as_echo_n "(cached) " >&6
27618 ac_check_lib_save_LIBS=$LIBS
27619 LIBS="-lintl $LIBS"
27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h. */
27623 /* Override any GCC internal prototype to avoid an error.
27624 Use char because int might match the return type of a GCC
27625 builtin and then its argument prototype would still apply. */
27633 return strftime ();
27638 if ac_fn_c_try_link "$LINENO"; then :
27639 ac_cv_lib_intl_strftime=yes
27641 ac_cv_lib_intl_strftime=no
27643 rm -f core conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
27645 LIBS=$ac_check_lib_save_LIBS
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27648 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27649 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27650 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27652 LIBS="-lintl $LIBS"
27658 for ac_func in vprintf
27660 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27661 if test "x$ac_cv_func_vprintf" = xyes; then :
27662 cat >>confdefs.h <<_ACEOF
27663 #define HAVE_VPRINTF 1
27666 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27667 if test "x$ac_cv_func__doprnt" = xyes; then :
27669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27678 # for constant arguments. Useless!
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27680 $as_echo_n "checking for working alloca.h... " >&6; }
27681 if ${ac_cv_working_alloca_h+:} false; then :
27682 $as_echo_n "(cached) " >&6
27684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h. */
27686 #include <alloca.h>
27690 char *p = (char *) alloca (2 * sizeof (int));
27696 if ac_fn_c_try_link "$LINENO"; then :
27697 ac_cv_working_alloca_h=yes
27699 ac_cv_working_alloca_h=no
27701 rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27705 $as_echo "$ac_cv_working_alloca_h" >&6; }
27706 if test $ac_cv_working_alloca_h = yes; then
27708 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27713 $as_echo_n "checking for alloca... " >&6; }
27714 if ${ac_cv_func_alloca_works+:} false; then :
27715 $as_echo_n "(cached) " >&6
27717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27718 /* end confdefs.h. */
27720 # define alloca __builtin_alloca
27723 # include <malloc.h>
27724 # define alloca _alloca
27726 # ifdef HAVE_ALLOCA_H
27727 # include <alloca.h>
27732 # ifndef alloca /* predefined by HP cc +Olibcalls */
27733 void *alloca (size_t);
27743 char *p = (char *) alloca (1);
27749 if ac_fn_c_try_link "$LINENO"; then :
27750 ac_cv_func_alloca_works=yes
27752 ac_cv_func_alloca_works=no
27754 rm -f core conftest.err conftest.$ac_objext \
27755 conftest$ac_exeext conftest.$ac_ext
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27758 $as_echo "$ac_cv_func_alloca_works" >&6; }
27760 if test $ac_cv_func_alloca_works = yes; then
27762 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27765 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27766 # that cause trouble. Some versions do not even contain alloca or
27767 # contain a buggy version. If you still want to use their alloca,
27768 # use ar to extract alloca.o from them instead of compiling alloca.c.
27770 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27772 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27776 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27777 if ${ac_cv_os_cray+:} false; then :
27778 $as_echo_n "(cached) " >&6
27780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h. */
27782 #if defined CRAY && ! defined CRAY2
27789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27790 $EGREP "webecray" >/dev/null 2>&1; then :
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27799 $as_echo "$ac_cv_os_cray" >&6; }
27800 if test $ac_cv_os_cray = yes; then
27801 for ac_func in _getb67 GETB67 getb67; do
27802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27806 cat >>confdefs.h <<_ACEOF
27807 #define CRAY_STACKSEG_END $ac_func
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27817 $as_echo_n "checking stack direction for C alloca... " >&6; }
27818 if ${ac_cv_c_stack_direction+:} false; then :
27819 $as_echo_n "(cached) " >&6
27821 if test "$cross_compiling" = yes; then :
27822 ac_cv_c_stack_direction=0
27824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h. */
27826 $ac_includes_default
27828 find_stack_direction ()
27830 static char *addr = 0;
27835 return find_stack_direction ();
27838 return (&dummy > addr) ? 1 : -1;
27844 return find_stack_direction () < 0;
27847 if ac_fn_c_try_run "$LINENO"; then :
27848 ac_cv_c_stack_direction=1
27850 ac_cv_c_stack_direction=-1
27852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27853 conftest.$ac_objext conftest.beam conftest.$ac_ext
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27858 $as_echo "$ac_cv_c_stack_direction" >&6; }
27859 cat >>confdefs.h <<_ACEOF
27860 #define STACK_DIRECTION $ac_cv_c_stack_direction
27866 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27867 # -lseq on Dynix/PTX, -lgen on Unixware.
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27869 $as_echo_n "checking for library containing getmntent... " >&6; }
27870 if ${ac_cv_search_getmntent+:} false; then :
27871 $as_echo_n "(cached) " >&6
27873 ac_func_search_save_LIBS=$LIBS
27874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27875 /* end confdefs.h. */
27877 /* Override any GCC internal prototype to avoid an error.
27878 Use char because int might match the return type of a GCC
27879 builtin and then its argument prototype would still apply. */
27887 return getmntent ();
27892 for ac_lib in '' sun seq gen; do
27893 if test -z "$ac_lib"; then
27894 ac_res="none required"
27897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27899 if ac_fn_c_try_link "$LINENO"; then :
27900 ac_cv_search_getmntent=$ac_res
27902 rm -f core conftest.err conftest.$ac_objext \
27904 if ${ac_cv_search_getmntent+:} false; then :
27908 if ${ac_cv_search_getmntent+:} false; then :
27911 ac_cv_search_getmntent=no
27913 rm conftest.$ac_ext
27914 LIBS=$ac_func_search_save_LIBS
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27917 $as_echo "$ac_cv_search_getmntent" >&6; }
27918 ac_res=$ac_cv_search_getmntent
27919 if test "$ac_res" != no; then :
27920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27921 ac_cv_func_getmntent=yes
27923 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27926 ac_cv_func_getmntent=no
27930 for ac_func in getmntinfo
27932 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27933 if test "x$ac_cv_func_getmntinfo" = xyes; then :
27934 cat >>confdefs.h <<_ACEOF
27935 #define HAVE_GETMNTINFO 1
27937 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27943 $as_echo_n "checking whether closedir returns void... " >&6; }
27944 if ${ac_cv_func_closedir_void+:} false; then :
27945 $as_echo_n "(cached) " >&6
27947 if test "$cross_compiling" = yes; then :
27948 ac_cv_func_closedir_void=yes
27950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h. */
27952 $ac_includes_default
27953 #include <$ac_header_dirent>
27954 #ifndef __cplusplus
27961 return closedir (opendir (".")) != 0;
27966 if ac_fn_c_try_run "$LINENO"; then :
27967 ac_cv_func_closedir_void=no
27969 ac_cv_func_closedir_void=yes
27971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27972 conftest.$ac_objext conftest.beam conftest.$ac_ext
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27977 $as_echo "$ac_cv_func_closedir_void" >&6; }
27978 if test $ac_cv_func_closedir_void = yes; then
27980 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27985 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27986 if ${ac_cv_func_setpgrp_void+:} false; then :
27987 $as_echo_n "(cached) " >&6
27989 if test "$cross_compiling" = yes; then :
27990 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993 /* end confdefs.h. */
27994 $ac_includes_default
27998 /* If this system has a BSD-style setpgrp which takes arguments,
27999 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28000 exit successfully. */
28001 return setpgrp (1,1) != -1;
28006 if ac_fn_c_try_run "$LINENO"; then :
28007 ac_cv_func_setpgrp_void=no
28009 ac_cv_func_setpgrp_void=yes
28011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28012 conftest.$ac_objext conftest.beam conftest.$ac_ext
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28017 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28018 if test $ac_cv_func_setpgrp_void = yes; then
28020 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28023 # AC_FUNC_FNMATCH dnl use local version
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28026 $as_echo_n "checking for gettext in -lintl... " >&6; }
28027 if ${ac_cv_lib_intl_gettext+:} false; then :
28028 $as_echo_n "(cached) " >&6
28030 ac_check_lib_save_LIBS=$LIBS
28031 LIBS="-lintl $LIBS"
28032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 if ac_fn_c_try_link "$LINENO"; then :
28051 ac_cv_lib_intl_gettext=yes
28053 ac_cv_lib_intl_gettext=no
28055 rm -f core conftest.err conftest.$ac_objext \
28056 conftest$ac_exeext conftest.$ac_ext
28057 LIBS=$ac_check_lib_save_LIBS
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28060 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28061 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28062 LIBS="$LIBS -lintl"
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28067 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28068 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28069 $as_echo_n "(cached) " >&6
28071 ac_check_lib_save_LIBS=$LIBS
28073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28074 /* end confdefs.h. */
28076 /* Override any GCC internal prototype to avoid an error.
28077 Use char because int might match the return type of a GCC
28078 builtin and then its argument prototype would still apply. */
28086 return getpwnam ();
28091 if ac_fn_c_try_link "$LINENO"; then :
28092 ac_cv_lib_sun_getpwnam=yes
28094 ac_cv_lib_sun_getpwnam=no
28096 rm -f core conftest.err conftest.$ac_objext \
28097 conftest$ac_exeext conftest.$ac_ext
28098 LIBS=$ac_check_lib_save_LIBS
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28101 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28102 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28103 cat >>confdefs.h <<_ACEOF
28104 #define HAVE_LIBSUN 1
28112 for ac_header in zlib.h
28114 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28115 if test "x$ac_cv_header_zlib_h" = xyes; then :
28116 cat >>confdefs.h <<_ACEOF
28117 #define HAVE_ZLIB_H 1
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28125 $as_echo_n "checking for deflate in -lz... " >&6; }
28126 if ${ac_cv_lib_z_deflate+:} false; then :
28127 $as_echo_n "(cached) " >&6
28129 ac_check_lib_save_LIBS=$LIBS
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 /* Override any GCC internal prototype to avoid an error.
28135 Use char because int might match the return type of a GCC
28136 builtin and then its argument prototype would still apply. */
28149 if ac_fn_c_try_link "$LINENO"; then :
28150 ac_cv_lib_z_deflate=yes
28152 ac_cv_lib_z_deflate=no
28154 rm -f core conftest.err conftest.$ac_objext \
28155 conftest$ac_exeext conftest.$ac_ext
28156 LIBS=$ac_check_lib_save_LIBS
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28159 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28160 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28165 if test x$ZLIBS = x-lz; then
28166 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28173 # Check whether --enable-acl was given.
28174 if test "${enable_acl+set}" = set; then :
28175 enableval=$enable_acl;
28176 if test x$enableval = xyes; then
28178 elif test x$enableval = xno; then
28187 have_extended_acl=no
28188 if test x$support_acl = xyes -o x$support_acl = xauto; then
28189 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28190 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28192 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28198 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28199 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28207 if test $have_acl = no; then
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28209 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28210 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28211 $as_echo_n "(cached) " >&6
28213 ac_check_lib_save_LIBS=$LIBS
28215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28216 /* end confdefs.h. */
28218 /* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28224 char acl_get_file ();
28228 return acl_get_file ();
28233 if ac_fn_c_try_link "$LINENO"; then :
28234 ac_cv_lib_acl_acl_get_file=yes
28236 ac_cv_lib_acl_acl_get_file=no
28238 rm -f core conftest.err conftest.$ac_objext \
28239 conftest$ac_exeext conftest.$ac_ext
28240 LIBS=$ac_check_lib_save_LIBS
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28243 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28244 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28247 if test $have_afs = yes; then
28248 if test -d /usr/lib64/; then
28249 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28251 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28254 FDLIBS="-lacl $FDLIBS"
28262 if test $have_acl = no -a \
28263 x${HAVE_OSF1_OS_TRUE} = x; then
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28265 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28266 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28267 $as_echo_n "(cached) " >&6
28269 ac_check_lib_save_LIBS=$LIBS
28270 LIBS="-lpacl $LIBS"
28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272 /* end confdefs.h. */
28274 /* Override any GCC internal prototype to avoid an error.
28275 Use char because int might match the return type of a GCC
28276 builtin and then its argument prototype would still apply. */
28280 char acl_get_file ();
28284 return acl_get_file ();
28289 if ac_fn_c_try_link "$LINENO"; then :
28290 ac_cv_lib_pacl_acl_get_file=yes
28292 ac_cv_lib_pacl_acl_get_file=no
28294 rm -f core conftest.err conftest.$ac_objext \
28295 conftest$ac_exeext conftest.$ac_ext
28296 LIBS=$ac_check_lib_save_LIBS
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28299 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28300 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28303 FDLIBS="-lpacl $FDLIBS"
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28310 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28311 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28312 if test $? = 0; then
28314 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28317 $as_echo "yes" >&6; }
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28320 $as_echo "no" >&6; }
28324 if test $have_acl = yes -a \
28325 x${HAVE_DARWIN_OS_TRUE} = x; then
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28327 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28328 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28329 if test $? = 0; then
28331 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28334 $as_echo "yes" >&6; }
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337 $as_echo "no" >&6; }
28341 if test $have_acl = yes -a \
28342 x${HAVE_FREEBSD_OS_TRUE} = x; then
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28344 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28345 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28346 if test $? = 0; then
28348 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28351 $as_echo "yes" >&6; }
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28354 $as_echo "no" >&6; }
28358 if test $have_acl = no -a \
28359 x${HAVE_SUN_OS_TRUE} = x; then
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28361 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28362 if ${ac_cv_lib_sec_acltotext+:} false; then :
28363 $as_echo_n "(cached) " >&6
28365 ac_check_lib_save_LIBS=$LIBS
28367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28368 /* end confdefs.h. */
28370 /* Override any GCC internal prototype to avoid an error.
28371 Use char because int might match the return type of a GCC
28372 builtin and then its argument prototype would still apply. */
28380 return acltotext ();
28385 if ac_fn_c_try_link "$LINENO"; then :
28386 ac_cv_lib_sec_acltotext=yes
28388 ac_cv_lib_sec_acltotext=no
28390 rm -f core conftest.err conftest.$ac_objext \
28391 conftest$ac_exeext conftest.$ac_ext
28392 LIBS=$ac_check_lib_save_LIBS
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28395 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28396 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28399 FDLIBS="-lsec $FDLIBS"
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28402 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28403 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28404 $as_echo_n "(cached) " >&6
28406 ac_check_lib_save_LIBS=$LIBS
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h. */
28411 /* Override any GCC internal prototype to avoid an error.
28412 Use char because int might match the return type of a GCC
28413 builtin and then its argument prototype would still apply. */
28417 char acl_totext ();
28421 return acl_totext ();
28426 if ac_fn_c_try_link "$LINENO"; then :
28427 ac_cv_lib_sec_acl_totext=yes
28429 ac_cv_lib_sec_acl_totext=no
28431 rm -f core conftest.err conftest.$ac_objext \
28432 conftest$ac_exeext conftest.$ac_ext
28433 LIBS=$ac_check_lib_save_LIBS
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28436 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28437 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28439 have_extended_acl=yes
28450 if test $have_acl = no -a \
28451 x${HAVE_AIX_OS_TRUE} = x; then
28452 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28453 if test "x$ac_cv_func_acl_get" = xyes; then :
28457 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28458 if test "x$ac_cv_func_aclx_get" = xyes; then :
28460 have_extended_acl=yes
28471 if test x$support_acl = xyes -a $have_acl != yes; then
28472 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28473 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28475 if test $have_acl = yes; then
28477 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28481 if test $have_extended_acl = yes; then
28483 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28490 # Check whether --enable-xattr was given.
28491 if test "${enable_xattr+set}" = set; then :
28492 enableval=$enable_xattr;
28493 if test x$enableval = xyes; then
28495 elif test x$enableval = xno; then
28504 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28505 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28506 x${HAVE_NETBSD_OS_TRUE} = x -o \
28507 x${HAVE_OPENBSD_OS_TRUE} = x; then
28508 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28509 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28511 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28516 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28517 if test "x$ac_cv_header_libutil_h" = xyes; then :
28519 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28524 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28527 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28528 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28529 cat >>confdefs.h <<_ACEOF
28530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28535 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28538 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28541 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28549 if test $have_xattr = no; then
28550 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28555 cat >>confdefs.h <<_ACEOF
28556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28561 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28564 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28567 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28576 if test $have_xattr = yes; then
28577 have_extattr_string_in_libc=no
28578 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28581 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28582 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28583 cat >>confdefs.h <<_ACEOF
28584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28587 have_extattr_string_in_libc=yes
28589 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28592 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28600 if test $have_extattr_string_in_libc = no; then
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28602 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28603 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28604 $as_echo_n "(cached) " >&6
28606 ac_check_lib_save_LIBS=$LIBS
28607 LIBS="-lutil $LIBS"
28608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28609 /* end confdefs.h. */
28611 /* Override any GCC internal prototype to avoid an error.
28612 Use char because int might match the return type of a GCC
28613 builtin and then its argument prototype would still apply. */
28617 char extattr_namespace_to_string extattr_string_to_namespace ();
28621 return extattr_namespace_to_string extattr_string_to_namespace ();
28626 if ac_fn_c_try_link "$LINENO"; then :
28627 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28629 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28631 rm -f core conftest.err conftest.$ac_objext \
28632 conftest$ac_exeext conftest.$ac_ext
28633 LIBS=$ac_check_lib_save_LIBS
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28636 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28637 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28640 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28643 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28645 FDLIBS="-lutil $FDLIBS"
28654 if test $have_xattr = no -a \
28655 x${HAVE_AIX_OS_TRUE} = x; then
28656 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28657 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28659 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28664 for ac_func in llistea lgetea lsetea
28666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28669 cat >>confdefs.h <<_ACEOF
28670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28675 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28678 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28681 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28689 if test $have_xattr = no; then
28690 for ac_func in listea getea setea
28692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28695 cat >>confdefs.h <<_ACEOF
28696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28701 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28704 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28707 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28717 if test $have_xattr = no -a \
28718 x${HAVE_OSF1_OS_TRUE} = x; then
28719 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28720 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28722 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28727 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28732 cat >>confdefs.h <<_ACEOF
28733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28738 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28741 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28744 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28747 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28750 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28759 if test $have_xattr = no -a \
28760 x${HAVE_SUN_OS_TRUE} = x; then
28761 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28762 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
28764 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28769 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28770 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
28772 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28777 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28778 if test "x$ac_cv_header_attr_h" = xyes; then :
28780 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28786 for ac_func in openat fstatat unlinkat fchownat futimesat
28788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28791 cat >>confdefs.h <<_ACEOF
28792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28797 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28800 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28803 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28806 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28809 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28817 if test $have_xattr = yes; then
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28819 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28820 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
28821 $as_echo_n "(cached) " >&6
28823 ac_check_lib_save_LIBS=$LIBS
28824 LIBS="-lnvpair $LIBS"
28825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28826 /* end confdefs.h. */
28828 /* Override any GCC internal prototype to avoid an error.
28829 Use char because int might match the return type of a GCC
28830 builtin and then its argument prototype would still apply. */
28834 char nvlist_next_nvpair ();
28838 return nvlist_next_nvpair ();
28843 if ac_fn_c_try_link "$LINENO"; then :
28844 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28846 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28848 rm -f core conftest.err conftest.$ac_objext \
28849 conftest$ac_exeext conftest.$ac_ext
28850 LIBS=$ac_check_lib_save_LIBS
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28853 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28854 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
28857 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28859 FDLIBS="-lnvpair $FDLIBS"
28867 if test $have_xattr = no; then
28868 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28869 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
28871 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28876 for ac_func in llistxattr lgetxattr lsetxattr
28878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28881 cat >>confdefs.h <<_ACEOF
28882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28887 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28890 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28893 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28901 if test $have_xattr = no; then
28902 for ac_func in listxattr getxattr setxattr
28904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28907 cat >>confdefs.h <<_ACEOF
28908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28913 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28916 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28919 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28929 if test x$support_xattr = xyes -a $have_xattr != yes; then
28930 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28931 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28933 if test $have_xattr = yes; then
28935 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28943 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28944 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
28945 $as_echo_n "(cached) " >&6
28947 ac_check_lib_save_LIBS=$LIBS
28948 LIBS="-lpthread $LIBS"
28949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28950 /* end confdefs.h. */
28952 /* Override any GCC internal prototype to avoid an error.
28953 Use char because int might match the return type of a GCC
28954 builtin and then its argument prototype would still apply. */
28958 char pthread_create ();
28962 return pthread_create ();
28967 if ac_fn_c_try_link "$LINENO"; then :
28968 ac_cv_lib_pthread_pthread_create=yes
28970 ac_cv_lib_pthread_pthread_create=no
28972 rm -f core conftest.err conftest.$ac_objext \
28973 conftest$ac_exeext conftest.$ac_ext
28974 LIBS=$ac_check_lib_save_LIBS
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28977 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28978 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
28979 PTHREAD_LIB="-lpthread"
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28983 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28984 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
28985 $as_echo_n "(cached) " >&6
28987 ac_check_lib_save_LIBS=$LIBS
28988 LIBS="-lpthreads $LIBS"
28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28990 /* end confdefs.h. */
28992 /* Override any GCC internal prototype to avoid an error.
28993 Use char because int might match the return type of a GCC
28994 builtin and then its argument prototype would still apply. */
28998 char pthread_create ();
29002 return pthread_create ();
29007 if ac_fn_c_try_link "$LINENO"; then :
29008 ac_cv_lib_pthreads_pthread_create=yes
29010 ac_cv_lib_pthreads_pthread_create=no
29012 rm -f core conftest.err conftest.$ac_objext \
29013 conftest$ac_exeext conftest.$ac_ext
29014 LIBS=$ac_check_lib_save_LIBS
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29017 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29018 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29019 PTHREAD_LIB="-lpthreads"
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29023 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29024 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29025 $as_echo_n "(cached) " >&6
29027 ac_check_lib_save_LIBS=$LIBS
29029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29030 /* end confdefs.h. */
29032 /* Override any GCC internal prototype to avoid an error.
29033 Use char because int might match the return type of a GCC
29034 builtin and then its argument prototype would still apply. */
29038 char pthread_create ();
29042 return pthread_create ();
29047 if ac_fn_c_try_link "$LINENO"; then :
29048 ac_cv_lib_c_r_pthread_create=yes
29050 ac_cv_lib_c_r_pthread_create=no
29052 rm -f core conftest.err conftest.$ac_objext \
29053 conftest$ac_exeext conftest.$ac_ext
29054 LIBS=$ac_check_lib_save_LIBS
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29057 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29058 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29059 PTHREAD_LIB="-lc_r"
29062 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29063 if test "x$ac_cv_func_pthread_create" = xyes; then :
29080 for ac_header in sys/prctl.h sys/capability.h
29082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29085 cat >>confdefs.h <<_ACEOF
29086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29093 for ac_func in prctl setreuid
29095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29098 cat >>confdefs.h <<_ACEOF
29099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29106 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29107 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29108 $as_echo_n "(cached) " >&6
29110 ac_check_lib_save_LIBS=$LIBS
29112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29113 /* end confdefs.h. */
29115 /* Override any GCC internal prototype to avoid an error.
29116 Use char because int might match the return type of a GCC
29117 builtin and then its argument prototype would still apply. */
29121 char cap_set_proc ();
29125 return cap_set_proc ();
29130 if ac_fn_c_try_link "$LINENO"; then :
29131 ac_cv_lib_cap_cap_set_proc=yes
29133 ac_cv_lib_cap_cap_set_proc=no
29135 rm -f core conftest.err conftest.$ac_objext \
29136 conftest$ac_exeext conftest.$ac_ext
29137 LIBS=$ac_check_lib_save_LIBS
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29140 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29141 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29147 if test x$CAP_LIBS = x-lcap; then
29149 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29155 $as_echo "#define FDLIBS 1" >>confdefs.h
29158 CFLAGS=${CFLAGS--O}
29160 if test x$have_gcc = xyes ; then
29161 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29162 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29164 LDFLAGS=${LDFLAGS--O}
29165 CPPFLAGS="$CPPFLAGS"
29191 PFILES="platforms/Makefile"
29196 hostname=`uname -n | cut -d '.' -f 1`
29197 if test x${hostname} = x ; then
29198 hostname="localhost"
29200 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29201 if test ! $? = 0; then
29202 hostname="localhost"
29205 case "$DISTNAME" in
29208 PSCMD="ps -e -o pid,comm"
29209 PFILES="${PFILES} \
29210 platforms/aix/Makefile"
29211 TAPEDRIVE="/dev/rmt0.1"
29215 PTHREAD_LIB="-lpthread -lexc"
29216 if test "${CC}" = "gcc" ; then
29223 TAPEDRIVE="/dev/nrmt0"
29226 DISTVER=`uname -a |awk '{print $3}'`
29227 TAPEDRIVE="/dev/nrmt0"
29228 PTHREAD_LIB="-pthread"
29229 CFLAGS="${CFLAGS} -pthread"
29230 PSCMD="ps -ax -o pid,command"
29233 PFILES="${PFILES} \
29234 platforms/bsdi/Makefile \
29235 platforms/bsdi/bacula-fd \
29236 platforms/bsdi/bacula-sd \
29237 platforms/bsdi/bacula-dir"
29238 largefile_support="yes"
29241 DISTVER=`uname -a |awk '{print $3}'`
29242 TAPEDRIVE="/dev/nrst0"
29244 WCFLAGS="-mwindows"
29245 WLDFLAGS="-mwindows"
29249 TAPEDRIVE="/dev/nst0"
29250 PSCMD="ps -e -o pid,command"
29252 PFILES="${PFILES} \
29253 platforms/darwin/Makefile"
29257 TAPEDRIVE="/dev/nst0"
29258 PSCMD="ps -e -o pid,command"
29260 PFILES="${PFILES} \
29261 platforms/osx/Makefile"
29264 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29267 DISTVER=`cat /etc/debian_version`
29268 if test -f /etc/lsb-release ; then
29270 if test "x$DISTRIB_ID" != "x" ; then
29271 DISTNAME=$DISTRIB_ID
29273 if test "x$DISTRIB_RELEASE" != "x" ; then
29274 DISTVER=$DISTRIB_RELEASE
29277 if test "$DISTNAME" = "Ubuntu" ; then
29280 TAPEDRIVE="/dev/nst0"
29281 PSCMD="ps -e -o pid,command"
29282 if test "$DISTNAME" = "ubuntu" ; then
29283 PFILES="${PFILES} \
29284 platforms/ubuntu/Makefile \
29285 platforms/ubuntu/bacula-fd \
29286 platforms/ubuntu/bacula-sd \
29287 platforms/ubuntu/bacula-dir"
29289 PFILES="${PFILES} \
29290 platforms/debian/Makefile \
29291 platforms/debian/bacula-fd \
29292 platforms/debian/bacula-sd \
29293 platforms/debian/bacula-dir"
29297 DISTVER=`uname -a |awk '{print $3}'`
29298 VER=`echo $DISTVER | cut -c 1`
29299 if test x$VER = x4 ; then
29300 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29301 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29305 TAPEDRIVE="/dev/nrsa0"
29306 PSCMD="ps -ax -o pid,command"
29307 PFILES="${PFILES} \
29308 platforms/freebsd/Makefile \
29309 platforms/freebsd/bacula-fd \
29310 platforms/freebsd/bacula-sd \
29311 platforms/freebsd/bacula-dir"
29312 largefile_support="yes"
29315 PSCMD="UNIX95=1; ps -e -o pid,comm"
29316 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29318 TAPEDRIVE="/dev/rmt/0hnb"
29319 PTHREAD_LIB="-lpthread"
29320 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29325 TAPEDRIVE="/dev/rmt/0cbn"
29326 PSCMD="ps -e -o pid,comm"
29327 PFILES="${PFILES} \
29328 platforms/irix/Makefile \
29329 platforms/irix/bacula-fd \
29330 platforms/irix/bacula-sd \
29331 platforms/irix/bacula-dir"
29334 DISTVER=`uname -a |awk '{print $3}'`
29337 TAPEDRIVE="/dev/nrst0"
29338 PSCMD="ps -ax -o pid,command"
29339 PTHREAD_LIB="-pthread"
29340 CFLAGS="${CFLAGS} -pthread"
29343 DISTVER=`uname -a |awk '{print $3}'`
29346 TAPEDRIVE="/dev/nrst0"
29347 PSCMD="ps -ax -o pid,command"
29348 PTHREAD_LIB="-pthread"
29349 CFLAGS="${CFLAGS} -pthread"
29350 PFILES="${PFILES} \
29351 platforms/openbsd/Makefile \
29352 platforms/openbsd/bacula-fd \
29353 platforms/openbsd/bacula-sd \
29354 platforms/openbsd/bacula-dir"
29357 if test -f /etc/whitebox-release ; then
29358 f=/etc/whitebox-release
29360 f=/etc/redhat-release
29362 if test `cat $f | grep release |\
29363 cut -f 3 -d ' '`x = "Enterprise"x ; then
29364 DISTVER="Enterprise "`cat $f | grep release |\
29367 DISTVER=`cat /etc/redhat-release | grep release |\
29370 TAPEDRIVE="/dev/nst0"
29371 PSCMD="ps -e -o pid,command"
29372 PFILES="${PFILES} \
29373 platforms/redhat/Makefile \
29374 platforms/redhat/bacula-fd \
29375 platforms/redhat/bacula-sd \
29376 platforms/redhat/bacula-dir
29380 DISTVER=`cat /etc/mandrake-release | grep release |\
29382 TAPEDRIVE="/dev/nst0"
29383 PSCMD="ps -e -o pid,command"
29384 PFILES="${PFILES} \
29385 platforms/mandrake/Makefile \
29386 platforms/mandrake/bacula-fd \
29387 platforms/mandrake/bacula-sd \
29388 platforms/mandrake/bacula-dir \
29392 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29393 TAPEDRIVE="/dev/nst0"
29394 PSCMD="ps -e -o pid,command"
29395 PFILES="${PFILES} \
29396 platforms/gentoo/Makefile \
29397 platforms/gentoo/bacula-init \
29398 platforms/gentoo/bacula-fd \
29399 platforms/gentoo/bacula-sd \
29400 platforms/gentoo/bacula-dir"
29403 DISTVER=`cat /etc/slackware-version`
29404 TAPEDRIVE="/dev/nst0"
29405 PSCMD="ps -e -o pid,command"
29406 PFILES="${PFILES} \
29407 platforms/slackware/Makefile \
29408 platforms/slackware/rc.bacula-fd \
29409 platforms/slackware/rc.bacula-sd \
29410 platforms/slackware/rc.bacula-dir\
29411 platforms/slackware/functions.bacula"
29415 TAPEDRIVE="/dev/rmt/0cbn"
29416 PSCMD="ps -e -o pid,comm"
29417 PFILES="${PFILES} \
29418 platforms/solaris/Makefile \
29419 platforms/solaris/bacula-fd \
29420 platforms/solaris/bacula-sd \
29421 platforms/solaris/bacula-dir"
29424 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29426 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29430 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29436 LIBS="$LIBS -lresolv -lrt"
29439 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29441 TAPEDRIVE="/dev/nst0"
29442 PSCMD="ps -e -o pid,command"
29443 PFILES="${PFILES} \
29444 platforms/suse/Makefile \
29445 platforms/suse/bacula-fd \
29446 platforms/suse/bacula-sd \
29447 platforms/suse/bacula-dir \
29448 platforms/suse/bacula"
29453 TAPEDRIVE="/dev/nst0"
29454 PSCMD="ps -e -o pid,command"
29455 PFILES="${PFILES} \
29456 platforms/suse/Makefile \
29457 platforms/suse/bacula-fd \
29458 platforms/suse/bacula-sd \
29459 platforms/suse/bacula-dir"
29463 TAPEDRIVE="/dev/nst0"
29466 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29472 LIBS="$PTHREAD_LIB $LIBS"
29474 cat >>confdefs.h <<_ACEOF
29478 cat >>confdefs.h <<_ACEOF
29489 MCOMMON=./autoconf/Make.common
29492 if test "x${subsysdir}" = "x${sbindir}" ; then
29495 echo "You have set both --sbindir and --with-subsys-dir"
29496 echo " equal to: ${subsysdir} "
29497 echo "This is not permitted. Please reconfigure."
29499 echo "Aborting configuration ..."
29505 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"
29507 ac_config_commands="$ac_config_commands default"
29509 cat >confcache <<\_ACEOF
29510 # This file is a shell script that caches the results of configure
29511 # tests run on this system so they can be shared between configure
29512 # scripts and configure runs, see configure's option --config-cache.
29513 # It is not useful on other systems. If it contains results you don't
29514 # want to keep, you may remove or edit it.
29516 # config.status only pays attention to the cache file if you give it
29517 # the --recheck option to rerun configure.
29519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29521 # following values.
29525 # The following way of writing the cache mishandles newlines in values,
29526 # but we know of no workaround that is simple, portable, and efficient.
29527 # So, we kill variables containing newlines.
29528 # Ultrix sh set writes to stderr and can't be redirected directly,
29529 # and sets the high bit in the cache file unless we assign to the vars.
29531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29532 eval ac_val=\$$ac_var
29536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29540 _ | IFS | as_nl) ;; #(
29541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29542 *) { eval $ac_var=; unset $ac_var;} ;;
29548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29549 *${as_nl}ac_space=\ *)
29550 # `set' does not quote correctly, so add quotes: double-quote
29551 # substitution turns \\\\ into \\, and sed turns \\ into \.
29554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29557 # `set' quotes correctly as required by POSIX, so do not add quotes.
29558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29572 if test -w "$cache_file"; then
29573 if test "x$cache_file" != "x/dev/null"; then
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29575 $as_echo "$as_me: updating cache $cache_file" >&6;}
29576 if test ! -f "$cache_file" || test -h "$cache_file"; then
29577 cat confcache >"$cache_file"
29579 case $cache_file in #(
29581 mv -f confcache "$cache_file"$$ &&
29582 mv -f "$cache_file"$$ "$cache_file" ;; #(
29584 mv -f confcache "$cache_file" ;;
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29596 # Let make expand exec_prefix.
29597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29599 DEFS=-DHAVE_CONFIG_H
29604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29605 # 1. Remove the extension, and $U if already installed.
29606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29609 # will be set to the directory where LIBOBJS objects are built.
29610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29613 LIBOBJS=$ac_libobjs
29615 LTLIBOBJS=$ac_ltlibobjs
29620 : "${CONFIG_STATUS=./config.status}"
29622 ac_clean_files_save=$ac_clean_files
29623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29629 # Generated by $as_me.
29630 # Run this file to recreate the current configuration.
29631 # Compiler output produced by configure, useful for debugging
29632 # configure, is in config.log if it exists.
29635 ac_cs_recheck=false
29638 SHELL=\${CONFIG_SHELL-$SHELL}
29641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29642 ## -------------------- ##
29643 ## M4sh Initialization. ##
29644 ## -------------------- ##
29646 # Be more Bourne compatible
29647 DUALCASE=1; export DUALCASE # for MKS sh
29648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29652 # is contrary to our usage. Disable this feature.
29653 alias -g '${1+"$@"}'='"$@"'
29654 setopt NO_GLOB_SUBST
29656 case `(set -o) 2>/dev/null` in #(
29668 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29669 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29672 # Prefer a ksh shell builtin over an external printf program on Solaris,
29673 # but without wasting forks for bash or zsh.
29674 if test -z "$BASH_VERSION$ZSH_VERSION" \
29675 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29676 as_echo='print -r --'
29677 as_echo_n='print -rn --'
29678 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29679 as_echo='printf %s\n'
29680 as_echo_n='printf %s'
29682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29684 as_echo_n='/usr/ucb/echo -n'
29686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29687 as_echo_n_body='eval
29691 expr "X$arg" : "X\\(.*\\)$as_nl";
29692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29696 export as_echo_n_body
29697 as_echo_n='sh -c $as_echo_n_body as_echo'
29699 export as_echo_body
29700 as_echo='sh -c $as_echo_body as_echo'
29703 # The user is always right.
29704 if test "${PATH_SEPARATOR+set}" != set; then
29706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29714 # We need space, tab and new line, in precisely that order. Quoting is
29715 # there to prevent editors from complaining about space-tab.
29716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29717 # splitting by setting IFS to empty value.)
29720 # Find who we are. Look in the path if we contain no directory separator.
29723 *[\\/]* ) as_myself=$0 ;;
29724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725 for as_dir in $PATH
29728 test -z "$as_dir" && as_dir=.
29729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29735 # We did not find ourselves, most probably we were run as `sh COMMAND'
29736 # in which case we are not to be found in the path.
29737 if test "x$as_myself" = x; then
29740 if test ! -f "$as_myself"; then
29741 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29745 # Unset variables that we do not need and which cause bugs (e.g. in
29746 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29747 # suppresses any "Segmentation fault" message there. '((' could
29748 # trigger a bug in pdksh 5.2.14.
29749 for as_var in BASH_ENV ENV MAIL MAILPATH
29750 do eval test x\${$as_var+set} = xset \
29751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29767 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29768 # ----------------------------------------
29769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29771 # script with STATUS, using 1 if that was 0.
29774 as_status=$1; test $as_status -eq 0 && as_status=1
29776 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29777 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29779 $as_echo "$as_me: error: $2" >&2
29780 as_fn_exit $as_status
29784 # as_fn_set_status STATUS
29785 # -----------------------
29786 # Set $? to STATUS, without forking.
29787 as_fn_set_status ()
29790 } # as_fn_set_status
29792 # as_fn_exit STATUS
29793 # -----------------
29794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29798 as_fn_set_status $1
29804 # Portably unset VAR.
29807 { eval $1=; unset $1;}
29809 as_unset=as_fn_unset
29810 # as_fn_append VAR VALUE
29811 # ----------------------
29812 # Append the text in VALUE to the end of the definition contained in VAR. Take
29813 # advantage of any shell optimizations that allow amortized linear growth over
29814 # repeated appends, instead of the typical quadratic growth present in naive
29816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29817 eval 'as_fn_append ()
29828 # as_fn_arith ARG...
29829 # ------------------
29830 # Perform arithmetic evaluation on the ARGs, and store the result in the
29831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29832 # must be portable across $(()) and expr.
29833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29834 eval 'as_fn_arith ()
29841 as_val=`expr "$@" || test $? -eq 1`
29846 if expr a : '\(a\)' >/dev/null 2>&1 &&
29847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29854 as_basename=basename
29859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29865 as_me=`$as_basename -- "$0" ||
29866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29867 X"$0" : 'X\(//\)$' \| \
29868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29870 sed '/^.*\/\([^/][^/]*\)\/*$/{
29884 # Avoid depending upon Character Ranges.
29885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29888 as_cr_digits='0123456789'
29889 as_cr_alnum=$as_cr_Letters$as_cr_digits
29891 ECHO_C= ECHO_N= ECHO_T=
29892 case `echo -n x` in #(((((
29894 case `echo 'xy\c'` in
29895 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29897 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29904 rm -f conf$$ conf$$.exe conf$$.file
29905 if test -d conf$$.dir; then
29906 rm -f conf$$.dir/conf$$.file
29909 mkdir conf$$.dir 2>/dev/null
29911 if (echo >conf$$.file) 2>/dev/null; then
29912 if ln -s conf$$.file conf$$ 2>/dev/null; then
29914 # ... but there are two gotchas:
29915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29917 # In both cases, we have to default to `cp -p'.
29918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29920 elif ln conf$$.file conf$$ 2>/dev/null; then
29928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29929 rmdir conf$$.dir 2>/dev/null
29934 # Create "$as_dir" as a directory, including parents if necessary.
29939 -*) as_dir=./$as_dir;;
29941 test -d "$as_dir" || eval $as_mkdir_p || {
29945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29946 *) as_qdir=$as_dir;;
29948 as_dirs="'$as_qdir' $as_dirs"
29949 as_dir=`$as_dirname -- "$as_dir" ||
29950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29951 X"$as_dir" : 'X\(//\)[^/]' \| \
29952 X"$as_dir" : 'X\(//\)$' \| \
29953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29954 $as_echo X"$as_dir" |
29955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29959 /^X\(\/\/\)[^/].*/{
29972 test -d "$as_dir" && break
29974 test -z "$as_dirs" || eval "mkdir $as_dirs"
29975 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29979 if mkdir -p . 2>/dev/null; then
29980 as_mkdir_p='mkdir -p "$as_dir"'
29982 test -d ./-p && rmdir ./-p
29986 if test -x / >/dev/null 2>&1; then
29987 as_test_x='test -x'
29989 if ls -dL / >/dev/null 2>&1; then
29996 if test -d "$1"; then
30002 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30003 ???[sx]*):;;*)false;;esac;fi
30007 as_executable_p=$as_test_x
30009 # Sed expression to map a string onto a valid CPP name.
30010 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30012 # Sed expression to map a string onto a valid variable name.
30013 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30017 ## ----------------------------------- ##
30018 ## Main body of $CONFIG_STATUS script. ##
30019 ## ----------------------------------- ##
30021 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30024 # Save the log message, to keep $0 and so on meaningful, and to
30025 # report actual input values of CONFIG_FILES etc. instead of their
30026 # values after options handling.
30028 This file was extended by bacula $as_me 5.1.14, which was
30029 generated by GNU Autoconf 2.68. Invocation command line was
30031 CONFIG_FILES = $CONFIG_FILES
30032 CONFIG_HEADERS = $CONFIG_HEADERS
30033 CONFIG_LINKS = $CONFIG_LINKS
30034 CONFIG_COMMANDS = $CONFIG_COMMANDS
30037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30042 case $ac_config_files in *"
30043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30046 case $ac_config_headers in *"
30047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30052 # Files that config.status was made for.
30053 config_files="$ac_config_files"
30054 config_headers="$ac_config_headers"
30055 config_commands="$ac_config_commands"
30059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30061 \`$as_me' instantiates files and other configuration actions
30062 from templates according to the current configuration. Unless the files
30063 and actions are specified as TAGs, all are instantiated by default.
30065 Usage: $0 [OPTION]... [TAG]...
30067 -h, --help print this help, then exit
30068 -V, --version print version number and configuration settings, then exit
30069 --config print configuration, then exit
30070 -q, --quiet, --silent
30071 do not print progress messages
30072 -d, --debug don't remove temporary files
30073 --recheck update $as_me by reconfiguring in the same conditions
30074 --file=FILE[:TEMPLATE]
30075 instantiate the configuration file FILE
30076 --header=FILE[:TEMPLATE]
30077 instantiate the configuration header FILE
30079 Configuration files:
30082 Configuration headers:
30085 Configuration commands:
30088 Report bugs to the package provider."
30091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30092 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30094 bacula config.status 5.1.14
30095 configured by $0, generated by GNU Autoconf 2.68,
30096 with options \\"\$ac_cs_config\\"
30098 Copyright (C) 2010 Free Software Foundation, Inc.
30099 This config.status script is free software; the Free Software Foundation
30100 gives unlimited permission to copy, distribute and modify it."
30106 test -n "\$AWK" || AWK=awk
30109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30110 # The default lists apply if the user does not specify any file.
30116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30133 # Handling of the options.
30134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30137 $as_echo "$ac_cs_version"; exit ;;
30138 --config | --confi | --conf | --con | --co | --c )
30139 $as_echo "$ac_cs_config"; exit ;;
30140 --debug | --debu | --deb | --de | --d | -d )
30142 --file | --fil | --fi | --f )
30145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30146 '') as_fn_error $? "missing file argument" ;;
30148 as_fn_append CONFIG_FILES " '$ac_optarg'"
30149 ac_need_defaults=false;;
30150 --header | --heade | --head | --hea )
30153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30155 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30156 ac_need_defaults=false;;
30158 # Conflict between --help and --header
30159 as_fn_error $? "ambiguous option: \`$1'
30160 Try \`$0 --help' for more information.";;
30161 --help | --hel | -h )
30162 $as_echo "$ac_cs_usage"; exit ;;
30163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30167 # This is an error.
30168 -*) as_fn_error $? "unrecognized option: \`$1'
30169 Try \`$0 --help' for more information." ;;
30171 *) as_fn_append ac_config_targets " $1"
30172 ac_need_defaults=false ;;
30178 ac_configure_extra_args=
30180 if $ac_cs_silent; then
30182 ac_configure_extra_args="$ac_configure_extra_args --silent"
30186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30187 if \$ac_cs_recheck; then
30188 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30191 CONFIG_SHELL='$SHELL'
30192 export CONFIG_SHELL
30197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30202 ## Running $as_me. ##
30208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30214 # The HP-UX ksh and POSIX shell print the target directory to stdout
30215 # if CDPATH is set.
30216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30218 sed_quote_subst='$sed_quote_subst'
30219 double_quote_subst='$double_quote_subst'
30220 delay_variable_subst='$delay_variable_subst'
30221 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30222 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30223 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30224 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30225 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30226 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30227 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30228 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30229 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30230 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30231 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30232 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30233 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30234 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30235 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30236 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30237 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30238 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30239 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30240 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30241 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30242 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30243 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30244 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30245 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30246 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30247 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30248 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30249 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30250 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30251 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30252 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30253 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30254 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30255 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30256 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30257 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30258 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30259 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30260 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30261 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30262 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30263 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30264 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30265 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"`'
30266 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"`'
30267 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30268 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30269 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30270 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30271 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30272 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30273 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30274 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30275 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30276 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30277 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30278 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30279 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30280 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30281 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30282 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30283 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30284 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30285 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30286 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30287 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30288 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30289 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30290 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30291 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30292 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30293 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30294 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30295 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30296 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30297 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30298 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30299 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30300 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30301 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30302 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30303 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30304 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30305 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30306 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30307 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30308 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30309 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30310 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30311 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30312 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30313 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30314 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30315 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30316 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30317 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30318 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30319 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30320 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30321 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30322 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30323 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30324 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30325 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30326 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30327 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30328 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30329 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30330 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30331 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30332 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30333 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30334 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30335 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30336 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30337 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30338 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30339 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30340 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30341 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30342 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30343 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30344 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30345 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30346 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30347 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30348 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30349 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30385 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30386 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30387 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30388 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30389 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30390 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30391 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30394 LTCFLAGS='$LTCFLAGS'
30395 compiler='$compiler_DEFAULT'
30397 # Quote evaled strings.
30409 deplibs_check_method \
30418 lt_cv_sys_global_symbol_pipe \
30419 lt_cv_sys_global_symbol_to_cdecl \
30420 lt_cv_sys_global_symbol_to_c_name_address \
30421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30424 lt_prog_compiler_no_builtin_flag \
30425 lt_prog_compiler_wl \
30426 lt_prog_compiler_pic \
30427 lt_prog_compiler_static \
30428 lt_cv_prog_compiler_c_o \
30436 export_dynamic_flag_spec \
30437 whole_archive_flag_spec \
30438 compiler_needs_object \
30440 allow_undefined_flag \
30441 no_undefined_flag \
30442 hardcode_libdir_flag_spec \
30443 hardcode_libdir_flag_spec_ld \
30444 hardcode_libdir_separator \
30449 variables_saved_for_relink \
30451 library_names_spec \
30456 compiler_lib_search_dirs \
30461 compiler_lib_search_path \
30464 lt_prog_compiler_no_builtin_flag_CXX \
30465 lt_prog_compiler_wl_CXX \
30466 lt_prog_compiler_pic_CXX \
30467 lt_prog_compiler_static_CXX \
30468 lt_cv_prog_compiler_c_o_CXX \
30469 export_dynamic_flag_spec_CXX \
30470 whole_archive_flag_spec_CXX \
30471 compiler_needs_object_CXX \
30473 allow_undefined_flag_CXX \
30474 no_undefined_flag_CXX \
30475 hardcode_libdir_flag_spec_CXX \
30476 hardcode_libdir_flag_spec_ld_CXX \
30477 hardcode_libdir_separator_CXX \
30478 fix_srcfile_path_CXX \
30479 exclude_expsyms_CXX \
30480 include_expsyms_CXX \
30481 file_list_spec_CXX \
30482 compiler_lib_search_dirs_CXX \
30483 predep_objects_CXX \
30484 postdep_objects_CXX \
30487 compiler_lib_search_path_CXX; do
30488 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30489 *[\\\\\\\`\\"\\\$]*)
30490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30498 # Double-quote double-evaled strings.
30499 for var in reload_cmds \
30500 old_postinstall_cmds \
30501 old_postuninstall_cmds \
30503 extract_expsyms_cmds \
30504 old_archive_from_new_cmds \
30505 old_archive_from_expsyms_cmds \
30507 archive_expsym_cmds \
30509 module_expsym_cmds \
30510 export_symbols_cmds \
30513 postuninstall_cmds \
30515 sys_lib_search_path_spec \
30516 sys_lib_dlsearch_path_spec \
30517 old_archive_cmds_CXX \
30518 old_archive_from_new_cmds_CXX \
30519 old_archive_from_expsyms_cmds_CXX \
30521 archive_expsym_cmds_CXX \
30523 module_expsym_cmds_CXX \
30524 export_symbols_cmds_CXX \
30525 prelink_cmds_CXX; do
30526 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30527 *[\\\\\\\`\\"\\\$]*)
30528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30536 # Fix-up fallback echo if it was mangled by the above quoting rules.
30538 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30542 ac_aux_dir='$ac_aux_dir'
30543 xsi_shell='$xsi_shell'
30544 lt_shell_append='$lt_shell_append'
30546 # See if we are running on zsh, and set the options which allow our
30547 # commands through without removal of \ escapes INIT.
30548 if test -n "\${ZSH_VERSION+set}" ; then
30549 setopt NO_GLOB_SUBST
30555 TIMESTAMP='$TIMESTAMP'
30563 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30564 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30566 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30567 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30568 LINGUAS="${LINGUAS-%UNSET%}"
30573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30575 # Handling of arguments.
30576 for ac_config_target in $ac_config_targets
30578 case $ac_config_target in
30579 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30580 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30581 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30582 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30583 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30584 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30585 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30586 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30587 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30588 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30589 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30590 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30591 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30592 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30593 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30594 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30595 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30596 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30597 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30598 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30599 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30600 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30601 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30602 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30603 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30604 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30605 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30606 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30607 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30608 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30609 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30610 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30611 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30612 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30613 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30614 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30615 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30616 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30617 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30618 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30619 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30620 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30621 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30622 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30623 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30624 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30625 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30626 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30627 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30628 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30629 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30630 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30631 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30632 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30633 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30634 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30635 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30636 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30637 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30638 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30639 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30640 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30641 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30642 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30643 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30644 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30645 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30646 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30647 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30648 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30649 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30650 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30651 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30652 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30653 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30654 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30655 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30656 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30657 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30658 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30659 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30660 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30661 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30662 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30663 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30664 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30665 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30666 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30667 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30668 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30669 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30670 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30671 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30672 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30673 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30674 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30675 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30676 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30677 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30678 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30679 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30680 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30681 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30682 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30683 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30684 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30686 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30691 # If the user did not use the arguments to specify the items to instantiate,
30692 # then the envvar interface is used. Set only those that are not.
30693 # We use the long form for the default assignment because of an extremely
30694 # bizarre bug on SunOS 4.1.3.
30695 if $ac_need_defaults; then
30696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30701 # Have a temporary directory for convenience. Make it in the build tree
30702 # simply because there is no reason against having it here, and in addition,
30703 # creating and moving files from /tmp can sometimes cause problems.
30704 # Hook for its removal unless debugging.
30705 # Note that there is a small window in which the directory will not be cleaned:
30706 # after its creation but before its name has been assigned to `$tmp'.
30710 trap 'exit_status=$?
30711 : "${ac_tmp:=$tmp}"
30712 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30714 trap 'as_fn_exit 1' 1 2 13 15
30716 # Create a (secure) tmp directory for tmp files.
30719 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30723 tmp=./conf$$-$RANDOM
30724 (umask 077 && mkdir "$tmp")
30725 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30728 # Set up the scripts for CONFIG_FILES section.
30729 # No need to generate them if there are no CONFIG_FILES.
30730 # This happens for instance with `./config.status config.h'.
30731 if test -n "$CONFIG_FILES"; then
30733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30734 ac_cs_awk_getline=:
30735 ac_cs_awk_pipe_init=
30736 ac_cs_awk_read_file='
30737 while ((getline aline < (F[key])) > 0)
30740 ac_cs_awk_pipe_fini=
30742 ac_cs_awk_getline=false
30743 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30744 ac_cs_awk_read_file='
30746 print "cat " F[key] " &&"
30747 '$ac_cs_awk_pipe_init
30748 # The final `:' finishes the AND list.
30749 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30751 ac_cr=`echo X | tr X '\015'`
30752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30753 # But we know of no other shell where ac_cr would be empty at this
30754 # point, so we can use a bashism as a fallback.
30755 if test "x$ac_cr" = x; then
30756 eval ac_cr=\$\'\\r\'
30758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30762 ac_cs_awk_cr=$ac_cr
30765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30768 # Create commands to substitute file output variables.
30770 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30771 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30772 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30775 } >conf$$files.sh &&
30776 . ./conf$$files.sh ||
30777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30778 rm -f conf$$files.sh
30781 echo "cat >conf$$subs.awk <<_ACEOF" &&
30782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30784 } >conf$$subs.sh ||
30785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30788 for ac_last_try in false false false false false :; do
30789 . ./conf$$subs.sh ||
30790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30793 if test $ac_delim_n = $ac_delim_num; then
30795 elif $ac_last_try; then
30796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30801 rm -f conf$$subs.sh
30803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30808 s/^/S["/; s/!.*/"]=/
30818 s/\(.\{148\}\)..*/\1/
30820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30832 s/\(.\{148\}\)..*/\1/
30834 s/["\\]/\\&/g; s/^/"/; s/$/"/
30838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30843 ' <conf$$subs.awk | sed '
30848 ' >>$CONFIG_STATUS || ac_write_fail=1
30849 rm -f conf$$subs.awk
30850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30853 for (key in S) S_is_set[key] = 1
30855 \$ac_cs_awk_pipe_init
30859 nfields = split(line, field, "@")
30861 len = length(field[1])
30862 for (i = 2; i < nfields; i++) {
30864 keylen = length(key)
30865 if (S_is_set[key]) {
30867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30868 len += length(value) + length(field[++i])
30873 if (nfields == 3 && !substed) {
30875 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30876 \$ac_cs_awk_read_file
30882 \$ac_cs_awk_pipe_fini
30885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30886 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30890 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30891 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30896 # trailing colons and then remove the whole line if VPATH becomes empty
30897 # (actually we leave an empty line to preserve line numbers).
30898 if test "x$srcdir" = x.; then
30899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30918 fi # test -n "$CONFIG_FILES"
30920 # Set up the scripts for CONFIG_HEADERS section.
30921 # No need to generate them if there are no CONFIG_HEADERS.
30922 # This happens for instance with `./config.status Makefile'.
30923 if test -n "$CONFIG_HEADERS"; then
30924 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30928 # Transform confdefs.h into an awk script `defines.awk', embedded as
30929 # here-document in config.status, that substitutes the proper values into
30930 # config.h.in to produce config.h.
30932 # Create a delimiter string that does not exist in confdefs.h, to ease
30933 # handling of long lines.
30935 for ac_last_try in false false :; do
30936 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30937 if test -z "$ac_tt"; then
30939 elif $ac_last_try; then
30940 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30946 # For the awk script, D is an array of macro values keyed by name,
30947 # likewise P contains macro parameters if any. Preserve backslash
30948 # newline sequences.
30950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30952 s/.\{148\}/&'"$ac_delim"'/g
30955 s/^[ ]*#[ ]*define[ ][ ]*/ /
30962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30969 D["\1"]=" \3\\\\\\n"\\/p
30971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30976 s/.\{148\}/&'"$ac_delim"'/g
30981 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30984 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30986 ' <confdefs.h | sed '
30987 s/'"$ac_delim"'/"\\\
30988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30991 for (key in D) D_is_set[key] = 1
30994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30996 split(line, arg, " ")
30997 if (arg[1] == "#") {
31001 defundef = substr(arg[1], 2)
31004 split(mac1, mac2, "(") #)
31006 prefix = substr(line, 1, index(line, defundef) - 1)
31007 if (D_is_set[macro]) {
31008 # Preserve the white space surrounding the "#".
31009 print prefix "define", macro P[macro] D[macro]
31012 # Replace #undef with comments. This is necessary, for example,
31013 # in the case of _POSIX_SOURCE, which is predefined and required
31014 # on some systems where configure will not decide to define it.
31015 if (defundef == "undef") {
31016 print "/*", prefix defundef, macro, "*/"
31024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31025 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31026 fi # test -n "$CONFIG_HEADERS"
31029 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31034 :[FHLC]) ac_mode=$ac_tag; continue;;
31036 case $ac_mode$ac_tag in
31038 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31039 :[FH]-) ac_tag=-:-;;
31040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31057 -) ac_f="$ac_tmp/stdin";;
31058 *) # Look for the file first in the build tree, then in the source tree
31059 # (if the path is not absolute). The absolute path cannot be DOS-style,
31060 # because $ac_f cannot contain `:'.
31064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31066 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31068 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31069 as_fn_append ac_file_inputs " '$ac_f'"
31072 # Let's still pretend it is `configure' which instantiates (i.e., don't
31073 # use $as_me), people would be surprised to read:
31074 # /* config.h. Generated by config.status. */
31075 configure_input='Generated from '`
31076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31078 if test x"$ac_file" != x-; then
31079 configure_input="$ac_file. $configure_input"
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31081 $as_echo "$as_me: creating $ac_file" >&6;}
31083 # Neutralize special characters interpreted by sed in replacement strings.
31084 case $configure_input in #(
31085 *\&* | *\|* | *\\* )
31086 ac_sed_conf_input=`$as_echo "$configure_input" |
31087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31088 *) ac_sed_conf_input=$configure_input;;
31092 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31098 ac_dir=`$as_dirname -- "$ac_file" ||
31099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31100 X"$ac_file" : 'X\(//\)[^/]' \| \
31101 X"$ac_file" : 'X\(//\)$' \| \
31102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31103 $as_echo X"$ac_file" |
31104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31108 /^X\(\/\/\)[^/].*/{
31121 as_dir="$ac_dir"; as_fn_mkdir_p
31125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31128 # A ".." for each directory in $ac_dir_suffix.
31129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31130 case $ac_top_builddir_sub in
31131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31135 ac_abs_top_builddir=$ac_pwd
31136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31137 # for backward compatibility:
31138 ac_top_builddir=$ac_top_build_prefix
31141 .) # We are building in place.
31143 ac_top_srcdir=$ac_top_builddir_sub
31144 ac_abs_top_srcdir=$ac_pwd ;;
31145 [\\/]* | ?:[\\/]* ) # Absolute name.
31146 ac_srcdir=$srcdir$ac_dir_suffix;
31147 ac_top_srcdir=$srcdir
31148 ac_abs_top_srcdir=$srcdir ;;
31149 *) # Relative name.
31150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31151 ac_top_srcdir=$ac_top_build_prefix$srcdir
31152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31165 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31170 # If the template does not know about datarootdir, expand it.
31171 # FIXME: This hack should be removed a few years after 2.60.
31172 ac_datarootdir_hack=; ac_datarootdir_seen=
31183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31184 *datarootdir*) ac_datarootdir_seen=yes;;
31185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31190 ac_datarootdir_hack='
31191 s&@datadir@&$datadir&g
31192 s&@docdir@&$docdir&g
31193 s&@infodir@&$infodir&g
31194 s&@localedir@&$localedir&g
31195 s&@mandir@&$mandir&g
31196 s&\\\${datarootdir}&$datarootdir&g' ;;
31200 # Neutralize VPATH when `$srcdir' = `.'.
31201 # Shell code in configure.ac might set extrasub.
31202 # FIXME: do we really want to maintain this feature?
31203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31204 ac_sed_extra="$ac_vpsub
31207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31210 s|@configure_input@|$ac_sed_conf_input|;t t
31211 s&@top_builddir@&$ac_top_builddir_sub&;t t
31212 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31213 s&@srcdir@&$ac_srcdir&;t t
31214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31215 s&@top_srcdir@&$ac_top_srcdir&;t t
31216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31217 s&@builddir@&$ac_builddir&;t t
31218 s&@abs_builddir@&$ac_abs_builddir&;t t
31219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31220 s&@INSTALL@&$ac_INSTALL&;t t
31221 $ac_datarootdir_hack
31223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31224 if $ac_cs_awk_getline; then
31225 $AWK -f "$ac_tmp/subs.awk"
31227 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31234 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31236 which seems to be undefined. Please make sure it is defined" >&5
31237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31238 which seems to be undefined. Please make sure it is defined" >&2;}
31240 rm -f "$ac_tmp/stdin"
31242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31251 if test x"$ac_file" != x-; then
31253 $as_echo "/* $configure_input */" \
31254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31255 } >"$ac_tmp/config.h" \
31256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31262 mv "$ac_tmp/config.h" "$ac_file" \
31263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31266 $as_echo "/* $configure_input */" \
31267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31268 || as_fn_error $? "could not create -" "$LINENO" 5
31272 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31273 $as_echo "$as_me: executing $ac_file commands" >&6;}
31278 case $ac_file$ac_mode in
31281 # See if we are running on zsh, and set the options which allow our
31282 # commands through without removal of \ escapes.
31283 if test -n "${ZSH_VERSION+set}" ; then
31284 setopt NO_GLOB_SUBST
31287 cfgfile="${ofile}T"
31288 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31291 cat <<_LT_EOF >> "$cfgfile"
31294 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31295 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31300 # 2006, 2007, 2008 Free Software Foundation, Inc.
31301 # Written by Gordon Matzigkeit, 1996
31303 # This file is part of GNU Libtool.
31305 # GNU Libtool is free software; you can redistribute it and/or
31306 # modify it under the terms of the GNU General Public License as
31307 # published by the Free Software Foundation; either version 2 of
31308 # the License, or (at your option) any later version.
31310 # As a special exception to the GNU General Public License,
31311 # if you distribute this file as part of a program or library that
31312 # is built using GNU Libtool, you may include this file under the
31313 # same distribution terms that you use for the rest of that program.
31315 # GNU Libtool is distributed in the hope that it will be useful,
31316 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31318 # GNU General Public License for more details.
31320 # You should have received a copy of the GNU General Public License
31321 # along with GNU Libtool; see the file COPYING. If not, a copy
31322 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31323 # obtained by writing to the Free Software Foundation, Inc.,
31324 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31327 # The names of the tagged configurations supported by this script.
31328 available_tags="CXX "
31330 # ### BEGIN LIBTOOL CONFIG
31332 # Which release of libtool.m4 was used?
31333 macro_version=$macro_version
31334 macro_revision=$macro_revision
31336 # Whether or not to build shared libraries.
31337 build_libtool_libs=$enable_shared
31339 # Whether or not to build static libraries.
31340 build_old_libs=$enable_static
31342 # What type of objects to build.
31345 # Whether or not to optimize for fast installation.
31346 fast_install=$enable_fast_install
31349 host_alias=$host_alias
31353 # The build system.
31354 build_alias=$build_alias
31358 # A sed program that does not truncate output.
31361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31362 Xsed="\$SED -e 1s/^X//"
31364 # A grep program that handles long lines.
31370 # A literal string matcher.
31373 # A BSD- or MS-compatible name lister.
31376 # Whether we need soft or hard links.
31379 # What is the maximum length of a command?
31380 max_cmd_len=$max_cmd_len
31382 # Object file suffix (normally "o").
31385 # Executable file suffix (normally "").
31388 # whether the shell understands "unset".
31391 # turn spaces into newlines.
31394 # turn newlines into spaces.
31397 # How to create reloadable object files.
31398 reload_flag=$lt_reload_flag
31399 reload_cmds=$lt_reload_cmds
31401 # An object symbol dumper.
31402 OBJDUMP=$lt_OBJDUMP
31404 # Method to check whether dependent libraries are shared objects.
31405 deplibs_check_method=$lt_deplibs_check_method
31407 # Command to use when deplibs_check_method == "file_magic".
31408 file_magic_cmd=$lt_file_magic_cmd
31412 AR_FLAGS=$lt_AR_FLAGS
31414 # A symbol stripping program.
31417 # Commands used to install an old-style archive.
31419 old_postinstall_cmds=$lt_old_postinstall_cmds
31420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31425 # LTCC compiler flags.
31426 LTCFLAGS=$lt_CFLAGS
31428 # Take the output of nm and produce a listing of raw symbols and C names.
31429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31431 # Transform the output of nm in a proper C declaration.
31432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31434 # Transform the output of nm in a C name address pair.
31435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31437 # Transform the output of nm in a C name address pair when lib prefix is needed.
31438 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31440 # The name of the directory that contains temporary libtool files.
31443 # Shell to use when invoking shell scripts.
31446 # An echo program that does not interpret backslashes.
31449 # Used to examine libraries when file_magic_cmd begins with "file".
31450 MAGIC_CMD=$MAGIC_CMD
31452 # Must we lock files when doing compilation?
31453 need_locks=$lt_need_locks
31455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31456 DSYMUTIL=$lt_DSYMUTIL
31458 # Tool to change global to local symbols on Mac OS X.
31461 # Tool to manipulate fat objects and archives on Mac OS X.
31464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31468 OTOOL64=$lt_OTOOL64
31470 # Old archive suffix (normally "a").
31473 # Shared library suffix (normally ".so").
31474 shrext_cmds=$lt_shrext_cmds
31476 # The commands to extract the exported symbol list from a shared archive.
31477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31479 # Variables whose values should be saved in libtool wrapper scripts and
31480 # restored at link time.
31481 variables_saved_for_relink=$lt_variables_saved_for_relink
31483 # Do we need the "lib" prefix for modules?
31484 need_lib_prefix=$need_lib_prefix
31486 # Do we need a version for libraries?
31487 need_version=$need_version
31489 # Library versioning type.
31490 version_type=$version_type
31492 # Shared library runtime path variable.
31493 runpath_var=$runpath_var
31495 # Shared library path variable.
31496 shlibpath_var=$shlibpath_var
31498 # Is shlibpath searched before the hard-coded library search path?
31499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31501 # Format of library name prefix.
31502 libname_spec=$lt_libname_spec
31504 # List of archive names. First name is the real one, the rest are links.
31505 # The last name is the one that the linker finds with -lNAME
31506 library_names_spec=$lt_library_names_spec
31508 # The coded name of the library, if different from the real name.
31509 soname_spec=$lt_soname_spec
31511 # Command to use after installation of a shared archive.
31512 postinstall_cmds=$lt_postinstall_cmds
31514 # Command to use after uninstallation of a shared archive.
31515 postuninstall_cmds=$lt_postuninstall_cmds
31517 # Commands used to finish a libtool library installation in a directory.
31518 finish_cmds=$lt_finish_cmds
31520 # As "finish_cmds", except a single script fragment to be evaled but
31522 finish_eval=$lt_finish_eval
31524 # Whether we should hardcode library paths into libraries.
31525 hardcode_into_libs=$hardcode_into_libs
31527 # Compile-time system search path for libraries.
31528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31530 # Run-time system search path for libraries.
31531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31533 # Whether dlopen is supported.
31534 dlopen_support=$enable_dlopen
31536 # Whether dlopen of programs is supported.
31537 dlopen_self=$enable_dlopen_self
31539 # Whether dlopen of statically linked programs is supported.
31540 dlopen_self_static=$enable_dlopen_self_static
31542 # Commands to strip libraries.
31543 old_striplib=$lt_old_striplib
31544 striplib=$lt_striplib
31547 # The linker used to build libraries.
31550 # Commands used to build an old-style archive.
31551 old_archive_cmds=$lt_old_archive_cmds
31553 # A language specific compiler.
31556 # Is the compiler the GNU compiler?
31559 # Compiler flag to turn off builtin functions.
31560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31562 # How to pass a linker flag through the compiler.
31563 wl=$lt_lt_prog_compiler_wl
31565 # Additional compiler flags for building library objects.
31566 pic_flag=$lt_lt_prog_compiler_pic
31568 # Compiler flag to prevent dynamic linking.
31569 link_static_flag=$lt_lt_prog_compiler_static
31571 # Does compiler simultaneously support -c and -o options?
31572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31574 # Whether or not to add -lc for building shared libraries.
31575 build_libtool_need_lc=$archive_cmds_need_lc
31577 # Whether or not to disallow shared libs when runtime libs are static.
31578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31580 # Compiler flag to allow reflexive dlopens.
31581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31583 # Compiler flag to generate shared objects directly from archives.
31584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31586 # Whether the compiler copes with passing no objects directly.
31587 compiler_needs_object=$lt_compiler_needs_object
31589 # Create an old-style archive from a shared archive.
31590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31592 # Create a temporary old-style archive to link instead of a shared archive.
31593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31595 # Commands used to build a shared archive.
31596 archive_cmds=$lt_archive_cmds
31597 archive_expsym_cmds=$lt_archive_expsym_cmds
31599 # Commands used to build a loadable module if different from building
31600 # a shared archive.
31601 module_cmds=$lt_module_cmds
31602 module_expsym_cmds=$lt_module_expsym_cmds
31604 # Whether we are building with GNU ld or not.
31605 with_gnu_ld=$lt_with_gnu_ld
31607 # Flag that allows shared libraries with undefined symbols to be built.
31608 allow_undefined_flag=$lt_allow_undefined_flag
31610 # Flag that enforces no undefined symbols.
31611 no_undefined_flag=$lt_no_undefined_flag
31613 # Flag to hardcode \$libdir into a binary during linking.
31614 # This must work even if \$libdir does not exist
31615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31617 # If ld is used when linking, flag to hardcode \$libdir into a binary
31618 # during linking. This must work even if \$libdir does not exist.
31619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31621 # Whether we need a single "-rpath" flag with a separated argument.
31622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31625 # DIR into the resulting binary.
31626 hardcode_direct=$hardcode_direct
31628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31629 # DIR into the resulting binary and the resulting library dependency is
31630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31631 # library is relocated.
31632 hardcode_direct_absolute=$hardcode_direct_absolute
31634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31635 # into the resulting binary.
31636 hardcode_minus_L=$hardcode_minus_L
31638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31639 # into the resulting binary.
31640 hardcode_shlibpath_var=$hardcode_shlibpath_var
31642 # Set to "yes" if building a shared library automatically hardcodes DIR
31643 # into the library and all subsequent libraries and executables linked
31645 hardcode_automatic=$hardcode_automatic
31647 # Set to yes if linker adds runtime paths of dependent libraries
31648 # to runtime path list.
31649 inherit_rpath=$inherit_rpath
31651 # Whether libtool must link a program against all its dependency libraries.
31652 link_all_deplibs=$link_all_deplibs
31654 # Fix the shell variable \$srcfile for the compiler.
31655 fix_srcfile_path=$lt_fix_srcfile_path
31657 # Set to "yes" if exported symbols are required.
31658 always_export_symbols=$always_export_symbols
31660 # The commands to list exported symbols.
31661 export_symbols_cmds=$lt_export_symbols_cmds
31663 # Symbols that should not be listed in the preloaded symbols.
31664 exclude_expsyms=$lt_exclude_expsyms
31666 # Symbols that must always be exported.
31667 include_expsyms=$lt_include_expsyms
31669 # Commands necessary for linking programs (against libraries) with templates.
31670 prelink_cmds=$lt_prelink_cmds
31672 # Specify filename containing input files.
31673 file_list_spec=$lt_file_list_spec
31675 # How to hardcode a shared library path into an executable.
31676 hardcode_action=$hardcode_action
31678 # The directories searched by this compiler when creating a shared library.
31679 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31681 # Dependencies to place before and after the objects being linked to
31682 # create a shared library.
31683 predep_objects=$lt_predep_objects
31684 postdep_objects=$lt_postdep_objects
31685 predeps=$lt_predeps
31686 postdeps=$lt_postdeps
31688 # The library search path used internally by the compiler when linking
31689 # a shared library.
31690 compiler_lib_search_path=$lt_compiler_lib_search_path
31692 # ### END LIBTOOL CONFIG
31698 cat <<\_LT_EOF >> "$cfgfile"
31699 # AIX sometimes has problems with the GCC collect2 program. For some
31700 # reason, if we set the COLLECT_NAMES environment variable, the problems
31701 # vanish in a puff of smoke.
31702 if test "X${COLLECT_NAMES+set}" != Xset; then
31704 export COLLECT_NAMES
31711 ltmain="$ac_aux_dir/ltmain.sh"
31714 # We use sed instead of cat because bash on DJGPP gets confused if
31715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31716 # text mode, it properly converts lines to CR/LF. This bash problem
31717 # is reportedly fixed, but why not run on old versions too?
31718 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31719 || (rm -f "$cfgfile"; exit 1)
31723 cat << \_LT_EOF >> "$cfgfile"
31725 # func_dirname file append nondir_replacement
31726 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31727 # otherwise set result to NONDIR_REPLACEMENT.
31731 */*) func_dirname_result="${1%/*}${2}" ;;
31732 * ) func_dirname_result="${3}" ;;
31736 # func_basename file
31739 func_basename_result="${1##*/}"
31742 # func_dirname_and_basename file append nondir_replacement
31743 # perform func_basename and func_dirname in a single function
31745 # dirname: Compute the dirname of FILE. If nonempty,
31746 # add APPEND to the result, otherwise set result
31747 # to NONDIR_REPLACEMENT.
31748 # value returned in "$func_dirname_result"
31749 # basename: Compute filename of FILE.
31750 # value retuned in "$func_basename_result"
31751 # Implementation must be kept synchronized with func_dirname
31752 # and func_basename. For efficiency, we do not delegate to
31753 # those functions but instead duplicate the functionality here.
31754 func_dirname_and_basename ()
31757 */*) func_dirname_result="${1%/*}${2}" ;;
31758 * ) func_dirname_result="${3}" ;;
31760 func_basename_result="${1##*/}"
31763 # func_stripname prefix suffix name
31764 # strip PREFIX and SUFFIX off of NAME.
31765 # PREFIX and SUFFIX must not contain globbing or regex special
31766 # characters, hashes, percent signs, but SUFFIX may contain a leading
31767 # dot (in which case that matches only a dot).
31770 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31771 # positional parameters, so assign one to ordinary parameter first.
31772 func_stripname_result=${3}
31773 func_stripname_result=${func_stripname_result#"${1}"}
31774 func_stripname_result=${func_stripname_result%"${2}"}
31780 func_opt_split_opt=${1%%=*}
31781 func_opt_split_arg=${1#*=}
31788 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31789 *) func_lo2o_result=${1} ;;
31793 # func_xform libobj-or-source
31796 func_xform_result=${1%.*}.lo
31799 # func_arith arithmetic-term...
31802 func_arith_result=$(( $* ))
31806 # STRING may not start with a hyphen.
31809 func_len_result=${#1}
31814 *) # Bourne compatible functions.
31815 cat << \_LT_EOF >> "$cfgfile"
31817 # func_dirname file append nondir_replacement
31818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31819 # otherwise set result to NONDIR_REPLACEMENT.
31822 # Extract subdirectory from the argument.
31823 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31824 if test "X$func_dirname_result" = "X${1}"; then
31825 func_dirname_result="${3}"
31827 func_dirname_result="$func_dirname_result${2}"
31831 # func_basename file
31834 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31838 # func_stripname prefix suffix name
31839 # strip PREFIX and SUFFIX off of NAME.
31840 # PREFIX and SUFFIX must not contain globbing or regex special
31841 # characters, hashes, percent signs, but SUFFIX may contain a leading
31842 # dot (in which case that matches only a dot).
31843 # func_strip_suffix prefix name
31847 .*) func_stripname_result=`$ECHO "X${3}" \
31848 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31849 *) func_stripname_result=`$ECHO "X${3}" \
31850 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31855 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31856 my_sed_long_arg='1s/^-[^=]*=//'
31861 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31862 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31868 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31871 # func_xform libobj-or-source
31874 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31877 # func_arith arithmetic-term...
31880 func_arith_result=`expr "$@"`
31884 # STRING may not start with a hyphen.
31887 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31893 case $lt_shell_append in
31895 cat << \_LT_EOF >> "$cfgfile"
31897 # func_append var value
31898 # Append VALUE to the end of shell variable VAR.
31906 cat << \_LT_EOF >> "$cfgfile"
31908 # func_append var value
31909 # Append VALUE to the end of shell variable VAR.
31920 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31921 || (rm -f "$cfgfile"; exit 1)
31923 mv -f "$cfgfile" "$ofile" ||
31924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31928 cat <<_LT_EOF >> "$ofile"
31930 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31932 # The linker used to build libraries.
31935 # Commands used to build an old-style archive.
31936 old_archive_cmds=$lt_old_archive_cmds_CXX
31938 # A language specific compiler.
31939 CC=$lt_compiler_CXX
31941 # Is the compiler the GNU compiler?
31944 # Compiler flag to turn off builtin functions.
31945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31947 # How to pass a linker flag through the compiler.
31948 wl=$lt_lt_prog_compiler_wl_CXX
31950 # Additional compiler flags for building library objects.
31951 pic_flag=$lt_lt_prog_compiler_pic_CXX
31953 # Compiler flag to prevent dynamic linking.
31954 link_static_flag=$lt_lt_prog_compiler_static_CXX
31956 # Does compiler simultaneously support -c and -o options?
31957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31959 # Whether or not to add -lc for building shared libraries.
31960 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31962 # Whether or not to disallow shared libs when runtime libs are static.
31963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31965 # Compiler flag to allow reflexive dlopens.
31966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31968 # Compiler flag to generate shared objects directly from archives.
31969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31971 # Whether the compiler copes with passing no objects directly.
31972 compiler_needs_object=$lt_compiler_needs_object_CXX
31974 # Create an old-style archive from a shared archive.
31975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31977 # Create a temporary old-style archive to link instead of a shared archive.
31978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31980 # Commands used to build a shared archive.
31981 archive_cmds=$lt_archive_cmds_CXX
31982 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31984 # Commands used to build a loadable module if different from building
31985 # a shared archive.
31986 module_cmds=$lt_module_cmds_CXX
31987 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31989 # Whether we are building with GNU ld or not.
31990 with_gnu_ld=$lt_with_gnu_ld_CXX
31992 # Flag that allows shared libraries with undefined symbols to be built.
31993 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31995 # Flag that enforces no undefined symbols.
31996 no_undefined_flag=$lt_no_undefined_flag_CXX
31998 # Flag to hardcode \$libdir into a binary during linking.
31999 # This must work even if \$libdir does not exist
32000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32002 # If ld is used when linking, flag to hardcode \$libdir into a binary
32003 # during linking. This must work even if \$libdir does not exist.
32004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32006 # Whether we need a single "-rpath" flag with a separated argument.
32007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32010 # DIR into the resulting binary.
32011 hardcode_direct=$hardcode_direct_CXX
32013 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32014 # DIR into the resulting binary and the resulting library dependency is
32015 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32016 # library is relocated.
32017 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32019 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32020 # into the resulting binary.
32021 hardcode_minus_L=$hardcode_minus_L_CXX
32023 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32024 # into the resulting binary.
32025 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32027 # Set to "yes" if building a shared library automatically hardcodes DIR
32028 # into the library and all subsequent libraries and executables linked
32030 hardcode_automatic=$hardcode_automatic_CXX
32032 # Set to yes if linker adds runtime paths of dependent libraries
32033 # to runtime path list.
32034 inherit_rpath=$inherit_rpath_CXX
32036 # Whether libtool must link a program against all its dependency libraries.
32037 link_all_deplibs=$link_all_deplibs_CXX
32039 # Fix the shell variable \$srcfile for the compiler.
32040 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32042 # Set to "yes" if exported symbols are required.
32043 always_export_symbols=$always_export_symbols_CXX
32045 # The commands to list exported symbols.
32046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32048 # Symbols that should not be listed in the preloaded symbols.
32049 exclude_expsyms=$lt_exclude_expsyms_CXX
32051 # Symbols that must always be exported.
32052 include_expsyms=$lt_include_expsyms_CXX
32054 # Commands necessary for linking programs (against libraries) with templates.
32055 prelink_cmds=$lt_prelink_cmds_CXX
32057 # Specify filename containing input files.
32058 file_list_spec=$lt_file_list_spec_CXX
32060 # How to hardcode a shared library path into an executable.
32061 hardcode_action=$hardcode_action_CXX
32063 # The directories searched by this compiler when creating a shared library.
32064 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32066 # Dependencies to place before and after the objects being linked to
32067 # create a shared library.
32068 predep_objects=$lt_predep_objects_CXX
32069 postdep_objects=$lt_postdep_objects_CXX
32070 predeps=$lt_predeps_CXX
32071 postdeps=$lt_postdeps_CXX
32073 # The library search path used internally by the compiler when linking
32074 # a shared library.
32075 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32077 # ### END LIBTOOL TAG CONFIG: CXX
32082 for ac_file in $CONFIG_FILES; do
32083 # Support "outfile[:infile[:infile...]]"
32085 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32087 # PO directories have a Makefile.in generated from Makefile.in.in.
32088 case "$ac_file" in */Makefile.in)
32089 # Adjust a relative srcdir.
32090 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32091 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32092 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32093 # In autoconf-2.13 it is called $ac_given_srcdir.
32094 # In autoconf-2.50 it is called $srcdir.
32095 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32096 case "$ac_given_srcdir" in
32097 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32098 /*) top_srcdir="$ac_given_srcdir" ;;
32099 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32101 # Treat a directory as a PO directory if and only if it has a
32102 # POTFILES.in file. This allows packages to have multiple PO
32103 # directories under different names or in different locations.
32104 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32105 rm -f "$ac_dir/POTFILES"
32106 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32107 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32108 POMAKEFILEDEPS="POTFILES.in"
32109 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32110 # on $ac_dir but don't depend on user-specified configuration
32112 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32113 # The LINGUAS file contains the set of available languages.
32114 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32115 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32117 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32118 # Hide the ALL_LINGUAS assigment from automake.
32119 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32120 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32122 # The set of available languages was given in configure.in.
32123 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32126 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32127 # Compute UPDATEPOFILES
32128 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32129 # Compute DUMMYPOFILES
32130 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32132 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32133 case "$ac_given_srcdir" in
32135 *) srcdirpre='$(srcdir)/' ;;
32141 for lang in $ALL_LINGUAS; do
32142 POFILES="$POFILES $srcdirpre$lang.po"
32143 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32144 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32145 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32147 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32148 # environment variable.
32150 if test -n "$ALL_LINGUAS"; then
32151 for presentlang in $ALL_LINGUAS; do
32153 if test "%UNSET%" != "$LINGUAS"; then
32154 desiredlanguages="$LINGUAS"
32156 desiredlanguages="$ALL_LINGUAS"
32158 for desiredlang in $desiredlanguages; do
32159 # Use the presentlang catalog if desiredlang is
32160 # a. equal to presentlang, or
32161 # b. a variant of presentlang (because in this case,
32162 # presentlang can be used as a fallback for messages
32163 # which are not translated in the desiredlang catalog).
32164 case "$desiredlang" in
32165 "$presentlang"*) useit=yes;;
32168 if test $useit = yes; then
32169 INST_LINGUAS="$INST_LINGUAS $presentlang"
32174 if test -n "$INST_LINGUAS"; then
32175 for lang in $INST_LINGUAS; do
32176 CATALOGS="$CATALOGS $lang.gmo"
32179 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32180 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"
32181 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32182 if test -f "$f"; then
32184 *.orig | *.bak | *~) ;;
32185 *) cat "$f" >> "$ac_dir/Makefile" ;;
32202 ac_clean_files=$ac_clean_files_save
32204 test $ac_write_fail = 0 ||
32205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32208 # configure is writing to config.log, and then calls config.status.
32209 # config.status does its own redirection, appending to config.log.
32210 # Unfortunately, on DOS this fails, as config.log is still kept open
32211 # by configure, so config.status won't be able to write to it; its
32212 # output is simply discarded. So we exec the FD to /dev/null,
32213 # effectively closing config.log, so it can be properly (re)opened and
32214 # appended to by config.status. When coming back to configure, we
32215 # need to make the FD available again.
32216 if test "$no_create" != yes; then
32218 ac_config_status_args=
32219 test "$silent" = yes &&
32220 ac_config_status_args="$ac_config_status_args --quiet"
32222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32225 # would make configure fail if this is the last instruction.
32226 $ac_cs_success || as_fn_exit 1
32228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32230 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32234 if test "${support_bat}" = "yes" ; then
32235 if test "x$QMAKE" = "xnone"; then
32236 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32240 echo "Creating bat Makefile"
32245 ${MAKE:-make} clean
32249 if test X"$GCC" = "Xyes" ; then
32250 echo "Doing make of dependencies"
32251 ${MAKE:-make} depend
32255 chmod 755 install_conf_file build-depkgs-qt-console
32259 chmod 755 bacula btraceback mtx-changer
32260 chmod 755 dvd-handler dvd-simulator
32261 chmod 755 bconsole mtx-changer devel_bacula logrotate
32265 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32266 chmod 755 $c/update_postgresql_tables_10_to_11
32267 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32268 chmod 755 $c/update_postgresql_tables_11_to_12
32273 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32274 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32276 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32277 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32279 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32280 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32282 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32283 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32285 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32286 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32289 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32290 chmod 755 $c/sqlite
32293 chmod 755 src/win32/build-depkgs-mingw32
32295 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32296 largefile_support="yes"
32299 if test X"$GCC" = "Xyes" ; then
32300 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32301 if test "x${CCVERSION}" = "x" ; then
32302 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32304 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32305 if test x"${CXXVERSION}" = x ; then
32306 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32310 # clean up any old junk
32314 ${MAKE:-make} clean
32317 Configuration on `date`:
32319 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32320 Bacula version: ${BACULA} ${VERSION} (${DATE})
32321 Source code location: ${srcdir}
32322 Install binaries: ${sbindir}
32323 Install libraries: ${libdir}
32324 Install config files: ${sysconfdir}
32325 Scripts directory: ${scriptdir}
32326 Archive directory: ${archivedir}
32327 Working directory: ${working_dir}
32328 PID directory: ${piddir}
32329 Subsys directory: ${subsysdir}
32330 Man directory: ${mandir}
32331 Data directory: ${datarootdir}
32332 Plugin directory: ${plugindir}
32333 C Compiler: ${CC} ${CCVERSION}
32334 C++ Compiler: ${CXX} ${CXXVERSION}
32335 Compiler flags: ${WCFLAGS} ${CFLAGS}
32336 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32338 Statically Linked Tools: ${support_static_tools}
32339 Statically Linked FD: ${support_static_fd}
32340 Statically Linked SD: ${support_static_sd}
32341 Statically Linked DIR: ${support_static_dir}
32342 Statically Linked CONS: ${support_static_cons}
32343 Database backends: ${db_backends}
32344 Database port: ${db_port}
32345 Database name: ${db_name}
32346 Database user: ${db_user}
32348 Job Output Email: ${job_email}
32349 Traceback Email: ${dump_email}
32350 SMTP Host Address: ${smtp_host}
32352 Director Port: ${dir_port}
32353 File daemon Port: ${fd_port}
32354 Storage daemon Port: ${sd_port}
32356 Director User: ${dir_user}
32357 Director Group: ${dir_group}
32358 Storage Daemon User: ${sd_user}
32359 Storage DaemonGroup: ${sd_group}
32360 File Daemon User: ${fd_user}
32361 File Daemon Group: ${fd_group}
32363 Large file support: $largefile_support
32364 Bacula conio support: ${got_conio} ${CONS_LIBS}
32365 readline support: ${got_readline} ${PRTREADLINE_SRC}
32366 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32367 TLS support: ${support_tls}
32368 Encryption support: ${support_crypto}
32369 ZLIB support: ${have_zlib}
32370 enable-smartalloc: ${support_smartalloc}
32371 enable-lockmgr: ${support_lockmgr}
32372 bat support: ${support_bat}
32373 enable-gnome: ${support_gnome} ${gnome_version}
32374 enable-bwx-console: ${support_wx_console} ${wx_version}
32375 enable-tray-monitor: ${support_tray_monitor}
32376 client-only: ${build_client_only}
32377 build-dird: ${build_dird}
32378 build-stored: ${build_stored}
32379 Plugin support: ${have_plugins}
32380 AFS support: ${have_afs}
32381 ACL support: ${have_acl}
32382 XATTR support: ${have_xattr}
32383 Python support: ${support_python} ${PYTHON_LIBS}
32384 Batch insert enabled: ${support_batch_insert}
32388 # create a small shell script useful for support with
32389 # configure options and config.out info
32390 cat > scripts/bacula_config << EOF
32393 $ $0 $ac_configure_args
32395 cat config.out >> scripts/bacula_config
32396 echo __EOC__ >> scripts/bacula_config
32397 chmod 755 scripts/bacula_config