2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='bacula'
700 PACKAGE_TARNAME='bacula'
701 PACKAGE_VERSION='5.1.14'
702 PACKAGE_STRING='bacula 5.1.14'
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='LTLIBOBJS
769 SHARED_CATALOG_TARGETS
839 TRAY_MONITOR_CPPFLAGS
848 INTL_LIBTOOL_SUFFIX_PREFIX
855 BUILD_INCLUDED_LIBINTL
886 HAVE_OPENBSD_OS_FALSE
890 HAVE_FREEBSD_OS_FALSE
902 INCLUDE_UNINSTALL_TARGET
903 INCLUDE_INSTALL_TARGET
907 LIBTOOL_UNINSTALL_TARGET
908 LIBTOOL_INSTALL_TARGET
909 DEFAULT_SHARED_OBJECT_TYPE
983 LIBBACFIND_LT_RELEASE
984 LIBBACCATS_LT_RELEASE
1029 program_transform_name
1040 ac_subst_files='MCOMMON'
1042 enable_option_checking
1053 with_libiconv_prefix
1055 with_included_gettext
1094 with_mon_dir_password
1095 with_mon_fd_password
1096 with_mon_sd_password
1118 ac_precious_vars='build_alias
1136 # Initialize some variables set by options.
1138 ac_init_version=false
1139 ac_unrecognized_opts=
1140 ac_unrecognized_sep=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file=/dev/null
1150 program_transform_name=s,x,x,
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir='${exec_prefix}/bin'
1165 sbindir='${exec_prefix}/sbin'
1166 libexecdir='${exec_prefix}/libexec'
1167 datarootdir='${prefix}/share'
1168 datadir='${datarootdir}'
1169 sysconfdir='${prefix}/etc'
1170 sharedstatedir='${prefix}/com'
1171 localstatedir='${prefix}/var'
1172 includedir='${prefix}/include'
1173 oldincludedir='/usr/include'
1174 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir='${datarootdir}/info'
1180 libdir='${exec_prefix}/lib'
1181 localedir='${datarootdir}/locale'
1182 mandir='${datarootdir}/man'
1188 # If the previous option needs an argument, assign it.
1189 if test -n "$ac_prev"; then
1190 eval $ac_prev=\$ac_option
1196 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1200 # Accept the important Cygnus configure options, so we can diagnose typos.
1202 case $ac_dashdash$ac_option in
1206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1209 bindir=$ac_optarg ;;
1211 -build | --build | --buil | --bui | --bu)
1212 ac_prev=build_alias ;;
1213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1214 build_alias=$ac_optarg ;;
1216 -cache-file | --cache-file | --cache-fil | --cache-fi \
1217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1218 ac_prev=cache_file ;;
1219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1221 cache_file=$ac_optarg ;;
1223 --config-cache | -C)
1224 cache_file=config.cache ;;
1226 -datadir | --datadir | --datadi | --datad)
1228 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1229 datadir=$ac_optarg ;;
1231 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1232 | --dataroo | --dataro | --datar)
1233 ac_prev=datarootdir ;;
1234 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1235 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1236 datarootdir=$ac_optarg ;;
1238 -disable-* | --disable-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error "invalid feature name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "enable_$ac_useropt"
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1252 eval enable_$ac_useropt=no ;;
1254 -docdir | --docdir | --docdi | --doc | --do)
1256 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1257 docdir=$ac_optarg ;;
1259 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1261 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1262 dvidir=$ac_optarg ;;
1264 -enable-* | --enable-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error "invalid feature name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1273 "enable_$ac_useropt"
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1278 eval enable_$ac_useropt=\$ac_optarg ;;
1280 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1281 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1282 | --exec | --exe | --ex)
1283 ac_prev=exec_prefix ;;
1284 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1285 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1286 | --exec=* | --exe=* | --ex=*)
1287 exec_prefix=$ac_optarg ;;
1289 -gas | --gas | --ga | --g)
1290 # Obsolete; use --with-gas.
1293 -help | --help | --hel | --he | -h)
1294 ac_init_help=long ;;
1295 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1296 ac_init_help=recursive ;;
1297 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1298 ac_init_help=short ;;
1300 -host | --host | --hos | --ho)
1301 ac_prev=host_alias ;;
1302 -host=* | --host=* | --hos=* | --ho=*)
1303 host_alias=$ac_optarg ;;
1305 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1307 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1309 htmldir=$ac_optarg ;;
1311 -includedir | --includedir | --includedi | --included | --include \
1312 | --includ | --inclu | --incl | --inc)
1313 ac_prev=includedir ;;
1314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1315 | --includ=* | --inclu=* | --incl=* | --inc=*)
1316 includedir=$ac_optarg ;;
1318 -infodir | --infodir | --infodi | --infod | --info | --inf)
1320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1321 infodir=$ac_optarg ;;
1323 -libdir | --libdir | --libdi | --libd)
1325 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1326 libdir=$ac_optarg ;;
1328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1329 | --libexe | --libex | --libe)
1330 ac_prev=libexecdir ;;
1331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1332 | --libexe=* | --libex=* | --libe=*)
1333 libexecdir=$ac_optarg ;;
1335 -localedir | --localedir | --localedi | --localed | --locale)
1336 ac_prev=localedir ;;
1337 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1338 localedir=$ac_optarg ;;
1340 -localstatedir | --localstatedir | --localstatedi | --localstated \
1341 | --localstate | --localstat | --localsta | --localst | --locals)
1342 ac_prev=localstatedir ;;
1343 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1344 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1345 localstatedir=$ac_optarg ;;
1347 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1349 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1350 mandir=$ac_optarg ;;
1352 -nfp | --nfp | --nf)
1353 # Obsolete; use --without-fp.
1356 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1357 | --no-cr | --no-c | -n)
1360 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1361 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1364 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1365 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1366 | --oldin | --oldi | --old | --ol | --o)
1367 ac_prev=oldincludedir ;;
1368 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1369 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1370 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1371 oldincludedir=$ac_optarg ;;
1373 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1375 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1376 prefix=$ac_optarg ;;
1378 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1379 | --program-pre | --program-pr | --program-p)
1380 ac_prev=program_prefix ;;
1381 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1382 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1383 program_prefix=$ac_optarg ;;
1385 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1386 | --program-suf | --program-su | --program-s)
1387 ac_prev=program_suffix ;;
1388 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1389 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1390 program_suffix=$ac_optarg ;;
1392 -program-transform-name | --program-transform-name \
1393 | --program-transform-nam | --program-transform-na \
1394 | --program-transform-n | --program-transform- \
1395 | --program-transform | --program-transfor \
1396 | --program-transfo | --program-transf \
1397 | --program-trans | --program-tran \
1398 | --progr-tra | --program-tr | --program-t)
1399 ac_prev=program_transform_name ;;
1400 -program-transform-name=* | --program-transform-name=* \
1401 | --program-transform-nam=* | --program-transform-na=* \
1402 | --program-transform-n=* | --program-transform-=* \
1403 | --program-transform=* | --program-transfor=* \
1404 | --program-transfo=* | --program-transf=* \
1405 | --program-trans=* | --program-tran=* \
1406 | --progr-tra=* | --program-tr=* | --program-t=*)
1407 program_transform_name=$ac_optarg ;;
1409 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1411 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1412 pdfdir=$ac_optarg ;;
1414 -psdir | --psdir | --psdi | --psd | --ps)
1416 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1420 | -silent | --silent | --silen | --sile | --sil)
1423 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1425 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1427 sbindir=$ac_optarg ;;
1429 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1430 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1431 | --sharedst | --shareds | --shared | --share | --shar \
1433 ac_prev=sharedstatedir ;;
1434 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1435 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1436 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1438 sharedstatedir=$ac_optarg ;;
1440 -site | --site | --sit)
1442 -site=* | --site=* | --sit=*)
1445 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1447 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1448 srcdir=$ac_optarg ;;
1450 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1451 | --syscon | --sysco | --sysc | --sys | --sy)
1452 ac_prev=sysconfdir ;;
1453 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1454 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1455 sysconfdir=$ac_optarg ;;
1457 -target | --target | --targe | --targ | --tar | --ta | --t)
1458 ac_prev=target_alias ;;
1459 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1460 target_alias=$ac_optarg ;;
1462 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1465 -version | --version | --versio | --versi | --vers | -V)
1466 ac_init_version=: ;;
1469 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1470 # Reject names that are not valid shell variable names.
1471 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1472 as_fn_error "invalid package name: $ac_useropt"
1473 ac_useropt_orig=$ac_useropt
1474 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1475 case $ac_user_opts in
1479 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1480 ac_unrecognized_sep=', ';;
1482 eval with_$ac_useropt=\$ac_optarg ;;
1484 -without-* | --without-*)
1485 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1488 as_fn_error "invalid package name: $ac_useropt"
1489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1498 eval with_$ac_useropt=no ;;
1501 # Obsolete; use --with-x.
1504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1505 | --x-incl | --x-inc | --x-in | --x-i)
1506 ac_prev=x_includes ;;
1507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1509 x_includes=$ac_optarg ;;
1511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1513 ac_prev=x_libraries ;;
1514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1516 x_libraries=$ac_optarg ;;
1518 -*) as_fn_error "unrecognized option: \`$ac_option'
1519 Try \`$0 --help' for more information."
1523 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1524 # Reject names that are not valid shell variable names.
1525 case $ac_envvar in #(
1526 '' | [0-9]* | *[!_$as_cr_alnum]* )
1527 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1529 eval $ac_envvar=\$ac_optarg
1530 export $ac_envvar ;;
1533 # FIXME: should be removed in autoconf 3.0.
1534 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1535 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1536 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1537 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1543 if test -n "$ac_prev"; then
1544 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1545 as_fn_error "missing argument to $ac_option"
1548 if test -n "$ac_unrecognized_opts"; then
1549 case $enable_option_checking in
1551 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1552 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1556 # Check all directory arguments for consistency.
1557 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1558 datadir sysconfdir sharedstatedir localstatedir includedir \
1559 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1560 libdir localedir mandir
1562 eval ac_val=\$$ac_var
1563 # Remove trailing slashes.
1566 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1567 eval $ac_var=\$ac_val;;
1569 # Be sure to have absolute directory names.
1571 [\\/$]* | ?:[\\/]* ) continue;;
1572 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1577 # There might be people who depend on the old broken behavior: `$host'
1578 # used to hold the argument of --host etc.
1579 # FIXME: To remove some day.
1582 target=$target_alias
1584 # FIXME: To remove some day.
1585 if test "x$host_alias" != x; then
1586 if test "x$build_alias" = x; then
1587 cross_compiling=maybe
1588 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1589 If a cross compiler is detected then cross compile mode will be used." >&2
1590 elif test "x$build_alias" != "x$host_alias"; then
1596 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1598 test "$silent" = yes && exec 6>/dev/null
1601 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1602 ac_ls_di=`ls -di .` &&
1603 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1604 as_fn_error "working directory cannot be determined"
1605 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1606 as_fn_error "pwd does not report name of working directory"
1609 # Find the source files, if location was not specified.
1610 if test -z "$srcdir"; then
1611 ac_srcdir_defaulted=yes
1612 # Try the directory containing this script, then the parent directory.
1613 ac_confdir=`$as_dirname -- "$as_myself" ||
1614 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1615 X"$as_myself" : 'X\(//\)[^/]' \| \
1616 X"$as_myself" : 'X\(//\)$' \| \
1617 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1618 $as_echo X"$as_myself" |
1619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1637 if test ! -r "$srcdir/$ac_unique_file"; then
1641 ac_srcdir_defaulted=no
1643 if test ! -r "$srcdir/$ac_unique_file"; then
1644 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1645 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1647 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1649 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1651 # When building in place, set srcdir=.
1652 if test "$ac_abs_confdir" = "$ac_pwd"; then
1655 # Remove unnecessary trailing slashes from srcdir.
1656 # Double slashes in file names in object file debugging info
1657 # mess up M-x gdb in Emacs.
1659 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1661 for ac_var in $ac_precious_vars; do
1662 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1663 eval ac_env_${ac_var}_value=\$${ac_var}
1664 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1665 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1669 # Report the --help message.
1671 if test "$ac_init_help" = "long"; then
1672 # Omit some internal or obsolete options to make the list less imposing.
1673 # This message is too long to be a string in the A/UX 3.1 sh.
1675 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1677 Usage: $0 [OPTION]... [VAR=VALUE]...
1679 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1680 VAR=VALUE. See below for descriptions of some of the useful variables.
1682 Defaults for the options are specified in brackets.
1685 -h, --help display this help and exit
1686 --help=short display options specific to this package
1687 --help=recursive display the short help of all the included packages
1688 -V, --version display version information and exit
1689 -q, --quiet, --silent do not print \`checking...' messages
1690 --cache-file=FILE cache test results in FILE [disabled]
1691 -C, --config-cache alias for \`--cache-file=config.cache'
1692 -n, --no-create do not create output files
1693 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1695 Installation directories:
1696 --prefix=PREFIX install architecture-independent files in PREFIX
1697 [$ac_default_prefix]
1698 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1701 By default, \`make install' will install all the files in
1702 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1703 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1704 for instance \`--prefix=\$HOME'.
1706 For better control, use the options below.
1708 Fine tuning of the installation directories:
1709 --bindir=DIR user executables [EPREFIX/bin]
1710 --sbindir=DIR system admin executables [EPREFIX/sbin]
1711 --libexecdir=DIR program executables [EPREFIX/libexec]
1712 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1713 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1714 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1715 --libdir=DIR object code libraries [EPREFIX/lib]
1716 --includedir=DIR C header files [PREFIX/include]
1717 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1718 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1719 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1720 --infodir=DIR info documentation [DATAROOTDIR/info]
1721 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1722 --mandir=DIR man documentation [DATAROOTDIR/man]
1723 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1724 --htmldir=DIR html documentation [DOCDIR]
1725 --dvidir=DIR dvi documentation [DOCDIR]
1726 --pdfdir=DIR pdf documentation [DOCDIR]
1727 --psdir=DIR ps documentation [DOCDIR]
1733 --x-includes=DIR X include files are in DIR
1734 --x-libraries=DIR X library files are in DIR
1737 --build=BUILD configure for building on BUILD [guessed]
1738 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1742 if test -n "$ac_init_help"; then
1743 case $ac_init_help in
1744 short | recursive ) echo "Configuration of bacula 5.1.14:";;
1749 --disable-option-checking ignore unrecognized --enable/--with options
1750 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1751 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1752 --enable-libtool enable building using GNU libtool [default=yes]
1753 --enable-shared[=PKGS] build shared libraries [default=yes]
1754 --enable-static[=PKGS] build static libraries [default=no]
1755 --enable-fast-install[=PKGS]
1756 optimize for fast installation [default=yes]
1757 --disable-libtool-lock avoid locking (might break parallel builds)
1758 --enable-includes enable installing of include files [default=no]
1759 --disable-nls do not use Native Language Support
1760 --disable-rpath do not hardcode runtime library paths
1761 --enable-gnome enable build of bgnome-console GUI [default=no]
1762 --enable-bat enable build of bat Qt4 GUI [default=no]
1763 --enable-bwx-console enable build of wxWidgets console [default=no]
1764 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1766 --enable-smartalloc enable smartalloc debugging support [default=no]
1767 --enable-lockmgr enable lock manager support [default=no]
1768 --enable-static-tools enable static tape tools [default=no]
1769 --enable-static-fd enable static File daemon [default=no]
1770 --enable-static-sd enable static Storage daemon [default=no]
1771 --enable-static-dir enable static Director [default=no]
1772 --enable-static-cons enable static Console [default=no]
1773 --enable-client-only build client (File daemon) only [default=no]
1774 --enable-build-dird enable building of dird (Director) [default=yes]
1775 --enable-build-stored enable building of stored (Storage daemon)
1777 --disable-conio disable conio support [default=no]
1778 --enable-ipv6 enable ipv6 support [default=yes]
1779 --disable-readline disable readline support [default=yes]
1780 --enable-batch-insert enable the DB batch insert code [default=yes]
1781 --disable-largefile omit support for large files
1782 --disable-acl disable acl support [default=auto]
1783 --disable-xattr disable xattr support [default=auto]
1786 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1787 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1788 --with-pic try to use only PIC/non-PIC objects [default=use
1790 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1791 --with-gnu-ld assume the C compiler uses GNU ld default=no
1792 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1793 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1794 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1795 --without-libintl-prefix don't search for libintl in includedir and libdir
1796 --with-included-gettext use the GNU gettext library included here
1797 --with-readline[=DIR] specify readline library directory
1798 --with-python[=DIR] Include Python support. DIR is the Python base
1799 install directory, default is to search through a
1800 number of common places for the Python files.
1801 --with-tcp-wrappers[=DIR]
1802 enable tcpwrappers support
1803 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1804 --with-working-dir=PATH specify path of Bacula working directory
1805 --with-archivedir=PATH specify path of SD archive directory
1806 --with-basename=RESNAME specify base resource name for daemons
1807 --with-hostname=RESNAME specify host name for daemons
1808 --with-scriptdir=PATH specify path of Bacula scripts directory
1809 --with-bsrdir=PATH specify path of Bacula bsrs directory
1810 --with-logdir=PATH specify path of Bacula logs directory
1811 --with-plugindir=PATH specify path of Bacula plugins directory
1812 --with-dump-email=EMAIL dump email address
1813 --with-job-email=EMAIL job output email address
1814 --with-smtp-host=HOST SMTP mail host address
1815 --with-pid-dir=PATH specify location of Bacula pid files
1816 --with-subsys-dir=PATH specify location of Bacula subsys file
1817 --with-baseport=PORT specify base port address for daemons
1818 --with-dir-password=PASSWORD
1819 specify Director's password
1820 --with-fd-password=PASSWORD
1821 specify Client's password
1822 --with-sd-password=PASSWORD
1823 specify Storage daemon's password
1824 --with-mon-dir-password=PASSWORD
1825 specify Director's password used by the monitor
1826 --with-mon-fd-password=PASSWORD
1827 specify Client's password used by the monitor
1828 --with-mon-sd-password=PASSWORD
1829 specify Storage daemon's password used by the
1831 --with-db-name=DBNAME specify database name [default=bacula]
1832 --with-db-user=UNAME specify database user [default=bacula]
1833 --with-db-password=PWD specify database password [default=*none*]
1834 --with-db-port=DBPORT specify a database port [default=null]
1835 --with-dir-user=USER specify user for Director daemon
1836 --with-dir-group=GROUP specify group for Director daemon
1837 --with-sd-user=USER specify user for Storage daemon
1838 --with-sd-group=GROUP specify group for Storage daemon
1839 --with-fd-user=USER specify user for File daemon
1840 --with-fd-group=GROUP specify group for File daemon
1841 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1842 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1843 base install directory, [default=/usr/local/pgsql]
1844 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1845 directory, default is to search through a number of
1846 common places for the MySQL files.
1847 --with-embedded-mysql[=DIR]
1848 Include MySQL support. DIR is the MySQL base install
1849 directory, default is to search through a number of
1850 common places for the MySQL files.
1851 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1852 install directory, default is to search through a
1853 number of common places for the SQLite3 files.
1854 --with-x use the X Window System
1856 Some influential environment variables:
1857 CC C compiler command
1858 CFLAGS C compiler flags
1859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1860 nonstandard directory <lib dir>
1861 LIBS libraries to pass to the linker, e.g. -l<library>
1862 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863 you have headers in a nonstandard directory <include dir>
1864 CXX C++ compiler command
1865 CXXFLAGS C++ compiler flags
1867 WXCONFIG wx-config command. On some systems, you must set it to
1868 wx-config-2.6 to use wxWidgets 2.6.
1869 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1870 CXXCPP C++ preprocessor
1871 XMKMF Path to xmkmf, Makefile generator for X Window System
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1876 Report bugs to the package provider.
1881 if test "$ac_init_help" = "recursive"; then
1882 # If there are subdirs, report their specific --help.
1883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884 test -d "$ac_dir" ||
1885 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893 # A ".." for each directory in $ac_dir_suffix.
1894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895 case $ac_top_builddir_sub in
1896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1906 .) # We are building in place.
1908 ac_top_srcdir=$ac_top_builddir_sub
1909 ac_abs_top_srcdir=$ac_pwd ;;
1910 [\\/]* | ?:[\\/]* ) # Absolute name.
1911 ac_srcdir=$srcdir$ac_dir_suffix;
1912 ac_top_srcdir=$srcdir
1913 ac_abs_top_srcdir=$srcdir ;;
1915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916 ac_top_srcdir=$ac_top_build_prefix$srcdir
1917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1921 cd "$ac_dir" || { ac_status=$?; continue; }
1922 # Check for guested configure.
1923 if test -f "$ac_srcdir/configure.gnu"; then
1925 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926 elif test -f "$ac_srcdir/configure"; then
1928 $SHELL "$ac_srcdir/configure" --help=recursive
1930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1932 cd "$ac_pwd" || { ac_status=$?; break; }
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1939 bacula configure 5.1.14
1940 generated by GNU Autoconf 2.65
1942 Copyright (C) 2009 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.$ac_objext; then :
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 as_fn_set_status $ac_retval
1989 } # ac_fn_c_try_compile
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_cxx_try_compile
2029 # ac_fn_c_try_cpp LINENO
2030 # ----------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_cpp conftest.$ac_ext"
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2044 if test -s conftest.err; then
2045 grep -v '^ *+' conftest.err >conftest.er1
2046 cat conftest.er1 >&5
2047 mv -f conftest.er1 conftest.err
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } >/dev/null && {
2051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2052 test ! -s conftest.err
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 as_fn_set_status $ac_retval
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 rm -f conftest.$ac_objext conftest$ac_exeext
2073 if { { ac_try="$ac_link"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^ *+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && {
2089 test -z "$ac_c_werror_flag" ||
2090 test ! -s conftest.err
2091 } && test -s conftest$ac_exeext && {
2092 test "$cross_compiling" = yes ||
2093 $as_test_x conftest$ac_exeext
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104 # interfere with the next link command; also delete a directory that is
2105 # left behind by Apple's compiler. We do this before executing the actions.
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_c_try_link
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 } # ac_fn_c_check_header_compile
2143 # ac_fn_c_try_run LINENO
2144 # ----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_link"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>&5
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161 { { case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_try") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; }; }; then :
2173 $as_echo "$as_me: program exited with status $ac_status" >&5
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 ac_retval=$ac_status
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 as_fn_set_status $ac_retval
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below.
2204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 <limits.h> exists even on freestanding compilers. */
2208 # include <limits.h>
2210 # include <assert.h>
2215 /* Override any GCC internal prototype to avoid an error.
2216 Use char because int might match the return type of a GCC
2217 builtin and then its argument prototype would still apply. */
2222 /* The GNU C library defines this for functions which it implements
2223 to always fail with ENOSYS. Some functions are actually named
2224 something starting with __ and the normal name is an alias. */
2225 #if defined __stub_$2 || defined __stub___$2
2237 if ac_fn_c_try_link "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext \
2243 conftest$ac_exeext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_func
2252 # ac_fn_cxx_try_cpp LINENO
2253 # ------------------------
2254 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_cpp ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 if { { ac_try="$ac_cpp conftest.$ac_ext"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } >/dev/null && {
2274 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2275 test ! -s conftest.err
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_cxx_try_cpp
2289 # ac_fn_cxx_try_link LINENO
2290 # -------------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_link ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 rm -f conftest.$ac_objext conftest$ac_exeext
2296 if { { ac_try="$ac_link"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>conftest.err
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && {
2312 test -z "$ac_cxx_werror_flag" ||
2313 test ! -s conftest.err
2314 } && test -s conftest$ac_exeext && {
2315 test "$cross_compiling" = yes ||
2316 $as_test_x conftest$ac_exeext
2320 $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327 # interfere with the next link command; also delete a directory that is
2328 # left behind by Apple's compiler. We do this before executing the actions.
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_cxx_try_link
2335 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2336 # -------------------------------------------
2337 # Tests whether TYPE exists after having included INCLUDES, setting cache
2338 # variable VAR accordingly.
2339 ac_fn_c_check_type ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2373 if ac_fn_c_try_compile "$LINENO"; then :
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 } # ac_fn_c_check_type
2389 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2390 # -------------------------------------------------------
2391 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2392 # the include files in INCLUDES and setting the cache variable VAR
2394 ac_fn_c_check_header_mongrel ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2407 # Is the header compilable?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2409 $as_echo_n "checking $2 usability... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 ac_header_compiler=yes
2418 ac_header_compiler=no
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2422 $as_echo "$ac_header_compiler" >&6; }
2424 # Is the header present?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2426 $as_echo_n "checking $2 presence... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2432 ac_header_preproc=yes
2434 ac_header_preproc=no
2436 rm -f conftest.err conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2438 $as_echo "$ac_header_preproc" >&6; }
2440 # So? What about this header?
2441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2444 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2450 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2452 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2454 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2456 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 eval "$3=\$ac_header_compiler"
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_mongrel
2476 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2477 # --------------------------------------------
2478 # Tries to find the compile-time value of EXPR in a program that includes
2479 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2481 ac_fn_c_compute_int ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if test "$cross_compiling" = yes; then
2485 # Depending upon the size, compute the lo and hi bounds.
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2499 if ac_fn_c_try_compile "$LINENO"; then :
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 ac_hi=$ac_mid; break
2518 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2519 if test $ac_lo -le $ac_mid; then
2523 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) < 0)];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558 ac_lo=$ac_mid; break
2560 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2561 if test $ac_mid -le $ac_hi; then
2565 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 # Binary search between lo and hi bounds.
2576 while test "x$ac_lo" != "x$ac_hi"; do
2577 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2591 if ac_fn_c_try_compile "$LINENO"; then :
2594 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2614 FILE *f = fopen ("conftest.val", "w");
2619 long int i = longval ();
2622 fprintf (f, "%ld", i);
2626 unsigned long int i = ulongval ();
2629 fprintf (f, "%lu", i);
2631 /* Do not output a trailing newline, as this causes \r\n confusion
2632 on some platforms. */
2633 return ferror (f) || fclose (f) != 0;
2639 if ac_fn_c_try_run "$LINENO"; then :
2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645 conftest.$ac_objext conftest.beam conftest.$ac_ext
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 as_fn_set_status $ac_retval
2652 } # ac_fn_c_compute_int
2654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2655 # ----------------------------------------------------
2656 # Tries to find if the field MEMBER exists in type AGGR, after including
2657 # INCLUDES, setting cache variable VAR accordingly.
2658 ac_fn_c_check_member ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2662 $as_echo_n "checking for $2.$3... " >&6; }
2663 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2679 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2689 if (sizeof ac_aggr.$3)
2695 if ac_fn_c_try_compile "$LINENO"; then :
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2709 } # ac_fn_c_check_member
2711 # ac_fn_c_check_decl LINENO SYMBOL VAR
2712 # ------------------------------------
2713 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2714 ac_fn_c_check_decl ()
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2718 $as_echo_n "checking whether $2 is declared... " >&6; }
2719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2720 $as_echo_n "(cached) " >&6
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2736 if ac_fn_c_try_compile "$LINENO"; then :
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748 } # ac_fn_c_check_decl
2750 # ac_fn_cxx_try_run LINENO
2751 # ------------------------
2752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2753 # that executables *can* be run.
2754 ac_fn_cxx_try_run ()
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 if { { ac_try="$ac_link"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764 (eval "$ac_link") 2>&5
2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2768 { { case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_try") 2>&5
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; }; then :
2780 $as_echo "$as_me: program exited with status $ac_status" >&5
2781 $as_echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 ac_retval=$ac_status
2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 as_fn_set_status $ac_retval
2790 } # ac_fn_cxx_try_run
2792 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2793 # ---------------------------------------------------------
2794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2795 # the include files in INCLUDES and setting the cache variable VAR
2797 ac_fn_cxx_check_header_mongrel ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2804 $as_echo_n "(cached) " >&6
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2808 $as_echo "$ac_res" >&6; }
2810 # Is the header compilable?
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2812 $as_echo_n "checking $2 usability... " >&6; }
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h. */
2818 if ac_fn_cxx_try_compile "$LINENO"; then :
2819 ac_header_compiler=yes
2821 ac_header_compiler=no
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2825 $as_echo "$ac_header_compiler" >&6; }
2827 # Is the header present?
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2829 $as_echo_n "checking $2 presence... " >&6; }
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 if ac_fn_cxx_try_cpp "$LINENO"; then :
2835 ac_header_preproc=yes
2837 ac_header_preproc=no
2839 rm -f conftest.err conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2841 $as_echo "$ac_header_preproc" >&6; }
2843 # So? What about this header?
2844 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2865 $as_echo_n "checking for $2... " >&6; }
2866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2867 $as_echo_n "(cached) " >&6
2869 eval "$3=\$ac_header_compiler"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2877 } # ac_fn_cxx_check_header_mongrel
2878 cat >config.log <<_ACEOF
2879 This file contains any messages produced by compilers while
2880 running configure, to aid debugging if configure makes a mistake.
2882 It was created by bacula $as_me 5.1.14, which was
2883 generated by GNU Autoconf 2.65. Invocation command line was
2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 $as_echo "PATH: $as_dir"
2935 # Keep a trace of the command line.
2936 # Strip out --no-create and --no-recursion so they do not pile up.
2937 # Strip out --silent because we don't want to record it for future runs.
2938 # Also quote any args containing shell meta-characters.
2939 # Make two passes to allow for proper duplicate-argument suppression.
2943 ac_must_keep_next=false
2949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2951 | -silent | --silent | --silen | --sile | --sil)
2954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2959 as_fn_append ac_configure_args1 " '$ac_arg'"
2960 if test $ac_must_keep_next = true; then
2961 ac_must_keep_next=false # Got value, back to normal.
2964 *=* | --config-cache | -C | -disable-* | --disable-* \
2965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2967 | -with-* | --with-* | -without-* | --without-* | --x)
2968 case "$ac_configure_args0 " in
2969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2972 -* ) ac_must_keep_next=true ;;
2975 as_fn_append ac_configure_args " '$ac_arg'"
2980 { ac_configure_args0=; unset ac_configure_args0;}
2981 { ac_configure_args1=; unset ac_configure_args1;}
2983 # When interrupted or exit'd, cleanup temporary files, and complete
2984 # config.log. We remove comments because anyway the quotes in there
2985 # would cause problems or look ugly.
2986 # WARNING: Use '\'' to represent an apostrophe within the trap.
2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2988 trap 'exit_status=$?
2989 # Save into config.log some information that might help in debugging.
2994 ## ---------------- ##
2995 ## Cache variables. ##
2996 ## ---------------- ##
2999 # The following way of writing the cache mishandles newlines in values,
3001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3002 eval ac_val=\$$ac_var
3006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3010 _ | IFS | as_nl) ;; #(
3011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3012 *) { eval $ac_var=; unset $ac_var;} ;;
3017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3018 *${as_nl}ac_space=\ *)
3020 "s/'\''/'\''\\\\'\'''\''/g;
3021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3032 ## ----------------- ##
3033 ## Output variables. ##
3034 ## ----------------- ##
3037 for ac_var in $ac_subst_vars
3039 eval ac_val=\$$ac_var
3041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3043 $as_echo "$ac_var='\''$ac_val'\''"
3047 if test -n "$ac_subst_files"; then
3049 ## ------------------- ##
3050 ## File substitutions. ##
3051 ## ------------------- ##
3054 for ac_var in $ac_subst_files
3056 eval ac_val=\$$ac_var
3058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 $as_echo "$ac_var='\''$ac_val'\''"
3065 if test -s confdefs.h; then
3075 test "$ac_signal" != 0 &&
3076 $as_echo "$as_me: caught signal $ac_signal"
3077 $as_echo "$as_me: exit $exit_status"
3079 rm -f core *.core core.conftest.* &&
3080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3083 for ac_signal in 1 2 13 15; do
3084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3089 rm -f -r conftest* confdefs.h
3091 $as_echo "/* confdefs.h */" > confdefs.h
3093 # Predefined preprocessor variables.
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_NAME "$PACKAGE_NAME"
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_STRING "$PACKAGE_STRING"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_URL "$PACKAGE_URL"
3120 # Let the site file select an alternate cache file if it wants to.
3121 # Prefer an explicitly selected file to automatically selected ones.
3124 if test -n "$CONFIG_SITE"; then
3125 ac_site_file1=$CONFIG_SITE
3126 elif test "x$prefix" != xNONE; then
3127 ac_site_file1=$prefix/share/config.site
3128 ac_site_file2=$prefix/etc/config.site
3130 ac_site_file1=$ac_default_prefix/share/config.site
3131 ac_site_file2=$ac_default_prefix/etc/config.site
3133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3135 test "x$ac_site_file" = xNONE && continue
3136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3139 sed 's/^/| /' "$ac_site_file" >&5
3144 if test -r "$cache_file"; then
3145 # Some versions of bash will fail to source /dev/null (special files
3146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3149 $as_echo "$as_me: loading cache $cache_file" >&6;}
3151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3152 *) . "./$cache_file";;
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3157 $as_echo "$as_me: creating cache $cache_file" >&6;}
3161 as_fn_append ac_header_list " stdlib.h"
3162 as_fn_append ac_header_list " unistd.h"
3163 as_fn_append ac_header_list " sys/param.h"
3164 # Check that the precious variables saved in the cache have kept the same
3166 ac_cache_corrupted=false
3167 for ac_var in $ac_precious_vars; do
3168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3169 eval ac_new_set=\$ac_env_${ac_var}_set
3170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3171 eval ac_new_val=\$ac_env_${ac_var}_value
3172 case $ac_old_set,$ac_new_set in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3176 ac_cache_corrupted=: ;;
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3180 ac_cache_corrupted=: ;;
3183 if test "x$ac_old_val" != "x$ac_new_val"; then
3184 # differences in whitespace do not lead to failure.
3185 ac_old_val_w=`echo x $ac_old_val`
3186 ac_new_val_w=`echo x $ac_new_val`
3187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3190 ac_cache_corrupted=:
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3194 eval $ac_var=\$ac_old_val
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3202 # Pass precious variables to config.status.
3203 if test "$ac_new_set" = set; then
3205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3206 *) ac_arg=$ac_var=$ac_new_val ;;
3208 case " $ac_configure_args " in
3209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3214 if $ac_cache_corrupted; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3221 ## -------------------- ##
3222 ## Main body of script. ##
3223 ## -------------------- ##
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3242 for ac_t in install-sh install.sh shtool; do
3243 if test -f "$ac_dir/$ac_t"; then
3245 ac_install_sh="$ac_aux_dir/$ac_t -c"
3250 if test -z "$ac_aux_dir"; then
3251 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3254 # These three variables are undocumented and unsupported,
3255 # and are intended to be withdrawn in a future Autoconf release.
3256 # They can cause serious problems if a builder's source tree is in a directory
3257 # whose full name contains unusual characters.
3258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3263 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3266 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3267 WIN32MAINDIR=${BUILD_DIR}
3268 WIN32TOPDIR=${TOP_DIR}
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3284 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 TRUEPRG=$ac_cv_path_TRUEPRG
3306 if test -n "$TRUEPRG"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3308 $as_echo "$TRUEPRG" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$TRUEPRG" && break
3317 test -n "$TRUEPRG" || TRUEPRG=":"
3319 for ac_prog in false
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3330 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 FALSEPRG=$ac_cv_path_FALSEPRG
3352 if test -n "$FALSEPRG"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3354 $as_echo "$FALSEPRG" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3361 test -n "$FALSEPRG" && break
3363 test -n "$FALSEPRG" || FALSEPRG=":"
3368 if test "x$BACULA" != x; then
3369 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3371 BACULA=${BACULA:-Bacula}
3372 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3373 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3374 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3375 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3377 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3378 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3379 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3381 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3382 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3383 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3386 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3387 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3389 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3390 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3393 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3395 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3398 echo "configuring for ${BACULA} $VERSION ($DATE)"
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$ac_cv_prog_CC"; then
3448 # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_ac_ct_CC="gcc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3484 if test "x$ac_ct_CC" = x; then
3487 case $cross_compiling:$ac_tool_warned in
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_CC="${ac_tool_prefix}cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3540 if test -z "$CC"; then
3541 # Extract the first word of "cc", so it can be a program name with args.
3542 set dummy cc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_CC+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560 ac_prog_rejected=yes
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test $ac_prog_rejected = yes; then
3572 # We found a bogon in the path, so make sure we never use it.
3573 set dummy $ac_cv_prog_CC
3575 if test $# != 0; then
3576 # We chose a different compiler from the bogus one.
3577 # However, it has the same basename, so the bogon will be chosen
3578 # first if we set CC to just the basename; use the full file name.
3580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3596 if test -z "$CC"; then
3597 if test -n "$ac_tool_prefix"; then
3598 for ac_prog in cl.exe
3600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637 test -n "$CC" && break
3640 if test -z "$CC"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 $as_echo "$ac_ct_CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$ac_ct_CC" && break
3684 if test "x$ac_ct_CC" = x; then
3687 case $cross_compiling:$ac_tool_warned in
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details." "$LINENO" 5; }
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3709 for ac_option in --version -v -V -qversion; do
3710 { { ac_try="$ac_compiler $ac_option >&5"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3719 if test -s conftest.err; then
3721 ... rest of stderr output deleted ...
3722 10q' conftest.err >conftest.er1
3723 cat conftest.er1 >&5
3725 rm -f conftest.er1 conftest.err
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3754 for ac_file in $ac_files
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 if { { ac_try="$ac_link_default"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3779 for ac_file in $ac_files ''
3781 test -f "$ac_file" || continue
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3786 # We found the default executable, but exeext='' is most
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3809 if test -z "$ac_file"; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3825 $as_echo_n "checking for C compiler default output file name... " >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 ac_exeext=$ac_cv_exeext
3830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link") 2>&5
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3849 for ac_file in conftest.exe conftest conftest.*; do
3850 test -f "$ac_file" || continue
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." "$LINENO" 5; }
3864 rm -f conftest conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3877 FILE *f = fopen ("conftest.out", "w");
3878 return ferror (f) || fclose (f) != 0;
3884 ac_clean_files="$ac_clean_files conftest.out"
3885 # Check that the compiler produces executables we can run. If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3888 $as_echo_n "checking whether we are cross compiling... " >&6; }
3889 if test "$cross_compiling" != yes; then
3890 { { ac_try="$ac_link"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }
3901 if { ac_try='./conftest$ac_cv_exeext'
3902 { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; }; then
3914 if test "$cross_compiling" = maybe; then
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot run C compiled programs.
3920 If you meant to cross compile, use \`--host'.
3921 See \`config.log' for more details." "$LINENO" 5; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3926 $as_echo "$cross_compiling" >&6; }
3928 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3931 $as_echo_n "checking for suffix of object files... " >&6; }
3932 if test "${ac_cv_objext+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3946 rm -f conftest.o conftest.obj
3947 if { { ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compile") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 for ac_file in conftest.o conftest.obj conftest.*; do
3959 test -f "$ac_file" || continue;
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3967 $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot compute suffix of object files: cannot compile
3973 See \`config.log' for more details." "$LINENO" 5; }
3975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3978 $as_echo "$ac_cv_objext" >&6; }
3979 OBJEXT=$ac_cv_objext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
4000 if ac_fn_c_try_compile "$LINENO"; then :
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if test "${ac_cv_prog_cc_g+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_save_c_werror_flag=$ac_c_werror_flag
4024 ac_c_werror_flag=yes
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_c_werror_flag=$ac_save_c_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082 CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084 if test "$GCC" = yes; then
4090 if test "$GCC" = yes; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 ac_cv_prog_cc_c89=no
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 ac_cpp='$CXXCPP $CPPFLAGS'
4195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4198 if test -z "$CXX"; then
4199 if test -n "$CCC"; then
4202 if test -n "$ac_tool_prefix"; then
4203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_prog_CXX+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$CXX"; then
4213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 if test -n "$CXX"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4235 $as_echo "$CXX" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4242 test -n "$CXX" && break
4245 if test -z "$CXX"; then
4247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 if test -n "$ac_ct_CXX"; then
4257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 ac_cv_prog_ac_ct_CXX="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4277 if test -n "$ac_ct_CXX"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4279 $as_echo "$ac_ct_CXX" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4286 test -n "$ac_ct_CXX" && break
4289 if test "x$ac_ct_CXX" = x; then
4292 case $cross_compiling:$ac_tool_warned in
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4308 for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4318 if test -s conftest.err; then
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4331 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4348 if ac_fn_cxx_try_compile "$LINENO"; then :
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4358 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4364 ac_test_CXXFLAGS=${CXXFLAGS+set}
4365 ac_save_CXXFLAGS=$CXXFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4367 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4372 ac_cxx_werror_flag=yes
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 if ac_fn_cxx_try_compile "$LINENO"; then :
4387 ac_cv_prog_cxx_g=yes
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418 ac_cv_prog_cxx_g=yes
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4428 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4429 if test "$ac_test_CXXFLAGS" = set; then
4430 CXXFLAGS=$ac_save_CXXFLAGS
4431 elif test $ac_cv_prog_cxx_g = yes; then
4432 if test "$GXX" = yes; then
4438 if test "$GXX" = yes; then
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 if test "x$CC" != xcc; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4452 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4455 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4457 set dummy $CC; ac_cc=`$as_echo "$2" |
4458 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4459 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4460 $as_echo_n "(cached) " >&6
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4473 # Make sure it works both with $CC and with simple cc.
4474 # We do the test twice because some compilers refuse to overwrite an
4475 # existing .o file with -o, though they will create one.
4476 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4478 if { { case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_try") 2>&5
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; } &&
4488 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_try") 2>&5
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; };
4499 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4500 if test "x$CC" != xcc; then
4501 # Test first that cc exists at all.
4502 if { ac_try='cc -c conftest.$ac_ext >&5'
4503 { { case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_try") 2>&5
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }; }; then
4513 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4515 if { { case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_try") 2>&5
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; } &&
4525 test -f conftest2.$ac_objext && { { 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; };
4539 # cc exists but doesn't like -o.
4540 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4545 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4547 rm -f core conftest*
4550 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4557 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4567 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4568 # On Suns, sometimes $CPP names a directory.
4569 if test -n "$CPP" && test -d "$CPP"; then
4572 if test -z "$CPP"; then
4573 if test "${ac_cv_prog_CPP+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 # Double quotes because CPP needs to be expanded
4577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580 for ac_c_preproc_warn_flag in '' yes
4582 # Use a header file that comes with gcc, so configuring glibc
4583 # with a fresh cross-compiler works.
4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585 # <limits.h> exists even on freestanding compilers.
4586 # On the NeXT, cc -E runs the code through the compiler's parser,
4587 # not just through cpp. "Syntax error" is here to catch this case.
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4591 # include <limits.h>
4593 # include <assert.h>
4597 if ac_fn_c_try_cpp "$LINENO"; then :
4600 # Broken: fails on valid input.
4603 rm -f conftest.err conftest.$ac_ext
4605 # OK, works on sane cases. Now check whether nonexistent headers
4606 # can be detected and how.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <ac_nonexistent.h>
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4612 # Broken: success on invalid input.
4615 # Passes both tests.
4619 rm -f conftest.err conftest.$ac_ext
4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623 rm -f conftest.err conftest.$ac_ext
4624 if $ac_preproc_ok; then :
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4637 $as_echo "$CPP" >&6; }
4639 for ac_c_preproc_warn_flag in '' yes
4641 # Use a header file that comes with gcc, so configuring glibc
4642 # with a fresh cross-compiler works.
4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644 # <limits.h> exists even on freestanding compilers.
4645 # On the NeXT, cc -E runs the code through the compiler's parser,
4646 # not just through cpp. "Syntax error" is here to catch this case.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4650 # include <limits.h>
4652 # include <assert.h>
4656 if ac_fn_c_try_cpp "$LINENO"; then :
4659 # Broken: fails on valid input.
4662 rm -f conftest.err conftest.$ac_ext
4664 # OK, works on sane cases. Now check whether nonexistent headers
4665 # can be detected and how.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ac_nonexistent.h>
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671 # Broken: success on invalid input.
4674 # Passes both tests.
4678 rm -f conftest.err conftest.$ac_ext
4681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682 rm -f conftest.err conftest.$ac_ext
4683 if $ac_preproc_ok; then :
4686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4689 See \`config.log' for more details." "$LINENO" 5; }
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4701 if test "${ac_cv_path_GREP+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -z "$GREP"; then
4705 ac_path_GREP_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 test -z "$as_dir" && as_dir=.
4712 for ac_prog in grep ggrep; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4715 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4716 # Check for GNU ac_path_GREP and select it if it is found.
4717 # Check for GNU $ac_path_GREP
4718 case `"$ac_path_GREP" --version 2>&1` in
4720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4723 $as_echo_n 0123456789 >"conftest.in"
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo 'GREP' >> "conftest.nl"
4730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732 as_fn_arith $ac_count + 1 && ac_count=$as_val
4733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_GREP="$ac_path_GREP"
4736 ac_path_GREP_max=$ac_count
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_GREP_found && break 3
4749 if test -z "$ac_cv_path_GREP"; then
4750 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 ac_cv_path_GREP=$GREP
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4758 $as_echo "$ac_cv_path_GREP" >&6; }
4759 GREP="$ac_cv_path_GREP"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4763 $as_echo_n "checking for egrep... " >&6; }
4764 if test "${ac_cv_path_EGREP+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4768 then ac_cv_path_EGREP="$GREP -E"
4770 if test -z "$EGREP"; then
4771 ac_path_EGREP_found=false
4772 # Loop through the user's path and test for each of PROGNAME-LIST
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4777 test -z "$as_dir" && as_dir=.
4778 for ac_prog in egrep; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4781 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4782 # Check for GNU ac_path_EGREP and select it if it is found.
4783 # Check for GNU $ac_path_EGREP
4784 case `"$ac_path_EGREP" --version 2>&1` in
4786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4789 $as_echo_n 0123456789 >"conftest.in"
4792 cat "conftest.in" "conftest.in" >"conftest.tmp"
4793 mv "conftest.tmp" "conftest.in"
4794 cp "conftest.in" "conftest.nl"
4795 $as_echo 'EGREP' >> "conftest.nl"
4796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798 as_fn_arith $ac_count + 1 && ac_count=$as_val
4799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4800 # Best one so far, save it but keep looking for a better one
4801 ac_cv_path_EGREP="$ac_path_EGREP"
4802 ac_path_EGREP_max=$ac_count
4804 # 10*(2^10) chars as input seems more than enough
4805 test $ac_count -gt 10 && break
4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4810 $ac_path_EGREP_found && break 3
4815 if test -z "$ac_cv_path_EGREP"; then
4816 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4819 ac_cv_path_EGREP=$EGREP
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4825 $as_echo "$ac_cv_path_EGREP" >&6; }
4826 EGREP="$ac_cv_path_EGREP"
4829 if test $ac_cv_c_compiler_gnu = yes; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4831 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4832 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 ac_pattern="Autoconf.*'x'"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4843 ac_cv_prog_gcc_traditional=yes
4845 ac_cv_prog_gcc_traditional=no
4850 if test $ac_cv_prog_gcc_traditional = no; then
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4858 ac_cv_prog_gcc_traditional=yes
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4865 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4866 if test $ac_cv_prog_gcc_traditional = yes; then
4867 CC="$CC -traditional"
4871 BASECC=`basename $CC`
4873 if test "x$BASECC" = xgcc; then
4874 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4878 # Extract the first word of "$CXX", so it can be a program name with args.
4879 set dummy $CXX; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_CXX+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4887 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4910 if test -n "$CXX"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4912 $as_echo "$CXX" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 if test ! -e $CXX; then
4920 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 # Reject install programs that cannot install multiple files.
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4938 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 # Account for people who put trailing slashes in PATH elements.
4949 case $as_dir/ in #((
4950 ./ | .// | /[cC]/* | \
4951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4952 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4958 for ac_prog in ginstall scoinst install; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961 if test $ac_prog = install &&
4962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4965 elif test $ac_prog = install &&
4966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4970 rm -rf conftest.one conftest.two conftest.dir
4971 echo one > conftest.one
4972 echo two > conftest.two
4974 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4975 test -s conftest.one && test -s conftest.two &&
4976 test -s conftest.dir/conftest.one &&
4977 test -s conftest.dir/conftest.two
4979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4992 rm -rf conftest.one conftest.two conftest.dir
4995 if test "${ac_cv_path_install+set}" = set; then
4996 INSTALL=$ac_cv_path_install
4998 # As a last resort, use the slow shell script. Don't cache a
4999 # value for INSTALL within a source directory, because that will
5000 # break other packages using the cache if that directory is
5001 # removed, or if the value is a relative name.
5002 INSTALL=$ac_install_sh
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5006 $as_echo "$INSTALL" >&6; }
5008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5009 # It thinks the first close brace ends the variable substitution.
5010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016 # Extract the first word of "mv", so it can be a program name with args.
5017 set dummy mv; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_MV+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5025 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5048 if test -n "$MV"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5050 $as_echo "$MV" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 # Extract the first word of "rm", so it can be a program name with args.
5058 set dummy rm; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_path_REMOVE+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5066 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5088 REMOVE=$ac_cv_path_REMOVE
5089 if test -n "$REMOVE"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5091 $as_echo "$REMOVE" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5098 # Extract the first word of "cp", so it can be a program name with args.
5099 set dummy cp; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_path_CP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5107 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5130 if test -n "$CP"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5132 $as_echo "$CP" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 # Extract the first word of "sed", so it can be a program name with args.
5140 set dummy sed; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_path_SED+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5148 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5171 if test -n "$SED"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5173 $as_echo "$SED" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 # Extract the first word of "echo", so it can be a program name with args.
5181 set dummy echo; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_ECHO+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5189 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5211 ECHO=$ac_cv_path_ECHO
5212 if test -n "$ECHO"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5214 $as_echo "$ECHO" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 # Extract the first word of "cmp", so it can be a program name with args.
5222 set dummy cmp; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_path_CMP+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5230 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5253 if test -n "$CMP"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5255 $as_echo "$CMP" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 # Extract the first word of "tbl", so it can be a program name with args.
5263 set dummy tbl; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_path_TBL+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5271 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5294 if test -n "$TBL"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5296 $as_echo "$TBL" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 # Extract the first word of "ar", so it can be a program name with args.
5304 set dummy ar; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_path_AR+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5312 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5335 if test -n "$AR"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5337 $as_echo "$AR" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5344 # Extract the first word of "openssl", so it can be a program name with args.
5345 set dummy openssl; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5353 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5375 OPENSSL=$ac_cv_path_OPENSSL
5376 if test -n "$OPENSSL"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5378 $as_echo "$OPENSSL" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 # Extract the first word of "mtx", so it can be a program name with args.
5386 set dummy mtx; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_path_MTX+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5394 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5417 if test -n "$MTX"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5419 $as_echo "$MTX" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5426 # Extract the first word of "dd", so it can be a program name with args.
5427 set dummy dd; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_path_DD+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5435 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5458 if test -n "$DD"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5460 $as_echo "$DD" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5467 # Extract the first word of "mkisofs", so it can be a program name with args.
5468 set dummy mkisofs; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5476 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5498 MKISOFS=$ac_cv_path_MKISOFS
5499 if test -n "$MKISOFS"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5501 $as_echo "$MKISOFS" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5508 # Extract the first word of "python", so it can be a program name with args.
5509 set dummy python; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_PYTHON+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5517 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5539 PYTHON=$ac_cv_path_PYTHON
5540 if test -n "$PYTHON"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5542 $as_echo "$PYTHON" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5549 # Extract the first word of "growisofs", so it can be a program name with args.
5550 set dummy growisofs; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5558 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5580 GROWISOFS=$ac_cv_path_GROWISOFS
5581 if test -n "$GROWISOFS"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5583 $as_echo "$GROWISOFS" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5590 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5591 set dummy dvd+rw-mediainfo; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 case $DVDRWMEDIAINFO in
5599 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5621 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5622 if test -n "$DVDRWMEDIAINFO"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5624 $as_echo "$DVDRWMEDIAINFO" >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5631 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5632 set dummy dvd+rw-format; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5638 case $DVDRWFORMAT in
5640 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5662 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5663 if test -n "$DVDRWFORMAT"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5665 $as_echo "$DVDRWFORMAT" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5672 # Extract the first word of "pkg-config", so it can be a program name with args.
5673 set dummy pkg-config; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5681 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5703 PKGCONFIG=$ac_cv_path_PKGCONFIG
5704 if test -n "$PKGCONFIG"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5706 $as_echo "$PKGCONFIG" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 # Extract the first word of "qmake", so it can be a program name with args.
5714 set dummy qmake; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_path_QMAKE+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5722 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5744 QMAKE=$ac_cv_path_QMAKE
5745 if test -n "$QMAKE"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5747 $as_echo "$QMAKE" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 # Extract the first word of "gmake", so it can be a program name with args.
5755 set dummy gmake; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_path_GMAKE+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5763 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5785 GMAKE=$ac_cv_path_GMAKE
5786 if test -n "$GMAKE"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5788 $as_echo "$GMAKE" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5796 if test "x$WXCONFIG" = x; then
5799 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5800 set dummy ${WXCONFIG}; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5808 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5830 WXCONFIG=$ac_cv_path_WXCONFIG
5831 if test -n "$WXCONFIG"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5833 $as_echo "$WXCONFIG" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5841 # Extract the first word of "cdrecord", so it can be a program name with args.
5842 set dummy cdrecord; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5850 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5872 CDRECORD=$ac_cv_path_CDRECORD
5873 if test -n "$CDRECORD"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5875 $as_echo "$CDRECORD" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 # Extract the first word of "pidof", so it can be a program name with args.
5883 set dummy pidof; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if test "${ac_cv_path_PIDOF+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5891 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5913 PIDOF=$ac_cv_path_PIDOF
5914 if test -n "$PIDOF"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5916 $as_echo "$PIDOF" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5923 for ac_prog in gawk mawk nawk awk
5925 # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_AWK+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$AWK"; then
5933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_AWK="$ac_prog"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 if test -n "$AWK"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5955 $as_echo "$AWK" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5962 test -n "$AWK" && break
5965 # Some AWK programs fail, so test it and warn the user
5966 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5967 { if ((prog == $2) || (("(" prog ")") == $2) ||
5968 (("" prog "") == $2) ||
5969 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5971 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5972 The regex engine of $AWK is too broken to be used you
5973 might want to install GNU AWK.
5974 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5977 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5978 set dummy $THE_AWK; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_path_AWK+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5986 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6009 if test -n "$AWK"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6011 $as_echo "$AWK" >&6; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6020 test -n "$ARFLAG" || ARFLAGS="cr"
6032 # Check whether --enable-libtool was given.
6033 if test "${enable_libtool+set}" = set; then :
6034 enableval=$enable_libtool;
6035 if test x$enableval = xno; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6050 macro_version='2.2.6'
6051 macro_revision='1.3012'
6065 ltmain="$ac_aux_dir/ltmain.sh"
6067 # Make sure we can run config.sub.
6068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6072 $as_echo_n "checking build system type... " >&6; }
6073 if test "${ac_cv_build+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 ac_build_alias=$build_alias
6077 test "x$ac_build_alias" = x &&
6078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6079 test "x$ac_build_alias" = x &&
6080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6086 $as_echo "$ac_cv_build" >&6; }
6087 case $ac_cv_build in
6089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6092 ac_save_IFS=$IFS; IFS='-'
6098 # Remember, the first character of IFS is used to create $*,
6099 # except with old shells:
6102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6106 $as_echo_n "checking host system type... " >&6; }
6107 if test "${ac_cv_host+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6110 if test "x$host_alias" = x; then
6111 ac_cv_host=$ac_cv_build
6113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6119 $as_echo "$ac_cv_host" >&6; }
6122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6125 ac_save_IFS=$IFS; IFS='-'
6131 # Remember, the first character of IFS is used to create $*,
6132 # except with old shells:
6135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140 if test "${ac_cv_path_SED+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 { ac_script=; unset ac_script;}
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6161 # Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163 case `"$ac_path_SED" --version 2>&1` in
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6168 $as_echo_n 0123456789 >"conftest.in"
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6189 $ac_path_SED_found && break 3
6194 if test -z "$ac_cv_path_SED"; then
6195 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203 $as_echo "$ac_cv_path_SED" >&6; }
6204 SED="$ac_cv_path_SED"
6207 test -z "$SED" && SED=sed
6208 Xsed="$SED -e 1s/^X//"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6221 $as_echo_n "checking for fgrep... " >&6; }
6222 if test "${ac_cv_path_FGREP+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6225 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6226 then ac_cv_path_FGREP="$GREP -F"
6228 if test -z "$FGREP"; then
6229 ac_path_FGREP_found=false
6230 # Loop through the user's path and test for each of PROGNAME-LIST
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6235 test -z "$as_dir" && as_dir=.
6236 for ac_prog in fgrep; do
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6239 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6240 # Check for GNU ac_path_FGREP and select it if it is found.
6241 # Check for GNU $ac_path_FGREP
6242 case `"$ac_path_FGREP" --version 2>&1` in
6244 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6247 $as_echo_n 0123456789 >"conftest.in"
6250 cat "conftest.in" "conftest.in" >"conftest.tmp"
6251 mv "conftest.tmp" "conftest.in"
6252 cp "conftest.in" "conftest.nl"
6253 $as_echo 'FGREP' >> "conftest.nl"
6254 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256 as_fn_arith $ac_count + 1 && ac_count=$as_val
6257 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6258 # Best one so far, save it but keep looking for a better one
6259 ac_cv_path_FGREP="$ac_path_FGREP"
6260 ac_path_FGREP_max=$ac_count
6262 # 10*(2^10) chars as input seems more than enough
6263 test $ac_count -gt 10 && break
6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 $ac_path_FGREP_found && break 3
6273 if test -z "$ac_cv_path_FGREP"; then
6274 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6277 ac_cv_path_FGREP=$FGREP
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6283 $as_echo "$ac_cv_path_FGREP" >&6; }
6284 FGREP="$ac_cv_path_FGREP"
6287 test -z "$GREP" && GREP=grep
6307 # Check whether --with-gnu-ld was given.
6308 if test "${with_gnu_ld+set}" = set; then :
6309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6315 if test "$GCC" = yes; then
6316 # Check if gcc -print-prog-name=ld gives a path.
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6318 $as_echo_n "checking for ld used by $CC... " >&6; }
6321 # gcc leaves a trailing carriage return which upsets mingw
6322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6327 # Accept absolute paths.
6329 re_direlt='/[^/][^/]*/\.\./'
6330 # Canonicalize the pathname of ld
6331 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6332 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6333 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6335 test -z "$LD" && LD="$ac_prog"
6338 # If it fails, then pretend we aren't using GCC.
6342 # If it is relative, then search for the first ld in PATH.
6346 elif test "$with_gnu_ld" = yes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6348 $as_echo_n "checking for GNU ld... " >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6351 $as_echo_n "checking for non-GNU ld... " >&6; }
6353 if test "${lt_cv_path_LD+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -z "$LD"; then
6357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6358 for ac_dir in $PATH; do
6360 test -z "$ac_dir" && ac_dir=.
6361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6362 lt_cv_path_LD="$ac_dir/$ac_prog"
6363 # Check to see if the program is GNU ld. I'd rather use --version,
6364 # but apparently some variants of GNU ld only accept -v.
6365 # Break only if it was the GNU/non-GNU ld that we prefer.
6366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6367 *GNU* | *'with BFD'*)
6368 test "$with_gnu_ld" != no && break
6371 test "$with_gnu_ld" != yes && break
6378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6383 if test -n "$LD"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6385 $as_echo "$LD" >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6390 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6393 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6397 case `$LD -v 2>&1 </dev/null` in
6398 *GNU* | *'with BFD'*)
6399 lt_cv_prog_gnu_ld=yes
6402 lt_cv_prog_gnu_ld=no
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6407 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6408 with_gnu_ld=$lt_cv_prog_gnu_ld
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6419 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6420 if test "${lt_cv_path_NM+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$NM"; then
6424 # Let the user override the test.
6427 lt_nm_to_check="${ac_tool_prefix}nm"
6428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6429 lt_nm_to_check="$lt_nm_to_check nm"
6431 for lt_tmp_nm in $lt_nm_to_check; do
6432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6433 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6435 test -z "$ac_dir" && ac_dir=.
6436 tmp_nm="$ac_dir/$lt_tmp_nm"
6437 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6438 # Check to see if the nm accepts a BSD-compat flag.
6439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6440 # nm: unknown option "B" ignored
6441 # Tru64's nm complains that /dev/null is an invalid object file
6442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6443 */dev/null* | *'Invalid file or object type'*)
6444 lt_cv_path_NM="$tmp_nm -B"
6448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6450 lt_cv_path_NM="$tmp_nm -p"
6454 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6455 continue # so that we can try to find one that supports BSD flags
6464 : ${lt_cv_path_NM=no}
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6468 $as_echo "$lt_cv_path_NM" >&6; }
6469 if test "$lt_cv_path_NM" != "no"; then
6472 # Didn't find any BSD compatible name lister, look for dumpbin.
6473 if test -n "$ac_tool_prefix"; then
6474 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$DUMPBIN"; then
6484 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 DUMPBIN=$ac_cv_prog_DUMPBIN
6504 if test -n "$DUMPBIN"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6506 $as_echo "$DUMPBIN" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6513 test -n "$DUMPBIN" && break
6516 if test -z "$DUMPBIN"; then
6517 ac_ct_DUMPBIN=$DUMPBIN
6518 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6520 # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 if test -n "$ac_ct_DUMPBIN"; then
6528 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6548 if test -n "$ac_ct_DUMPBIN"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6550 $as_echo "$ac_ct_DUMPBIN" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6557 test -n "$ac_ct_DUMPBIN" && break
6560 if test "x$ac_ct_DUMPBIN" = x; then
6563 case $cross_compiling:$ac_tool_warned in
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6569 DUMPBIN=$ac_ct_DUMPBIN
6574 if test "$DUMPBIN" != ":"; then
6578 test -z "$NM" && NM=nm
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6586 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6587 if test "${lt_cv_nm_interface+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6590 lt_cv_nm_interface="BSD nm"
6591 echo "int some_variable = 0;" > conftest.$ac_ext
6592 (eval echo "\"\$as_me:6592: $ac_compile\"" >&5)
6593 (eval "$ac_compile" 2>conftest.err)
6594 cat conftest.err >&5
6595 (eval echo "\"\$as_me:6595: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6597 cat conftest.err >&5
6598 (eval echo "\"\$as_me:6598: output\"" >&5)
6599 cat conftest.out >&5
6600 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6601 lt_cv_nm_interface="MS dumpbin"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6606 $as_echo "$lt_cv_nm_interface" >&6; }
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6609 $as_echo_n "checking whether ln -s works... " >&6; }
6611 if test "$LN_S" = "ln -s"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6613 $as_echo "yes" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6616 $as_echo "no, using $LN_S" >&6; }
6619 # find the maximum length of command line arguments
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6621 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6622 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6630 # On DJGPP, this test can blow up pretty badly due to problems in libc
6631 # (any single argument exceeding 2000 bytes causes a buffer overrun
6632 # during glob expansion). Even if it were fixed, the result of this
6633 # check would be larger than it should be.
6634 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6638 # Under GNU Hurd, this test is not required because there is
6639 # no limit to the length of command line arguments.
6640 # Libtool will interpret -1 as no limit whatsoever
6641 lt_cv_sys_max_cmd_len=-1;
6644 cygwin* | mingw* | cegcc*)
6645 # On Win9x/ME, this test blows up -- it succeeds, but takes
6646 # about 5 minutes as the teststring grows exponentially.
6647 # Worse, since 9x/ME are not pre-emptively multitasking,
6648 # you end up with a "frozen" computer, even though with patience
6649 # the test eventually succeeds (with a max line length of 256k).
6650 # Instead, let's just punt: use the minimum linelength reported by
6651 # all of the supported platforms: 8192 (on NT/2K/XP).
6652 lt_cv_sys_max_cmd_len=8192;
6656 # On AmigaOS with pdksh, this test takes hours, literally.
6657 # So we just punt and use a minimum line length of 8192.
6658 lt_cv_sys_max_cmd_len=8192;
6661 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6662 # This has been around since 386BSD, at least. Likely further.
6663 if test -x /sbin/sysctl; then
6664 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6665 elif test -x /usr/sbin/sysctl; then
6666 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6668 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6670 # And add a safety zone
6671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6677 lt_cv_sys_max_cmd_len=196608
6681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6683 # nice to cause kernel panics so lets avoid the loop below.
6684 # First set a reasonable default.
6685 lt_cv_sys_max_cmd_len=16384
6687 if test -x /sbin/sysconfig; then
6688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6689 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6694 lt_cv_sys_max_cmd_len=102400
6696 sysv5* | sco5v6* | sysv4.2uw2*)
6697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6698 if test -n "$kargmax"; then
6699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6701 lt_cv_sys_max_cmd_len=32768
6705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6706 if test -n "$lt_cv_sys_max_cmd_len"; then
6707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6710 # Make teststring a little bigger before we do anything with it.
6711 # a 1K string should be a reasonable start.
6712 for i in 1 2 3 4 5 6 7 8 ; do
6713 teststring=$teststring$teststring
6715 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6716 # If test is not a shell built-in, we'll probably end up computing a
6717 # maximum length that is only half of the actual maximum length, but
6719 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6720 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6721 test $i != 17 # 1/2 MB should be enough
6724 teststring=$teststring$teststring
6726 # Only check the string length outside the loop.
6727 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6729 # Add a significant safety factor because C++ compilers can tack on
6730 # massive amounts of additional arguments before passing them to the
6731 # linker. It appears as though 1/2 is a usable value.
6732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6739 if test -n $lt_cv_sys_max_cmd_len ; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6741 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6744 $as_echo "none" >&6; }
6746 max_cmd_len=$lt_cv_sys_max_cmd_len
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6758 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6759 # Try some XSI features
6762 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6764 && eval 'test $(( 1 + 1 )) -eq 2 \
6765 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6768 $as_echo "$xsi_shell" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6772 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6774 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6776 && lt_shell_append=yes
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6778 $as_echo "$lt_shell_append" >&6; }
6781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6791 # test EBCDIC or ASCII
6792 case `echo X|tr X '\101'` in
6793 A) # ASCII based system
6794 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6795 lt_SP2NL='tr \040 \012'
6796 lt_NL2SP='tr \015\012 \040\040'
6798 *) # EBCDIC based system
6799 lt_SP2NL='tr \100 \n'
6800 lt_NL2SP='tr \r\n \100\100'
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6813 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6814 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6817 lt_cv_ld_reload_flag='-r'
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6820 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6821 reload_flag=$lt_cv_ld_reload_flag
6822 case $reload_flag in
6824 *) reload_flag=" $reload_flag" ;;
6826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6829 if test "$GCC" = yes; then
6830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6853 if test -n "$OBJDUMP"; then
6854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 OBJDUMP=$ac_cv_prog_OBJDUMP
6874 if test -n "$OBJDUMP"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6876 $as_echo "$OBJDUMP" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6884 if test -z "$ac_cv_prog_OBJDUMP"; then
6885 ac_ct_OBJDUMP=$OBJDUMP
6886 # Extract the first word of "objdump", so it can be a program name with args.
6887 set dummy objdump; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6893 if test -n "$ac_ct_OBJDUMP"; then
6894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6914 if test -n "$ac_ct_OBJDUMP"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6916 $as_echo "$ac_ct_OBJDUMP" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6922 if test "x$ac_ct_OBJDUMP" = x; then
6925 case $cross_compiling:$ac_tool_warned in
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6931 OBJDUMP=$ac_ct_OBJDUMP
6934 OBJDUMP="$ac_cv_prog_OBJDUMP"
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6949 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 lt_cv_file_magic_cmd='$MAGIC_CMD'
6953 lt_cv_file_magic_test_file=
6954 lt_cv_deplibs_check_method='unknown'
6955 # Need to set the preceding variable on all platforms that support
6956 # interlibrary dependencies.
6957 # 'none' -- dependencies not supported.
6958 # `unknown' -- same as none, but documents that we really don't know.
6959 # 'pass_all' -- all dependencies passed with no checks.
6960 # 'test_compile' -- check by making test program.
6961 # 'file_magic [[regex]]' -- check by looking for files in library path
6962 # which responds to the $file_magic_cmd with a given extended regex.
6963 # If you have `file' or equivalent on your system and you're not sure
6964 # whether `pass_all' will *always* work, you probably want this one.
6968 lt_cv_deplibs_check_method=pass_all
6972 lt_cv_deplibs_check_method=pass_all
6976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6977 lt_cv_file_magic_cmd='/usr/bin/file -L'
6978 lt_cv_file_magic_test_file=/shlib/libc.so
6982 # func_win32_libid is a shell function defined in ltmain.sh
6983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6984 lt_cv_file_magic_cmd='func_win32_libid'
6988 # Base MSYS/MinGW do not provide the 'file' command needed by
6989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6990 # unless we find 'file', for example because we are cross-compiling.
6991 if ( file / ) >/dev/null 2>&1; then
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6996 lt_cv_file_magic_cmd='$OBJDUMP -f'
7001 # use the weaker test based on 'objdump'. See mingw*.
7002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7003 lt_cv_file_magic_cmd='$OBJDUMP -f'
7006 darwin* | rhapsody*)
7007 lt_cv_deplibs_check_method=pass_all
7010 freebsd* | dragonfly*)
7011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7014 # Not sure whether the presence of OpenBSD here was a mistake.
7015 # Let's accept both of them until this is cleared up.
7016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7017 lt_cv_file_magic_cmd=/usr/bin/file
7018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7022 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7030 hpux10.20* | hpux11*)
7031 lt_cv_file_magic_cmd=/usr/bin/file
7034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7038 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]'
7039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7053 irix5* | irix6* | nonstopux*)
7055 *-32|*"-32 ") libmagic=32-bit;;
7056 *-n32|*"-n32 ") libmagic=N32;;
7057 *-64|*"-64 ") libmagic=64-bit;;
7058 *) libmagic=never-match;;
7060 lt_cv_deplibs_check_method=pass_all
7063 # This must be Linux ELF.
7064 linux* | k*bsd*-gnu)
7065 lt_cv_deplibs_check_method=pass_all
7069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7078 lt_cv_file_magic_cmd=/usr/bin/file
7079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7083 lt_cv_deplibs_check_method=pass_all
7087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7094 osf3* | osf4* | osf5*)
7095 lt_cv_deplibs_check_method=pass_all
7099 lt_cv_deplibs_check_method=pass_all
7103 lt_cv_deplibs_check_method=pass_all
7106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7107 lt_cv_deplibs_check_method=pass_all
7111 case $host_vendor in
7113 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]'
7114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7117 lt_cv_deplibs_check_method=pass_all
7120 lt_cv_file_magic_cmd='/bin/file'
7121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7124 lt_cv_file_magic_cmd='/bin/file'
7125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7126 lt_cv_file_magic_test_file=/lib/libc.so
7129 lt_cv_deplibs_check_method=pass_all
7132 lt_cv_deplibs_check_method=pass_all
7138 lt_cv_deplibs_check_method=pass_all
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7145 file_magic_cmd=$lt_cv_file_magic_cmd
7146 deplibs_check_method=$lt_cv_deplibs_check_method
7147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}ar; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_AR+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$AR"; then
7169 ac_cv_prog_AR="$AR" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_AR="${ac_tool_prefix}ar"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 if test -n "$AR"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7191 $as_echo "$AR" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7199 if test -z "$ac_cv_prog_AR"; then
7201 # Extract the first word of "ar", so it can be a program name with args.
7202 set dummy ar; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$ac_ct_AR"; then
7209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_ac_ct_AR="ar"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7229 if test -n "$ac_ct_AR"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7231 $as_echo "$ac_ct_AR" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7237 if test "x$ac_ct_AR" = x; then
7240 case $cross_compiling:$ac_tool_warned in
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7252 test -z "$AR" && AR=ar
7253 test -z "$AR_FLAGS" && AR_FLAGS=cru
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}strip; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_STRIP+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$STRIP"; then
7274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 STRIP=$ac_cv_prog_STRIP
7294 if test -n "$STRIP"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7296 $as_echo "$STRIP" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7304 if test -z "$ac_cv_prog_STRIP"; then
7306 # Extract the first word of "strip", so it can be a program name with args.
7307 set dummy strip; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$ac_ct_STRIP"; then
7314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_ac_ct_STRIP="strip"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7334 if test -n "$ac_ct_STRIP"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7336 $as_echo "$ac_ct_STRIP" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7342 if test "x$ac_ct_STRIP" = x; then
7345 case $cross_compiling:$ac_tool_warned in
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349 ac_tool_warned=yes ;;
7354 STRIP="$ac_cv_prog_STRIP"
7357 test -z "$STRIP" && STRIP=:
7364 if test -n "$ac_tool_prefix"; then
7365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7372 if test -n "$RANLIB"; then
7373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 RANLIB=$ac_cv_prog_RANLIB
7393 if test -n "$RANLIB"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7395 $as_echo "$RANLIB" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7403 if test -z "$ac_cv_prog_RANLIB"; then
7404 ac_ct_RANLIB=$RANLIB
7405 # Extract the first word of "ranlib", so it can be a program name with args.
7406 set dummy ranlib; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 if test -n "$ac_ct_RANLIB"; then
7413 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_ac_ct_RANLIB="ranlib"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7433 if test -n "$ac_ct_RANLIB"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7435 $as_echo "$ac_ct_RANLIB" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7441 if test "x$ac_ct_RANLIB" = x; then
7444 case $cross_compiling:$ac_tool_warned in
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7448 ac_tool_warned=yes ;;
7450 RANLIB=$ac_ct_RANLIB
7453 RANLIB="$ac_cv_prog_RANLIB"
7456 test -z "$RANLIB" && RANLIB=:
7463 # Determine commands to create old-style static archives.
7464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7465 old_postinstall_cmds='chmod 644 $oldlib'
7466 old_postuninstall_cmds=
7468 if test -n "$RANLIB"; then
7471 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7474 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7477 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7513 # If no C compiler was specified, use CC.
7516 # If no C compiler flags were specified, use CFLAGS.
7517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7519 # Allow CC to be a program name with arguments.
7523 # Check for command to grab the raw symbol name followed by C symbol from nm.
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7525 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7526 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7530 # These are sane defaults that work on at least a few old systems.
7531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7533 # Character class describing NM global symbol codes.
7534 symcode='[BCDEGRST]'
7536 # Regexp to match symbols that can be accessed directly from C.
7537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7539 # Define system-specific variables.
7544 cygwin* | mingw* | pw32* | cegcc*)
7545 symcode='[ABCDGISTW]'
7548 if test "$host_cpu" = ia64; then
7549 symcode='[ABCDEGRST]'
7553 symcode='[BCDEGRST]'
7556 symcode='[BCDEGQRST]'
7567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7575 # If we're using GNU nm, then use its standard symbol codes.
7576 case `$NM -V 2>&1` in
7577 *GNU* | *'with BFD'*)
7578 symcode='[ABCDGIRSTW]' ;;
7581 # Transform an extracted symbol line into a proper C declaration.
7582 # Some systems (esp. on ia64) link data and code symbols differently,
7583 # so use this general approach.
7584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7586 # Transform an extracted symbol line into symbol name and symbol address
7587 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7588 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'"
7590 # Handle CRLF in mingw tool chain
7594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7598 # Try without a prefix underscore, then with it.
7599 for ac_symprfx in "" "_"; do
7601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7602 symxfrm="\\1 $ac_symprfx\\2 \\2"
7604 # Write the raw and C identifiers.
7605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7606 # Fake it for dumpbin and say T for any non-static function
7607 # and D for any global variable.
7608 # Also find C++ and __fastcall symbols from MSVC++,
7609 # which start with @ or ?.
7610 lt_cv_sys_global_symbol_pipe="$AWK '"\
7611 " {last_section=section; section=\$ 3};"\
7612 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7613 " \$ 0!~/External *\|/{next};"\
7614 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7615 " {if(hide[section]) next};"\
7616 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7617 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7618 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7619 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7620 " ' prfx=^$ac_symprfx"
7622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7625 # Check to see that the pipe works correctly.
7629 cat > conftest.$ac_ext <<_LT_EOF
7634 void nm_test_func(void);
7635 void nm_test_func(void){}
7639 int main(){nm_test_var='a';nm_test_func();return(0);}
7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643 (eval $ac_compile) 2>&5
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646 test $ac_status = 0; }; then
7647 # Now try to grab the symbols.
7649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7653 test $ac_status = 0; } && test -s "$nlist"; then
7654 # Try sorting and uniquifying the output.
7655 if sort "$nlist" | uniq > "$nlist"T; then
7656 mv -f "$nlist"T "$nlist"
7661 # Make sure that we snagged all the symbols we need.
7662 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7663 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7664 cat <<_LT_EOF > conftest.$ac_ext
7670 # Now generate the symbol file.
7671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7673 cat <<_LT_EOF >> conftest.$ac_ext
7675 /* The mapping between symbol names and symbols. */
7680 lt__PROGRAM__LTX_preloaded_symbols[] =
7682 { "@PROGRAM@", (void *) 0 },
7684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7685 cat <<\_LT_EOF >> conftest.$ac_ext
7689 /* This works around a problem in FreeBSD linker */
7690 #ifdef FREEBSD_WORKAROUND
7691 static const void *lt_preloaded_setup() {
7692 return lt__PROGRAM__LTX_preloaded_symbols;
7700 # Now try linking the two files.
7701 mv conftest.$ac_objext conftstm.$ac_objext
7702 lt_save_LIBS="$LIBS"
7703 lt_save_CFLAGS="$CFLAGS"
7704 LIBS="conftstm.$ac_objext"
7705 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7707 (eval $ac_link) 2>&5
7709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7713 LIBS="$lt_save_LIBS"
7714 CFLAGS="$lt_save_CFLAGS"
7716 echo "cannot find nm_test_func in $nlist" >&5
7719 echo "cannot find nm_test_var in $nlist" >&5
7722 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7725 echo "$progname: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 rm -rf conftest* conftst*
7730 # Do not use the global_symbol_pipe unless it works.
7731 if test "$pipe_works" = yes; then
7734 lt_cv_sys_global_symbol_pipe=
7740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7741 lt_cv_sys_global_symbol_to_cdecl=
7743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7745 $as_echo "failed" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7748 $as_echo "ok" >&6; }
7772 # Check whether --enable-libtool-lock was given.
7773 if test "${enable_libtool_lock+set}" = set; then :
7774 enableval=$enable_libtool_lock;
7777 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7779 # Some flags need to be propagated to the compiler or linker for good
7783 # Find out which ABI we are using.
7784 echo 'int i;' > conftest.$ac_ext
7785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786 (eval $ac_compile) 2>&5
7788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789 test $ac_status = 0; }; then
7790 case `/usr/bin/file conftest.$ac_objext` in
7802 # Find out which ABI we are using.
7803 echo '#line 7803 "configure"' > conftest.$ac_ext
7804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7805 (eval $ac_compile) 2>&5
7807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7808 test $ac_status = 0; }; then
7809 if test "$lt_cv_prog_gnu_ld" = yes; then
7810 case `/usr/bin/file conftest.$ac_objext` in
7812 LD="${LD-ld} -melf32bsmip"
7815 LD="${LD-ld} -melf32bmipn32"
7818 LD="${LD-ld} -melf64bmip"
7822 case `/usr/bin/file conftest.$ac_objext` in
7838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7839 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7840 # Find out which ABI we are using.
7841 echo 'int i;' > conftest.$ac_ext
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843 (eval $ac_compile) 2>&5
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 case `/usr/bin/file conftest.o` in
7850 x86_64-*kfreebsd*-gnu)
7851 LD="${LD-ld} -m elf_i386_fbsd"
7854 LD="${LD-ld} -m elf_i386"
7856 ppc64-*linux*|powerpc64-*linux*)
7857 LD="${LD-ld} -m elf32ppclinux"
7860 LD="${LD-ld} -m elf_s390"
7863 LD="${LD-ld} -m elf32_sparc"
7869 x86_64-*kfreebsd*-gnu)
7870 LD="${LD-ld} -m elf_x86_64_fbsd"
7873 LD="${LD-ld} -m elf_x86_64"
7875 ppc*-*linux*|powerpc*-*linux*)
7876 LD="${LD-ld} -m elf64ppc"
7878 s390*-*linux*|s390*-*tpf*)
7879 LD="${LD-ld} -m elf64_s390"
7882 LD="${LD-ld} -m elf64_sparc"
7892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7893 SAVE_CFLAGS="$CFLAGS"
7894 CFLAGS="$CFLAGS -belf"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7896 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7897 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 lt_cv_cc_needs_belf=yes
7920 lt_cv_cc_needs_belf=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7932 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7935 CFLAGS="$SAVE_CFLAGS"
7939 # Find out which ABI we are using.
7940 echo 'int i;' > conftest.$ac_ext
7941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7942 (eval $ac_compile) 2>&5
7944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945 test $ac_status = 0; }; then
7946 case `/usr/bin/file conftest.o` in
7948 case $lt_cv_prog_gnu_ld in
7949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7951 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7963 need_locks="$enable_libtool_lock"
7967 rhapsody* | darwin*)
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$DSYMUTIL"; then
7977 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7997 if test -n "$DSYMUTIL"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7999 $as_echo "$DSYMUTIL" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8007 if test -z "$ac_cv_prog_DSYMUTIL"; then
8008 ac_ct_DSYMUTIL=$DSYMUTIL
8009 # Extract the first word of "dsymutil", so it can be a program name with args.
8010 set dummy dsymutil; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$ac_ct_DSYMUTIL"; then
8017 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8037 if test -n "$ac_ct_DSYMUTIL"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8039 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8045 if test "x$ac_ct_DSYMUTIL" = x; then
8048 case $cross_compiling:$ac_tool_warned in
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8054 DSYMUTIL=$ac_ct_DSYMUTIL
8057 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8060 if test -n "$ac_tool_prefix"; then
8061 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$NMEDIT"; then
8069 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 NMEDIT=$ac_cv_prog_NMEDIT
8089 if test -n "$NMEDIT"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8091 $as_echo "$NMEDIT" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8099 if test -z "$ac_cv_prog_NMEDIT"; then
8100 ac_ct_NMEDIT=$NMEDIT
8101 # Extract the first word of "nmedit", so it can be a program name with args.
8102 set dummy nmedit; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8108 if test -n "$ac_ct_NMEDIT"; then
8109 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8129 if test -n "$ac_ct_NMEDIT"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8131 $as_echo "$ac_ct_NMEDIT" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8137 if test "x$ac_ct_NMEDIT" = x; then
8140 case $cross_compiling:$ac_tool_warned in
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8144 ac_tool_warned=yes ;;
8146 NMEDIT=$ac_ct_NMEDIT
8149 NMEDIT="$ac_cv_prog_NMEDIT"
8152 if test -n "$ac_tool_prefix"; then
8153 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_LIPO+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 if test -n "$LIPO"; then
8161 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 LIPO=$ac_cv_prog_LIPO
8181 if test -n "$LIPO"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8183 $as_echo "$LIPO" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_LIPO"; then
8193 # Extract the first word of "lipo", so it can be a program name with args.
8194 set dummy lipo; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$ac_ct_LIPO"; then
8201 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210 ac_cv_prog_ac_ct_LIPO="lipo"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8221 if test -n "$ac_ct_LIPO"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8223 $as_echo "$ac_ct_LIPO" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8229 if test "x$ac_ct_LIPO" = x; then
8232 case $cross_compiling:$ac_tool_warned in
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8241 LIPO="$ac_cv_prog_LIPO"
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}otool; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8252 if test -n "$OTOOL"; then
8253 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 OTOOL=$ac_cv_prog_OTOOL
8273 if test -n "$OTOOL"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8275 $as_echo "$OTOOL" >&6; }
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 if test -z "$ac_cv_prog_OTOOL"; then
8285 # Extract the first word of "otool", so it can be a program name with args.
8286 set dummy otool; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8292 if test -n "$ac_ct_OTOOL"; then
8293 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_ac_ct_OTOOL="otool"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8313 if test -n "$ac_ct_OTOOL"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8315 $as_echo "$ac_ct_OTOOL" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8321 if test "x$ac_ct_OTOOL" = x; then
8324 case $cross_compiling:$ac_tool_warned in
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8333 OTOOL="$ac_cv_prog_OTOOL"
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$OTOOL64"; then
8345 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 OTOOL64=$ac_cv_prog_OTOOL64
8365 if test -n "$OTOOL64"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8367 $as_echo "$OTOOL64" >&6; }
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8375 if test -z "$ac_cv_prog_OTOOL64"; then
8376 ac_ct_OTOOL64=$OTOOL64
8377 # Extract the first word of "otool64", so it can be a program name with args.
8378 set dummy otool64; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$ac_ct_OTOOL64"; then
8385 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_ac_ct_OTOOL64="otool64"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8405 if test -n "$ac_ct_OTOOL64"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8407 $as_echo "$ac_ct_OTOOL64" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8413 if test "x$ac_ct_OTOOL64" = x; then
8416 case $cross_compiling:$ac_tool_warned in
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8422 OTOOL64=$ac_ct_OTOOL64
8425 OTOOL64="$ac_cv_prog_OTOOL64"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8455 $as_echo_n "checking for -single_module linker flag... " >&6; }
8456 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8459 lt_cv_apple_cc_single_mod=no
8460 if test -z "${LT_MULTI_MODULE}"; then
8461 # By default we will add the -single_module flag. You can override
8462 # by either setting the environment variable LT_MULTI_MODULE
8463 # non-empty at configure time, or by adding -multi_module to the
8465 rm -rf libconftest.dylib*
8466 echo "int foo(void){return 1;}" > conftest.c
8467 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8468 -dynamiclib -Wl,-single_module conftest.c" >&5
8469 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8470 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8472 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8473 lt_cv_apple_cc_single_mod=yes
8475 cat conftest.err >&5
8477 rm -rf libconftest.dylib*
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8482 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8484 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8485 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8488 lt_cv_ld_exported_symbols_list=no
8489 save_LDFLAGS=$LDFLAGS
8490 echo "_main" > conftest.sym
8491 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 lt_cv_ld_exported_symbols_list=yes
8506 lt_cv_ld_exported_symbols_list=no
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LDFLAGS="$save_LDFLAGS"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8514 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8516 rhapsody* | darwin1.[012])
8517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8520 darwin*) # darwin 5.x on
8521 # if running on 10.5 or later, the deployment target defaults
8522 # to the OS version, if on x86, and 10.4, the deployment
8523 # target defaults to 10.4. Don't you love it?
8524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8525 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8535 _lt_dar_single_mod='$single_module'
8537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8542 if test "$DSYMUTIL" != ":"; then
8543 _lt_dsymutil='~$DSYMUTIL $lib || :'
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8551 $as_echo_n "checking for ANSI C header files... " >&6; }
8552 if test "${ac_cv_header_stdc+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 ac_cv_header_stdc=yes
8573 ac_cv_header_stdc=no
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 if test $ac_cv_header_stdc = yes; then
8578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585 $EGREP "memchr" >/dev/null 2>&1; then :
8588 ac_cv_header_stdc=no
8594 if test $ac_cv_header_stdc = yes; then
8595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602 $EGREP "free" >/dev/null 2>&1; then :
8605 ac_cv_header_stdc=no
8611 if test $ac_cv_header_stdc = yes; then
8612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8613 if test "$cross_compiling" = yes; then :
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8620 #if ((' ' & 0x0FF) == 0x020)
8621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8624 # define ISLOWER(c) \
8625 (('a' <= (c) && (c) <= 'i') \
8626 || ('j' <= (c) && (c) <= 'r') \
8627 || ('s' <= (c) && (c) <= 'z'))
8628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8636 for (i = 0; i < 256; i++)
8637 if (XOR (islower (i), ISLOWER (i))
8638 || toupper (i) != TOUPPER (i))
8643 if ac_fn_c_try_run "$LINENO"; then :
8646 ac_cv_header_stdc=no
8648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8649 conftest.$ac_objext conftest.beam conftest.$ac_ext
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8655 $as_echo "$ac_cv_header_stdc" >&6; }
8656 if test $ac_cv_header_stdc = yes; then
8658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8663 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8664 inttypes.h stdint.h unistd.h
8666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8669 eval as_val=\$$as_ac_Header
8670 if test "x$as_val" = x""yes; then :
8671 cat >>confdefs.h <<_ACEOF
8672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8680 for ac_header in dlfcn.h
8682 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8684 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DLFCN_H 1
8696 ac_cpp='$CXXCPP $CPPFLAGS'
8697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 if test -z "$CXX"; then
8701 if test -n "$CCC"; then
8704 if test -n "$ac_tool_prefix"; then
8705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if test "${ac_cv_prog_CXX+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8714 if test -n "$CXX"; then
8715 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 if test -n "$CXX"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8737 $as_echo "$CXX" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8744 test -n "$CXX" && break
8747 if test -z "$CXX"; then
8749 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8751 # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 if test -n "$ac_ct_CXX"; then
8759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_ac_ct_CXX="$ac_prog"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8779 if test -n "$ac_ct_CXX"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8781 $as_echo "$ac_ct_CXX" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8788 test -n "$ac_ct_CXX" && break
8791 if test "x$ac_ct_CXX" = x; then
8794 case $cross_compiling:$ac_tool_warned in
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8798 ac_tool_warned=yes ;;
8806 # Provide some information about the compiler.
8807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8810 for ac_option in --version -v -V -qversion; do
8811 { { ac_try="$ac_compiler $ac_option >&5"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8817 $as_echo "$ac_try_echo"; } >&5
8818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8820 if test -s conftest.err; then
8822 ... rest of stderr output deleted ...
8823 10q' conftest.err >conftest.er1
8824 cat conftest.er1 >&5
8826 rm -f conftest.er1 conftest.err
8827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828 test $ac_status = 0; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8832 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8833 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8850 if ac_fn_cxx_try_compile "$LINENO"; then :
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8860 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8861 if test $ac_compiler_gnu = yes; then
8866 ac_test_CXXFLAGS=${CXXFLAGS+set}
8867 ac_save_CXXFLAGS=$CXXFLAGS
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8869 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8870 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8873 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8874 ac_cxx_werror_flag=yes
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8888 if ac_fn_cxx_try_compile "$LINENO"; then :
8889 ac_cv_prog_cxx_g=yes
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8903 if ac_fn_cxx_try_compile "$LINENO"; then :
8906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8919 if ac_fn_cxx_try_compile "$LINENO"; then :
8920 ac_cv_prog_cxx_g=yes
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8930 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8931 if test "$ac_test_CXXFLAGS" = set; then
8932 CXXFLAGS=$ac_save_CXXFLAGS
8933 elif test $ac_cv_prog_cxx_g = yes; then
8934 if test "$GXX" = yes; then
8940 if test "$GXX" = yes; then
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8953 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8954 (test "X$CXX" != "Xg++"))) ; then
8956 ac_cpp='$CXXCPP $CPPFLAGS'
8957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8962 if test -z "$CXXCPP"; then
8963 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
8966 # Double quotes because CXXCPP needs to be expanded
8967 for CXXCPP in "$CXX -E" "/lib/cpp"
8970 for ac_cxx_preproc_warn_flag in '' yes
8972 # Use a header file that comes with gcc, so configuring glibc
8973 # with a fresh cross-compiler works.
8974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8975 # <limits.h> exists even on freestanding compilers.
8976 # On the NeXT, cc -E runs the code through the compiler's parser,
8977 # not just through cpp. "Syntax error" is here to catch this case.
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8981 # include <limits.h>
8983 # include <assert.h>
8987 if ac_fn_cxx_try_cpp "$LINENO"; then :
8990 # Broken: fails on valid input.
8993 rm -f conftest.err conftest.$ac_ext
8995 # OK, works on sane cases. Now check whether nonexistent headers
8996 # can be detected and how.
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 #include <ac_nonexistent.h>
9001 if ac_fn_cxx_try_cpp "$LINENO"; then :
9002 # Broken: success on invalid input.
9005 # Passes both tests.
9009 rm -f conftest.err conftest.$ac_ext
9012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9013 rm -f conftest.err conftest.$ac_ext
9014 if $ac_preproc_ok; then :
9019 ac_cv_prog_CXXCPP=$CXXCPP
9022 CXXCPP=$ac_cv_prog_CXXCPP
9024 ac_cv_prog_CXXCPP=$CXXCPP
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9027 $as_echo "$CXXCPP" >&6; }
9029 for ac_cxx_preproc_warn_flag in '' yes
9031 # Use a header file that comes with gcc, so configuring glibc
9032 # with a fresh cross-compiler works.
9033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034 # <limits.h> exists even on freestanding compilers.
9035 # On the NeXT, cc -E runs the code through the compiler's parser,
9036 # not just through cpp. "Syntax error" is here to catch this case.
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9040 # include <limits.h>
9042 # include <assert.h>
9046 if ac_fn_cxx_try_cpp "$LINENO"; then :
9049 # Broken: fails on valid input.
9052 rm -f conftest.err conftest.$ac_ext
9054 # OK, works on sane cases. Now check whether nonexistent headers
9055 # can be detected and how.
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <ac_nonexistent.h>
9060 if ac_fn_cxx_try_cpp "$LINENO"; then :
9061 # Broken: success on invalid input.
9064 # Passes both tests.
9068 rm -f conftest.err conftest.$ac_ext
9071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9072 rm -f conftest.err conftest.$ac_ext
9073 if $ac_preproc_ok; then :
9076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9078 _lt_caught_CXX_error=yes; }
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9088 _lt_caught_CXX_error=yes
9096 # Check whether --enable-shared was given.
9097 if test "${enable_shared+set}" = set; then :
9098 enableval=$enable_shared; p=${PACKAGE-default}
9100 yes) enable_shared=yes ;;
9101 no) enable_shared=no ;;
9104 # Look at the argument we got. We use all the common list separators.
9105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9106 for pkg in $enableval; do
9108 if test "X$pkg" = "X$p"; then
9125 # Check whether --enable-static was given.
9126 if test "${enable_static+set}" = set; then :
9127 enableval=$enable_static; p=${PACKAGE-default}
9129 yes) enable_static=yes ;;
9130 no) enable_static=no ;;
9133 # Look at the argument we got. We use all the common list separators.
9134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9135 for pkg in $enableval; do
9137 if test "X$pkg" = "X$p"; then
9166 # Check whether --with-pic was given.
9167 if test "${with_pic+set}" = set; then :
9168 withval=$with_pic; pic_mode="$withval"
9174 test -z "$pic_mode" && pic_mode=default
9182 # Check whether --enable-fast-install was given.
9183 if test "${enable_fast_install+set}" = set; then :
9184 enableval=$enable_fast_install; p=${PACKAGE-default}
9186 yes) enable_fast_install=yes ;;
9187 no) enable_fast_install=no ;;
9189 enable_fast_install=no
9190 # Look at the argument we got. We use all the common list separators.
9191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9192 for pkg in $enableval; do
9194 if test "X$pkg" = "X$p"; then
9195 enable_fast_install=yes
9202 enable_fast_install=yes
9215 # This can be used to rebuild libtool when needed
9216 LIBTOOL_DEPS="$ltmain"
9218 # Always use our own libtool.
9219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9245 test -z "$LN_S" && LN_S="ln -s"
9260 if test -n "${ZSH_VERSION+set}" ; then
9261 setopt NO_GLOB_SUBST
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9265 $as_echo_n "checking for objdir... " >&6; }
9266 if test "${lt_cv_objdir+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9269 rm -f .libs 2>/dev/null
9270 mkdir .libs 2>/dev/null
9271 if test -d .libs; then
9274 # MS-DOS does not allow filenames that begin with a dot.
9277 rmdir .libs 2>/dev/null
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9280 $as_echo "$lt_cv_objdir" >&6; }
9281 objdir=$lt_cv_objdir
9287 cat >>confdefs.h <<_ACEOF
9288 #define LT_OBJDIR "$lt_cv_objdir/"
9309 # AIX sometimes has problems with the GCC collect2 program. For some
9310 # reason, if we set the COLLECT_NAMES environment variable, the problems
9311 # vanish in a puff of smoke.
9312 if test "X${COLLECT_NAMES+set}" != Xset; then
9314 export COLLECT_NAMES
9319 # Sed substitution that helps us do robust quoting. It backslashifies
9320 # metacharacters that are still active within double-quoted strings.
9321 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9323 # Same as above, but do not quote variable references.
9324 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9326 # Sed substitution to delay expansion of an escaped shell variable in a
9327 # double_quote_subst'ed string.
9328 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9330 # Sed substitution to delay expansion of an escaped single quote.
9331 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9333 # Sed substitution to avoid accidental globbing in evaled expressions
9334 no_glob_subst='s/\*/\\\*/g'
9338 can_build_shared=yes
9340 # All known linkers require a `.a' archive for static linking (except MSVC,
9341 # which needs '.lib').
9344 with_gnu_ld="$lt_cv_prog_gnu_ld"
9347 old_CFLAGS="$CFLAGS"
9349 # Set sane defaults for various variables
9350 test -z "$CC" && CC=cc
9351 test -z "$LTCC" && LTCC=$CC
9352 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9353 test -z "$LD" && LD=ld
9354 test -z "$ac_objext" && ac_objext=o
9356 for cc_temp in $compiler""; do
9358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9364 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9367 # Only perform the check for file, if the check method requires it
9368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9369 case $deplibs_check_method in
9371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9373 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9382 lt_save_MAGIC_CMD="$MAGIC_CMD"
9383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9385 for ac_dir in $ac_dummy; do
9387 test -z "$ac_dir" && ac_dir=.
9388 if test -f $ac_dir/${ac_tool_prefix}file; then
9389 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9390 if test -n "$file_magic_test_file"; then
9391 case $deplibs_check_method in
9393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9396 $EGREP "$file_magic_regex" > /dev/null; then
9401 *** Warning: the command libtool uses to detect shared libraries,
9402 *** $file_magic_cmd, produces output that libtool cannot recognize.
9403 *** The result is that libtool may fail to recognize shared libraries
9404 *** as such. This will affect the creation of libtool libraries that
9405 *** depend on shared libraries, but programs linked with such libtool
9406 *** libraries will work regardless of this problem. Nevertheless, you
9407 *** may want to report the problem to your system manager and/or to
9408 *** bug-libtool@gnu.org
9418 MAGIC_CMD="$lt_save_MAGIC_CMD"
9423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9424 if test -n "$MAGIC_CMD"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9426 $as_echo "$MAGIC_CMD" >&6; }
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9436 if test -z "$lt_cv_path_MAGIC_CMD"; then
9437 if test -n "$ac_tool_prefix"; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9439 $as_echo_n "checking for file... " >&6; }
9440 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9448 lt_save_MAGIC_CMD="$MAGIC_CMD"
9449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9451 for ac_dir in $ac_dummy; do
9453 test -z "$ac_dir" && ac_dir=.
9454 if test -f $ac_dir/file; then
9455 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9456 if test -n "$file_magic_test_file"; then
9457 case $deplibs_check_method in
9459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9462 $EGREP "$file_magic_regex" > /dev/null; then
9467 *** Warning: the command libtool uses to detect shared libraries,
9468 *** $file_magic_cmd, produces output that libtool cannot recognize.
9469 *** The result is that libtool may fail to recognize shared libraries
9470 *** as such. This will affect the creation of libtool libraries that
9471 *** depend on shared libraries, but programs linked with such libtool
9472 *** libraries will work regardless of this problem. Nevertheless, you
9473 *** may want to report the problem to your system manager and/or to
9474 *** bug-libtool@gnu.org
9484 MAGIC_CMD="$lt_save_MAGIC_CMD"
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if test -n "$MAGIC_CMD"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 $as_echo "$MAGIC_CMD" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9508 # Use C for the default configuration in the libtool script
9512 ac_cpp='$CPP $CPPFLAGS'
9513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9518 # Source file extension for C test sources.
9521 # Object file extension for compiled C test sources.
9525 # Code to be used in simple compile tests
9526 lt_simple_compile_test_code="int some_variable = 0;"
9528 # Code to be used in simple link tests
9529 lt_simple_link_test_code='int main(){return(0);}'
9537 # If no C compiler was specified, use CC.
9540 # If no C compiler flags were specified, use CFLAGS.
9541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9543 # Allow CC to be a program name with arguments.
9546 # Save the default compiler, since it gets overwritten when the other
9547 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9548 compiler_DEFAULT=$CC
9550 # save warnings/boilerplate of simple test code
9551 ac_outfile=conftest.$ac_objext
9552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9554 _lt_compiler_boilerplate=`cat conftest.err`
9557 ac_outfile=conftest.$ac_objext
9558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9560 _lt_linker_boilerplate=`cat conftest.err`
9565 ## There is no encapsulation within the following macros, do not change
9566 ## the running order or otherwise move them around unless you know exactly
9567 ## what you are doing...
9568 if test -n "$compiler"; then
9570 lt_prog_compiler_no_builtin_flag=
9572 if test "$GCC" = yes; then
9573 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9576 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9577 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 lt_cv_prog_compiler_rtti_exceptions=no
9581 ac_outfile=conftest.$ac_objext
9582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583 lt_compiler_flag="-fno-rtti -fno-exceptions"
9584 # Insert the option either (1) after the last *FLAGS variable, or
9585 # (2) before a word containing "conftest.", or (3) at the end.
9586 # Note that $ac_compile itself does not contain backslashes and begins
9587 # with a dollar sign (not a hyphen), so the echo should work correctly.
9588 # The option is referenced via a variable to avoid confusing sed.
9589 lt_compile=`echo "$ac_compile" | $SED \
9590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592 -e 's:$: $lt_compiler_flag:'`
9593 (eval echo "\"\$as_me:9593: $lt_compile\"" >&5)
9594 (eval "$lt_compile" 2>conftest.err)
9596 cat conftest.err >&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 if (exit $ac_status) && test -s "$ac_outfile"; then
9599 # The compiler can only warn and ignore the option if not recognized
9600 # So say no if there are warnings other than the usual output.
9601 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9604 lt_cv_prog_compiler_rtti_exceptions=yes
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9611 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9613 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9614 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9626 lt_prog_compiler_wl=
9627 lt_prog_compiler_pic=
9628 lt_prog_compiler_static=
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9631 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9633 if test "$GCC" = yes; then
9634 lt_prog_compiler_wl='-Wl,'
9635 lt_prog_compiler_static='-static'
9639 # All AIX code is PIC.
9640 if test "$host_cpu" = ia64; then
9641 # AIX 5 now supports IA64 processor
9642 lt_prog_compiler_static='-Bstatic'
9649 # see comment about AmigaOS4 .so support
9650 lt_prog_compiler_pic='-fPIC'
9653 # FIXME: we need at least 68020 code to build shared libraries, but
9654 # adding the `-m68020' flag to GCC prevents building anything better,
9656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9662 # PIC is the default for these OSes.
9665 mingw* | cygwin* | pw32* | os2* | cegcc*)
9666 # This hack is so that the source file can tell whether it is being
9667 # built for inclusion in a dll (and should export symbols for example).
9668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9669 # (--disable-auto-import) libraries
9670 lt_prog_compiler_pic='-DDLL_EXPORT'
9673 darwin* | rhapsody*)
9674 # PIC is the default on this platform
9675 # Common symbols not allowed in MH_DYLIB files
9676 lt_prog_compiler_pic='-fno-common'
9680 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9681 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9682 # sets the default TLS model and affects inlining.
9688 lt_prog_compiler_pic='-fPIC'
9694 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9695 # Instead, we relocate shared libraries at runtime.
9699 # Just because we use GCC doesn't mean we suddenly get shared libraries
9700 # on systems that don't support them.
9701 lt_prog_compiler_can_build_shared=no
9706 # QNX uses GNU C++, but need to define -shared option too, otherwise
9708 lt_prog_compiler_pic='-fPIC -shared'
9712 if test -d /usr/nec; then
9713 lt_prog_compiler_pic=-Kconform_pic
9718 lt_prog_compiler_pic='-fPIC'
9722 # PORTME Check for flag to pass linker flags through the system compiler.
9725 lt_prog_compiler_wl='-Wl,'
9726 if test "$host_cpu" = ia64; then
9727 # AIX 5 now supports IA64 processor
9728 lt_prog_compiler_static='-Bstatic'
9730 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9734 mingw* | cygwin* | pw32* | os2* | cegcc*)
9735 # This hack is so that the source file can tell whether it is being
9736 # built for inclusion in a dll (and should export symbols for example).
9737 lt_prog_compiler_pic='-DDLL_EXPORT'
9740 hpux9* | hpux10* | hpux11*)
9741 lt_prog_compiler_wl='-Wl,'
9742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9749 lt_prog_compiler_pic='+Z'
9752 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9753 lt_prog_compiler_static='${wl}-a ${wl}archive'
9756 irix5* | irix6* | nonstopux*)
9757 lt_prog_compiler_wl='-Wl,'
9758 # PIC (with -KPIC) is the default.
9759 lt_prog_compiler_static='-non_shared'
9762 linux* | k*bsd*-gnu)
9763 case $cc_basename in
9764 # old Intel for x86_64 which still supported -KPIC.
9766 lt_prog_compiler_wl='-Wl,'
9767 lt_prog_compiler_pic='-KPIC'
9768 lt_prog_compiler_static='-static'
9770 # icc used to be incompatible with GCC.
9771 # ICC 10 doesn't accept -KPIC any more.
9773 lt_prog_compiler_wl='-Wl,'
9774 lt_prog_compiler_pic='-fPIC'
9775 lt_prog_compiler_static='-static'
9777 # Lahey Fortran 8.1.
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_pic='--shared'
9781 lt_prog_compiler_static='--static'
9783 pgcc* | pgf77* | pgf90* | pgf95*)
9784 # Portland Group compilers (*not* the Pentium gcc compiler,
9785 # which looks to be a dead project)
9786 lt_prog_compiler_wl='-Wl,'
9787 lt_prog_compiler_pic='-fpic'
9788 lt_prog_compiler_static='-Bstatic'
9791 lt_prog_compiler_wl='-Wl,'
9792 # All Alpha code is PIC.
9793 lt_prog_compiler_static='-non_shared'
9796 # IBM XL C 8.0/Fortran 10.1 on PPC
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-qpic'
9799 lt_prog_compiler_static='-qstaticlink'
9802 case `$CC -V 2>&1 | sed 5q` in
9805 lt_prog_compiler_pic='-KPIC'
9806 lt_prog_compiler_static='-Bstatic'
9807 lt_prog_compiler_wl='-Wl,'
9810 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9811 lt_prog_compiler_pic='-KPIC'
9812 lt_prog_compiler_static='-Bstatic'
9813 lt_prog_compiler_wl=''
9821 lt_prog_compiler_pic='-KPIC'
9822 lt_prog_compiler_static='-Bstatic'
9826 # QNX uses GNU C++, but need to define -shared option too, otherwise
9828 lt_prog_compiler_pic='-fPIC -shared'
9831 osf3* | osf4* | osf5*)
9832 lt_prog_compiler_wl='-Wl,'
9833 # All OSF/1 code is PIC.
9834 lt_prog_compiler_static='-non_shared'
9838 lt_prog_compiler_static='-non_shared'
9842 lt_prog_compiler_pic='-KPIC'
9843 lt_prog_compiler_static='-Bstatic'
9844 case $cc_basename in
9846 lt_prog_compiler_wl='-Qoption ld ';;
9848 lt_prog_compiler_wl='-Wl,';;
9853 lt_prog_compiler_wl='-Qoption ld '
9854 lt_prog_compiler_pic='-PIC'
9855 lt_prog_compiler_static='-Bstatic'
9858 sysv4 | sysv4.2uw2* | sysv4.3*)
9859 lt_prog_compiler_wl='-Wl,'
9860 lt_prog_compiler_pic='-KPIC'
9861 lt_prog_compiler_static='-Bstatic'
9865 if test -d /usr/nec ;then
9866 lt_prog_compiler_pic='-Kconform_pic'
9867 lt_prog_compiler_static='-Bstatic'
9871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-KPIC'
9874 lt_prog_compiler_static='-Bstatic'
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_can_build_shared=no
9883 lt_prog_compiler_pic='-pic'
9884 lt_prog_compiler_static='-Bstatic'
9888 lt_prog_compiler_can_build_shared=no
9894 # For platforms which do not support PIC, -DPIC is meaningless:
9896 lt_prog_compiler_pic=
9899 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9903 $as_echo "$lt_prog_compiler_pic" >&6; }
9911 # Check to make sure the PIC flag actually works.
9913 if test -n "$lt_prog_compiler_pic"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9915 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9916 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9917 $as_echo_n "(cached) " >&6
9919 lt_cv_prog_compiler_pic_works=no
9920 ac_outfile=conftest.$ac_objext
9921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9923 # Insert the option either (1) after the last *FLAGS variable, or
9924 # (2) before a word containing "conftest.", or (3) at the end.
9925 # Note that $ac_compile itself does not contain backslashes and begins
9926 # with a dollar sign (not a hyphen), so the echo should work correctly.
9927 # The option is referenced via a variable to avoid confusing sed.
9928 lt_compile=`echo "$ac_compile" | $SED \
9929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931 -e 's:$: $lt_compiler_flag:'`
9932 (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933 (eval "$lt_compile" 2>conftest.err)
9935 cat conftest.err >&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 if (exit $ac_status) && test -s "$ac_outfile"; then
9938 # The compiler can only warn and ignore the option if not recognized
9939 # So say no if there are warnings other than the usual output.
9940 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9943 lt_cv_prog_compiler_pic_works=yes
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9950 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9952 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9953 case $lt_prog_compiler_pic in
9955 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9958 lt_prog_compiler_pic=
9959 lt_prog_compiler_can_build_shared=no
9970 # Check to make sure the static flag actually works.
9972 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9974 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9975 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9978 lt_cv_prog_compiler_static_works=no
9979 save_LDFLAGS="$LDFLAGS"
9980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9981 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9983 # The linker can only warn and ignore the option if not recognized
9984 # So say no if there are warnings
9985 if test -s conftest.err; then
9986 # Append any errors to the config.log.
9987 cat conftest.err 1>&5
9988 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9990 if diff conftest.exp conftest.er2 >/dev/null; then
9991 lt_cv_prog_compiler_static_works=yes
9994 lt_cv_prog_compiler_static_works=yes
9998 LDFLAGS="$save_LDFLAGS"
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10002 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10004 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10007 lt_prog_compiler_static=
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10018 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10021 lt_cv_prog_compiler_c_o=no
10022 $RM -r conftest 2>/dev/null
10026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028 lt_compiler_flag="-o out/conftest2.$ac_objext"
10029 # Insert the option either (1) after the last *FLAGS variable, or
10030 # (2) before a word containing "conftest.", or (3) at the end.
10031 # Note that $ac_compile itself does not contain backslashes and begins
10032 # with a dollar sign (not a hyphen), so the echo should work correctly.
10033 lt_compile=`echo "$ac_compile" | $SED \
10034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036 -e 's:$: $lt_compiler_flag:'`
10037 (eval echo "\"\$as_me:10037: $lt_compile\"" >&5)
10038 (eval "$lt_compile" 2>out/conftest.err)
10040 cat out/conftest.err >&5
10041 echo "$as_me:10041: \$? = $ac_status" >&5
10042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10044 # The compiler can only warn and ignore the option if not recognized
10045 # So say no if there are warnings
10046 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10049 lt_cv_prog_compiler_c_o=yes
10054 # SGI C++ compiler will create directory out/ii_files/ for
10055 # template instantiation
10056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10057 $RM out/* && rmdir out
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10072 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10073 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10076 lt_cv_prog_compiler_c_o=no
10077 $RM -r conftest 2>/dev/null
10081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10083 lt_compiler_flag="-o out/conftest2.$ac_objext"
10084 # Insert the option either (1) after the last *FLAGS variable, or
10085 # (2) before a word containing "conftest.", or (3) at the end.
10086 # Note that $ac_compile itself does not contain backslashes and begins
10087 # with a dollar sign (not a hyphen), so the echo should work correctly.
10088 lt_compile=`echo "$ac_compile" | $SED \
10089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10091 -e 's:$: $lt_compiler_flag:'`
10092 (eval echo "\"\$as_me:10092: $lt_compile\"" >&5)
10093 (eval "$lt_compile" 2>out/conftest.err)
10095 cat out/conftest.err >&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10099 # The compiler can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10104 lt_cv_prog_compiler_c_o=yes
10109 # SGI C++ compiler will create directory out/ii_files/ for
10110 # template instantiation
10111 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10112 $RM out/* && rmdir out
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10119 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10124 hard_links="nottested"
10125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10126 # do not overwrite the value of need_locks provided by the user
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10128 $as_echo_n "checking if we can lock with hard links... " >&6; }
10131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10133 ln conftest.a conftest.b 2>&5 || hard_links=no
10134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10136 $as_echo "$hard_links" >&6; }
10137 if test "$hard_links" = no; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10139 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10152 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10155 allow_undefined_flag=
10156 always_export_symbols=no
10158 archive_expsym_cmds=
10159 compiler_needs_object=no
10160 enable_shared_with_static_runtimes=no
10161 export_dynamic_flag_spec=
10162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10163 hardcode_automatic=no
10165 hardcode_direct_absolute=no
10166 hardcode_libdir_flag_spec=
10167 hardcode_libdir_flag_spec_ld=
10168 hardcode_libdir_separator=
10169 hardcode_minus_L=no
10170 hardcode_shlibpath_var=unsupported
10172 link_all_deplibs=unknown
10174 module_expsym_cmds=
10175 old_archive_from_new_cmds=
10176 old_archive_from_expsyms_cmds=
10177 thread_safe_flag_spec=
10178 whole_archive_flag_spec=
10179 # include_expsyms should be a list of space-separated symbols to be *always*
10180 # included in the symbol list
10182 # exclude_expsyms can be an extended regexp of symbols to exclude
10183 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10185 # as well as any symbol that contains `d'.
10186 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10188 # platforms (ab)use it in PIC code, but their linkers get confused if
10189 # the symbol is explicitly referenced. Since portable code cannot
10190 # rely on this symbol name, it's probably fine to never include it in
10191 # preloaded symbol tables.
10192 # Exclude shared library initialization/finalization symbols.
10193 extract_expsyms_cmds=
10196 cygwin* | mingw* | pw32* | cegcc*)
10197 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10198 # When not using gcc, we currently assume that we are using
10199 # Microsoft Visual C++.
10200 if test "$GCC" != yes; then
10205 # we just hope/assume this is gcc and not c89 (= MSVC++)
10214 if test "$with_gnu_ld" = yes; then
10215 # If archive_cmds runs LD, not CC, wlarc should be empty
10218 # Set some defaults for GNU ld with shared library support. These
10219 # are reset later if shared libraries are not supported. Putting them
10220 # here allows them to be overridden if necessary.
10221 runpath_var=LD_RUN_PATH
10222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10223 export_dynamic_flag_spec='${wl}--export-dynamic'
10224 # ancient GNU ld didn't support --whole-archive et. al.
10225 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10226 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10228 whole_archive_flag_spec=
10230 supports_anon_versioning=no
10231 case `$LD -v 2>&1` in
10232 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10233 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10234 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10235 *\ 2.11.*) ;; # other 2.11 versions
10236 *) supports_anon_versioning=yes ;;
10239 # See if GNU ld supports shared libraries.
10242 # On AIX/PPC, the GNU linker is very broken
10243 if test "$host_cpu" != ia64; then
10247 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10248 *** to be unable to reliably create shared libraries on AIX.
10249 *** Therefore, libtool is disabling shared libraries support. If you
10250 *** really care for shared libraries, you may want to modify your PATH
10251 *** so that a non-GNU linker is found, and then restart.
10260 # see comment about AmigaOS4 .so support
10261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262 archive_expsym_cmds=''
10265 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)'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_minus_L=yes
10273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10274 allow_undefined_flag=unsupported
10275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10276 # support --undefined. This deserves some investigation. FIXME
10277 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283 cygwin* | mingw* | pw32* | cegcc*)
10284 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10285 # as there is no search path for DLLs.
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 allow_undefined_flag=unsupported
10288 always_export_symbols=no
10289 enable_shared_with_static_runtimes=yes
10290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10292 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10294 # If the export-symbols file already is a .def file (1st line
10295 # is EXPORTS), use it as is; otherwise, prepend...
10296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10297 cp $export_symbols $output_objdir/$soname.def;
10299 echo EXPORTS > $output_objdir/$soname.def;
10300 cat $export_symbols >> $output_objdir/$soname.def;
10302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10310 hardcode_shlibpath_var=no
10311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10312 export_dynamic_flag_spec='${wl}-E'
10313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10314 # Instead, shared libraries are loaded at an image base (0x10000000 by
10315 # default) and relocated if they conflict, which is a slow very memory
10316 # consuming and fragmenting process. To avoid this, we pick a random,
10317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10320 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'
10323 gnu* | linux* | tpf* | k*bsd*-gnu)
10325 if test "$host_os" = linux-dietlibc; then
10326 case $cc_basename in
10327 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10330 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10331 && test "$tmp_diet" = no
10334 tmp_sharedflag='-shared'
10335 case $cc_basename,$host_cpu in
10336 pgcc*) # Portland Group C compiler
10337 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'
10338 tmp_addflag=' $pic_flag'
10340 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10341 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'
10342 tmp_addflag=' $pic_flag -Mnomain' ;;
10343 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10344 tmp_addflag=' -i_dynamic' ;;
10345 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10346 tmp_addflag=' -i_dynamic -nofor_main' ;;
10347 ifc* | ifort*) # Intel Fortran compiler
10348 tmp_addflag=' -nofor_main' ;;
10349 lf95*) # Lahey Fortran 8.1
10350 whole_archive_flag_spec=
10351 tmp_sharedflag='--shared' ;;
10352 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10353 tmp_sharedflag='-qmkshrobj'
10356 case `$CC -V 2>&1 | sed 5q` in
10357 *Sun\ C*) # Sun C 5.9
10358 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'
10359 compiler_needs_object=yes
10360 tmp_sharedflag='-G' ;;
10361 *Sun\ F*) # Sun Fortran 8.3
10362 tmp_sharedflag='-G' ;;
10364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366 if test "x$supports_anon_versioning" = xyes; then
10367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10369 echo "local: *; };" >> $output_objdir/$libname.ver~
10370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10373 case $cc_basename in
10375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10377 hardcode_libdir_flag_spec=
10378 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10379 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10380 if test "x$supports_anon_versioning" = xyes; then
10381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10383 echo "local: *; };" >> $output_objdir/$libname.ver~
10384 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10404 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10409 *** create shared libraries on Solaris systems. Therefore, libtool
10410 *** is disabling shared libraries support. We urge you to upgrade GNU
10411 *** binutils to release 2.9.1 or newer. Another option is to modify
10412 *** your PATH or compiler configuration so that the native linker is
10413 *** used, and then restart.
10416 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10425 case `$LD -v 2>&1` in
10426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10431 *** reliably create shared libraries on SCO systems. Therefore, libtool
10432 *** is disabling shared libraries support. We urge you to upgrade GNU
10433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10434 *** your PATH or compiler configuration so that the native linker is
10435 *** used, and then restart.
10440 # For security reasons, it is highly recommended that you always
10441 # use absolute paths for naming shared libraries, and exclude the
10442 # DT_RUNPATH tag from executables and libraries. But doing so
10443 # requires that you compile everything twice, which is a pain.
10444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10456 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=yes
10459 hardcode_shlibpath_var=no
10463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10472 if test "$ld_shlibs" = no; then
10474 hardcode_libdir_flag_spec=
10475 export_dynamic_flag_spec=
10476 whole_archive_flag_spec=
10479 # PORTME fill in a description of your system's linker (not GNU ld)
10482 allow_undefined_flag=unsupported
10483 always_export_symbols=yes
10484 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'
10485 # Note: this linker hardcodes the directories in LIBPATH if there
10486 # are no directories specified by -L.
10487 hardcode_minus_L=yes
10488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10489 # Neither direct hardcoding nor static linking is supported with a
10491 hardcode_direct=unsupported
10496 if test "$host_cpu" = ia64; then
10497 # On IA64, the linker does run time linking by default, so we don't
10498 # have to do anything special.
10499 aix_use_runtimelinking=no
10500 exp_sym_flag='-Bexport'
10503 # If we're using GNU nm, then we don't want the "-C" option.
10504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10505 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10506 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'
10508 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'
10510 aix_use_runtimelinking=no
10512 # Test if we are trying to use run time linking or normal
10513 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10514 # need to do runtime linking.
10515 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10516 for ld_flag in $LDFLAGS; do
10517 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10518 aix_use_runtimelinking=yes
10525 exp_sym_flag='-bexport'
10526 no_entry_flag='-bnoentry'
10529 # When large executables or shared objects are built, AIX ld can
10530 # have problems creating the table of contents. If linking a library
10531 # or program results in "error TOC overflow" add -mminimal-toc to
10532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10536 hardcode_direct=yes
10537 hardcode_direct_absolute=yes
10538 hardcode_libdir_separator=':'
10539 link_all_deplibs=yes
10540 file_list_spec='${wl}-f,'
10542 if test "$GCC" = yes; then
10543 case $host_os in aix4.[012]|aix4.[012].*)
10544 # We only want to do this on AIX 4.2 and lower, the check
10545 # below for broken collect2 doesn't work under 4.3+
10546 collect2name=`${CC} -print-prog-name=collect2`
10547 if test -f "$collect2name" &&
10548 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10550 # We have reworked collect2
10553 # We have old collect2
10554 hardcode_direct=unsupported
10555 # It fails to find uninstalled libraries when the uninstalled
10556 # path is not listed in the libpath. Setting hardcode_minus_L
10557 # to unsupported forces relinking
10558 hardcode_minus_L=yes
10559 hardcode_libdir_flag_spec='-L$libdir'
10560 hardcode_libdir_separator=
10564 shared_flag='-shared'
10565 if test "$aix_use_runtimelinking" = yes; then
10566 shared_flag="$shared_flag "'${wl}-G'
10570 if test "$host_cpu" = ia64; then
10571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10572 # chokes on -Wl,-G. The following line is correct:
10575 if test "$aix_use_runtimelinking" = yes; then
10576 shared_flag='${wl}-G'
10578 shared_flag='${wl}-bM:SRE'
10583 export_dynamic_flag_spec='${wl}-bexpall'
10584 # It seems that -bexpall does not export symbols beginning with
10585 # underscore (_), so it is better to generate a list of symbols to export.
10586 always_export_symbols=yes
10587 if test "$aix_use_runtimelinking" = yes; then
10588 # Warning - without using the other runtime loading flags (-brtl),
10589 # -berok will link without error, but may produce a broken library.
10590 allow_undefined_flag='-berok'
10591 # Determine the default libpath from the value encoded in an
10592 # empty executable.
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10604 if ac_fn_c_try_link "$LINENO"; then :
10606 lt_aix_libpath_sed='
10607 /Import File Strings/,/^$/ {
10613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10614 # Check for a 64-bit object if we didn't find anything.
10615 if test -z "$aix_libpath"; then
10616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10624 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"
10626 if test "$host_cpu" = ia64; then
10627 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10628 allow_undefined_flag="-z nodefs"
10629 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"
10631 # Determine the default libpath from the value encoded in an
10632 # empty executable.
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10644 if ac_fn_c_try_link "$LINENO"; then :
10646 lt_aix_libpath_sed='
10647 /Import File Strings/,/^$/ {
10653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$aix_libpath"; then
10656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10664 # Warning - without using the other run time loading flags,
10665 # -berok will link without error, but may produce a broken library.
10666 no_undefined_flag=' ${wl}-bernotok'
10667 allow_undefined_flag=' ${wl}-berok'
10668 # Exported symbols can be pulled into shared objects from archives
10669 whole_archive_flag_spec='$convenience'
10670 archive_cmds_need_lc=yes
10671 # This is similar to how AIX traditionally builds its shared libraries.
10672 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'
10680 # see comment about AmigaOS4 .so support
10681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682 archive_expsym_cmds=''
10685 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)'
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_minus_L=yes
10693 export_dynamic_flag_spec=-rdynamic
10696 cygwin* | mingw* | pw32* | cegcc*)
10697 # When not using gcc, we currently assume that we are using
10698 # Microsoft Visual C++.
10699 # hardcode_libdir_flag_spec is actually meaningless, as there is
10700 # no search path for DLLs.
10701 hardcode_libdir_flag_spec=' '
10702 allow_undefined_flag=unsupported
10703 # Tell ltmain to make .lib files, not .a files.
10705 # Tell ltmain to make .dll files, not .so files.
10707 # FIXME: Setting linknames here is a bad hack.
10708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10709 # The linker will automatically build a .lib file if we build a DLL.
10710 old_archive_from_new_cmds='true'
10711 # FIXME: Should let the user specify the lib program.
10712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10713 fix_srcfile_path='`cygpath -w "$srcfile"`'
10714 enable_shared_with_static_runtimes=yes
10717 darwin* | rhapsody*)
10720 archive_cmds_need_lc=no
10722 hardcode_automatic=yes
10723 hardcode_shlibpath_var=unsupported
10724 whole_archive_flag_spec=''
10725 link_all_deplibs=yes
10726 allow_undefined_flag="$_lt_dar_allow_undefined"
10727 case $cc_basename in
10728 ifort*) _lt_dar_can_shared=yes ;;
10729 *) _lt_dar_can_shared=$GCC ;;
10731 if test "$_lt_dar_can_shared" = "yes"; then
10732 output_verbose_link_cmd=echo
10733 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10734 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10735 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}"
10736 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}"
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_libdir_flag_spec='-L$libdir'
10747 hardcode_shlibpath_var=no
10754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10755 # support. Future versions do this automatically, but an explicit c++rt0.o
10756 # does not break anything, and helps significantly (at the cost of a little
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10760 hardcode_libdir_flag_spec='-R$libdir'
10761 hardcode_direct=yes
10762 hardcode_shlibpath_var=no
10765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_minus_L=yes
10770 hardcode_shlibpath_var=no
10773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10774 freebsd* | dragonfly*)
10775 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10782 if test "$GCC" = yes; then
10783 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'
10785 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'
10787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10788 hardcode_libdir_separator=:
10789 hardcode_direct=yes
10791 # hardcode_minus_L: Not really in the search PATH,
10792 # but as the default location of the library.
10793 hardcode_minus_L=yes
10794 export_dynamic_flag_spec='${wl}-E'
10798 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10803 if test "$with_gnu_ld" = no; then
10804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10805 hardcode_libdir_flag_spec_ld='+b $libdir'
10806 hardcode_libdir_separator=:
10807 hardcode_direct=yes
10808 hardcode_direct_absolute=yes
10809 export_dynamic_flag_spec='${wl}-E'
10810 # hardcode_minus_L: Not really in the search PATH,
10811 # but as the default location of the library.
10812 hardcode_minus_L=yes
10817 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10820 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10832 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10842 if test "$with_gnu_ld" = no; then
10843 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10844 hardcode_libdir_separator=:
10849 hardcode_shlibpath_var=no
10852 hardcode_direct=yes
10853 hardcode_direct_absolute=yes
10854 export_dynamic_flag_spec='${wl}-E'
10856 # hardcode_minus_L: Not really in the search PATH,
10857 # but as the default location of the library.
10858 hardcode_minus_L=yes
10864 irix5* | irix6* | nonstopux*)
10865 if test "$GCC" = yes; then
10866 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'
10867 # Try to use the -exported_symbol ld option, if it does not
10868 # work, assume that -exports_file does not work either and
10869 # implicitly export all symbols.
10870 save_LDFLAGS="$LDFLAGS"
10871 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10876 if ac_fn_c_try_link "$LINENO"; then :
10877 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'
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LDFLAGS="$save_LDFLAGS"
10884 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'
10885 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'
10887 archive_cmds_need_lc='no'
10888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889 hardcode_libdir_separator=:
10891 link_all_deplibs=yes
10895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10898 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10900 hardcode_libdir_flag_spec='-R$libdir'
10901 hardcode_direct=yes
10902 hardcode_shlibpath_var=no
10906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_direct=yes
10908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10909 hardcode_libdir_separator=:
10910 hardcode_shlibpath_var=no
10917 if test -f /usr/libexec/ld.so; then
10918 hardcode_direct=yes
10919 hardcode_shlibpath_var=no
10920 hardcode_direct_absolute=yes
10921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10925 export_dynamic_flag_spec='${wl}-E'
10928 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_libdir_flag_spec='-R$libdir'
10933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10944 hardcode_libdir_flag_spec='-L$libdir'
10945 hardcode_minus_L=yes
10946 allow_undefined_flag=unsupported
10947 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'
10948 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10952 if test "$GCC" = yes; then
10953 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10954 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'
10956 allow_undefined_flag=' -expect_unresolved \*'
10957 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'
10959 archive_cmds_need_lc='no'
10960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10961 hardcode_libdir_separator=:
10964 osf4* | osf5*) # as osf3* with the addition of -msym flag
10965 if test "$GCC" = yes; then
10966 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10967 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'
10968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10970 allow_undefined_flag=' -expect_unresolved \*'
10971 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'
10972 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~
10973 $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'
10975 # Both c and cxx compiler support -rpath directly
10976 hardcode_libdir_flag_spec='-rpath $libdir'
10978 archive_cmds_need_lc='no'
10979 hardcode_libdir_separator=:
10983 no_undefined_flag=' -z defs'
10984 if test "$GCC" = yes; then
10986 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10988 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10990 case `$CC -V 2>&1` in
10993 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10995 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10999 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11001 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11005 hardcode_libdir_flag_spec='-R$libdir'
11006 hardcode_shlibpath_var=no
11008 solaris2.[0-5] | solaris2.[0-5].*) ;;
11010 # The compiler driver will combine and reorder linker options,
11011 # but understands `-z linker_flag'. GCC discards it without `$wl',
11012 # but is careful enough not to reorder.
11013 # Supported since Solaris 2.6 (maybe 2.5.1?)
11014 if test "$GCC" = yes; then
11015 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11017 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11021 link_all_deplibs=yes
11025 if test "x$host_vendor" = xsequent; then
11026 # Use $CC to link under sequent, because it throws in some extra .o
11027 # files that make .init and .fini sections work.
11028 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_libdir_flag_spec='-L$libdir'
11033 hardcode_direct=yes
11034 hardcode_minus_L=yes
11035 hardcode_shlibpath_var=no
11039 case $host_vendor in
11041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042 hardcode_direct=yes # is this really true???
11045 ## LD is ld it makes a PLAMLIB
11046 ## CC just makes a GrossModule.
11047 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11048 reload_cmds='$CC -r -o $output$reload_objs'
11052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11056 runpath_var='LD_RUN_PATH'
11057 hardcode_shlibpath_var=no
11061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062 hardcode_shlibpath_var=no
11063 export_dynamic_flag_spec='-Bexport'
11067 if test -d /usr/nec; then
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_shlibpath_var=no
11070 runpath_var=LD_RUN_PATH
11071 hardcode_runpath_var=yes
11076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11077 no_undefined_flag='${wl}-z,text'
11078 archive_cmds_need_lc=no
11079 hardcode_shlibpath_var=no
11080 runpath_var='LD_RUN_PATH'
11082 if test "$GCC" = yes; then
11083 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11091 sysv5* | sco3.2v5* | sco5v6*)
11092 # Note: We can NOT use -z defs as we might desire, because we do not
11093 # link with -lc, and that would cause any symbols used from libc to
11094 # always be unresolved, which means just about no library would
11095 # ever link correctly. If we're not using GNU ld we use -z text
11096 # though, which does catch some bad symbols but isn't as heavy-handed
11098 no_undefined_flag='${wl}-z,text'
11099 allow_undefined_flag='${wl}-z,nodefs'
11100 archive_cmds_need_lc=no
11101 hardcode_shlibpath_var=no
11102 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11103 hardcode_libdir_separator=':'
11104 link_all_deplibs=yes
11105 export_dynamic_flag_spec='${wl}-Bexport'
11106 runpath_var='LD_RUN_PATH'
11108 if test "$GCC" = yes; then
11109 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11119 hardcode_libdir_flag_spec='-L$libdir'
11120 hardcode_shlibpath_var=no
11128 if test x$host_vendor = xsni; then
11130 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11131 export_dynamic_flag_spec='${wl}-Blargedynsym'
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11138 $as_echo "$ld_shlibs" >&6; }
11139 test "$ld_shlibs" = no && can_build_shared=no
11141 with_gnu_ld=$with_gnu_ld
11158 # Do we need to explicitly link libc?
11160 case "x$archive_cmds_need_lc" in
11162 # Assume -lc should be added
11163 archive_cmds_need_lc=yes
11165 if test "$enable_shared" = yes && test "$GCC" = yes; then
11166 case $archive_cmds in
11168 # FIXME: we may have to deal with multi-command sequences.
11171 # Test whether the compiler implicitly links with -lc since on some
11172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11173 # to ld, don't add -lc before -lgcc.
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11175 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11180 (eval $ac_compile) 2>&5
11182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183 test $ac_status = 0; } 2>conftest.err; then
11186 libobjs=conftest.$ac_objext
11188 wl=$lt_prog_compiler_wl
11189 pic_flag=$lt_prog_compiler_pic
11195 lt_save_allow_undefined_flag=$allow_undefined_flag
11196 allow_undefined_flag=
11197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11198 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11201 test $ac_status = 0; }
11203 archive_cmds_need_lc=no
11205 archive_cmds_need_lc=yes
11207 allow_undefined_flag=$lt_save_allow_undefined_flag
11209 cat conftest.err 1>&5
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11213 $as_echo "$archive_cmds_need_lc" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11379 if test "$GCC" = yes; then
11381 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11382 *) lt_awk_arg="/^libraries:/" ;;
11384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11385 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11386 # if the path contains ";" then we assume it to be the separator
11387 # otherwise default to the standard path separator (i.e. ":") - it is
11388 # assumed that no part of a normal pathname contains ";" but that should
11389 # okay in the real world where ";" in dirpaths is itself problematic.
11390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11394 # Ok, now we have the path, separated by spaces, we can step through it
11395 # and add multilib dir if necessary.
11396 lt_tmp_lt_search_path_spec=
11397 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11398 for lt_sys_path in $lt_search_path_spec; do
11399 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11400 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11402 test -d "$lt_sys_path" && \
11403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11406 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11407 BEGIN {RS=" "; FS="/|\n";} {
11410 for (lt_i = NF; lt_i > 0; lt_i--) {
11411 if ($lt_i != "" && $lt_i != ".") {
11412 if ($lt_i == "..") {
11415 if (lt_count == 0) {
11416 lt_foo="/" $lt_i lt_foo;
11423 if (lt_foo != "") { lt_freq[lt_foo]++; }
11424 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11426 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11430 library_names_spec=
11431 libname_spec='lib$name'
11435 postuninstall_cmds=
11439 shlibpath_overrides_runpath=unknown
11441 dynamic_linker="$host_os ld.so"
11442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11443 need_lib_prefix=unknown
11444 hardcode_into_libs=no
11446 # when you set need_version to no, make sure it does not cause -set_version
11447 # flags to be left without arguments
11448 need_version=unknown
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11454 shlibpath_var=LIBPATH
11456 # AIX 3 has no versioning support, so we append a major version to the name.
11457 soname_spec='${libname}${release}${shared_ext}$major'
11464 hardcode_into_libs=yes
11465 if test "$host_cpu" = ia64; then
11466 # AIX 5 supports IA64
11467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11468 shlibpath_var=LD_LIBRARY_PATH
11470 # With GCC up to 2.95.x, collect2 would create an import file
11471 # for dependence libraries. The import file would start with
11472 # the line `#! .'. This would cause the generated library to
11473 # depend on `.', always an invalid library. This was fixed in
11474 # development snapshots of GCC prior to 3.0.
11476 aix4 | aix4.[01] | aix4.[01].*)
11477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11479 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11482 can_build_shared=no
11486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11487 # soname into executable. Probably we can add versioning support to
11488 # collect2, so additional links can be useful in future.
11489 if test "$aix_use_runtimelinking" = yes; then
11490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11491 # instead of lib<name>.a to let people know that these are not
11492 # typical AIX shared libraries.
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 # We preserve .a as extension for shared libraries through AIX4.2
11496 # and later when we are not doing run time linking.
11497 library_names_spec='${libname}${release}.a $libname.a'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LIBPATH
11507 # Since July 2007 AmigaOS4 officially supports .so libraries.
11508 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 library_names_spec='$libname.ixlibrary $libname.a'
11513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11514 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'
11520 library_names_spec='${libname}${shared_ext}'
11521 dynamic_linker="$host_os ld.so"
11522 shlibpath_var=LIBRARY_PATH
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11534 # the default ld.so.conf also contains /usr/contrib/lib and
11535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11536 # libtool to hard-code these into programs
11539 cygwin* | mingw* | pw32* | cegcc*)
11540 version_type=windows
11545 case $GCC,$host_os in
11546 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11547 library_names_spec='$libname.dll.a'
11548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11549 postinstall_cmds='base_file=`basename \${file}`~
11550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11551 dldir=$destdir/`dirname \$dlpath`~
11552 test -d \$dldir || mkdir -p \$dldir~
11553 $install_prog $dir/$dlname \$dldir/$dlname~
11554 chmod a+x \$dldir/$dlname~
11555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559 dlpath=$dir/\$dldll~
11561 shlibpath_overrides_runpath=yes
11565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11570 # MinGW DLLs use traditional 'lib' prefix
11571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11572 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11574 # It is most probably a Windows format PATH printed by
11575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11576 # path with ; separators, and with drive letters. We can handle the
11577 # drive letters (cygwin fileutils understands them), so leave them,
11578 # especially as we might pass files found there to a mingw objdump,
11579 # which wouldn't understand a cygwinified path. Ahh.
11580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11586 # pw32 DLLs use 'pw' prefix rather than 'lib'
11587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11593 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11596 dynamic_linker='Win32 ld.exe'
11597 # FIXME: first we should search . and the directory the executable is in
11601 darwin* | rhapsody*)
11602 dynamic_linker="$host_os dyld"
11603 version_type=darwin
11606 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11607 soname_spec='${libname}${release}${major}$shared_ext'
11608 shlibpath_overrides_runpath=yes
11609 shlibpath_var=DYLD_LIBRARY_PATH
11610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11629 freebsd* | dragonfly*)
11630 # DragonFly does not have aout. When/if they implement a new
11631 # versioning mechanism, adjust this.
11632 if test -x /usr/bin/objformat; then
11633 objformat=`/usr/bin/objformat`
11636 freebsd[123]*) objformat=aout ;;
11637 *) objformat=elf ;;
11640 version_type=freebsd-$objformat
11641 case $version_type in
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11652 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=yes
11657 freebsd3.[01]* | freebsdelf3.[01]*)
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11666 *) # from 4.6 on, and DragonFly
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 hardcode_into_libs=yes
11683 hpux9* | hpux10* | hpux11*)
11684 # Give a soname corresponding to the major version so that dld.sl refuses to
11685 # link against other versions.
11692 hardcode_into_libs=yes
11693 dynamic_linker="$host_os dld.so"
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 if test "X$HPUX_IA64_MODE" = X32; then
11699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11707 hardcode_into_libs=yes
11708 dynamic_linker="$host_os dld.sl"
11709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11718 dynamic_linker="$host_os dld.sl"
11719 shlibpath_var=SHLIB_PATH
11720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11725 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11726 postinstall_cmds='chmod 555 $lib'
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 shlibpath_overrides_runpath=no
11738 hardcode_into_libs=yes
11741 irix5* | irix6* | nonstopux*)
11743 nonstopux*) version_type=nonstopux ;;
11745 if test "$lt_cv_prog_gnu_ld" = yes; then
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11756 irix5* | nonstopux*)
11757 libsuff= shlibsuff=
11760 case $LD in # libtool.m4 will add one of these switches to LD
11761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11762 libsuff= shlibsuff= libmagic=32-bit;;
11763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11764 libsuff=32 shlibsuff=N32 libmagic=N32;;
11765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11767 *) libsuff= shlibsuff= libmagic=never-match;;
11771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11772 shlibpath_overrides_runpath=no
11773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11775 hardcode_into_libs=yes
11778 # No shared lib support for Linux oldld, aout, or coff.
11779 linux*oldld* | linux*aout* | linux*coff*)
11783 # This must be Linux ELF.
11784 linux* | k*bsd*-gnu)
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=no
11793 # Some binutils ld are patched to set DT_RUNPATH
11794 save_LDFLAGS=$LDFLAGS
11795 save_libdir=$libdir
11796 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11797 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11811 shlibpath_overrides_runpath=yes
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LDFLAGS=$save_LDFLAGS
11817 libdir=$save_libdir
11819 # This implies no fast_install, which is unacceptable.
11820 # Some rework will be needed to allow for fast_install
11821 # before this can be enabled.
11822 hardcode_into_libs=yes
11824 # Append ld.so.conf contents to the search path
11825 if test -f /etc/ld.so.conf; then
11826 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' ' '`
11827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11830 # We used to test for /lib/ld.so.1 and disable shared libraries on
11831 # powerpc, because MkLinux only supported shared libraries with the
11832 # GNU dynamic linker. Since this was broken with cross compilers,
11833 # most powerpc-linux boxes support dynamic linking these days and
11834 # people can always --disable-shared, the test was removed, and we
11835 # assume the GNU/Linux dynamic linker is in use.
11836 dynamic_linker='GNU/Linux ld.so'
11843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11846 dynamic_linker='NetBSD (a.out) ld.so'
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 dynamic_linker='NetBSD ld.elf_so'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=yes
11854 hardcode_into_libs=yes
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=yes
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=no
11872 hardcode_into_libs=yes
11873 dynamic_linker='ldqnx.so'
11878 sys_lib_dlsearch_path_spec="/usr/lib"
11880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11883 *) need_version=no ;;
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11890 openbsd2.[89] | openbsd2.[89].*)
11891 shlibpath_overrides_runpath=no
11894 shlibpath_overrides_runpath=yes
11898 shlibpath_overrides_runpath=yes
11903 libname_spec='$name'
11906 library_names_spec='$libname${shared_ext} $libname.a'
11907 dynamic_linker='OS/2 ld.exe'
11908 shlibpath_var=LIBPATH
11911 osf3* | osf4* | osf5*)
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=yes
11934 hardcode_into_libs=yes
11935 # ldd complains unless libraries are executable
11936 postinstall_cmds='chmod +x $lib'
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes
11945 if test "$with_gnu_ld" = yes; then
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 case $host_vendor in
11958 shlibpath_overrides_runpath=no
11960 runpath_var=LD_RUN_PATH
11968 shlibpath_overrides_runpath=no
11969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11975 if test -d /usr/nec ;then
11977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11978 soname_spec='$libname${shared_ext}.$major'
11979 shlibpath_var=LD_LIBRARY_PATH
11983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11984 version_type=freebsd-elf
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 shlibpath_overrides_runpath=yes
11991 hardcode_into_libs=yes
11992 if test "$with_gnu_ld" = yes; then
11993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12002 sys_lib_dlsearch_path_spec='/usr/lib'
12006 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 shlibpath_overrides_runpath=no
12013 hardcode_into_libs=yes
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12019 soname_spec='${libname}${release}${shared_ext}$major'
12020 shlibpath_var=LD_LIBRARY_PATH
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12028 $as_echo "$dynamic_linker" >&6; }
12029 test "$dynamic_linker" = no && can_build_shared=no
12031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12032 if test "$GCC" = yes; then
12033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12037 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12040 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12132 if test -n "$hardcode_libdir_flag_spec" ||
12133 test -n "$runpath_var" ||
12134 test "X$hardcode_automatic" = "Xyes" ; then
12136 # We can hardcode non-existent directories.
12137 if test "$hardcode_direct" != no &&
12138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12139 # have to relink, otherwise we might link with an installed library
12140 # when we should be linking with a yet-to-be-installed one
12141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12142 test "$hardcode_minus_L" != no; then
12143 # Linking always hardcodes the temporary library directory.
12144 hardcode_action=relink
12146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12147 hardcode_action=immediate
12150 # We cannot hardcode anything, or else we can only hardcode existing
12152 hardcode_action=unsupported
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12155 $as_echo "$hardcode_action" >&6; }
12157 if test "$hardcode_action" = relink ||
12158 test "$inherit_rpath" = yes; then
12159 # Fast installation is not supported
12160 enable_fast_install=no
12161 elif test "$shlibpath_overrides_runpath" = yes ||
12162 test "$enable_shared" = no; then
12163 # Fast installation is not necessary
12164 enable_fast_install=needless
12172 if test "x$enable_dlopen" != xyes; then
12173 enable_dlopen=unknown
12174 enable_dlopen_self=unknown
12175 enable_dlopen_self_static=unknown
12182 lt_cv_dlopen="load_add_on"
12184 lt_cv_dlopen_self=yes
12187 mingw* | pw32* | cegcc*)
12188 lt_cv_dlopen="LoadLibrary"
12193 lt_cv_dlopen="dlopen"
12198 # if libdl is installed we need to link against it
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12204 ac_check_lib_save_LIBS=$LIBS
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_dl_dlopen=yes
12227 ac_cv_lib_dl_dlopen=no
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12235 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12239 lt_cv_dlopen="dyld"
12241 lt_cv_dlopen_self=yes
12248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12249 if test "x$ac_cv_func_shl_load" = x""yes; then :
12250 lt_cv_dlopen="shl_load"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12254 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12257 ac_check_lib_save_LIBS=$LIBS
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12272 return shl_load ();
12277 if ac_fn_c_try_link "$LINENO"; then :
12278 ac_cv_lib_dld_shl_load=yes
12280 ac_cv_lib_dld_shl_load=no
12282 rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12288 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12292 if test "x$ac_cv_func_dlopen" = x""yes; then :
12293 lt_cv_dlopen="dlopen"
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 ac_check_lib_save_LIBS=$LIBS
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12305 /* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
12320 if ac_fn_c_try_link "$LINENO"; then :
12321 ac_cv_lib_dl_dlopen=yes
12323 ac_cv_lib_dl_dlopen=no
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12331 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12336 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lsvld $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_svld_dlopen=yes
12362 ac_cv_lib_svld_dlopen=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12370 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12378 ac_check_lib_save_LIBS=$LIBS
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12393 return dld_link ();
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 ac_cv_lib_dld_dld_link=yes
12401 ac_cv_lib_dld_dld_link=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LIBS=$ac_check_lib_save_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12409 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12431 if test "x$lt_cv_dlopen" != xno; then
12437 case $lt_cv_dlopen in
12439 save_CPPFLAGS="$CPPFLAGS"
12440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12442 save_LDFLAGS="$LDFLAGS"
12443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12446 LIBS="$lt_cv_dlopen_libs $LIBS"
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12450 if test "${lt_cv_dlopen_self+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12453 if test "$cross_compiling" = yes; then :
12454 lt_cv_dlopen_self=cross
12456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457 lt_status=$lt_dlunknown
12458 cat > conftest.$ac_ext <<_LT_EOF
12459 #line 12459 "configure"
12460 #include "confdefs.h"
12469 # define LT_DLGLOBAL RTLD_GLOBAL
12472 # define LT_DLGLOBAL DL_GLOBAL
12474 # define LT_DLGLOBAL 0
12478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479 find out it does not work in some platform. */
12480 #ifndef LT_DLLAZY_OR_NOW
12482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12485 # define LT_DLLAZY_OR_NOW DL_LAZY
12488 # define LT_DLLAZY_OR_NOW RTLD_NOW
12491 # define LT_DLLAZY_OR_NOW DL_NOW
12493 # define LT_DLLAZY_OR_NOW 0
12500 void fnord() { int i=42;}
12503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12504 int status = $lt_dlunknown;
12508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12510 /* dlclose (self); */
12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12519 (eval $ac_link) 2>&5
12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12523 (./conftest; exit; ) >&5 2>/dev/null
12525 case x$lt_status in
12526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12528 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12531 # compilation failed
12532 lt_cv_dlopen_self=no
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12540 $as_echo "$lt_cv_dlopen_self" >&6; }
12542 if test "x$lt_cv_dlopen_self" = xyes; then
12543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 if test "$cross_compiling" = yes; then :
12550 lt_cv_dlopen_self_static=cross
12552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12553 lt_status=$lt_dlunknown
12554 cat > conftest.$ac_ext <<_LT_EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12565 # define LT_DLGLOBAL RTLD_GLOBAL
12568 # define LT_DLGLOBAL DL_GLOBAL
12570 # define LT_DLGLOBAL 0
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575 find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW DL_LAZY
12584 # define LT_DLLAZY_OR_NOW RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW DL_NOW
12589 # define LT_DLLAZY_OR_NOW 0
12596 void fnord() { int i=42;}
12599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12600 int status = $lt_dlunknown;
12604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12606 /* dlclose (self); */
12614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12615 (eval $ac_link) 2>&5
12617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12618 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12619 (./conftest; exit; ) >&5 2>/dev/null
12621 case x$lt_status in
12622 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12623 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12624 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12627 # compilation failed
12628 lt_cv_dlopen_self_static=no
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12636 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12639 CPPFLAGS="$save_CPPFLAGS"
12640 LDFLAGS="$save_LDFLAGS"
12645 case $lt_cv_dlopen_self in
12646 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12647 *) enable_dlopen_self=unknown ;;
12650 case $lt_cv_dlopen_self_static in
12651 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12652 *) enable_dlopen_self_static=unknown ;;
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12675 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12676 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12680 $as_echo "yes" >&6; }
12682 # FIXME - insert some real tests, host_os isn't really good enough
12685 if test -n "$STRIP" ; then
12686 striplib="$STRIP -x"
12687 old_striplib="$STRIP -S"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 $as_echo "yes" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12713 # Report which library types will actually be built
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12715 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12717 $as_echo "$can_build_shared" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12720 $as_echo_n "checking whether to build shared libraries... " >&6; }
12721 test "$can_build_shared" = "no" && enable_shared=no
12723 # On AIX, shared libraries and static libraries use the same namespace, and
12724 # are all built from PIC.
12727 test "$enable_shared" = yes && enable_static=no
12728 if test -n "$RANLIB"; then
12729 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12730 postinstall_cmds='$RANLIB $lib'
12735 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12736 test "$enable_shared" = yes && enable_static=no
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12741 $as_echo "$enable_shared" >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12744 $as_echo_n "checking whether to build static libraries... " >&6; }
12745 # Make sure either enable_shared or enable_static is yes.
12746 test "$enable_shared" = yes || enable_static=yes
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12748 $as_echo "$enable_static" >&6; }
12755 ac_cpp='$CPP $CPPFLAGS'
12756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764 ac_cpp='$CXXCPP $CPPFLAGS'
12765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12769 archive_cmds_need_lc_CXX=no
12770 allow_undefined_flag_CXX=
12771 always_export_symbols_CXX=no
12772 archive_expsym_cmds_CXX=
12773 compiler_needs_object_CXX=no
12774 export_dynamic_flag_spec_CXX=
12775 hardcode_direct_CXX=no
12776 hardcode_direct_absolute_CXX=no
12777 hardcode_libdir_flag_spec_CXX=
12778 hardcode_libdir_flag_spec_ld_CXX=
12779 hardcode_libdir_separator_CXX=
12780 hardcode_minus_L_CXX=no
12781 hardcode_shlibpath_var_CXX=unsupported
12782 hardcode_automatic_CXX=no
12783 inherit_rpath_CXX=no
12785 module_expsym_cmds_CXX=
12786 link_all_deplibs_CXX=unknown
12787 old_archive_cmds_CXX=$old_archive_cmds
12788 no_undefined_flag_CXX=
12789 whole_archive_flag_spec_CXX=
12790 enable_shared_with_static_runtimes_CXX=no
12792 # Source file extension for C++ test sources.
12795 # Object file extension for compiled C++ test sources.
12799 # No sense in running all these tests if we already determined that
12800 # the CXX compiler isn't working. Some variables (like enable_shared)
12801 # are currently assumed to apply to all compilers on this platform,
12802 # and will be corrupted by setting them based on a non-working compiler.
12803 if test "$_lt_caught_CXX_error" != yes; then
12804 # Code to be used in simple compile tests
12805 lt_simple_compile_test_code="int some_variable = 0;"
12807 # Code to be used in simple link tests
12808 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12817 # If no C compiler was specified, use CC.
12820 # If no C compiler flags were specified, use CFLAGS.
12821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12823 # Allow CC to be a program name with arguments.
12827 # save warnings/boilerplate of simple test code
12828 ac_outfile=conftest.$ac_objext
12829 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12831 _lt_compiler_boilerplate=`cat conftest.err`
12834 ac_outfile=conftest.$ac_objext
12835 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12837 _lt_linker_boilerplate=`cat conftest.err`
12841 # Allow CC to be a program name with arguments.
12846 lt_save_with_gnu_ld=$with_gnu_ld
12847 lt_save_path_LD=$lt_cv_path_LD
12848 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12849 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12851 $as_unset lt_cv_prog_gnu_ld
12853 if test -n "${lt_cv_path_LDCXX+set}"; then
12854 lt_cv_path_LD=$lt_cv_path_LDCXX
12856 $as_unset lt_cv_path_LD
12858 test -z "${LDCXX+set}" || LD=$LDCXX
12862 for cc_temp in $compiler""; do
12864 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12865 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12870 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12873 if test -n "$compiler"; then
12874 # We don't want -fno-exception when compiling C++ code, so set the
12875 # no_builtin_flag separately
12876 if test "$GXX" = yes; then
12877 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12879 lt_prog_compiler_no_builtin_flag_CXX=
12882 if test "$GXX" = yes; then
12883 # Set up default GNU C++ configuration
12887 # Check whether --with-gnu-ld was given.
12888 if test "${with_gnu_ld+set}" = set; then :
12889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12895 if test "$GCC" = yes; then
12896 # Check if gcc -print-prog-name=ld gives a path.
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12898 $as_echo_n "checking for ld used by $CC... " >&6; }
12901 # gcc leaves a trailing carriage return which upsets mingw
12902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12907 # Accept absolute paths.
12909 re_direlt='/[^/][^/]*/\.\./'
12910 # Canonicalize the pathname of ld
12911 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12912 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12913 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12915 test -z "$LD" && LD="$ac_prog"
12918 # If it fails, then pretend we aren't using GCC.
12922 # If it is relative, then search for the first ld in PATH.
12923 with_gnu_ld=unknown
12926 elif test "$with_gnu_ld" = yes; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12928 $as_echo_n "checking for GNU ld... " >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12931 $as_echo_n "checking for non-GNU ld... " >&6; }
12933 if test "${lt_cv_path_LD+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12936 if test -z "$LD"; then
12937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12938 for ac_dir in $PATH; do
12940 test -z "$ac_dir" && ac_dir=.
12941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12942 lt_cv_path_LD="$ac_dir/$ac_prog"
12943 # Check to see if the program is GNU ld. I'd rather use --version,
12944 # but apparently some variants of GNU ld only accept -v.
12945 # Break only if it was the GNU/non-GNU ld that we prefer.
12946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12947 *GNU* | *'with BFD'*)
12948 test "$with_gnu_ld" != no && break
12951 test "$with_gnu_ld" != yes && break
12958 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12962 LD="$lt_cv_path_LD"
12963 if test -n "$LD"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12965 $as_echo "$LD" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12970 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12973 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12977 case `$LD -v 2>&1 </dev/null` in
12978 *GNU* | *'with BFD'*)
12979 lt_cv_prog_gnu_ld=yes
12982 lt_cv_prog_gnu_ld=no
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12988 with_gnu_ld=$lt_cv_prog_gnu_ld
12996 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12997 # archiving commands below assume that GNU ld is being used.
12998 if test "$with_gnu_ld" = yes; then
12999 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 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'
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005 # If archive_cmds runs LD, not CC, wlarc should be empty
13006 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13007 # investigate it a little bit more. (MM)
13010 # ancient GNU ld didn't support --whole-archive et. al.
13011 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13012 $GREP 'no-whole-archive' > /dev/null; then
13013 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13015 whole_archive_flag_spec_CXX=
13021 # A generic and very simple default shared library creation
13022 # command for GNU C++ for the case where it uses the native
13023 # linker, instead of GNU ld. If possible, this setting should
13024 # overridden to take advantage of the native linker features on
13025 # the platform it is being used on.
13026 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13029 # Commands to make compiler produce verbose output that lists
13030 # what "hidden" libraries, object files and flags are used when
13031 # linking a shared library.
13032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13040 # PORTME: fill in a description of your system's C++ link characteristics
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13042 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13046 # FIXME: insert proper C++ library support
13050 if test "$host_cpu" = ia64; then
13051 # On IA64, the linker does run time linking by default, so we don't
13052 # have to do anything special.
13053 aix_use_runtimelinking=no
13054 exp_sym_flag='-Bexport'
13057 aix_use_runtimelinking=no
13059 # Test if we are trying to use run time linking or normal
13060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13061 # need to do runtime linking.
13062 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13063 for ld_flag in $LDFLAGS; do
13066 aix_use_runtimelinking=yes
13074 exp_sym_flag='-bexport'
13075 no_entry_flag='-bnoentry'
13078 # When large executables or shared objects are built, AIX ld can
13079 # have problems creating the table of contents. If linking a library
13080 # or program results in "error TOC overflow" add -mminimal-toc to
13081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13084 archive_cmds_CXX=''
13085 hardcode_direct_CXX=yes
13086 hardcode_direct_absolute_CXX=yes
13087 hardcode_libdir_separator_CXX=':'
13088 link_all_deplibs_CXX=yes
13089 file_list_spec_CXX='${wl}-f,'
13091 if test "$GXX" = yes; then
13092 case $host_os in aix4.[012]|aix4.[012].*)
13093 # We only want to do this on AIX 4.2 and lower, the check
13094 # below for broken collect2 doesn't work under 4.3+
13095 collect2name=`${CC} -print-prog-name=collect2`
13096 if test -f "$collect2name" &&
13097 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13099 # We have reworked collect2
13102 # We have old collect2
13103 hardcode_direct_CXX=unsupported
13104 # It fails to find uninstalled libraries when the uninstalled
13105 # path is not listed in the libpath. Setting hardcode_minus_L
13106 # to unsupported forces relinking
13107 hardcode_minus_L_CXX=yes
13108 hardcode_libdir_flag_spec_CXX='-L$libdir'
13109 hardcode_libdir_separator_CXX=
13112 shared_flag='-shared'
13113 if test "$aix_use_runtimelinking" = yes; then
13114 shared_flag="$shared_flag "'${wl}-G'
13118 if test "$host_cpu" = ia64; then
13119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13120 # chokes on -Wl,-G. The following line is correct:
13123 if test "$aix_use_runtimelinking" = yes; then
13124 shared_flag='${wl}-G'
13126 shared_flag='${wl}-bM:SRE'
13131 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13132 # It seems that -bexpall does not export symbols beginning with
13133 # underscore (_), so it is better to generate a list of symbols to
13135 always_export_symbols_CXX=yes
13136 if test "$aix_use_runtimelinking" = yes; then
13137 # Warning - without using the other runtime loading flags (-brtl),
13138 # -berok will link without error, but may produce a broken library.
13139 allow_undefined_flag_CXX='-berok'
13140 # Determine the default libpath from the value encoded in an empty
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13153 if ac_fn_cxx_try_link "$LINENO"; then :
13155 lt_aix_libpath_sed='
13156 /Import File Strings/,/^$/ {
13162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13163 # Check for a 64-bit object if we didn't find anything.
13164 if test -z "$aix_libpath"; then
13165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13174 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"
13176 if test "$host_cpu" = ia64; then
13177 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13178 allow_undefined_flag_CXX="-z nodefs"
13179 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"
13181 # Determine the default libpath from the value encoded in an
13182 # empty executable.
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13194 if ac_fn_cxx_try_link "$LINENO"; then :
13196 lt_aix_libpath_sed='
13197 /Import File Strings/,/^$/ {
13203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13204 # Check for a 64-bit object if we didn't find anything.
13205 if test -z "$aix_libpath"; then
13206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13214 # Warning - without using the other run time loading flags,
13215 # -berok will link without error, but may produce a broken library.
13216 no_undefined_flag_CXX=' ${wl}-bernotok'
13217 allow_undefined_flag_CXX=' ${wl}-berok'
13218 # Exported symbols can be pulled into shared objects from archives
13219 whole_archive_flag_spec_CXX='$convenience'
13220 archive_cmds_need_lc_CXX=yes
13221 # This is similar to how AIX traditionally builds its shared
13223 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'
13229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13230 allow_undefined_flag_CXX=unsupported
13231 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13232 # support --undefined. This deserves some investigation. FIXME
13233 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 case $cc_basename in
13242 # FIXME: insert proper C++ library support
13248 cygwin* | mingw* | pw32* | cegcc*)
13249 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13250 # as there is no search path for DLLs.
13251 hardcode_libdir_flag_spec_CXX='-L$libdir'
13252 allow_undefined_flag_CXX=unsupported
13253 always_export_symbols_CXX=no
13254 enable_shared_with_static_runtimes_CXX=yes
13256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13257 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'
13258 # If the export-symbols file already is a .def file (1st line
13259 # is EXPORTS), use it as is; otherwise, prepend...
13260 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13261 cp $export_symbols $output_objdir/$soname.def;
13263 echo EXPORTS > $output_objdir/$soname.def;
13264 cat $export_symbols >> $output_objdir/$soname.def;
13266 $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'
13271 darwin* | rhapsody*)
13274 archive_cmds_need_lc_CXX=no
13275 hardcode_direct_CXX=no
13276 hardcode_automatic_CXX=yes
13277 hardcode_shlibpath_var_CXX=unsupported
13278 whole_archive_flag_spec_CXX=''
13279 link_all_deplibs_CXX=yes
13280 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13281 case $cc_basename in
13282 ifort*) _lt_dar_can_shared=yes ;;
13283 *) _lt_dar_can_shared=$GCC ;;
13285 if test "$_lt_dar_can_shared" = "yes"; then
13286 output_verbose_link_cmd=echo
13287 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}"
13288 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13289 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}"
13290 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}"
13291 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13292 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}"
13293 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}"
13303 case $cc_basename in
13305 # FIXME: insert proper C++ library support
13309 # Green Hills C++ Compiler
13310 # FIXME: insert proper C++ library support
13314 # FIXME: insert proper C++ library support
13321 # C++ shared libraries reported to be fairly broken before
13327 archive_cmds_need_lc_CXX=no
13330 freebsd* | dragonfly*)
13331 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13340 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13341 hardcode_libdir_separator_CXX=:
13342 export_dynamic_flag_spec_CXX='${wl}-E'
13343 hardcode_direct_CXX=yes
13344 hardcode_minus_L_CXX=yes # Not in the search PATH,
13345 # but as the default
13346 # location of the library.
13348 case $cc_basename in
13350 # FIXME: insert proper C++ library support
13354 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'
13355 # Commands to make compiler produce verbose output that lists
13356 # what "hidden" libraries, object files and flags are used when
13357 # linking a shared library.
13359 # There doesn't appear to be a way to prevent this compiler from
13360 # explicitly linking system object files so we need to strip them
13361 # from the output so that they don't get included in the library
13363 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'
13366 if test "$GXX" = yes; then
13367 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'
13369 # FIXME: insert proper C++ library support
13377 if test $with_gnu_ld = no; then
13378 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13379 hardcode_libdir_separator_CXX=:
13385 export_dynamic_flag_spec_CXX='${wl}-E'
13391 hardcode_direct_CXX=no
13392 hardcode_shlibpath_var_CXX=no
13395 hardcode_direct_CXX=yes
13396 hardcode_direct_absolute_CXX=yes
13397 hardcode_minus_L_CXX=yes # Not in the search PATH,
13398 # but as the default
13399 # location of the library.
13403 case $cc_basename in
13405 # FIXME: insert proper C++ library support
13411 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13414 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420 # Commands to make compiler produce verbose output that lists
13421 # what "hidden" libraries, object files and flags are used when
13422 # linking a shared library.
13424 # There doesn't appear to be a way to prevent this compiler from
13425 # explicitly linking system object files so we need to strip them
13426 # from the output so that they don't get included in the library
13428 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'
13431 if test "$GXX" = yes; then
13432 if test $with_gnu_ld = no; then
13435 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13438 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441 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'
13446 # FIXME: insert proper C++ library support
13454 hardcode_direct_CXX=no
13455 hardcode_shlibpath_var_CXX=no
13456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13457 export_dynamic_flag_spec_CXX='${wl}-E'
13458 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13459 # Instead, shared libraries are loaded at an image base (0x10000000 by
13460 # default) and relocated if they conflict, which is a slow very memory
13461 # consuming and fragmenting process. To avoid this, we pick a random,
13462 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13463 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13464 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'
13465 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'
13468 case $cc_basename in
13471 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'
13473 # Archives containing C++ object files must be created using
13474 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13475 # necessary to make sure instantiated templates are included
13477 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13480 if test "$GXX" = yes; then
13481 if test "$with_gnu_ld" = no; then
13482 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'
13484 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'
13487 link_all_deplibs_CXX=yes
13490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491 hardcode_libdir_separator_CXX=:
13492 inherit_rpath_CXX=yes
13495 linux* | k*bsd*-gnu)
13496 case $cc_basename in
13498 # Kuck and Associates, Inc. (KAI) C++ Compiler
13500 # KCC will only create a shared library if the output file
13501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13502 # to its proper name (with version) after linking.
13503 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'
13504 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'
13505 # Commands to make compiler produce verbose output that lists
13506 # what "hidden" libraries, object files and flags are used when
13507 # linking a shared library.
13509 # There doesn't appear to be a way to prevent this compiler from
13510 # explicitly linking system object files so we need to strip them
13511 # from the output so that they don't get included in the library
13513 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'
13515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13518 # Archives containing C++ object files must be created using
13519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13525 # version 8.0 and above of icpc choke on multiply defined symbols
13526 # if we add $predep_objects and $postdep_objects, however 7.1 and
13527 # earlier do not add the objects themselves.
13528 case `$CC -V 2>&1` in
13530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 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'
13533 *) # Version 8.0 or newer
13536 ia64*) tmp_idyn=' -i_dynamic';;
13538 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539 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'
13542 archive_cmds_need_lc_CXX=no
13543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13545 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13548 # Portland Group C++ compiler
13550 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13551 prelink_cmds_CXX='tpldir=Template.dir~
13553 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13554 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13555 old_archive_cmds_CXX='tpldir=Template.dir~
13557 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13558 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13560 archive_cmds_CXX='tpldir=Template.dir~
13562 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13563 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13564 archive_expsym_cmds_CXX='tpldir=Template.dir~
13566 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13567 $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'
13569 *) # Version 6 will use weak symbols
13570 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13571 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'
13575 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577 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'
13581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13582 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'
13584 runpath_var=LD_RUN_PATH
13585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13586 hardcode_libdir_separator_CXX=:
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13592 # There doesn't appear to be a way to prevent this compiler from
13593 # explicitly linking system object files so we need to strip them
13594 # from the output so that they don't get included in the library
13596 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'
13599 # IBM XL 8.0 on PPC, with GNU ld
13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13602 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 if test "x$supports_anon_versioning" = xyes; then
13604 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13606 echo "local: *; };" >> $output_objdir/$libname.ver~
13607 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13611 case `$CC -V 2>&1 | sed 5q` in
13614 no_undefined_flag_CXX=' -zdefs'
13615 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13616 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'
13617 hardcode_libdir_flag_spec_CXX='-R$libdir'
13618 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'
13619 compiler_needs_object_CXX=yes
13621 # Not sure whether something based on
13622 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13624 output_verbose_link_cmd='echo'
13626 # Archives containing C++ object files must be created using
13627 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13628 # necessary to make sure instantiated templates are included
13630 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13638 # FIXME: insert proper C++ library support
13643 # FIXME: insert proper C++ library support
13648 case $cc_basename in
13650 # FIXME: insert proper C++ library support
13654 # FIXME: insert proper C++ library support
13661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13662 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13664 hardcode_libdir_flag_spec_CXX='-R$libdir'
13665 hardcode_direct_CXX=yes
13666 hardcode_shlibpath_var_CXX=no
13668 # Workaround some broken pre-1.5 toolchains
13669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13677 # C++ shared libraries are fairly broken
13682 if test -f /usr/libexec/ld.so; then
13683 hardcode_direct_CXX=yes
13684 hardcode_shlibpath_var_CXX=no
13685 hardcode_direct_absolute_CXX=yes
13686 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13689 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13690 export_dynamic_flag_spec_CXX='${wl}-E'
13691 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13693 output_verbose_link_cmd=echo
13699 osf3* | osf4* | osf5*)
13700 case $cc_basename in
13702 # Kuck and Associates, Inc. (KAI) C++ Compiler
13704 # KCC will only create a shared library if the output file
13705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13706 # to its proper name (with version) after linking.
13707 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'
13709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13710 hardcode_libdir_separator_CXX=:
13712 # Archives containing C++ object files must be created using
13713 # the KAI C++ compiler.
13715 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13716 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13720 # Rational C++ 2.4.1
13721 # FIXME: insert proper C++ library support
13727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13728 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'
13729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13732 allow_undefined_flag_CXX=' -expect_unresolved \*'
13733 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'
13734 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13735 echo "-hidden">> $lib.exp~
13736 $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~
13738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13742 hardcode_libdir_separator_CXX=:
13744 # Commands to make compiler produce verbose output that lists
13745 # what "hidden" libraries, object files and flags are used when
13746 # linking a shared library.
13748 # There doesn't appear to be a way to prevent this compiler from
13749 # explicitly linking system object files so we need to strip them
13750 # from the output so that they don't get included in the library
13752 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'
13755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13759 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'
13762 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'
13766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13767 hardcode_libdir_separator_CXX=:
13769 # Commands to make compiler produce verbose output that lists
13770 # what "hidden" libraries, object files and flags are used when
13771 # linking a shared library.
13772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13775 # FIXME: insert proper C++ library support
13783 # FIXME: insert proper C++ library support
13788 case $cc_basename in
13791 # FIXME: insert proper C++ library support
13796 # FIXME: insert proper C++ library support
13800 # FIXME: insert proper C++ library support
13807 case $cc_basename in
13809 # Sun C++ 4.2, 5.x and Centerline C++
13810 archive_cmds_need_lc_CXX=yes
13811 no_undefined_flag_CXX=' -zdefs'
13812 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13813 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13814 $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'
13816 hardcode_libdir_flag_spec_CXX='-R$libdir'
13817 hardcode_shlibpath_var_CXX=no
13819 solaris2.[0-5] | solaris2.[0-5].*) ;;
13821 # The compiler driver will combine and reorder linker options,
13822 # but understands `-z linker_flag'.
13823 # Supported since Solaris 2.6 (maybe 2.5.1?)
13824 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13827 link_all_deplibs_CXX=yes
13829 output_verbose_link_cmd='echo'
13831 # Archives containing C++ object files must be created using
13832 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13833 # necessary to make sure instantiated templates are included
13835 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13838 # Green Hills C++ Compiler
13839 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13841 # The C++ compiler must be used to create the archive.
13842 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13845 # GNU C++ compiler with Solaris linker
13846 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13847 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13848 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13849 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13850 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13851 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13853 # Commands to make compiler produce verbose output that lists
13854 # what "hidden" libraries, object files and flags are used when
13855 # linking a shared library.
13856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13858 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13860 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13861 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13862 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13864 # Commands to make compiler produce verbose output that lists
13865 # what "hidden" libraries, object files and flags are used when
13866 # linking a shared library.
13867 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13870 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13872 solaris2.[0-5] | solaris2.[0-5].*) ;;
13874 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13883 no_undefined_flag_CXX='${wl}-z,text'
13884 archive_cmds_need_lc_CXX=no
13885 hardcode_shlibpath_var_CXX=no
13886 runpath_var='LD_RUN_PATH'
13888 case $cc_basename in
13890 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900 sysv5* | sco3.2v5* | sco5v6*)
13901 # Note: We can NOT use -z defs as we might desire, because we do not
13902 # link with -lc, and that would cause any symbols used from libc to
13903 # always be unresolved, which means just about no library would
13904 # ever link correctly. If we're not using GNU ld we use -z text
13905 # though, which does catch some bad symbols but isn't as heavy-handed
13907 no_undefined_flag_CXX='${wl}-z,text'
13908 allow_undefined_flag_CXX='${wl}-z,nodefs'
13909 archive_cmds_need_lc_CXX=no
13910 hardcode_shlibpath_var_CXX=no
13911 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13912 hardcode_libdir_separator_CXX=':'
13913 link_all_deplibs_CXX=yes
13914 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13915 runpath_var='LD_RUN_PATH'
13917 case $cc_basename in
13919 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13920 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 case $cc_basename in
13932 # NonStop-UX NCC 3.20
13933 # FIXME: insert proper C++ library support
13937 # FIXME: insert proper C++ library support
13944 # FIXME: insert proper C++ library support
13949 # FIXME: insert proper C++ library support
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13955 $as_echo "$ld_shlibs_CXX" >&6; }
13956 test "$ld_shlibs_CXX" = no && can_build_shared=no
13962 ## There is no encapsulation within the following macros, do not change
13963 ## the running order or otherwise move them around unless you know exactly
13964 ## what you are doing...
13965 # Dependencies to place before and after the object being linked:
13966 predep_objects_CXX=
13967 postdep_objects_CXX=
13970 compiler_lib_search_path_CXX=
13972 cat > conftest.$ac_ext <<_LT_EOF
13976 Foo (void) { a = 0; }
13982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13983 (eval $ac_compile) 2>&5
13985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986 test $ac_status = 0; }; then
13987 # Parse the compiler output and extract the necessary
13988 # objects, libraries and library flags.
13990 # Sentinel used to keep track of whether or not we are before
13991 # the conftest object file.
13992 pre_test_object_deps_done=no
13994 for p in `eval "$output_verbose_link_cmd"`; do
13998 # Some compilers place space between "-{L,R}" and the path.
13999 # Remove the space.
14000 if test $p = "-L" ||
14001 test $p = "-R"; then
14008 if test "$pre_test_object_deps_done" = no; then
14011 # Internal compiler library paths should come after those
14012 # provided the user. The postdeps already come after the
14013 # user supplied libs so there is no need to process them.
14014 if test -z "$compiler_lib_search_path_CXX"; then
14015 compiler_lib_search_path_CXX="${prev}${p}"
14017 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14020 # The "-l" case would never come before the object being
14021 # linked, so don't bother handling this case.
14024 if test -z "$postdeps_CXX"; then
14025 postdeps_CXX="${prev}${p}"
14027 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14033 # This assumes that the test object file only shows up
14034 # once in the compiler output.
14035 if test "$p" = "conftest.$objext"; then
14036 pre_test_object_deps_done=yes
14040 if test "$pre_test_object_deps_done" = no; then
14041 if test -z "$predep_objects_CXX"; then
14042 predep_objects_CXX="$p"
14044 predep_objects_CXX="$predep_objects_CXX $p"
14047 if test -z "$postdep_objects_CXX"; then
14048 postdep_objects_CXX="$p"
14050 postdep_objects_CXX="$postdep_objects_CXX $p"
14055 *) ;; # Ignore the rest.
14063 echo "libtool.m4: error: problem compiling CXX test program"
14066 $RM -f confest.$objext
14068 # PORTME: override above test on systems where it is broken
14071 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14072 # hack all around it, let's just trust "g++" to DTRT.
14073 predep_objects_CXX=
14074 postdep_objects_CXX=
14079 case `$CC -V 2>&1 | sed 5q` in
14083 # The more standards-conforming stlport4 library is
14084 # incompatible with the Cstd library. Avoid specifying
14085 # it if it's in CXXFLAGS. Ignore libCrun as
14086 # -library=stlport4 depends on it.
14087 case " $CXX $CXXFLAGS " in
14088 *" -library=stlport4 "*)
14089 solaris_use_stlport4=yes
14093 if test "$solaris_use_stlport4" != yes; then
14094 postdeps_CXX='-library=Cstd -library=Crun'
14101 case $cc_basename in
14103 # The more standards-conforming stlport4 library is
14104 # incompatible with the Cstd library. Avoid specifying
14105 # it if it's in CXXFLAGS. Ignore libCrun as
14106 # -library=stlport4 depends on it.
14107 case " $CXX $CXXFLAGS " in
14108 *" -library=stlport4 "*)
14109 solaris_use_stlport4=yes
14113 # Adding this requires a known-good setup of shared libraries for
14114 # Sun compiler versions before 5.6, else PIC objects from an old
14115 # archive will be linked into the output, leading to subtle bugs.
14116 if test "$solaris_use_stlport4" != yes; then
14117 postdeps_CXX='-library=Cstd -library=Crun'
14125 case " $postdeps_CXX " in
14126 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14128 compiler_lib_search_dirs_CXX=
14129 if test -n "${compiler_lib_search_path_CXX}"; then
14130 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14163 lt_prog_compiler_wl_CXX=
14164 lt_prog_compiler_pic_CXX=
14165 lt_prog_compiler_static_CXX=
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14168 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14170 # C++ specific cases for pic, static, wl, etc.
14171 if test "$GXX" = yes; then
14172 lt_prog_compiler_wl_CXX='-Wl,'
14173 lt_prog_compiler_static_CXX='-static'
14177 # All AIX code is PIC.
14178 if test "$host_cpu" = ia64; then
14179 # AIX 5 now supports IA64 processor
14180 lt_prog_compiler_static_CXX='-Bstatic'
14187 # see comment about AmigaOS4 .so support
14188 lt_prog_compiler_pic_CXX='-fPIC'
14191 # FIXME: we need at least 68020 code to build shared libraries, but
14192 # adding the `-m68020' flag to GCC prevents building anything better,
14194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14199 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14200 # PIC is the default for these OSes.
14202 mingw* | cygwin* | os2* | pw32* | cegcc*)
14203 # This hack is so that the source file can tell whether it is being
14204 # built for inclusion in a dll (and should export symbols for example).
14205 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14206 # (--disable-auto-import) libraries
14207 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14209 darwin* | rhapsody*)
14210 # PIC is the default on this platform
14211 # Common symbols not allowed in MH_DYLIB files
14212 lt_prog_compiler_pic_CXX='-fno-common'
14215 # DJGPP does not support shared libraries at all
14216 lt_prog_compiler_pic_CXX=
14219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14220 # Instead, we relocate shared libraries at runtime.
14223 if test -d /usr/nec; then
14224 lt_prog_compiler_pic_CXX=-Kconform_pic
14228 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14229 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14230 # sets the default TLS model and affects inlining.
14235 lt_prog_compiler_pic_CXX='-fPIC'
14240 # QNX uses GNU C++, but need to define -shared option too, otherwise
14241 # it will coredump.
14242 lt_prog_compiler_pic_CXX='-fPIC -shared'
14245 lt_prog_compiler_pic_CXX='-fPIC'
14251 # All AIX code is PIC.
14252 if test "$host_cpu" = ia64; then
14253 # AIX 5 now supports IA64 processor
14254 lt_prog_compiler_static_CXX='-Bstatic'
14256 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14260 case $cc_basename in
14262 # Green Hills C++ Compiler
14263 # _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"
14268 case $cc_basename in
14270 lt_prog_compiler_pic_CXX='-KPIC'
14273 # Green Hills C++ Compiler
14274 lt_prog_compiler_pic_CXX='-pic'
14280 freebsd* | dragonfly*)
14281 # FreeBSD uses GNU C++
14283 hpux9* | hpux10* | hpux11*)
14284 case $cc_basename in
14286 lt_prog_compiler_wl_CXX='-Wl,'
14287 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14288 if test "$host_cpu" != ia64; then
14289 lt_prog_compiler_pic_CXX='+Z'
14293 lt_prog_compiler_wl_CXX='-Wl,'
14294 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14300 lt_prog_compiler_pic_CXX='+Z'
14309 # This is c89, which is MS Visual C++ (no shared libs)
14310 # Anyone wants to do a port?
14312 irix5* | irix6* | nonstopux*)
14313 case $cc_basename in
14315 lt_prog_compiler_wl_CXX='-Wl,'
14316 lt_prog_compiler_static_CXX='-non_shared'
14317 # CC pic flag -KPIC is the default.
14323 linux* | k*bsd*-gnu)
14324 case $cc_basename in
14327 lt_prog_compiler_wl_CXX='--backend -Wl,'
14328 lt_prog_compiler_pic_CXX='-fPIC'
14331 # old Intel C++ for x86_64 which still supported -KPIC.
14332 lt_prog_compiler_wl_CXX='-Wl,'
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 lt_prog_compiler_static_CXX='-static'
14337 # Intel C++, used to be incompatible with GCC.
14338 # ICC 10 doesn't accept -KPIC any more.
14339 lt_prog_compiler_wl_CXX='-Wl,'
14340 lt_prog_compiler_pic_CXX='-fPIC'
14341 lt_prog_compiler_static_CXX='-static'
14344 # Portland Group C++ compiler
14345 lt_prog_compiler_wl_CXX='-Wl,'
14346 lt_prog_compiler_pic_CXX='-fpic'
14347 lt_prog_compiler_static_CXX='-Bstatic'
14351 # Make sure the PIC flag is empty. It appears that all Alpha
14352 # Linux and Compaq Tru64 Unix objects are PIC.
14353 lt_prog_compiler_pic_CXX=
14354 lt_prog_compiler_static_CXX='-non_shared'
14357 # IBM XL 8.0 on PPC
14358 lt_prog_compiler_wl_CXX='-Wl,'
14359 lt_prog_compiler_pic_CXX='-qpic'
14360 lt_prog_compiler_static_CXX='-qstaticlink'
14363 case `$CC -V 2>&1 | sed 5q` in
14366 lt_prog_compiler_pic_CXX='-KPIC'
14367 lt_prog_compiler_static_CXX='-Bstatic'
14368 lt_prog_compiler_wl_CXX='-Qoption ld '
14379 case $cc_basename in
14381 lt_prog_compiler_pic_CXX='-W c,exportall'
14390 # QNX uses GNU C++, but need to define -shared option too, otherwise
14391 # it will coredump.
14392 lt_prog_compiler_pic_CXX='-fPIC -shared'
14394 osf3* | osf4* | osf5*)
14395 case $cc_basename in
14397 lt_prog_compiler_wl_CXX='--backend -Wl,'
14400 # Rational C++ 2.4.1
14401 lt_prog_compiler_pic_CXX='-pic'
14404 # Digital/Compaq C++
14405 lt_prog_compiler_wl_CXX='-Wl,'
14406 # Make sure the PIC flag is empty. It appears that all Alpha
14407 # Linux and Compaq Tru64 Unix objects are PIC.
14408 lt_prog_compiler_pic_CXX=
14409 lt_prog_compiler_static_CXX='-non_shared'
14418 case $cc_basename in
14420 # Sun C++ 4.2, 5.x and Centerline C++
14421 lt_prog_compiler_pic_CXX='-KPIC'
14422 lt_prog_compiler_static_CXX='-Bstatic'
14423 lt_prog_compiler_wl_CXX='-Qoption ld '
14426 # Green Hills C++ Compiler
14427 lt_prog_compiler_pic_CXX='-PIC'
14434 case $cc_basename in
14437 lt_prog_compiler_pic_CXX='-pic'
14438 lt_prog_compiler_static_CXX='-Bstatic'
14442 lt_prog_compiler_pic_CXX='-pic'
14448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14449 case $cc_basename in
14451 lt_prog_compiler_wl_CXX='-Wl,'
14452 lt_prog_compiler_pic_CXX='-KPIC'
14453 lt_prog_compiler_static_CXX='-Bstatic'
14458 case $cc_basename in
14460 # NonStop-UX NCC 3.20
14461 lt_prog_compiler_pic_CXX='-KPIC'
14470 lt_prog_compiler_can_build_shared_CXX=no
14476 # For platforms which do not support PIC, -DPIC is meaningless:
14478 lt_prog_compiler_pic_CXX=
14481 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14485 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14490 # Check to make sure the PIC flag actually works.
14492 if test -n "$lt_prog_compiler_pic_CXX"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14495 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14498 lt_cv_prog_compiler_pic_works_CXX=no
14499 ac_outfile=conftest.$ac_objext
14500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 # The option is referenced via a variable to avoid confusing sed.
14507 lt_compile=`echo "$ac_compile" | $SED \
14508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510 -e 's:$: $lt_compiler_flag:'`
14511 (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
14512 (eval "$lt_compile" 2>conftest.err)
14514 cat conftest.err >&5
14515 echo "$as_me:14515: \$? = $ac_status" >&5
14516 if (exit $ac_status) && test -s "$ac_outfile"; then
14517 # The compiler can only warn and ignore the option if not recognized
14518 # So say no if there are warnings other than the usual output.
14519 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_cv_prog_compiler_pic_works_CXX=yes
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14529 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14531 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14532 case $lt_prog_compiler_pic_CXX in
14534 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14537 lt_prog_compiler_pic_CXX=
14538 lt_prog_compiler_can_build_shared_CXX=no
14546 # Check to make sure the static flag actually works.
14548 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14550 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14551 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14552 $as_echo_n "(cached) " >&6
14554 lt_cv_prog_compiler_static_works_CXX=no
14555 save_LDFLAGS="$LDFLAGS"
14556 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14557 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14558 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14559 # The linker can only warn and ignore the option if not recognized
14560 # So say no if there are warnings
14561 if test -s conftest.err; then
14562 # Append any errors to the config.log.
14563 cat conftest.err 1>&5
14564 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14566 if diff conftest.exp conftest.er2 >/dev/null; then
14567 lt_cv_prog_compiler_static_works_CXX=yes
14570 lt_cv_prog_compiler_static_works_CXX=yes
14574 LDFLAGS="$save_LDFLAGS"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14580 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14583 lt_prog_compiler_static_CXX=
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 lt_cv_prog_compiler_c_o_CXX=no
14595 $RM -r conftest 2>/dev/null
14599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601 lt_compiler_flag="-o out/conftest2.$ac_objext"
14602 # Insert the option either (1) after the last *FLAGS variable, or
14603 # (2) before a word containing "conftest.", or (3) at the end.
14604 # Note that $ac_compile itself does not contain backslashes and begins
14605 # with a dollar sign (not a hyphen), so the echo should work correctly.
14606 lt_compile=`echo "$ac_compile" | $SED \
14607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14609 -e 's:$: $lt_compiler_flag:'`
14610 (eval echo "\"\$as_me:14610: $lt_compile\"" >&5)
14611 (eval "$lt_compile" 2>out/conftest.err)
14613 cat out/conftest.err >&5
14614 echo "$as_me:14614: \$? = $ac_status" >&5
14615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617 # The compiler can only warn and ignore the option if not recognized
14618 # So say no if there are warnings
14619 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14622 lt_cv_prog_compiler_c_o_CXX=yes
14627 # SGI C++ compiler will create directory out/ii_files/ for
14628 # template instantiation
14629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14630 $RM out/* && rmdir out
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14637 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14643 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14644 $as_echo_n "(cached) " >&6
14646 lt_cv_prog_compiler_c_o_CXX=no
14647 $RM -r conftest 2>/dev/null
14651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653 lt_compiler_flag="-o out/conftest2.$ac_objext"
14654 # Insert the option either (1) after the last *FLAGS variable, or
14655 # (2) before a word containing "conftest.", or (3) at the end.
14656 # Note that $ac_compile itself does not contain backslashes and begins
14657 # with a dollar sign (not a hyphen), so the echo should work correctly.
14658 lt_compile=`echo "$ac_compile" | $SED \
14659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14661 -e 's:$: $lt_compiler_flag:'`
14662 (eval echo "\"\$as_me:14662: $lt_compile\"" >&5)
14663 (eval "$lt_compile" 2>out/conftest.err)
14665 cat out/conftest.err >&5
14666 echo "$as_me:14666: \$? = $ac_status" >&5
14667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14669 # The compiler can only warn and ignore the option if not recognized
14670 # So say no if there are warnings
14671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14674 lt_cv_prog_compiler_c_o_CXX=yes
14679 # SGI C++ compiler will create directory out/ii_files/ for
14680 # template instantiation
14681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14682 $RM out/* && rmdir out
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14689 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14694 hard_links="nottested"
14695 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14696 # do not overwrite the value of need_locks provided by the user
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14698 $as_echo_n "checking if we can lock with hard links... " >&6; }
14701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14703 ln conftest.a conftest.b 2>&5 || hard_links=no
14704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14706 $as_echo "$hard_links" >&6; }
14707 if test "$hard_links" = no; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14721 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14724 # If we're using GNU nm, then we don't want the "-C" option.
14725 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14726 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14727 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'
14729 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'
14733 export_symbols_cmds_CXX="$ltdll_cmds"
14735 cygwin* | mingw* | cegcc*)
14736 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'
14739 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14742 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14745 $as_echo "$ld_shlibs_CXX" >&6; }
14746 test "$ld_shlibs_CXX" = no && can_build_shared=no
14748 with_gnu_ld_CXX=$with_gnu_ld
14756 # Do we need to explicitly link libc?
14758 case "x$archive_cmds_need_lc_CXX" in
14760 # Assume -lc should be added
14761 archive_cmds_need_lc_CXX=yes
14763 if test "$enable_shared" = yes && test "$GCC" = yes; then
14764 case $archive_cmds_CXX in
14766 # FIXME: we may have to deal with multi-command sequences.
14769 # Test whether the compiler implicitly links with -lc since on some
14770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14771 # to ld, don't add -lc before -lgcc.
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14778 (eval $ac_compile) 2>&5
14780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781 test $ac_status = 0; } 2>conftest.err; then
14784 libobjs=conftest.$ac_objext
14786 wl=$lt_prog_compiler_wl_CXX
14787 pic_flag=$lt_prog_compiler_pic_CXX
14793 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14794 allow_undefined_flag_CXX=
14795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14796 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14799 test $ac_status = 0; }
14801 archive_cmds_need_lc_CXX=no
14803 archive_cmds_need_lc_CXX=yes
14805 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14807 cat conftest.err 1>&5
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14811 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14884 library_names_spec=
14885 libname_spec='lib$name'
14889 postuninstall_cmds=
14893 shlibpath_overrides_runpath=unknown
14895 dynamic_linker="$host_os ld.so"
14896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14897 need_lib_prefix=unknown
14898 hardcode_into_libs=no
14900 # when you set need_version to no, make sure it does not cause -set_version
14901 # flags to be left without arguments
14902 need_version=unknown
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14908 shlibpath_var=LIBPATH
14910 # AIX 3 has no versioning support, so we append a major version to the name.
14911 soname_spec='${libname}${release}${shared_ext}$major'
14918 hardcode_into_libs=yes
14919 if test "$host_cpu" = ia64; then
14920 # AIX 5 supports IA64
14921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14924 # With GCC up to 2.95.x, collect2 would create an import file
14925 # for dependence libraries. The import file would start with
14926 # the line `#! .'. This would cause the generated library to
14927 # depend on `.', always an invalid library. This was fixed in
14928 # development snapshots of GCC prior to 3.0.
14930 aix4 | aix4.[01] | aix4.[01].*)
14931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14936 can_build_shared=no
14940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14941 # soname into executable. Probably we can add versioning support to
14942 # collect2, so additional links can be useful in future.
14943 if test "$aix_use_runtimelinking" = yes; then
14944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14945 # instead of lib<name>.a to let people know that these are not
14946 # typical AIX shared libraries.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='${libname}${release}.a $libname.a'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LIBPATH
14961 # Since July 2007 AmigaOS4 officially supports .so libraries.
14962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 library_names_spec='$libname.ixlibrary $libname.a'
14967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14968 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'
14974 library_names_spec='${libname}${shared_ext}'
14975 dynamic_linker="$host_os ld.so"
14976 shlibpath_var=LIBRARY_PATH
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14988 # the default ld.so.conf also contains /usr/contrib/lib and
14989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14990 # libtool to hard-code these into programs
14993 cygwin* | mingw* | pw32* | cegcc*)
14994 version_type=windows
14999 case $GCC,$host_os in
15000 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15001 library_names_spec='$libname.dll.a'
15002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15003 postinstall_cmds='base_file=`basename \${file}`~
15004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15005 dldir=$destdir/`dirname \$dlpath`~
15006 test -d \$dldir || mkdir -p \$dldir~
15007 $install_prog $dir/$dlname \$dldir/$dlname~
15008 chmod a+x \$dldir/$dlname~
15009 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15010 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15013 dlpath=$dir/\$dldll~
15015 shlibpath_overrides_runpath=yes
15019 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15021 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15024 # MinGW DLLs use traditional 'lib' prefix
15025 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15026 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15027 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15028 # It is most probably a Windows format PATH printed by
15029 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15030 # path with ; separators, and with drive letters. We can handle the
15031 # drive letters (cygwin fileutils understands them), so leave them,
15032 # especially as we might pass files found there to a mingw objdump,
15033 # which wouldn't understand a cygwinified path. Ahh.
15034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15040 # pw32 DLLs use 'pw' prefix rather than 'lib'
15041 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15050 dynamic_linker='Win32 ld.exe'
15051 # FIXME: first we should search . and the directory the executable is in
15055 darwin* | rhapsody*)
15056 dynamic_linker="$host_os dyld"
15057 version_type=darwin
15060 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15061 soname_spec='${libname}${release}${major}$shared_ext'
15062 shlibpath_overrides_runpath=yes
15063 shlibpath_var=DYLD_LIBRARY_PATH
15064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 shlibpath_var=LD_LIBRARY_PATH
15082 freebsd* | dragonfly*)
15083 # DragonFly does not have aout. When/if they implement a new
15084 # versioning mechanism, adjust this.
15085 if test -x /usr/bin/objformat; then
15086 objformat=`/usr/bin/objformat`
15089 freebsd[123]*) objformat=aout ;;
15090 *) objformat=elf ;;
15093 version_type=freebsd-$objformat
15094 case $version_type in
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15105 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes
15110 freebsd3.[01]* | freebsdelf3.[01]*)
15111 shlibpath_overrides_runpath=yes
15112 hardcode_into_libs=yes
15114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15116 shlibpath_overrides_runpath=no
15117 hardcode_into_libs=yes
15119 *) # from 4.6 on, and DragonFly
15120 shlibpath_overrides_runpath=yes
15121 hardcode_into_libs=yes
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 hardcode_into_libs=yes
15136 hpux9* | hpux10* | hpux11*)
15137 # Give a soname corresponding to the major version so that dld.sl refuses to
15138 # link against other versions.
15145 hardcode_into_libs=yes
15146 dynamic_linker="$host_os dld.so"
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 if test "X$HPUX_IA64_MODE" = X32; then
15152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15160 hardcode_into_libs=yes
15161 dynamic_linker="$host_os dld.sl"
15162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15171 dynamic_linker="$host_os dld.sl"
15172 shlibpath_var=SHLIB_PATH
15173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15178 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15179 postinstall_cmds='chmod 555 $lib'
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=no
15191 hardcode_into_libs=yes
15194 irix5* | irix6* | nonstopux*)
15196 nonstopux*) version_type=nonstopux ;;
15198 if test "$lt_cv_prog_gnu_ld" = yes; then
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15209 irix5* | nonstopux*)
15210 libsuff= shlibsuff=
15213 case $LD in # libtool.m4 will add one of these switches to LD
15214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15215 libsuff= shlibsuff= libmagic=32-bit;;
15216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15217 libsuff=32 shlibsuff=N32 libmagic=N32;;
15218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15219 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15220 *) libsuff= shlibsuff= libmagic=never-match;;
15224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15225 shlibpath_overrides_runpath=no
15226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15228 hardcode_into_libs=yes
15231 # No shared lib support for Linux oldld, aout, or coff.
15232 linux*oldld* | linux*aout* | linux*coff*)
15236 # This must be Linux ELF.
15237 linux* | k*bsd*-gnu)
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=no
15246 # Some binutils ld are patched to set DT_RUNPATH
15247 save_LDFLAGS=$LDFLAGS
15248 save_libdir=$libdir
15249 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15250 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15262 if ac_fn_cxx_try_link "$LINENO"; then :
15263 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15264 shlibpath_overrides_runpath=yes
15267 rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15269 LDFLAGS=$save_LDFLAGS
15270 libdir=$save_libdir
15272 # This implies no fast_install, which is unacceptable.
15273 # Some rework will be needed to allow for fast_install
15274 # before this can be enabled.
15275 hardcode_into_libs=yes
15277 # Append ld.so.conf contents to the search path
15278 if test -f /etc/ld.so.conf; then
15279 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' ' '`
15280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15283 # We used to test for /lib/ld.so.1 and disable shared libraries on
15284 # powerpc, because MkLinux only supported shared libraries with the
15285 # GNU dynamic linker. Since this was broken with cross compilers,
15286 # most powerpc-linux boxes support dynamic linking these days and
15287 # people can always --disable-shared, the test was removed, and we
15288 # assume the GNU/Linux dynamic linker is in use.
15289 dynamic_linker='GNU/Linux ld.so'
15296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15299 dynamic_linker='NetBSD (a.out) ld.so'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 dynamic_linker='NetBSD ld.elf_so'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 shlibpath_overrides_runpath=yes
15307 hardcode_into_libs=yes
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=yes
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=no
15325 hardcode_into_libs=yes
15326 dynamic_linker='ldqnx.so'
15331 sys_lib_dlsearch_path_spec="/usr/lib"
15333 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15335 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15336 *) need_version=no ;;
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15343 openbsd2.[89] | openbsd2.[89].*)
15344 shlibpath_overrides_runpath=no
15347 shlibpath_overrides_runpath=yes
15351 shlibpath_overrides_runpath=yes
15356 libname_spec='$name'
15359 library_names_spec='$libname${shared_ext} $libname.a'
15360 dynamic_linker='OS/2 ld.exe'
15361 shlibpath_var=LIBPATH
15364 osf3* | osf4* | osf5*)
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 shlibpath_overrides_runpath=yes
15387 hardcode_into_libs=yes
15388 # ldd complains unless libraries are executable
15389 postinstall_cmds='chmod +x $lib'
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 if test "$with_gnu_ld" = yes; then
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 case $host_vendor in
15411 shlibpath_overrides_runpath=no
15413 runpath_var=LD_RUN_PATH
15421 shlibpath_overrides_runpath=no
15422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15428 if test -d /usr/nec ;then
15430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15431 soname_spec='$libname${shared_ext}.$major'
15432 shlibpath_var=LD_LIBRARY_PATH
15436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15437 version_type=freebsd-elf
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 if test "$with_gnu_ld" = yes; then
15446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15455 sys_lib_dlsearch_path_spec='/usr/lib'
15459 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=no
15466 hardcode_into_libs=yes
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15481 $as_echo "$dynamic_linker" >&6; }
15482 test "$dynamic_linker" = no && can_build_shared=no
15484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15485 if test "$GCC" = yes; then
15486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15489 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15490 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15492 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15493 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15532 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15533 hardcode_action_CXX=
15534 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15535 test -n "$runpath_var_CXX" ||
15536 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15538 # We can hardcode non-existent directories.
15539 if test "$hardcode_direct_CXX" != no &&
15540 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15541 # have to relink, otherwise we might link with an installed library
15542 # when we should be linking with a yet-to-be-installed one
15543 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15544 test "$hardcode_minus_L_CXX" != no; then
15545 # Linking always hardcodes the temporary library directory.
15546 hardcode_action_CXX=relink
15548 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15549 hardcode_action_CXX=immediate
15552 # We cannot hardcode anything, or else we can only hardcode existing
15554 hardcode_action_CXX=unsupported
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15557 $as_echo "$hardcode_action_CXX" >&6; }
15559 if test "$hardcode_action_CXX" = relink ||
15560 test "$inherit_rpath_CXX" = yes; then
15561 # Fast installation is not supported
15562 enable_fast_install=no
15563 elif test "$shlibpath_overrides_runpath" = yes ||
15564 test "$enable_shared" = no; then
15565 # Fast installation is not necessary
15566 enable_fast_install=needless
15575 fi # test -n "$compiler"
15581 with_gnu_ld=$lt_save_with_gnu_ld
15582 lt_cv_path_LDCXX=$lt_cv_path_LD
15583 lt_cv_path_LD=$lt_save_path_LD
15584 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15585 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15586 fi # test "$_lt_caught_CXX_error" != yes
15589 ac_cpp='$CPP $CPPFLAGS'
15590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606 ac_config_commands="$ac_config_commands libtool"
15611 # Only expand once:
15616 if test x$use_libtool != xno; then
15617 DEFAULT_OBJECT_TYPE=".lo"
15618 DEFAULT_ARCHIVE_TYPE=".la"
15619 DEFAULT_SHARED_OBJECT_TYPE=".la"
15620 LIBTOOL="\$(LIBTOOL)"
15621 LIBTOOL_INSTALL_TARGET="libtool-install"
15622 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15623 LIBTOOL_CLEAN_TARGET="libtool-clean"
15624 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15625 FD_PLUGIN_DIR="src/plugins/fd"
15628 DEFAULT_OBJECT_TYPE=".o"
15629 DEFAULT_ARCHIVE_TYPE=".a"
15630 DEFAULT_SHARED_OBJECT_TYPE=".so"
15631 LIBTOOL="# \$(LIBTOOL)"
15632 LIBTOOL_INSTALL_TARGET=""
15633 LIBTOOL_UNINSTALL_TARGET=""
15634 LIBTOOL_CLEAN_TARGET=""
15635 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15650 # Check whether --enable-includes was given.
15651 if test "${enable_includes+set}" = set; then :
15652 enableval=$enable_includes;
15653 if test x$enableval = xyes; then
15654 install_includes=yes
15662 if test x$use_libtool != xno -a x$install_includes = xyes; then
15663 INCLUDE_INSTALL_TARGET="install-includes"
15664 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15666 INCLUDE_INSTALL_TARGET=""
15667 INCLUDE_UNINSTALL_TARGET=""
15675 *cygwin* ) CYGWIN=yes;;
15679 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15685 HAVE_SUN_OS_FALSE='#'
15687 HAVE_SUN_OS_TRUE='#'
15690 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15697 HAVE_SUN_OS_FALSE='#'
15699 HAVE_SUN_OS_TRUE='#'
15704 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15710 HAVE_OSF1_OS_FALSE='#'
15712 HAVE_OSF1_OS_TRUE='#'
15713 HAVE_OSF1_OS_FALSE=
15715 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15722 HAVE_OSF1_OS_FALSE='#'
15724 HAVE_OSF1_OS_TRUE='#'
15725 HAVE_OSF1_OS_FALSE=
15729 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15735 HAVE_AIX_OS_FALSE='#'
15737 HAVE_AIX_OS_TRUE='#'
15740 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15747 HAVE_AIX_OS_FALSE='#'
15749 HAVE_AIX_OS_TRUE='#'
15754 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15760 HAVE_HPUX_OS_FALSE='#'
15762 HAVE_HPUX_OS_TRUE='#'
15763 HAVE_HPUX_OS_FALSE=
15765 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15772 HAVE_HPUX_OS_FALSE='#'
15774 HAVE_HPUX_OS_TRUE='#'
15775 HAVE_HPUX_OS_FALSE=
15779 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15784 HAVE_LINUX_OS_TRUE=
15785 HAVE_LINUX_OS_FALSE='#'
15787 HAVE_LINUX_OS_TRUE='#'
15788 HAVE_LINUX_OS_FALSE=
15790 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15796 HAVE_LINUX_OS_TRUE=
15797 HAVE_LINUX_OS_FALSE='#'
15799 HAVE_LINUX_OS_TRUE='#'
15800 HAVE_LINUX_OS_FALSE=
15804 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15809 HAVE_FREEBSD_OS_TRUE=
15810 HAVE_FREEBSD_OS_FALSE='#'
15812 HAVE_FREEBSD_OS_TRUE='#'
15813 HAVE_FREEBSD_OS_FALSE=
15815 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15821 HAVE_FREEBSD_OS_TRUE=
15822 HAVE_FREEBSD_OS_FALSE='#'
15824 HAVE_FREEBSD_OS_TRUE='#'
15825 HAVE_FREEBSD_OS_FALSE=
15829 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15834 HAVE_NETBSD_OS_TRUE=
15835 HAVE_NETBSD_OS_FALSE='#'
15837 HAVE_NETBSD_OS_TRUE='#'
15838 HAVE_NETBSD_OS_FALSE=
15840 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15846 HAVE_NETBSD_OS_TRUE=
15847 HAVE_NETBSD_OS_FALSE='#'
15849 HAVE_NETBSD_OS_TRUE='#'
15850 HAVE_NETBSD_OS_FALSE=
15854 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15859 HAVE_OPENBSD_OS_TRUE=
15860 HAVE_OPENBSD_OS_FALSE='#'
15862 HAVE_OPENBSD_OS_TRUE='#'
15863 HAVE_OPENBSD_OS_FALSE=
15865 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15871 HAVE_OPENBSD_OS_TRUE=
15872 HAVE_OPENBSD_OS_FALSE='#'
15874 HAVE_OPENBSD_OS_TRUE='#'
15875 HAVE_OPENBSD_OS_FALSE=
15879 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15885 HAVE_BSDI_OS_FALSE='#'
15887 HAVE_BSDI_OS_TRUE='#'
15888 HAVE_BSDI_OS_FALSE=
15890 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15897 HAVE_BSDI_OS_FALSE='#'
15899 HAVE_BSDI_OS_TRUE='#'
15900 HAVE_BSDI_OS_FALSE=
15904 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15910 HAVE_SGI_OS_FALSE='#'
15912 HAVE_SGI_OS_TRUE='#'
15915 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15922 HAVE_SGI_OS_FALSE='#'
15924 HAVE_SGI_OS_TRUE='#'
15929 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15935 HAVE_IRIX_OS_FALSE='#'
15937 HAVE_IRIX_OS_TRUE='#'
15938 HAVE_IRIX_OS_FALSE=
15940 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15947 HAVE_IRIX_OS_FALSE='#'
15949 HAVE_IRIX_OS_TRUE='#'
15950 HAVE_IRIX_OS_FALSE=
15954 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15959 HAVE_DARWIN_OS_TRUE=
15960 HAVE_DARWIN_OS_FALSE='#'
15962 HAVE_DARWIN_OS_TRUE='#'
15963 HAVE_DARWIN_OS_FALSE=
15965 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15971 HAVE_DARWIN_OS_TRUE=
15972 HAVE_DARWIN_OS_FALSE='#'
15974 HAVE_DARWIN_OS_TRUE='#'
15975 HAVE_DARWIN_OS_FALSE=
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15981 $as_echo_n "checking for Operating System Distribution... " >&6; }
15982 if test "x$DISTNAME" != "x"
15984 echo "distname set to $DISTNAME"
15985 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15988 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15991 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15994 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15997 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16000 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16003 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16006 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16009 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16012 elif test -f /etc/SuSE-release
16015 elif test -d /etc/SuSEconfig
16018 elif test -f /etc/mandrake-release
16021 elif test -f /etc/whitebox-release
16024 elif test -f /etc/redhat-release
16027 elif test -f /etc/gentoo-release
16030 elif test -f /etc/debian_version
16033 elif test -f /etc/slackware-version
16036 elif test x$host_vendor = xapple
16039 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16042 elif test -f /etc/engarde-version
16045 elif test -f /etc/arch-release
16048 elif test "$CYGWIN" = yes
16051 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16057 $as_echo "done" >&6; }
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16061 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16063 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16064 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16065 $as_echo_n "(cached) " >&6
16067 cat >conftest.make <<\_ACEOF
16070 @echo '@@@%%%=$(MAKE)=@@@%%%'
16072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16074 *@@@%%%=?*=@@@%%%*)
16075 eval ac_cv_prog_make_${ac_make}_set=yes;;
16077 eval ac_cv_prog_make_${ac_make}_set=no;;
16079 rm -f conftest.make
16081 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083 $as_echo "yes" >&6; }
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087 $as_echo "no" >&6; }
16088 SET_MAKE="MAKE=${MAKE-make}"
16094 if test -n "$ac_aux_dir"; then
16095 case "$ac_aux_dir" in
16096 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16097 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16100 if test -z "$MKINSTALLDIRS"; then
16101 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16107 $as_echo_n "checking whether NLS is requested... " >&6; }
16108 # Check whether --enable-nls was given.
16109 if test "${enable_nls+set}" = set; then :
16110 enableval=$enable_nls; USE_NLS=$enableval
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16116 $as_echo "$USE_NLS" >&6; }
16123 # Prepare PATH_SEPARATOR.
16124 # The user is always right.
16125 if test "${PATH_SEPARATOR+set}" != set; then
16126 echo "#! /bin/sh" >conf$$.sh
16127 echo "exit 0" >>conf$$.sh
16129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16137 # Find out how to test for executable files. Don't use a zero-byte file,
16138 # as systems may use methods other than mode bits to determine executability.
16139 cat >conf$$.file <<_ASEOF
16143 chmod +x conf$$.file
16144 if test -x conf$$.file >/dev/null 2>&1; then
16145 ac_executable_p="test -x"
16147 ac_executable_p="test -f"
16151 # Extract the first word of "msgfmt", so it can be a program name with args.
16152 set dummy msgfmt; ac_word=$2
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154 $as_echo_n "checking for $ac_word... " >&6; }
16155 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16156 $as_echo_n "(cached) " >&6
16160 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16163 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16164 for ac_dir in $PATH; do
16166 test -z "$ac_dir" && ac_dir=.
16167 for ac_exec_ext in '' $ac_executable_extensions; do
16168 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16169 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16170 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16171 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16172 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16179 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16183 MSGFMT="$ac_cv_path_MSGFMT"
16184 if test "$MSGFMT" != ":"; then
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16186 $as_echo "$MSGFMT" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16192 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16193 set dummy gmsgfmt; ac_word=$2
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16195 $as_echo_n "checking for $ac_word... " >&6; }
16196 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16201 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16208 test -z "$as_dir" && as_dir=.
16209 for ac_exec_ext in '' $ac_executable_extensions; do
16210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16211 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16219 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16223 GMSGFMT=$ac_cv_path_GMSGFMT
16224 if test -n "$GMSGFMT"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16226 $as_echo "$GMSGFMT" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238 echo "#! /bin/sh" >conf$$.sh
16239 echo "exit 0" >>conf$$.sh
16241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16249 # Find out how to test for executable files. Don't use a zero-byte file,
16250 # as systems may use methods other than mode bits to determine executability.
16251 cat >conf$$.file <<_ASEOF
16255 chmod +x conf$$.file
16256 if test -x conf$$.file >/dev/null 2>&1; then
16257 ac_executable_p="test -x"
16259 ac_executable_p="test -f"
16263 # Extract the first word of "xgettext", so it can be a program name with args.
16264 set dummy xgettext; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16270 case "$XGETTEXT" in
16272 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276 for ac_dir in $PATH; do
16278 test -z "$ac_dir" && ac_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16282 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16283 (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
16284 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16291 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16295 XGETTEXT="$ac_cv_path_XGETTEXT"
16296 if test "$XGETTEXT" != ":"; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16298 $as_echo "$XGETTEXT" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16307 # Prepare PATH_SEPARATOR.
16308 # The user is always right.
16309 if test "${PATH_SEPARATOR+set}" != set; then
16310 echo "#! /bin/sh" >conf$$.sh
16311 echo "exit 0" >>conf$$.sh
16313 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16321 # Find out how to test for executable files. Don't use a zero-byte file,
16322 # as systems may use methods other than mode bits to determine executability.
16323 cat >conf$$.file <<_ASEOF
16327 chmod +x conf$$.file
16328 if test -x conf$$.file >/dev/null 2>&1; then
16329 ac_executable_p="test -x"
16331 ac_executable_p="test -f"
16335 # Extract the first word of "msgmerge", so it can be a program name with args.
16336 set dummy msgmerge; ac_word=$2
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16338 $as_echo_n "checking for $ac_word... " >&6; }
16339 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16342 case "$MSGMERGE" in
16344 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16347 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16348 for ac_dir in $PATH; do
16350 test -z "$ac_dir" && ac_dir=.
16351 for ac_exec_ext in '' $ac_executable_extensions; do
16352 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16353 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16354 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16355 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16362 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16366 MSGMERGE="$ac_cv_path_MSGMERGE"
16367 if test "$MSGMERGE" != ":"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16369 $as_echo "$MSGMERGE" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16376 if test "$GMSGFMT" != ":"; then
16377 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16378 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16381 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16383 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16388 if test "$XGETTEXT" != ":"; then
16389 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16390 (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
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16394 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16400 ac_config_commands="$ac_config_commands default-1"
16404 if test "X$prefix" = "XNONE"; then
16405 acl_final_prefix="$ac_default_prefix"
16407 acl_final_prefix="$prefix"
16409 if test "X$exec_prefix" = "XNONE"; then
16410 acl_final_exec_prefix='${prefix}'
16412 acl_final_exec_prefix="$exec_prefix"
16414 acl_save_prefix="$prefix"
16415 prefix="$acl_final_prefix"
16416 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16417 prefix="$acl_save_prefix"
16420 # Check whether --with-gnu-ld was given.
16421 if test "${with_gnu_ld+set}" = set; then :
16422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16427 # Prepare PATH_SEPARATOR.
16428 # The user is always right.
16429 if test "${PATH_SEPARATOR+set}" != set; then
16430 echo "#! /bin/sh" >conf$$.sh
16431 echo "exit 0" >>conf$$.sh
16433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16441 if test "$GCC" = yes; then
16442 # Check if gcc -print-prog-name=ld gives a path.
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16444 $as_echo_n "checking for ld used by GCC... " >&6; }
16447 # gcc leaves a trailing carriage return which upsets mingw
16448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16453 # Accept absolute paths.
16454 [\\/]* | [A-Za-z]:[\\/]*)
16455 re_direlt='/[^/][^/]*/\.\./'
16456 # Canonicalize the path of ld
16457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16459 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16461 test -z "$LD" && LD="$ac_prog"
16464 # If it fails, then pretend we aren't using GCC.
16468 # If it is relative, then search for the first ld in PATH.
16469 with_gnu_ld=unknown
16472 elif test "$with_gnu_ld" = yes; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16474 $as_echo_n "checking for GNU ld... " >&6; }
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16477 $as_echo_n "checking for non-GNU ld... " >&6; }
16479 if test "${acl_cv_path_LD+set}" = set; then :
16480 $as_echo_n "(cached) " >&6
16482 if test -z "$LD"; then
16483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16484 for ac_dir in $PATH; do
16485 test -z "$ac_dir" && ac_dir=.
16486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16487 acl_cv_path_LD="$ac_dir/$ac_prog"
16488 # Check to see if the program is GNU ld. I'd rather use --version,
16489 # but apparently some GNU ld's only accept -v.
16490 # Break only if it was the GNU/non-GNU ld that we prefer.
16491 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16492 *GNU* | *'with BFD'*)
16493 test "$with_gnu_ld" != no && break ;;
16495 test "$with_gnu_ld" != yes && break ;;
16501 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16505 LD="$acl_cv_path_LD"
16506 if test -n "$LD"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16508 $as_echo "$LD" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16513 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16515 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16516 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16517 $as_echo_n "(cached) " >&6
16519 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16520 case `$LD -v 2>&1 </dev/null` in
16521 *GNU* | *'with BFD'*)
16522 acl_cv_prog_gnu_ld=yes ;;
16524 acl_cv_prog_gnu_ld=no ;;
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16528 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16529 with_gnu_ld=$acl_cv_prog_gnu_ld
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16535 $as_echo_n "checking for shared library run path origin... " >&6; }
16536 if test "${acl_cv_rpath+set}" = set; then :
16537 $as_echo_n "(cached) " >&6
16540 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16541 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16543 rm -f ./conftest.sh
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16548 $as_echo "$acl_cv_rpath" >&6; }
16550 libext="$acl_cv_libext"
16551 shlibext="$acl_cv_shlibext"
16552 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16553 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16554 hardcode_direct="$acl_cv_hardcode_direct"
16555 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16556 # Check whether --enable-rpath was given.
16557 if test "${enable_rpath+set}" = set; then :
16558 enableval=$enable_rpath; :
16572 acl_save_prefix="$prefix"
16573 prefix="$acl_final_prefix"
16574 acl_save_exec_prefix="$exec_prefix"
16575 exec_prefix="$acl_final_exec_prefix"
16577 eval additional_includedir=\"$includedir\"
16578 eval additional_libdir=\"$libdir\"
16580 exec_prefix="$acl_save_exec_prefix"
16581 prefix="$acl_save_prefix"
16584 # Check whether --with-libiconv-prefix was given.
16585 if test "${with_libiconv_prefix+set}" = set; then :
16586 withval=$with_libiconv_prefix;
16587 if test "X$withval" = "Xno"; then
16590 if test "X$withval" = "X"; then
16592 acl_save_prefix="$prefix"
16593 prefix="$acl_final_prefix"
16594 acl_save_exec_prefix="$exec_prefix"
16595 exec_prefix="$acl_final_exec_prefix"
16597 eval additional_includedir=\"$includedir\"
16598 eval additional_libdir=\"$libdir\"
16600 exec_prefix="$acl_save_exec_prefix"
16601 prefix="$acl_save_prefix"
16604 additional_includedir="$withval/include"
16605 additional_libdir="$withval/lib"
16616 names_already_handled=
16617 names_next_round='iconv '
16618 while test -n "$names_next_round"; do
16619 names_this_round="$names_next_round"
16621 for name in $names_this_round; do
16623 for n in $names_already_handled; do
16624 if test "$n" = "$name"; then
16625 already_handled=yes
16629 if test -z "$already_handled"; then
16630 names_already_handled="$names_already_handled $name"
16631 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16632 eval value=\"\$HAVE_LIB$uppername\"
16633 if test -n "$value"; then
16634 if test "$value" = yes; then
16635 eval value=\"\$LIB$uppername\"
16636 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16637 eval value=\"\$LTLIB$uppername\"
16638 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16647 if test $use_additional = yes; then
16648 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16649 found_dir="$additional_libdir"
16650 found_so="$additional_libdir/lib$name.$shlibext"
16651 if test -f "$additional_libdir/lib$name.la"; then
16652 found_la="$additional_libdir/lib$name.la"
16655 if test -f "$additional_libdir/lib$name.$libext"; then
16656 found_dir="$additional_libdir"
16657 found_a="$additional_libdir/lib$name.$libext"
16658 if test -f "$additional_libdir/lib$name.la"; then
16659 found_la="$additional_libdir/lib$name.la"
16664 if test "X$found_dir" = "X"; then
16665 for x in $LDFLAGS $LTLIBICONV; do
16667 acl_save_prefix="$prefix"
16668 prefix="$acl_final_prefix"
16669 acl_save_exec_prefix="$exec_prefix"
16670 exec_prefix="$acl_final_exec_prefix"
16672 exec_prefix="$acl_save_exec_prefix"
16673 prefix="$acl_save_prefix"
16677 dir=`echo "X$x" | sed -e 's/^X-L//'`
16678 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16680 found_so="$dir/lib$name.$shlibext"
16681 if test -f "$dir/lib$name.la"; then
16682 found_la="$dir/lib$name.la"
16685 if test -f "$dir/lib$name.$libext"; then
16687 found_a="$dir/lib$name.$libext"
16688 if test -f "$dir/lib$name.la"; then
16689 found_la="$dir/lib$name.la"
16695 if test "X$found_dir" != "X"; then
16700 if test "X$found_dir" != "X"; then
16701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16702 if test "X$found_so" != "X"; then
16703 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16707 for x in $ltrpathdirs; do
16708 if test "X$x" = "X$found_dir"; then
16713 if test -z "$haveit"; then
16714 ltrpathdirs="$ltrpathdirs $found_dir"
16716 if test "$hardcode_direct" = yes; then
16717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16719 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16722 for x in $rpathdirs; do
16723 if test "X$x" = "X$found_dir"; then
16728 if test -z "$haveit"; then
16729 rpathdirs="$rpathdirs $found_dir"
16733 for x in $LDFLAGS $LIBICONV; do
16735 acl_save_prefix="$prefix"
16736 prefix="$acl_final_prefix"
16737 acl_save_exec_prefix="$exec_prefix"
16738 exec_prefix="$acl_final_exec_prefix"
16740 exec_prefix="$acl_save_exec_prefix"
16741 prefix="$acl_save_prefix"
16743 if test "X$x" = "X-L$found_dir"; then
16748 if test -z "$haveit"; then
16749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16751 if test "$hardcode_minus_L" != no; then
16752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16754 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16760 if test "X$found_a" != "X"; then
16761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16766 additional_includedir=
16767 case "$found_dir" in
16769 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16770 additional_includedir="$basedir/include"
16773 if test "X$additional_includedir" != "X"; then
16774 if test "X$additional_includedir" != "X/usr/include"; then
16776 if test "X$additional_includedir" = "X/usr/local/include"; then
16777 if test -n "$GCC"; then
16779 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16783 if test -z "$haveit"; then
16784 for x in $CPPFLAGS $INCICONV; do
16786 acl_save_prefix="$prefix"
16787 prefix="$acl_final_prefix"
16788 acl_save_exec_prefix="$exec_prefix"
16789 exec_prefix="$acl_final_exec_prefix"
16791 exec_prefix="$acl_save_exec_prefix"
16792 prefix="$acl_save_prefix"
16794 if test "X$x" = "X-I$additional_includedir"; then
16799 if test -z "$haveit"; then
16800 if test -d "$additional_includedir"; then
16801 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16807 if test -n "$found_la"; then
16808 save_libdir="$libdir"
16809 case "$found_la" in
16810 */* | *\\*) . "$found_la" ;;
16811 *) . "./$found_la" ;;
16813 libdir="$save_libdir"
16814 for dep in $dependency_libs; do
16817 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16818 if test "X$additional_libdir" != "X/usr/lib"; then
16820 if test "X$additional_libdir" = "X/usr/local/lib"; then
16821 if test -n "$GCC"; then
16823 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16827 if test -z "$haveit"; then
16829 for x in $LDFLAGS $LIBICONV; do
16831 acl_save_prefix="$prefix"
16832 prefix="$acl_final_prefix"
16833 acl_save_exec_prefix="$exec_prefix"
16834 exec_prefix="$acl_final_exec_prefix"
16836 exec_prefix="$acl_save_exec_prefix"
16837 prefix="$acl_save_prefix"
16839 if test "X$x" = "X-L$additional_libdir"; then
16844 if test -z "$haveit"; then
16845 if test -d "$additional_libdir"; then
16846 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16850 for x in $LDFLAGS $LTLIBICONV; 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 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16874 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16875 if test "$enable_rpath" != no; then
16877 for x in $rpathdirs; do
16878 if test "X$x" = "X$dir"; then
16883 if test -z "$haveit"; then
16884 rpathdirs="$rpathdirs $dir"
16887 for x in $ltrpathdirs; do
16888 if test "X$x" = "X$dir"; then
16893 if test -z "$haveit"; then
16894 ltrpathdirs="$ltrpathdirs $dir"
16899 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16902 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16905 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16912 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16913 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16919 if test "X$rpathdirs" != "X"; then
16920 if test -n "$hardcode_libdir_separator"; then
16922 for found_dir in $rpathdirs; do
16923 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16925 acl_save_libdir="$libdir"
16927 eval flag=\"$hardcode_libdir_flag_spec\"
16928 libdir="$acl_save_libdir"
16929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16931 for found_dir in $rpathdirs; do
16932 acl_save_libdir="$libdir"
16933 libdir="$found_dir"
16934 eval flag=\"$hardcode_libdir_flag_spec\"
16935 libdir="$acl_save_libdir"
16936 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16940 if test "X$ltrpathdirs" != "X"; then
16941 for found_dir in $ltrpathdirs; do
16942 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16964 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16965 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16966 $as_echo_n "(cached) " >&6
16968 gt_save_CPPFLAGS="$CPPFLAGS"
16969 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16970 gt_save_LIBS="$LIBS"
16971 LIBS="$LIBS -framework CoreFoundation"
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16974 #include <CFPreferences.h>
16978 CFPreferencesCopyAppValue(NULL, NULL)
16983 if ac_fn_c_try_link "$LINENO"; then :
16984 gt_cv_func_CFPreferencesCopyAppValue=yes
16986 gt_cv_func_CFPreferencesCopyAppValue=no
16988 rm -f core conftest.err conftest.$ac_objext \
16989 conftest$ac_exeext conftest.$ac_ext
16990 CPPFLAGS="$gt_save_CPPFLAGS"
16991 LIBS="$gt_save_LIBS"
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16994 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16995 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16997 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17001 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17002 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17003 $as_echo_n "(cached) " >&6
17005 gt_save_CPPFLAGS="$CPPFLAGS"
17006 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17007 gt_save_LIBS="$LIBS"
17008 LIBS="$LIBS -framework CoreFoundation"
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 #include <CFLocale.h>
17015 CFLocaleCopyCurrent();
17020 if ac_fn_c_try_link "$LINENO"; then :
17021 gt_cv_func_CFLocaleCopyCurrent=yes
17023 gt_cv_func_CFLocaleCopyCurrent=no
17025 rm -f core conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17027 CPPFLAGS="$gt_save_CPPFLAGS"
17028 LIBS="$gt_save_LIBS"
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17031 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17032 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17034 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17038 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17039 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17046 $as_echo_n "checking whether NLS is requested... " >&6; }
17047 # Check whether --enable-nls was given.
17048 if test "${enable_nls+set}" = set; then :
17049 enableval=$enable_nls; USE_NLS=$enableval
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17055 $as_echo "$USE_NLS" >&6; }
17064 if test "$USE_NLS" = "yes"; then
17065 gt_use_preinstalled_gnugettext=no
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17073 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17074 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17075 $as_echo_n "(cached) " >&6
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17079 #include <libintl.h>
17080 extern int _nl_msg_cat_cntr;
17081 extern int *_nl_domain_bindings;
17085 bindtextdomain ("", "");
17086 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17091 if ac_fn_c_try_link "$LINENO"; then :
17092 gt_cv_func_gnugettext1_libc=yes
17094 gt_cv_func_gnugettext1_libc=no
17096 rm -f core conftest.err conftest.$ac_objext \
17097 conftest$ac_exeext conftest.$ac_ext
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17100 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17102 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17108 am_save_CPPFLAGS="$CPPFLAGS"
17110 for element in $INCICONV; do
17112 for x in $CPPFLAGS; do
17114 acl_save_prefix="$prefix"
17115 prefix="$acl_final_prefix"
17116 acl_save_exec_prefix="$exec_prefix"
17117 exec_prefix="$acl_final_exec_prefix"
17119 exec_prefix="$acl_save_exec_prefix"
17120 prefix="$acl_save_prefix"
17122 if test "X$x" = "X$element"; then
17127 if test -z "$haveit"; then
17128 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17134 $as_echo_n "checking for iconv... " >&6; }
17135 if test "${am_cv_func_iconv+set}" = set; then :
17136 $as_echo_n "(cached) " >&6
17139 am_cv_func_iconv="no, consider installing GNU libiconv"
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 #include <stdlib.h>
17148 iconv_t cd = iconv_open("","");
17149 iconv(cd,NULL,NULL,NULL,NULL);
17155 if ac_fn_c_try_link "$LINENO"; then :
17156 am_cv_func_iconv=yes
17158 rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17160 if test "$am_cv_func_iconv" != yes; then
17161 am_save_LIBS="$LIBS"
17162 LIBS="$LIBS $LIBICONV"
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <stdlib.h>
17170 iconv_t cd = iconv_open("","");
17171 iconv(cd,NULL,NULL,NULL,NULL);
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 am_cv_lib_iconv=yes
17179 am_cv_func_iconv=yes
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS="$am_save_LIBS"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17188 $as_echo "$am_cv_func_iconv" >&6; }
17189 if test "$am_cv_func_iconv" = yes; then
17191 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17194 if test "$am_cv_lib_iconv" = yes; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17196 $as_echo_n "checking how to link with libiconv... " >&6; }
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17198 $as_echo "$LIBICONV" >&6; }
17200 CPPFLAGS="$am_save_CPPFLAGS"
17212 acl_save_prefix="$prefix"
17213 prefix="$acl_final_prefix"
17214 acl_save_exec_prefix="$exec_prefix"
17215 exec_prefix="$acl_final_exec_prefix"
17217 eval additional_includedir=\"$includedir\"
17218 eval additional_libdir=\"$libdir\"
17220 exec_prefix="$acl_save_exec_prefix"
17221 prefix="$acl_save_prefix"
17224 # Check whether --with-libintl-prefix was given.
17225 if test "${with_libintl_prefix+set}" = set; then :
17226 withval=$with_libintl_prefix;
17227 if test "X$withval" = "Xno"; then
17230 if test "X$withval" = "X"; then
17232 acl_save_prefix="$prefix"
17233 prefix="$acl_final_prefix"
17234 acl_save_exec_prefix="$exec_prefix"
17235 exec_prefix="$acl_final_exec_prefix"
17237 eval additional_includedir=\"$includedir\"
17238 eval additional_libdir=\"$libdir\"
17240 exec_prefix="$acl_save_exec_prefix"
17241 prefix="$acl_save_prefix"
17244 additional_includedir="$withval/include"
17245 additional_libdir="$withval/lib"
17256 names_already_handled=
17257 names_next_round='intl '
17258 while test -n "$names_next_round"; do
17259 names_this_round="$names_next_round"
17261 for name in $names_this_round; do
17263 for n in $names_already_handled; do
17264 if test "$n" = "$name"; then
17265 already_handled=yes
17269 if test -z "$already_handled"; then
17270 names_already_handled="$names_already_handled $name"
17271 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17272 eval value=\"\$HAVE_LIB$uppername\"
17273 if test -n "$value"; then
17274 if test "$value" = yes; then
17275 eval value=\"\$LIB$uppername\"
17276 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17277 eval value=\"\$LTLIB$uppername\"
17278 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17287 if test $use_additional = yes; then
17288 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17289 found_dir="$additional_libdir"
17290 found_so="$additional_libdir/lib$name.$shlibext"
17291 if test -f "$additional_libdir/lib$name.la"; then
17292 found_la="$additional_libdir/lib$name.la"
17295 if test -f "$additional_libdir/lib$name.$libext"; then
17296 found_dir="$additional_libdir"
17297 found_a="$additional_libdir/lib$name.$libext"
17298 if test -f "$additional_libdir/lib$name.la"; then
17299 found_la="$additional_libdir/lib$name.la"
17304 if test "X$found_dir" = "X"; then
17305 for x in $LDFLAGS $LTLIBINTL; do
17307 acl_save_prefix="$prefix"
17308 prefix="$acl_final_prefix"
17309 acl_save_exec_prefix="$exec_prefix"
17310 exec_prefix="$acl_final_exec_prefix"
17312 exec_prefix="$acl_save_exec_prefix"
17313 prefix="$acl_save_prefix"
17317 dir=`echo "X$x" | sed -e 's/^X-L//'`
17318 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17320 found_so="$dir/lib$name.$shlibext"
17321 if test -f "$dir/lib$name.la"; then
17322 found_la="$dir/lib$name.la"
17325 if test -f "$dir/lib$name.$libext"; then
17327 found_a="$dir/lib$name.$libext"
17328 if test -f "$dir/lib$name.la"; then
17329 found_la="$dir/lib$name.la"
17335 if test "X$found_dir" != "X"; then
17340 if test "X$found_dir" != "X"; then
17341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17342 if test "X$found_so" != "X"; then
17343 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17344 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17347 for x in $ltrpathdirs; do
17348 if test "X$x" = "X$found_dir"; then
17353 if test -z "$haveit"; then
17354 ltrpathdirs="$ltrpathdirs $found_dir"
17356 if test "$hardcode_direct" = yes; then
17357 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17359 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17360 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17362 for x in $rpathdirs; do
17363 if test "X$x" = "X$found_dir"; then
17368 if test -z "$haveit"; then
17369 rpathdirs="$rpathdirs $found_dir"
17373 for x in $LDFLAGS $LIBINTL; do
17375 acl_save_prefix="$prefix"
17376 prefix="$acl_final_prefix"
17377 acl_save_exec_prefix="$exec_prefix"
17378 exec_prefix="$acl_final_exec_prefix"
17380 exec_prefix="$acl_save_exec_prefix"
17381 prefix="$acl_save_prefix"
17383 if test "X$x" = "X-L$found_dir"; then
17388 if test -z "$haveit"; then
17389 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17391 if test "$hardcode_minus_L" != no; then
17392 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17394 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17400 if test "X$found_a" != "X"; then
17401 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17403 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17406 additional_includedir=
17407 case "$found_dir" in
17409 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17410 additional_includedir="$basedir/include"
17413 if test "X$additional_includedir" != "X"; then
17414 if test "X$additional_includedir" != "X/usr/include"; then
17416 if test "X$additional_includedir" = "X/usr/local/include"; then
17417 if test -n "$GCC"; then
17419 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17423 if test -z "$haveit"; then
17424 for x in $CPPFLAGS $INCINTL; do
17426 acl_save_prefix="$prefix"
17427 prefix="$acl_final_prefix"
17428 acl_save_exec_prefix="$exec_prefix"
17429 exec_prefix="$acl_final_exec_prefix"
17431 exec_prefix="$acl_save_exec_prefix"
17432 prefix="$acl_save_prefix"
17434 if test "X$x" = "X-I$additional_includedir"; then
17439 if test -z "$haveit"; then
17440 if test -d "$additional_includedir"; then
17441 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17447 if test -n "$found_la"; then
17448 save_libdir="$libdir"
17449 case "$found_la" in
17450 */* | *\\*) . "$found_la" ;;
17451 *) . "./$found_la" ;;
17453 libdir="$save_libdir"
17454 for dep in $dependency_libs; do
17457 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17458 if test "X$additional_libdir" != "X/usr/lib"; then
17460 if test "X$additional_libdir" = "X/usr/local/lib"; then
17461 if test -n "$GCC"; then
17463 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17467 if test -z "$haveit"; then
17469 for x in $LDFLAGS $LIBINTL; do
17471 acl_save_prefix="$prefix"
17472 prefix="$acl_final_prefix"
17473 acl_save_exec_prefix="$exec_prefix"
17474 exec_prefix="$acl_final_exec_prefix"
17476 exec_prefix="$acl_save_exec_prefix"
17477 prefix="$acl_save_prefix"
17479 if test "X$x" = "X-L$additional_libdir"; then
17484 if test -z "$haveit"; then
17485 if test -d "$additional_libdir"; then
17486 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17490 for x in $LDFLAGS $LTLIBINTL; 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 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17514 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17515 if test "$enable_rpath" != no; then
17517 for x in $rpathdirs; do
17518 if test "X$x" = "X$dir"; then
17523 if test -z "$haveit"; then
17524 rpathdirs="$rpathdirs $dir"
17527 for x in $ltrpathdirs; do
17528 if test "X$x" = "X$dir"; then
17533 if test -z "$haveit"; then
17534 ltrpathdirs="$ltrpathdirs $dir"
17539 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17542 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17545 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17546 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17552 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17553 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17559 if test "X$rpathdirs" != "X"; then
17560 if test -n "$hardcode_libdir_separator"; then
17562 for found_dir in $rpathdirs; do
17563 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17565 acl_save_libdir="$libdir"
17567 eval flag=\"$hardcode_libdir_flag_spec\"
17568 libdir="$acl_save_libdir"
17569 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17571 for found_dir in $rpathdirs; do
17572 acl_save_libdir="$libdir"
17573 libdir="$found_dir"
17574 eval flag=\"$hardcode_libdir_flag_spec\"
17575 libdir="$acl_save_libdir"
17576 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17580 if test "X$ltrpathdirs" != "X"; then
17581 for found_dir in $ltrpathdirs; do
17582 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17587 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17588 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17589 $as_echo_n "(cached) " >&6
17591 gt_save_CPPFLAGS="$CPPFLAGS"
17592 CPPFLAGS="$CPPFLAGS $INCINTL"
17593 gt_save_LIBS="$LIBS"
17594 LIBS="$LIBS $LIBINTL"
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 #include <libintl.h>
17598 extern int _nl_msg_cat_cntr;
17603 const char *_nl_expand_alias (const char *);
17607 bindtextdomain ("", "");
17608 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17613 if ac_fn_c_try_link "$LINENO"; then :
17614 gt_cv_func_gnugettext1_libintl=yes
17616 gt_cv_func_gnugettext1_libintl=no
17618 rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17620 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17621 LIBS="$LIBS $LIBICONV"
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624 #include <libintl.h>
17625 extern int _nl_msg_cat_cntr;
17630 const char *_nl_expand_alias (const char *);
17634 bindtextdomain ("", "");
17635 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17640 if ac_fn_c_try_link "$LINENO"; then :
17641 LIBINTL="$LIBINTL $LIBICONV"
17642 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17643 gt_cv_func_gnugettext1_libintl=yes
17646 rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17649 CPPFLAGS="$gt_save_CPPFLAGS"
17650 LIBS="$gt_save_LIBS"
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17653 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17656 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17657 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17658 && test "$PACKAGE" != gettext-runtime \
17659 && test "$PACKAGE" != gettext-tools; }; then
17660 gt_use_preinstalled_gnugettext=yes
17669 if test -n "$INTL_MACOSX_LIBS"; then
17670 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17671 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17672 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17673 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17680 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17688 $as_echo_n "checking whether to use NLS... " >&6; }
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17690 $as_echo "$USE_NLS" >&6; }
17691 if test "$USE_NLS" = "yes"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17693 $as_echo_n "checking where the gettext function comes from... " >&6; }
17694 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17695 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17696 gt_source="external libintl"
17701 gt_source="included intl directory"
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17704 $as_echo "$gt_source" >&6; }
17707 if test "$USE_NLS" = "yes"; then
17709 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17710 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17712 $as_echo_n "checking how to link with libintl... " >&6; }
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17714 $as_echo "$LIBINTL" >&6; }
17716 for element in $INCINTL; do
17718 for x in $CPPFLAGS; do
17720 acl_save_prefix="$prefix"
17721 prefix="$acl_final_prefix"
17722 acl_save_exec_prefix="$exec_prefix"
17723 exec_prefix="$acl_final_exec_prefix"
17725 exec_prefix="$acl_save_exec_prefix"
17726 prefix="$acl_save_prefix"
17728 if test "X$x" = "X$element"; then
17733 if test -z "$haveit"; then
17734 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17741 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17744 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17753 INTLLIBS="$LIBINTL"
17761 os_name=`uname -s 2>/dev/null`
17762 if test x${prefix} = xNONE ; then
17763 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17764 sysconfdir=/etc/bacula
17767 if test `eval echo ${libdir}` = NONE/lib ; then
17770 os_processor=`uname -p 2>/dev/null`
17771 case ${os_processor} in
17786 if test `eval echo ${includedir}` = NONE/include ; then
17787 includedir=/usr/include
17790 if test `eval echo ${datarootdir}` = NONE/share ; then
17791 datarootdir=/usr/share
17796 if test x${exec_prefix} = xNONE ; then
17797 exec_prefix=${prefix}
17800 sysconfdir=`eval echo ${sysconfdir}`
17801 datarootdir=`eval echo ${datarootdir}`
17802 docdir=`eval echo ${docdir}`
17803 htmldir=`eval echo ${htmldir}`
17804 libdir=`eval echo ${libdir}`
17805 includedir=`eval echo ${includedir}`
17806 localedir=`eval echo ${datarootdir}/locale`
17807 cat >>confdefs.h <<_ACEOF
17808 #define SYSCONFDIR "$sysconfdir"
17811 cat >>confdefs.h <<_ACEOF
17812 #define LOCALEDIR "$localedir"
17816 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17817 sbindir=${exec_prefix}/sbin
17819 sbindir=`eval echo ${sbindir}`
17821 if test x$mandir = x'${prefix}/man' ; then
17822 mandir=/usr/share/man
17825 if test x$htmldir = x${docdir} ; then
17826 htmldir=`eval echo ${docdir}bacula/html`
17829 if test x$docdir = x'/usr/share/doc/' ; then
17830 docdir=`eval echo ${docdir}bacula`
17834 for ac_prog in msgfmt
17836 # Extract the first word of "$ac_prog", so it can be a program name with args.
17837 set dummy $ac_prog; ac_word=$2
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17839 $as_echo_n "checking for $ac_word... " >&6; }
17840 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17845 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17849 for as_dir in $PATH
17852 test -z "$as_dir" && as_dir=.
17853 for ac_exec_ext in '' $ac_executable_extensions; do
17854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17855 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17866 MSGFMT=$ac_cv_path_MSGFMT
17867 if test -n "$MSGFMT"; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17869 $as_echo "$MSGFMT" >&6; }
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17876 test -n "$MSGFMT" && break
17878 test -n "$MSGFMT" || MSGFMT="no"
17880 if test "$MSGFMT" = "no"
17882 echo 'msgfmt program not found, disabling NLS !'
17884 USE_INCLUDED_LIBINTL=no
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17888 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17889 if test "${ac_cv_gnu_library_2+set}" = set; then :
17890 $as_echo_n "(cached) " >&6
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 #include <features.h>
17896 #ifdef __GNU_LIBRARY__
17897 #if (__GLIBC__ >= 2)
17903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17904 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17905 ac_cv_gnu_library_2=yes
17907 ac_cv_gnu_library_2=no
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17915 $as_echo "$ac_cv_gnu_library_2" >&6; }
17917 GLIBC2="$ac_cv_gnu_library_2"
17920 if test -n "$ac_tool_prefix"; then
17921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17924 $as_echo_n "checking for $ac_word... " >&6; }
17925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17926 $as_echo_n "(cached) " >&6
17928 if test -n "$RANLIB"; then
17929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17932 for as_dir in $PATH
17935 test -z "$as_dir" && as_dir=.
17936 for ac_exec_ext in '' $ac_executable_extensions; do
17937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17948 RANLIB=$ac_cv_prog_RANLIB
17949 if test -n "$RANLIB"; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17951 $as_echo "$RANLIB" >&6; }
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17954 $as_echo "no" >&6; }
17959 if test -z "$ac_cv_prog_RANLIB"; then
17960 ac_ct_RANLIB=$RANLIB
17961 # Extract the first word of "ranlib", so it can be a program name with args.
17962 set dummy ranlib; ac_word=$2
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17964 $as_echo_n "checking for $ac_word... " >&6; }
17965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17968 if test -n "$ac_ct_RANLIB"; then
17969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17975 test -z "$as_dir" && as_dir=.
17976 for ac_exec_ext in '' $ac_executable_extensions; do
17977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17978 ac_cv_prog_ac_ct_RANLIB="ranlib"
17979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17989 if test -n "$ac_ct_RANLIB"; then
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17991 $as_echo "$ac_ct_RANLIB" >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17994 $as_echo "no" >&6; }
17997 if test "x$ac_ct_RANLIB" = x; then
18000 case $cross_compiling:$ac_tool_warned in
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18004 ac_tool_warned=yes ;;
18006 RANLIB=$ac_ct_RANLIB
18009 RANLIB="$ac_cv_prog_RANLIB"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18014 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18015 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18018 ac_check_lib_save_LIBS=$LIBS
18019 LIBS="-lcposix $LIBS"
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18023 /* Override any GCC internal prototype to avoid an error.
18024 Use char because int might match the return type of a GCC
18025 builtin and then its argument prototype would still apply. */
18033 return strerror ();
18038 if ac_fn_c_try_link "$LINENO"; then :
18039 ac_cv_lib_cposix_strerror=yes
18041 ac_cv_lib_cposix_strerror=no
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18048 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18049 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18050 LIBS="$LIBS -lcposix"
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18056 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18057 if test "${ac_cv_c_const+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h. */
18066 /* FIXME: Include the comments suggested by Paul. */
18067 #ifndef __cplusplus
18068 /* Ultrix mips cc rejects this. */
18069 typedef int charset[2];
18071 /* SunOS 4.1.1 cc rejects this. */
18072 char const *const *pcpcc;
18074 /* NEC SVR4.0.2 mips cc rejects this. */
18075 struct point {int x, y;};
18076 static struct point const zero = {0,0};
18077 /* AIX XL C 1.02.0.0 rejects this.
18078 It does not let you subtract one const X* pointer from another in
18079 an arm of an if-expression whose if-part is not a constant
18081 const char *g = "string";
18082 pcpcc = &g + (g ? g-g : 0);
18083 /* HPUX 7.0 cc rejects these. */
18085 ppc = (char**) pcpcc;
18086 pcpcc = (char const *const *) ppc;
18087 { /* SCO 3.2v4 cc rejects this. */
18089 char const *s = 0 ? (char *) 0 : (char const *) 0;
18094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18095 int x[] = {25, 17};
18096 const int *foo = &x[0];
18099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18100 typedef const int *iptr;
18104 { /* AIX XL C 1.02.0.0 rejects this saying
18105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18106 struct s { int j; const int *ap[3]; };
18107 struct s *b; b->j = 5;
18109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18110 const int foo = 10;
18111 if (!foo) return 0;
18113 return !cs[0] && !zero.x;
18120 if ac_fn_c_try_compile "$LINENO"; then :
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18128 $as_echo "$ac_cv_c_const" >&6; }
18129 if test $ac_cv_c_const = no; then
18131 $as_echo "#define const /**/" >>confdefs.h
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18137 $as_echo_n "checking for signed... " >&6; }
18138 if test "${bh_cv_c_signed+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18152 if ac_fn_c_try_compile "$LINENO"; then :
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18160 $as_echo "$bh_cv_c_signed" >&6; }
18161 if test $bh_cv_c_signed = no; then
18163 $as_echo "#define signed /**/" >>confdefs.h
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18168 $as_echo_n "checking for inline... " >&6; }
18169 if test "${ac_cv_c_inline+set}" = set; then :
18170 $as_echo_n "(cached) " >&6
18173 for ac_kw in inline __inline__ __inline; do
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 #ifndef __cplusplus
18178 static $ac_kw foo_t static_foo () {return 0; }
18179 $ac_kw foo_t foo () {return 0; }
18183 if ac_fn_c_try_compile "$LINENO"; then :
18184 ac_cv_c_inline=$ac_kw
18186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187 test "$ac_cv_c_inline" != no && break
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18192 $as_echo "$ac_cv_c_inline" >&6; }
18194 case $ac_cv_c_inline in
18197 case $ac_cv_c_inline in
18199 *) ac_val=$ac_cv_c_inline;;
18201 cat >>confdefs.h <<_ACEOF
18202 #ifndef __cplusplus
18203 #define inline $ac_val
18209 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18210 if test "x$ac_cv_type_off_t" = x""yes; then :
18214 cat >>confdefs.h <<_ACEOF
18215 #define off_t long int
18220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18221 if test "x$ac_cv_type_size_t" = x""yes; then :
18225 cat >>confdefs.h <<_ACEOF
18226 #define size_t unsigned int
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18233 $as_echo_n "checking for long long... " >&6; }
18234 if test "${ac_cv_type_long_long+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 long long ll = 1LL; int i = 63;
18243 long long llmax = (long long) -1;
18244 return ll << i | ll >> i | llmax / ll | llmax % ll;
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 ac_cv_type_long_long=yes
18252 ac_cv_type_long_long=no
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18258 $as_echo "$ac_cv_type_long_long" >&6; }
18259 if test $ac_cv_type_long_long = yes; then
18261 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18267 $as_echo_n "checking for long double... " >&6; }
18268 if test "${gt_cv_c_long_double+set}" = set; then :
18269 $as_echo_n "(cached) " >&6
18271 if test "$GCC" = yes; then
18272 gt_cv_c_long_double=yes
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18277 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18278 long double foo = 0.0;
18279 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18280 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18290 if ac_fn_c_try_compile "$LINENO"; then :
18291 gt_cv_c_long_double=yes
18293 gt_cv_c_long_double=no
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18299 $as_echo "$gt_cv_c_long_double" >&6; }
18300 if test $gt_cv_c_long_double = yes; then
18302 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18308 $as_echo_n "checking for wchar_t... " >&6; }
18309 if test "${gt_cv_c_wchar_t+set}" = set; then :
18310 $as_echo_n "(cached) " >&6
18312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h. */
18314 #include <stddef.h>
18315 wchar_t foo = (wchar_t)'\0';
18324 if ac_fn_c_try_compile "$LINENO"; then :
18325 gt_cv_c_wchar_t=yes
18329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18332 $as_echo "$gt_cv_c_wchar_t" >&6; }
18333 if test $gt_cv_c_wchar_t = yes; then
18335 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18341 $as_echo_n "checking for wint_t... " >&6; }
18342 if test "${gt_cv_c_wint_t+set}" = set; then :
18343 $as_echo_n "(cached) " >&6
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18348 wint_t foo = (wchar_t)'\0';
18357 if ac_fn_c_try_compile "$LINENO"; then :
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18365 $as_echo "$gt_cv_c_wint_t" >&6; }
18366 if test $gt_cv_c_wint_t = yes; then
18368 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18374 $as_echo_n "checking for inttypes.h... " >&6; }
18375 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18376 $as_echo_n "(cached) " >&6
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 #include <sys/types.h>
18381 #include <inttypes.h>
18385 uintmax_t i = (uintmax_t) -1;
18390 if ac_fn_c_try_compile "$LINENO"; then :
18391 gl_cv_header_inttypes_h=yes
18393 gl_cv_header_inttypes_h=no
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18398 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18399 if test $gl_cv_header_inttypes_h = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18409 $as_echo_n "checking for stdint.h... " >&6; }
18410 if test "${gl_cv_header_stdint_h+set}" = set; then :
18411 $as_echo_n "(cached) " >&6
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 #include <sys/types.h>
18416 #include <stdint.h>
18420 uintmax_t i = (uintmax_t) -1;
18425 if ac_fn_c_try_compile "$LINENO"; then :
18426 gl_cv_header_stdint_h=yes
18428 gl_cv_header_stdint_h=no
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18433 $as_echo "$gl_cv_header_stdint_h" >&6; }
18434 if test $gl_cv_header_stdint_h = yes; then
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_STDINT_H_WITH_UINTMAX 1
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18446 $as_echo_n "checking for intmax_t... " >&6; }
18447 if test "${gt_cv_c_intmax_t+set}" = set; then :
18448 $as_echo_n "(cached) " >&6
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18453 #include <stddef.h>
18454 #include <stdlib.h>
18455 #if HAVE_STDINT_H_WITH_UINTMAX
18456 #include <stdint.h>
18458 #if HAVE_INTTYPES_H_WITH_UINTMAX
18459 #include <inttypes.h>
18470 if ac_fn_c_try_compile "$LINENO"; then :
18471 gt_cv_c_intmax_t=yes
18473 gt_cv_c_intmax_t=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18478 $as_echo "$gt_cv_c_intmax_t" >&6; }
18479 if test $gt_cv_c_intmax_t = yes; then
18481 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18488 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18489 if test "${gt_cv_func_printf_posix+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18493 if test "$cross_compiling" = yes; then :
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18504 $EGREP "notposix" >/dev/null 2>&1; then :
18505 gt_cv_func_printf_posix="guessing no"
18507 gt_cv_func_printf_posix="guessing yes"
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18517 #include <string.h>
18518 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18519 dollar expansion (possibly an autoconf bug). */
18520 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18521 static char buf[100];
18524 sprintf (buf, format, 33, 55);
18525 return (strcmp (buf, "55 33") != 0);
18528 if ac_fn_c_try_run "$LINENO"; then :
18529 gt_cv_func_printf_posix=yes
18531 gt_cv_func_printf_posix=no
18533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18534 conftest.$ac_objext conftest.beam conftest.$ac_ext
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18540 $as_echo "$gt_cv_func_printf_posix" >&6; }
18541 case $gt_cv_func_printf_posix in
18544 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18550 # for constant arguments. Useless!
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18552 $as_echo_n "checking for working alloca.h... " >&6; }
18553 if test "${ac_cv_working_alloca_h+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18558 #include <alloca.h>
18562 char *p = (char *) alloca (2 * sizeof (int));
18568 if ac_fn_c_try_link "$LINENO"; then :
18569 ac_cv_working_alloca_h=yes
18571 ac_cv_working_alloca_h=no
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18577 $as_echo "$ac_cv_working_alloca_h" >&6; }
18578 if test $ac_cv_working_alloca_h = yes; then
18580 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18585 $as_echo_n "checking for alloca... " >&6; }
18586 if test "${ac_cv_func_alloca_works+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18592 # define alloca __builtin_alloca
18595 # include <malloc.h>
18596 # define alloca _alloca
18598 # ifdef HAVE_ALLOCA_H
18599 # include <alloca.h>
18604 # ifndef alloca /* predefined by HP cc +Olibcalls */
18615 char *p = (char *) alloca (1);
18621 if ac_fn_c_try_link "$LINENO"; then :
18622 ac_cv_func_alloca_works=yes
18624 ac_cv_func_alloca_works=no
18626 rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18630 $as_echo "$ac_cv_func_alloca_works" >&6; }
18632 if test $ac_cv_func_alloca_works = yes; then
18634 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18638 # that cause trouble. Some versions do not even contain alloca or
18639 # contain a buggy version. If you still want to use their alloca,
18640 # use ar to extract alloca.o from them instead of compiling alloca.c.
18642 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18644 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18648 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18649 if test "${ac_cv_os_cray+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18654 #if defined CRAY && ! defined CRAY2
18661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18662 $EGREP "webecray" >/dev/null 2>&1; then :
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18671 $as_echo "$ac_cv_os_cray" >&6; }
18672 if test $ac_cv_os_cray = yes; then
18673 for ac_func in _getb67 GETB67 getb67; do
18674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18676 eval as_val=\$$as_ac_var
18677 if test "x$as_val" = x""yes; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define CRAY_STACKSEG_END $ac_func
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18690 $as_echo_n "checking stack direction for C alloca... " >&6; }
18691 if test "${ac_cv_c_stack_direction+set}" = set; then :
18692 $as_echo_n "(cached) " >&6
18694 if test "$cross_compiling" = yes; then :
18695 ac_cv_c_stack_direction=0
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699 $ac_includes_default
18701 find_stack_direction ()
18703 static char *addr = 0;
18708 return find_stack_direction ();
18711 return (&dummy > addr) ? 1 : -1;
18717 return find_stack_direction () < 0;
18720 if ac_fn_c_try_run "$LINENO"; then :
18721 ac_cv_c_stack_direction=1
18723 ac_cv_c_stack_direction=-1
18725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18726 conftest.$ac_objext conftest.beam conftest.$ac_ext
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18731 $as_echo "$ac_cv_c_stack_direction" >&6; }
18732 cat >>confdefs.h <<_ACEOF
18733 #define STACK_DIRECTION $ac_cv_c_stack_direction
18742 for ac_header in $ac_header_list
18744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18747 eval as_val=\$$as_ac_Header
18748 if test "x$as_val" = x""yes; then :
18749 cat >>confdefs.h <<_ACEOF
18750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18764 for ac_func in getpagesize
18766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18767 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18768 cat >>confdefs.h <<_ACEOF
18769 #define HAVE_GETPAGESIZE 1
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18776 $as_echo_n "checking for working mmap... " >&6; }
18777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18780 if test "$cross_compiling" = yes; then :
18781 ac_cv_func_mmap_fixed_mapped=no
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 $ac_includes_default
18786 /* malloc might have been renamed as rpl_malloc. */
18789 /* Thanks to Mike Haertel and Jim Avera for this test.
18790 Here is a matrix of mmap possibilities:
18791 mmap private not fixed
18792 mmap private fixed at somewhere currently unmapped
18793 mmap private fixed at somewhere already mapped
18794 mmap shared not fixed
18795 mmap shared fixed at somewhere currently unmapped
18796 mmap shared fixed at somewhere already mapped
18797 For private mappings, we should verify that changes cannot be read()
18798 back from the file, nor mmap's back from the file at a different
18799 address. (There have been systems where private was not correctly
18800 implemented like the infamous i386 svr4.0, and systems where the
18801 VM page cache was not coherent with the file system buffer cache
18802 like early versions of FreeBSD and possibly contemporary NetBSD.)
18803 For shared mappings, we should conversely verify that changes get
18804 propagated back to all the places they're supposed to be.
18806 Grep wants private fixed already mapped.
18807 The main things grep needs to know about mmap are:
18808 * does it exist and is it safe to write into the mmap'd area
18809 * how to use it (BSD variants) */
18812 #include <sys/mman.h>
18814 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18818 /* This mess was copied from the GNU getpagesize.h. */
18819 #ifndef HAVE_GETPAGESIZE
18820 # ifdef _SC_PAGESIZE
18821 # define getpagesize() sysconf(_SC_PAGESIZE)
18822 # else /* no _SC_PAGESIZE */
18823 # ifdef HAVE_SYS_PARAM_H
18824 # include <sys/param.h>
18825 # ifdef EXEC_PAGESIZE
18826 # define getpagesize() EXEC_PAGESIZE
18827 # else /* no EXEC_PAGESIZE */
18829 # define getpagesize() NBPG * CLSIZE
18832 # endif /* no CLSIZE */
18833 # else /* no NBPG */
18835 # define getpagesize() NBPC
18836 # else /* no NBPC */
18838 # define getpagesize() PAGESIZE
18839 # endif /* PAGESIZE */
18840 # endif /* no NBPC */
18841 # endif /* no NBPG */
18842 # endif /* no EXEC_PAGESIZE */
18843 # else /* no HAVE_SYS_PARAM_H */
18844 # define getpagesize() 8192 /* punt totally */
18845 # endif /* no HAVE_SYS_PARAM_H */
18846 # endif /* no _SC_PAGESIZE */
18848 #endif /* no HAVE_GETPAGESIZE */
18853 char *data, *data2, *data3;
18854 const char *cdata2;
18858 pagesize = getpagesize ();
18860 /* First, make a file with some known garbage in it. */
18861 data = (char *) malloc (pagesize);
18864 for (i = 0; i < pagesize; ++i)
18865 *(data + i) = rand ();
18867 fd = creat ("conftest.mmap", 0600);
18870 if (write (fd, data, pagesize) != pagesize)
18874 /* Next, check that the tail of a page is zero-filled. File must have
18875 non-zero length, otherwise we risk SIGBUS for entire page. */
18876 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18880 if (write (fd2, cdata2, 1) != 1)
18882 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18883 if (data2 == MAP_FAILED)
18885 for (i = 0; i < pagesize; ++i)
18889 if (munmap (data2, pagesize))
18892 /* Next, try to mmap the file at a fixed address which already has
18893 something else allocated at it. If we can, also make sure that
18894 we see the same garbage. */
18895 fd = open ("conftest.mmap", O_RDWR);
18898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18901 for (i = 0; i < pagesize; ++i)
18902 if (*(data + i) != *(data2 + i))
18905 /* Finally, make sure that changes to the mapped area do not
18906 percolate back to the file as seen by read(). (This is a bug on
18907 some variants of i386 svr4.0.) */
18908 for (i = 0; i < pagesize; ++i)
18909 *(data2 + i) = *(data2 + i) + 1;
18910 data3 = (char *) malloc (pagesize);
18913 if (read (fd, data3, pagesize) != pagesize)
18915 for (i = 0; i < pagesize; ++i)
18916 if (*(data + i) != *(data3 + i))
18922 if ac_fn_c_try_run "$LINENO"; then :
18923 ac_cv_func_mmap_fixed_mapped=yes
18925 ac_cv_func_mmap_fixed_mapped=no
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18928 conftest.$ac_objext conftest.beam conftest.$ac_ext
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18933 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18934 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18936 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18939 rm -f conftest.mmap conftest.txt
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18943 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18944 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18945 $as_echo_n "(cached) " >&6
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18950 #include <features.h>
18951 #ifdef __GNU_LIBRARY__
18952 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18959 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18960 ac_cv_gnu_library_2_1=yes
18962 ac_cv_gnu_library_2_1=no
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18970 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18972 GLIBC21="$ac_cv_gnu_library_2_1"
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18978 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18979 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18983 if test "$cross_compiling" = yes; then :
18985 # Guess based on the CPU.
18986 case "$host_cpu" in
18987 alpha* | i3456786 | m68k | s390*)
18988 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18990 gt_cv_int_divbyzero_sigfpe="guessing no";;
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18997 #include <stdlib.h>
18998 #include <signal.h>
19002 sigfpe_handler (int sig)
19004 sigfpe_handler (sig) int sig;
19007 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19008 exit (sig != SIGFPE);
19018 signal (SIGFPE, sigfpe_handler);
19019 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19020 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19021 signal (SIGTRAP, sigfpe_handler);
19023 /* Linux/SPARC yields signal SIGILL. */
19024 #if defined (__sparc__) && defined (__linux__)
19025 signal (SIGILL, sigfpe_handler);
19034 if ac_fn_c_try_run "$LINENO"; then :
19035 gt_cv_int_divbyzero_sigfpe=yes
19037 gt_cv_int_divbyzero_sigfpe=no
19039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19040 conftest.$ac_objext conftest.beam conftest.$ac_ext
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19046 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19047 case "$gt_cv_int_divbyzero_sigfpe" in
19052 cat >>confdefs.h <<_ACEOF
19053 #define INTDIV0_RAISES_SIGFPE $value
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19059 $as_echo_n "checking for unsigned long long... " >&6; }
19060 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19065 unsigned long long ull = 1ULL; int i = 63;
19069 unsigned long long ullmax = (unsigned long long) -1;
19070 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19075 if ac_fn_c_try_link "$LINENO"; then :
19076 ac_cv_type_unsigned_long_long=yes
19078 ac_cv_type_unsigned_long_long=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19084 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19085 if test $ac_cv_type_unsigned_long_long = yes; then
19087 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19094 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19096 test $ac_cv_type_unsigned_long_long = yes \
19097 && ac_type='unsigned long long' \
19098 || ac_type='unsigned long'
19100 cat >>confdefs.h <<_ACEOF
19101 #define uintmax_t $ac_type
19106 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19112 $as_echo_n "checking for inttypes.h... " >&6; }
19113 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19119 #include <sys/types.h>
19120 #include <inttypes.h>
19129 if ac_fn_c_try_compile "$LINENO"; then :
19130 gt_cv_header_inttypes_h=yes
19132 gt_cv_header_inttypes_h=no
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19138 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19139 if test $gt_cv_header_inttypes_h = yes; then
19141 cat >>confdefs.h <<_ACEOF
19142 #define HAVE_INTTYPES_H 1
19149 if test $gt_cv_header_inttypes_h = yes; then
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19151 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19152 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19153 $as_echo_n "(cached) " >&6
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19158 #include <inttypes.h>
19171 if ac_fn_c_try_compile "$LINENO"; then :
19172 gt_cv_inttypes_pri_broken=no
19174 gt_cv_inttypes_pri_broken=yes
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19180 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19182 if test "$gt_cv_inttypes_pri_broken" = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define PRI_MACROS_BROKEN 1
19191 for ac_header in stdint.h
19193 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19194 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19195 cat >>confdefs.h <<_ACEOF
19196 #define HAVE_STDINT_H 1
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19204 $as_echo_n "checking for SIZE_MAX... " >&6; }
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19209 #include <limits.h>
19211 #include <stdint.h>
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219 $EGREP "Found it" >/dev/null 2>&1; then :
19224 if test -z "$result"; then
19225 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19232 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19239 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19246 if test "$fits_in_uint" = 1; then
19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h. */
19249 #include <stddef.h>
19251 extern unsigned long foo;
19261 if ac_fn_c_try_compile "$LINENO"; then :
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19266 if test -z "$result"; then
19267 if test "$fits_in_uint" = 1; then
19268 result="$res_hi$res_lo"U
19270 result="$res_hi$res_lo"UL
19273 result='~(size_t)0'
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19277 $as_echo "$result" >&6; }
19278 if test "$result" != yes; then
19280 cat >>confdefs.h <<_ACEOF
19281 #define SIZE_MAX $result
19289 for ac_header in stdint.h
19291 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19293 cat >>confdefs.h <<_ACEOF
19294 #define HAVE_STDINT_H 1
19308 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19309 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19313 $as_echo "#define ptrdiff_t long" >>confdefs.h
19318 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19319 stdlib.h string.h unistd.h sys/param.h
19321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19322 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19323 eval as_val=\$$as_ac_Header
19324 if test "x$as_val" = x""yes; then :
19325 cat >>confdefs.h <<_ACEOF
19326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19333 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19334 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19335 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19340 eval as_val=\$$as_ac_var
19341 if test "x$as_val" = x""yes; then :
19342 cat >>confdefs.h <<_ACEOF
19343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19352 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19353 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19354 $as_echo_n "(cached) " >&6
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19364 char *p = (char *) _snprintf;
19371 if ac_fn_c_try_compile "$LINENO"; then :
19372 ac_cv_have_decl__snprintf=yes
19374 ac_cv_have_decl__snprintf=no
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19379 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19380 if test $ac_cv_have_decl__snprintf = yes; then
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_DECL__SNPRINTF $gt_value
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19393 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19394 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19395 $as_echo_n "(cached) " >&6
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19405 char *p = (char *) _snwprintf;
19412 if ac_fn_c_try_compile "$LINENO"; then :
19413 ac_cv_have_decl__snwprintf=yes
19415 ac_cv_have_decl__snwprintf=no
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19420 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19421 if test $ac_cv_have_decl__snwprintf = yes; then
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_DECL__SNWPRINTF $gt_value
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19435 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19436 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19446 #ifndef feof_unlocked
19447 char *p = (char *) feof_unlocked;
19454 if ac_fn_c_try_compile "$LINENO"; then :
19455 ac_cv_have_decl_feof_unlocked=yes
19457 ac_cv_have_decl_feof_unlocked=no
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19462 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19463 if test $ac_cv_have_decl_feof_unlocked = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19476 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19477 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19478 $as_echo_n "(cached) " >&6
19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19487 #ifndef fgets_unlocked
19488 char *p = (char *) fgets_unlocked;
19495 if ac_fn_c_try_compile "$LINENO"; then :
19496 ac_cv_have_decl_fgets_unlocked=yes
19498 ac_cv_have_decl_fgets_unlocked=no
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19503 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19504 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19517 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19518 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19519 $as_echo_n "(cached) " >&6
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19528 #ifndef getc_unlocked
19529 char *p = (char *) getc_unlocked;
19536 if ac_fn_c_try_compile "$LINENO"; then :
19537 ac_cv_have_decl_getc_unlocked=yes
19539 ac_cv_have_decl_getc_unlocked=no
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19544 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19545 if test $ac_cv_have_decl_getc_unlocked = yes; then
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19557 case $gt_cv_func_printf_posix in
19558 *yes) HAVE_POSIX_PRINTF=1 ;;
19559 *) HAVE_POSIX_PRINTF=0 ;;
19562 if test "$ac_cv_func_asprintf" = yes; then
19568 if test "$ac_cv_func_snprintf" = yes; then
19574 if test "$ac_cv_func_wprintf" = yes; then
19586 am_save_CPPFLAGS="$CPPFLAGS"
19588 for element in $INCICONV; do
19590 for x in $CPPFLAGS; do
19592 acl_save_prefix="$prefix"
19593 prefix="$acl_final_prefix"
19594 acl_save_exec_prefix="$exec_prefix"
19595 exec_prefix="$acl_final_exec_prefix"
19597 exec_prefix="$acl_save_exec_prefix"
19598 prefix="$acl_save_prefix"
19600 if test "X$x" = "X$element"; then
19605 if test -z "$haveit"; then
19606 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19612 $as_echo_n "checking for iconv... " >&6; }
19613 if test "${am_cv_func_iconv+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19617 am_cv_func_iconv="no, consider installing GNU libiconv"
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621 #include <stdlib.h>
19626 iconv_t cd = iconv_open("","");
19627 iconv(cd,NULL,NULL,NULL,NULL);
19633 if ac_fn_c_try_link "$LINENO"; then :
19634 am_cv_func_iconv=yes
19636 rm -f core conftest.err conftest.$ac_objext \
19637 conftest$ac_exeext conftest.$ac_ext
19638 if test "$am_cv_func_iconv" != yes; then
19639 am_save_LIBS="$LIBS"
19640 LIBS="$LIBS $LIBICONV"
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19643 #include <stdlib.h>
19648 iconv_t cd = iconv_open("","");
19649 iconv(cd,NULL,NULL,NULL,NULL);
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 am_cv_lib_iconv=yes
19657 am_cv_func_iconv=yes
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS="$am_save_LIBS"
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19666 $as_echo "$am_cv_func_iconv" >&6; }
19667 if test "$am_cv_func_iconv" = yes; then
19669 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19672 if test "$am_cv_lib_iconv" = yes; then
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19674 $as_echo_n "checking how to link with libiconv... " >&6; }
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19676 $as_echo "$LIBICONV" >&6; }
19678 CPPFLAGS="$am_save_CPPFLAGS"
19685 if test "$am_cv_func_iconv" = yes; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19687 $as_echo_n "checking for iconv declaration... " >&6; }
19688 if test "${am_cv_proto_iconv+set}" = set; then :
19689 $as_echo_n "(cached) " >&6
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19695 #include <stdlib.h>
19701 #if defined(__STDC__) || defined(__cplusplus)
19702 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19715 if ac_fn_c_try_compile "$LINENO"; then :
19716 am_cv_proto_iconv_arg1=""
19718 am_cv_proto_iconv_arg1="const"
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 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);"
19724 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19726 }$am_cv_proto_iconv" >&5
19728 }$am_cv_proto_iconv" >&6; }
19730 cat >>confdefs.h <<_ACEOF
19731 #define ICONV_CONST $am_cv_proto_iconv_arg1
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19738 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19739 if test "${am_cv_langinfo_codeset+set}" = set; then :
19740 $as_echo_n "(cached) " >&6
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19744 #include <langinfo.h>
19748 char* cs = nl_langinfo(CODESET);
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 am_cv_langinfo_codeset=yes
19756 am_cv_langinfo_codeset=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19763 $as_echo "$am_cv_langinfo_codeset" >&6; }
19764 if test $am_cv_langinfo_codeset = yes; then
19766 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19770 if test $ac_cv_header_locale_h = yes; then
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19773 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19774 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19775 $as_echo_n "(cached) " >&6
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779 #include <locale.h>
19788 if ac_fn_c_try_link "$LINENO"; then :
19789 gt_cv_val_LC_MESSAGES=yes
19791 gt_cv_val_LC_MESSAGES=no
19793 rm -f core conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19797 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19798 if test $gt_cv_val_LC_MESSAGES = yes; then
19800 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19806 if test -n "$INTL_MACOSX_LIBS"; then
19807 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19810 for ac_prog in bison
19812 # Extract the first word of "$ac_prog", so it can be a program name with args.
19813 set dummy $ac_prog; ac_word=$2
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19815 $as_echo_n "checking for $ac_word... " >&6; }
19816 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19817 $as_echo_n "(cached) " >&6
19819 if test -n "$INTLBISON"; then
19820 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19823 for as_dir in $PATH
19826 test -z "$as_dir" && as_dir=.
19827 for ac_exec_ext in '' $ac_executable_extensions; do
19828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19829 ac_cv_prog_INTLBISON="$ac_prog"
19830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19839 INTLBISON=$ac_cv_prog_INTLBISON
19840 if test -n "$INTLBISON"; then
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19842 $as_echo "$INTLBISON" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19845 $as_echo "no" >&6; }
19849 test -n "$INTLBISON" && break
19852 if test -z "$INTLBISON"; then
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19856 $as_echo_n "checking version of bison... " >&6; }
19857 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19858 case $ac_prog_version in
19859 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19860 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19861 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19862 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19865 $as_echo "$ac_prog_version" >&6; }
19867 if test $ac_verc_fail = yes; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19887 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19888 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19889 $as_echo_n "(cached) " >&6
19891 gt_save_CPPFLAGS="$CPPFLAGS"
19892 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19893 gt_save_LIBS="$LIBS"
19894 LIBS="$LIBS -framework CoreFoundation"
19895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h. */
19897 #include <CFPreferences.h>
19901 CFPreferencesCopyAppValue(NULL, NULL)
19906 if ac_fn_c_try_link "$LINENO"; then :
19907 gt_cv_func_CFPreferencesCopyAppValue=yes
19909 gt_cv_func_CFPreferencesCopyAppValue=no
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19913 CPPFLAGS="$gt_save_CPPFLAGS"
19914 LIBS="$gt_save_LIBS"
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19917 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19918 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19920 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19924 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19925 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19928 gt_save_CPPFLAGS="$CPPFLAGS"
19929 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19930 gt_save_LIBS="$LIBS"
19931 LIBS="$LIBS -framework CoreFoundation"
19932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h. */
19934 #include <CFLocale.h>
19938 CFLocaleCopyCurrent();
19943 if ac_fn_c_try_link "$LINENO"; then :
19944 gt_cv_func_CFLocaleCopyCurrent=yes
19946 gt_cv_func_CFLocaleCopyCurrent=no
19948 rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19950 CPPFLAGS="$gt_save_CPPFLAGS"
19951 LIBS="$gt_save_LIBS"
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19954 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19955 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19957 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19961 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19962 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19969 $as_echo_n "checking whether NLS is requested... " >&6; }
19970 # Check whether --enable-nls was given.
19971 if test "${enable_nls+set}" = set; then :
19972 enableval=$enable_nls; USE_NLS=$enableval
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19978 $as_echo "$USE_NLS" >&6; }
19983 BUILD_INCLUDED_LIBINTL=no
19984 USE_INCLUDED_LIBINTL=no
19990 if test "$USE_NLS" = "yes"; then
19991 gt_use_preinstalled_gnugettext=no
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19994 $as_echo_n "checking whether included gettext is requested... " >&6; }
19996 # Check whether --with-included-gettext was given.
19997 if test "${with_included_gettext+set}" = set; then :
19998 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20000 nls_cv_force_use_gnu_gettext=no
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20004 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20006 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20007 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20015 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20016 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20017 $as_echo_n "(cached) " >&6
20019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h. */
20021 #include <libintl.h>
20022 extern int _nl_msg_cat_cntr;
20023 extern int *_nl_domain_bindings;
20027 bindtextdomain ("", "");
20028 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20033 if ac_fn_c_try_link "$LINENO"; then :
20034 gt_cv_func_gnugettext1_libc=yes
20036 gt_cv_func_gnugettext1_libc=no
20038 rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20042 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20044 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20050 acl_save_prefix="$prefix"
20051 prefix="$acl_final_prefix"
20052 acl_save_exec_prefix="$exec_prefix"
20053 exec_prefix="$acl_final_exec_prefix"
20055 eval additional_includedir=\"$includedir\"
20056 eval additional_libdir=\"$libdir\"
20058 exec_prefix="$acl_save_exec_prefix"
20059 prefix="$acl_save_prefix"
20062 # Check whether --with-libintl-prefix was given.
20063 if test "${with_libintl_prefix+set}" = set; then :
20064 withval=$with_libintl_prefix;
20065 if test "X$withval" = "Xno"; then
20068 if test "X$withval" = "X"; then
20070 acl_save_prefix="$prefix"
20071 prefix="$acl_final_prefix"
20072 acl_save_exec_prefix="$exec_prefix"
20073 exec_prefix="$acl_final_exec_prefix"
20075 eval additional_includedir=\"$includedir\"
20076 eval additional_libdir=\"$libdir\"
20078 exec_prefix="$acl_save_exec_prefix"
20079 prefix="$acl_save_prefix"
20082 additional_includedir="$withval/include"
20083 additional_libdir="$withval/lib"
20094 names_already_handled=
20095 names_next_round='intl '
20096 while test -n "$names_next_round"; do
20097 names_this_round="$names_next_round"
20099 for name in $names_this_round; do
20101 for n in $names_already_handled; do
20102 if test "$n" = "$name"; then
20103 already_handled=yes
20107 if test -z "$already_handled"; then
20108 names_already_handled="$names_already_handled $name"
20109 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20110 eval value=\"\$HAVE_LIB$uppername\"
20111 if test -n "$value"; then
20112 if test "$value" = yes; then
20113 eval value=\"\$LIB$uppername\"
20114 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20115 eval value=\"\$LTLIB$uppername\"
20116 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20125 if test $use_additional = yes; then
20126 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20127 found_dir="$additional_libdir"
20128 found_so="$additional_libdir/lib$name.$shlibext"
20129 if test -f "$additional_libdir/lib$name.la"; then
20130 found_la="$additional_libdir/lib$name.la"
20133 if test -f "$additional_libdir/lib$name.$libext"; then
20134 found_dir="$additional_libdir"
20135 found_a="$additional_libdir/lib$name.$libext"
20136 if test -f "$additional_libdir/lib$name.la"; then
20137 found_la="$additional_libdir/lib$name.la"
20142 if test "X$found_dir" = "X"; then
20143 for x in $LDFLAGS $LTLIBINTL; do
20145 acl_save_prefix="$prefix"
20146 prefix="$acl_final_prefix"
20147 acl_save_exec_prefix="$exec_prefix"
20148 exec_prefix="$acl_final_exec_prefix"
20150 exec_prefix="$acl_save_exec_prefix"
20151 prefix="$acl_save_prefix"
20155 dir=`echo "X$x" | sed -e 's/^X-L//'`
20156 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20158 found_so="$dir/lib$name.$shlibext"
20159 if test -f "$dir/lib$name.la"; then
20160 found_la="$dir/lib$name.la"
20163 if test -f "$dir/lib$name.$libext"; then
20165 found_a="$dir/lib$name.$libext"
20166 if test -f "$dir/lib$name.la"; then
20167 found_la="$dir/lib$name.la"
20173 if test "X$found_dir" != "X"; then
20178 if test "X$found_dir" != "X"; then
20179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20180 if test "X$found_so" != "X"; then
20181 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20182 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20185 for x in $ltrpathdirs; do
20186 if test "X$x" = "X$found_dir"; then
20191 if test -z "$haveit"; then
20192 ltrpathdirs="$ltrpathdirs $found_dir"
20194 if test "$hardcode_direct" = yes; then
20195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20197 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20198 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20200 for x in $rpathdirs; do
20201 if test "X$x" = "X$found_dir"; then
20206 if test -z "$haveit"; then
20207 rpathdirs="$rpathdirs $found_dir"
20211 for x in $LDFLAGS $LIBINTL; do
20213 acl_save_prefix="$prefix"
20214 prefix="$acl_final_prefix"
20215 acl_save_exec_prefix="$exec_prefix"
20216 exec_prefix="$acl_final_exec_prefix"
20218 exec_prefix="$acl_save_exec_prefix"
20219 prefix="$acl_save_prefix"
20221 if test "X$x" = "X-L$found_dir"; then
20226 if test -z "$haveit"; then
20227 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20229 if test "$hardcode_minus_L" != no; then
20230 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20232 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20238 if test "X$found_a" != "X"; then
20239 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20241 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20244 additional_includedir=
20245 case "$found_dir" in
20247 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20248 additional_includedir="$basedir/include"
20251 if test "X$additional_includedir" != "X"; then
20252 if test "X$additional_includedir" != "X/usr/include"; then
20254 if test "X$additional_includedir" = "X/usr/local/include"; then
20255 if test -n "$GCC"; then
20257 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20261 if test -z "$haveit"; then
20262 for x in $CPPFLAGS $INCINTL; do
20264 acl_save_prefix="$prefix"
20265 prefix="$acl_final_prefix"
20266 acl_save_exec_prefix="$exec_prefix"
20267 exec_prefix="$acl_final_exec_prefix"
20269 exec_prefix="$acl_save_exec_prefix"
20270 prefix="$acl_save_prefix"
20272 if test "X$x" = "X-I$additional_includedir"; then
20277 if test -z "$haveit"; then
20278 if test -d "$additional_includedir"; then
20279 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20285 if test -n "$found_la"; then
20286 save_libdir="$libdir"
20287 case "$found_la" in
20288 */* | *\\*) . "$found_la" ;;
20289 *) . "./$found_la" ;;
20291 libdir="$save_libdir"
20292 for dep in $dependency_libs; do
20295 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20296 if test "X$additional_libdir" != "X/usr/lib"; then
20298 if test "X$additional_libdir" = "X/usr/local/lib"; then
20299 if test -n "$GCC"; then
20301 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20305 if test -z "$haveit"; then
20307 for x in $LDFLAGS $LIBINTL; do
20309 acl_save_prefix="$prefix"
20310 prefix="$acl_final_prefix"
20311 acl_save_exec_prefix="$exec_prefix"
20312 exec_prefix="$acl_final_exec_prefix"
20314 exec_prefix="$acl_save_exec_prefix"
20315 prefix="$acl_save_prefix"
20317 if test "X$x" = "X-L$additional_libdir"; then
20322 if test -z "$haveit"; then
20323 if test -d "$additional_libdir"; then
20324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20328 for x in $LDFLAGS $LTLIBINTL; do
20330 acl_save_prefix="$prefix"
20331 prefix="$acl_final_prefix"
20332 acl_save_exec_prefix="$exec_prefix"
20333 exec_prefix="$acl_final_exec_prefix"
20335 exec_prefix="$acl_save_exec_prefix"
20336 prefix="$acl_save_prefix"
20338 if test "X$x" = "X-L$additional_libdir"; then
20343 if test -z "$haveit"; then
20344 if test -d "$additional_libdir"; then
20345 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20352 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20353 if test "$enable_rpath" != no; then
20355 for x in $rpathdirs; do
20356 if test "X$x" = "X$dir"; then
20361 if test -z "$haveit"; then
20362 rpathdirs="$rpathdirs $dir"
20365 for x in $ltrpathdirs; do
20366 if test "X$x" = "X$dir"; then
20371 if test -z "$haveit"; then
20372 ltrpathdirs="$ltrpathdirs $dir"
20377 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20383 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20384 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20390 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20397 if test "X$rpathdirs" != "X"; then
20398 if test -n "$hardcode_libdir_separator"; then
20400 for found_dir in $rpathdirs; do
20401 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20403 acl_save_libdir="$libdir"
20405 eval flag=\"$hardcode_libdir_flag_spec\"
20406 libdir="$acl_save_libdir"
20407 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20409 for found_dir in $rpathdirs; do
20410 acl_save_libdir="$libdir"
20411 libdir="$found_dir"
20412 eval flag=\"$hardcode_libdir_flag_spec\"
20413 libdir="$acl_save_libdir"
20414 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20418 if test "X$ltrpathdirs" != "X"; then
20419 for found_dir in $ltrpathdirs; do
20420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20425 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20426 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
20429 gt_save_CPPFLAGS="$CPPFLAGS"
20430 CPPFLAGS="$CPPFLAGS $INCINTL"
20431 gt_save_LIBS="$LIBS"
20432 LIBS="$LIBS $LIBINTL"
20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435 #include <libintl.h>
20436 extern int _nl_msg_cat_cntr;
20441 const char *_nl_expand_alias (const char *);
20445 bindtextdomain ("", "");
20446 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20451 if ac_fn_c_try_link "$LINENO"; then :
20452 gt_cv_func_gnugettext1_libintl=yes
20454 gt_cv_func_gnugettext1_libintl=no
20456 rm -f core conftest.err conftest.$ac_objext \
20457 conftest$ac_exeext conftest.$ac_ext
20458 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20459 LIBS="$LIBS $LIBICONV"
20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462 #include <libintl.h>
20463 extern int _nl_msg_cat_cntr;
20468 const char *_nl_expand_alias (const char *);
20472 bindtextdomain ("", "");
20473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20478 if ac_fn_c_try_link "$LINENO"; then :
20479 LIBINTL="$LIBINTL $LIBICONV"
20480 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20481 gt_cv_func_gnugettext1_libintl=yes
20484 rm -f core conftest.err conftest.$ac_objext \
20485 conftest$ac_exeext conftest.$ac_ext
20487 CPPFLAGS="$gt_save_CPPFLAGS"
20488 LIBS="$gt_save_LIBS"
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20491 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20494 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20495 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20496 && test "$PACKAGE" != gettext-runtime \
20497 && test "$PACKAGE" != gettext-tools; }; then
20498 gt_use_preinstalled_gnugettext=yes
20506 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20507 nls_cv_use_gnu_gettext=yes
20511 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20512 BUILD_INCLUDED_LIBINTL=yes
20513 USE_INCLUDED_LIBINTL=yes
20514 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20515 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20516 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20520 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20521 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20526 if test -n "$INTL_MACOSX_LIBS"; then
20527 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20528 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20529 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20530 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20534 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20535 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20537 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20545 $as_echo_n "checking whether to use NLS... " >&6; }
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20547 $as_echo "$USE_NLS" >&6; }
20548 if test "$USE_NLS" = "yes"; then
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20550 $as_echo_n "checking where the gettext function comes from... " >&6; }
20551 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20552 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20553 gt_source="external libintl"
20558 gt_source="included intl directory"
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20561 $as_echo "$gt_source" >&6; }
20564 if test "$USE_NLS" = "yes"; then
20566 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20567 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20569 $as_echo_n "checking how to link with libintl... " >&6; }
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20571 $as_echo "$LIBINTL" >&6; }
20573 for element in $INCINTL; do
20575 for x in $CPPFLAGS; do
20577 acl_save_prefix="$prefix"
20578 prefix="$acl_final_prefix"
20579 acl_save_exec_prefix="$exec_prefix"
20580 exec_prefix="$acl_final_exec_prefix"
20582 exec_prefix="$acl_save_exec_prefix"
20583 prefix="$acl_save_prefix"
20585 if test "X$x" = "X$element"; then
20590 if test -z "$haveit"; then
20591 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20598 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20601 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20609 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20610 BUILD_INCLUDED_LIBINTL=yes
20617 nls_cv_header_intl=
20618 nls_cv_header_libgt=
20630 if test "$USE_INCLUDED_LIBINTL" = yes; then
20631 INTLOBJS="\$(GETTOBJS)"
20635 INTL_LIBTOOL_SUFFIX_PREFIX=
20639 INTLLIBS="$LIBINTL"
20648 support_smartalloc=yes
20649 support_readline=yes
20653 support_wx_console=no
20654 support_tray_monitor=no
20659 support_static_tools=no
20660 support_static_fd=no
20661 support_static_sd=no
20662 support_static_dir=no
20663 support_static_cons=no
20665 build_client_only=no
20672 # Check whether --enable-gnome was given.
20673 if test "${enable_gnome+set}" = set; then :
20674 enableval=$enable_gnome;
20675 if test x$enableval = xyes; then
20684 if test x$support_gnome = xyes; then
20685 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20686 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20688 # AC_SUBST(GNOME_DIR)
20690 # Check whether --enable-bat was given.
20691 if test "${enable_bat+set}" = set; then :
20692 enableval=$enable_bat;
20693 if test x$enableval = xyes; then
20695 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20705 if test x$support_bat = xyes; then
20706 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20708 if test $pkg = 0; then
20709 BAT_DIR=src/qt-console
20711 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20729 # Check whether --enable-bwx-console was given.
20730 if test "${enable_bwx_console+set}" = set; then :
20731 enableval=$enable_bwx_console;
20732 if test x$enableval = xyes; then
20733 support_wx_console=yes
20741 if test x$support_wx_console = xyes; then
20742 abc=`$WXCONFIG $WXFLAGS --cppflags`
20744 if test $pkg = 0; then
20745 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20746 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20747 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20751 WX_DIR="src/wx-console"
20754 echo "wx-config program not found. bwx-console disabled."
20756 support_wx_console=no
20761 # Check whether --enable-tray-monitor was given.
20762 if test "${enable_tray_monitor+set}" = set; then :
20763 enableval=$enable_tray_monitor;
20764 if test x$enableval = xyes; then
20765 support_tray_monitor=yes
20773 if test x$support_tray_monitor = xyes; then
20774 abc=`$PKGCONFIG --exists gtk+-2.0`
20776 if test $pkg = 0; then
20777 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20778 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20781 TRAY_MONITOR_DIR=src/tray-monitor
20782 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20784 if test $pkg = 0; then
20786 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20793 # Check whether --enable-smartalloc was given.
20794 if test "${enable_smartalloc+set}" = set; then :
20795 enableval=$enable_smartalloc;
20796 if test x$enableval = xno; then
20797 support_smartalloc=no
20804 if test x$support_smartalloc = xyes; then
20806 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20810 # Check whether --enable-lockmgr was given.
20811 if test "${enable_lockmgr+set}" = set; then :
20812 enableval=$enable_lockmgr;
20813 if test x$enableval = xyes; then
20814 support_lockmgr=yes
20821 if test x$support_lockmgr = xyes; then
20823 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20828 # Check whether --enable-static-tools was given.
20829 if test "${enable_static_tools+set}" = set; then :
20830 enableval=$enable_static_tools;
20831 if test x$enableval = xyes; then
20832 if test x$use_libtool = xyes; then
20833 as_fn_error "Libtool is enabled, not compatible with static tools,
20834 please rerun configure with --disable-libtool" "$LINENO" 5
20836 support_static_tools=yes
20844 if test x$support_static_tools = xyes; then
20845 TTOOL_LDFLAGS="-static"
20849 # Check whether --enable-static-fd was given.
20850 if test "${enable_static_fd+set}" = set; then :
20851 enableval=$enable_static_fd;
20852 if test x$enableval = xyes; then
20853 if test x$use_libtool = xyes; then
20854 as_fn_error "Libtool is enabled, not compatible with static tools,
20855 please rerun configure with --disable-libtool" "$LINENO" 5
20857 support_static_fd=yes
20865 if test x$support_static_fd = xyes; then
20866 STATIC_FD="static-bacula-fd"
20870 # Check whether --enable-static-sd was given.
20871 if test "${enable_static_sd+set}" = set; then :
20872 enableval=$enable_static_sd;
20873 if test x$enableval = xyes; then
20874 if test x$use_libtool = xyes; then
20875 as_fn_error "Libtool is enabled, not compatible with static tools,
20876 please rerun configure with --disable-libtool" "$LINENO" 5
20878 support_static_sd=yes
20886 if test x$support_static_sd = xyes; then
20887 STATIC_SD="static-bacula-sd"
20891 # Check whether --enable-static-dir was given.
20892 if test "${enable_static_dir+set}" = set; then :
20893 enableval=$enable_static_dir;
20894 if test x$enableval = xyes; then
20895 if test x$use_libtool = xyes; then
20896 as_fn_error "Libtool is enabled, not compatible with static tools,
20897 please rerun configure with --disable-libtool" "$LINENO" 5
20899 support_static_dir=yes
20907 if test x$support_static_dir = xyes; then
20908 STATIC_DIR="static-bacula-dir"
20912 # Check whether --enable-static-cons was given.
20913 if test "${enable_static_cons+set}" = set; then :
20914 enableval=$enable_static_cons;
20915 if test x$enableval = xyes; then
20916 if test x$use_libtool = xyes; then
20917 as_fn_error "Libtool is enabled, not compatible with static tools,
20918 please rerun configure with --disable-libtool" "$LINENO" 5
20920 support_static_cons=yes
20930 if test x$support_static_cons = xyes; then
20931 STATIC_CONS="static-bconsole"
20932 STATIC_GNOME_CONS="static-bgnome-console"
20933 STATIC_WX_CONS="static-bwx-console"
20939 # Check whether --enable-client-only was given.
20940 if test "${enable_client_only+set}" = set; then :
20941 enableval=$enable_client_only;
20942 if test x$enableval = xyes; then
20943 build_client_only=yes
20951 if test x$build_client_only = xno; then
20958 # Check whether --enable-build-dird was given.
20959 if test "${enable_build_dird+set}" = set; then :
20960 enableval=$enable_build_dird;
20961 if test x$enableval = xno; then
20968 if test x$build_dird = xyes; then
20969 DIRD_DIR="src/dird"
20970 DIR_TOOLS="DIRTOOLS"
20973 DIR_TOOLS="NODIRTOOLS"
20978 # Check whether --enable-build-stored was given.
20979 if test "${enable_build_stored+set}" = set; then :
20980 enableval=$enable_build_stored;
20981 if test x$enableval = xno; then
20988 if test x$build_stored = xyes; then
20989 STORED_DIR="src/stored"
20995 # Check whether --enable-conio was given.
20996 if test "${enable_conio+set}" = set; then :
20997 enableval=$enable_conio;
20998 if test x$enableval = xno; then
21008 # Check whether --enable-ipv6 was given.
21009 if test "${enable_ipv6+set}" = set; then :
21010 enableval=$enable_ipv6;
21011 if test x$enableval = xno; then
21019 if test x$support_ipv6 = xyes; then
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21022 #include <sys/types.h>
21023 #include <sys/socket.h>
21024 #include <netinet/in.h>
21028 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21033 if ac_fn_c_try_link "$LINENO"; then :
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21042 if test x$support_ipv6 = xyes; then
21044 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21049 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21050 if test "x$ac_cv_header_curses_h" = x""yes; then :
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21053 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21054 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21055 $as_echo_n "(cached) " >&6
21057 ac_check_lib_save_LIBS=$LIBS
21058 LIBS="-ltinfo $LIBS"
21059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21060 /* end confdefs.h. */
21062 /* Override any GCC internal prototype to avoid an error.
21063 Use char because int might match the return type of a GCC
21064 builtin and then its argument prototype would still apply. */
21077 if ac_fn_c_try_link "$LINENO"; then :
21078 ac_cv_lib_tinfo_tgetent=yes
21080 ac_cv_lib_tinfo_tgetent=no
21082 rm -f core conftest.err conftest.$ac_objext \
21083 conftest$ac_exeext conftest.$ac_ext
21084 LIBS=$ac_check_lib_save_LIBS
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21087 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21088 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21093 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21094 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21097 ac_check_lib_save_LIBS=$LIBS
21098 LIBS="-lncurses $LIBS"
21099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21100 /* end confdefs.h. */
21102 /* Override any GCC internal prototype to avoid an error.
21103 Use char because int might match the return type of a GCC
21104 builtin and then its argument prototype would still apply. */
21117 if ac_fn_c_try_link "$LINENO"; then :
21118 ac_cv_lib_ncurses_tgetent=yes
21120 ac_cv_lib_ncurses_tgetent=no
21122 rm -f core conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124 LIBS=$ac_check_lib_save_LIBS
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21127 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21128 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21129 TERM_LIB="-lncurses"
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21133 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21134 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21135 $as_echo_n "(cached) " >&6
21137 ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-ltermcap $LIBS"
21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h. */
21142 /* Override any GCC internal prototype to avoid an error.
21143 Use char because int might match the return type of a GCC
21144 builtin and then its argument prototype would still apply. */
21157 if ac_fn_c_try_link "$LINENO"; then :
21158 ac_cv_lib_termcap_tgetent=yes
21160 ac_cv_lib_termcap_tgetent=no
21162 rm -f core conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21164 LIBS=$ac_check_lib_save_LIBS
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21167 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21168 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21169 TERM_LIB="-ltermcap"
21180 for ac_header in curses.h
21182 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21183 if test "x$ac_cv_header_curses_h" = x""yes; then :
21184 cat >>confdefs.h <<_ACEOF
21185 #define HAVE_CURSES_H 1
21192 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21193 if test "x$ac_cv_header_term_h" = x""yes; then :
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21195 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21196 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21199 ac_check_lib_save_LIBS=$LIBS
21200 LIBS="-lcurses $LIBS"
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h. */
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21219 if ac_fn_c_try_link "$LINENO"; then :
21220 ac_cv_lib_curses_tgetent=yes
21222 ac_cv_lib_curses_tgetent=no
21224 rm -f core conftest.err conftest.$ac_objext \
21225 conftest$ac_exeext conftest.$ac_ext
21226 LIBS=$ac_check_lib_save_LIBS
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21229 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21230 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21231 TERM_LIB="-lcurses"
21245 if test x$support_conio = xyes; then
21246 if test x$TERM_LIB != x; then
21247 CONS_LIBS=$TERM_LIB
21251 support_readline=no
21253 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21256 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21261 # Check whether --enable-readline was given.
21262 if test "${enable_readline+set}" = set; then :
21263 enableval=$enable_readline;
21264 if test x$enableval = xno; then
21265 support_readline=no
21271 if test x$TERM_LIB = x ; then
21272 support_readline=no
21277 if test x$support_readline = xyes; then
21279 # Check whether --with-readline was given.
21280 if test "${with_readline+set}" = set; then :
21281 withval=$with_readline;
21282 case "$with_readline" in
21287 if test -f ${with_readline}/readline.h; then
21288 CONS_INC="-I${with_readline}"
21289 CONS_LDFLAGS="-L$with_readline"
21290 elif test -f ${with_readline}/include/readline/readline.h; then
21291 CONS_INC="-I${with_readline}/include/readline"
21292 CONS_LDFLAGS="-L${with_readline}/lib"
21293 with_readline="${with_readline}/include/readline"
21295 with_readline="/usr/include/readline"
21298 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21299 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21300 eval as_val=\$$as_ac_Header
21301 if test "x$as_val" = x""yes; then :
21304 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21306 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21312 echo "readline.h not found. readline turned off ..."
21324 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21325 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21328 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21331 CONS_INC="-I/usr/include/readline"
21332 CONS_LIBS="-lreadline $TERM_LIB"
21336 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21337 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21338 eval as_val=\$$as_ac_Header
21339 if test "x$as_val" = x""yes; then :
21342 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21345 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21346 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21347 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21348 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21353 echo "readline.h not found. readline turned off ..."
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21381 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21382 if test "${ac_cv_header_stat_broken+set}" = set; then :
21383 $as_echo_n "(cached) " >&6
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <sys/types.h>
21388 #include <sys/stat.h>
21390 #if defined S_ISBLK && defined S_IFDIR
21391 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21394 #if defined S_ISBLK && defined S_IFCHR
21395 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21398 #if defined S_ISLNK && defined S_IFREG
21399 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21402 #if defined S_ISSOCK && defined S_IFREG
21403 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408 ac_cv_header_stat_broken=no
21410 ac_cv_header_stat_broken=yes
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21415 $as_echo "$ac_cv_header_stat_broken" >&6; }
21416 if test $ac_cv_header_stat_broken = yes; then
21418 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21422 ac_header_dirent=no
21423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21424 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21426 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21428 $as_echo_n "(cached) " >&6
21430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21431 /* end confdefs.h. */
21432 #include <sys/types.h>
21444 if ac_fn_c_try_compile "$LINENO"; then :
21445 eval "$as_ac_Header=yes"
21447 eval "$as_ac_Header=no"
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 eval ac_res=\$$as_ac_Header
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21453 $as_echo "$ac_res" >&6; }
21454 eval as_val=\$$as_ac_Header
21455 if test "x$as_val" = x""yes; then :
21456 cat >>confdefs.h <<_ACEOF
21457 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21460 ac_header_dirent=$ac_hdr; break
21464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21465 if test $ac_header_dirent = dirent.h; then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21467 $as_echo_n "checking for library containing opendir... " >&6; }
21468 if test "${ac_cv_search_opendir+set}" = set; then :
21469 $as_echo_n "(cached) " >&6
21471 ac_func_search_save_LIBS=$LIBS
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21490 for ac_lib in '' dir; do
21491 if test -z "$ac_lib"; then
21492 ac_res="none required"
21495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21497 if ac_fn_c_try_link "$LINENO"; then :
21498 ac_cv_search_opendir=$ac_res
21500 rm -f core conftest.err conftest.$ac_objext \
21502 if test "${ac_cv_search_opendir+set}" = set; then :
21506 if test "${ac_cv_search_opendir+set}" = set; then :
21509 ac_cv_search_opendir=no
21511 rm conftest.$ac_ext
21512 LIBS=$ac_func_search_save_LIBS
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21515 $as_echo "$ac_cv_search_opendir" >&6; }
21516 ac_res=$ac_cv_search_opendir
21517 if test "$ac_res" != no; then :
21518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21524 $as_echo_n "checking for library containing opendir... " >&6; }
21525 if test "${ac_cv_search_opendir+set}" = set; then :
21526 $as_echo_n "(cached) " >&6
21528 ac_func_search_save_LIBS=$LIBS
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h. */
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21547 for ac_lib in '' x; do
21548 if test -z "$ac_lib"; then
21549 ac_res="none required"
21552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21554 if ac_fn_c_try_link "$LINENO"; then :
21555 ac_cv_search_opendir=$ac_res
21557 rm -f core conftest.err conftest.$ac_objext \
21559 if test "${ac_cv_search_opendir+set}" = set; then :
21563 if test "${ac_cv_search_opendir+set}" = set; then :
21566 ac_cv_search_opendir=no
21568 rm conftest.$ac_ext
21569 LIBS=$ac_func_search_save_LIBS
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21572 $as_echo "$ac_cv_search_opendir" >&6; }
21573 ac_res=$ac_cv_search_opendir
21574 if test "$ac_res" != no; then :
21575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21585 eval as_val=\$$as_ac_var
21586 if test "x$as_val" = x""yes; then :
21587 cat >>confdefs.h <<_ACEOF
21588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594 for ac_func in nanosleep nl_langinfo
21596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21598 eval as_val=\$$as_ac_var
21599 if test "x$as_val" = x""yes; then :
21600 cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21607 for ac_header in varargs.h
21609 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21610 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21611 cat >>confdefs.h <<_ACEOF
21612 #define HAVE_VARARGS_H 1
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21622 $as_echo_n "checking for Python support... " >&6; }
21624 # Check whether --with-python was given.
21625 if test "${with_python+set}" = set; then :
21626 withval=$with_python;
21629 if test "$withval" != "no"; then
21630 if test "$withval" = "yes"; then
21631 if test -e /usr/bin/python-config ; then
21632 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21633 PYTHON_LIBS=`/usr/bin/python-config --libs`
21635 for python_root in /usr /usr/local /usr/sfw; do
21636 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21637 if test -f $python_root/include/${ver}/Python.h; then
21638 PYTHON_INCDIR=-I$python_root/include/${ver}
21639 if test -d $python_root/lib64/${ver}/config; then
21640 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21642 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21649 if test x$PYTHON_INCDIR = x; then
21650 if test -f $prefix/include/Python.h; then
21651 PYTHON_INCDIR=-I$prefix/include
21652 if test -d $prefix/lib64/config; then
21653 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21655 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21659 $as_echo "no" >&6; }
21660 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21665 if test -e $withval/bin/python-config ; then
21666 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21667 PYTHON_LIBS=`$withval/bin/python-config --libs`
21668 elif test -f $withval/Python.h; then
21669 PYTHON_INCDIR=-I$withval
21670 PYTHON_LIBS="-L$withval/config -lpython"
21671 elif test -f $withval/include/Python.h; then
21672 PYTHON_INCDIR=-I$withval/include
21673 if test -d $withval/lib64/config; then
21674 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21676 PYTHON_LIBS="-L$withval/lib/config -lpython"
21678 elif test -f $withval/include/python/Python.h; then
21679 PYTHON_INCDIR=-I$withval/include/python
21680 if test -d $withval/lib64/python/config; then
21681 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21683 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21692 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21695 $as_echo "yes" >&6; }
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21698 $as_echo "$as_me: checking for more Python libs" >&6;}
21699 saved_LIBS="$LIBS"; LIBS=
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21701 $as_echo_n "checking for library containing shm_open... " >&6; }
21702 if test "${ac_cv_search_shm_open+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21705 ac_func_search_save_LIBS=$LIBS
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21719 return shm_open ();
21724 for ac_lib in '' rt; do
21725 if test -z "$ac_lib"; then
21726 ac_res="none required"
21729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21731 if ac_fn_c_try_link "$LINENO"; then :
21732 ac_cv_search_shm_open=$ac_res
21734 rm -f core conftest.err conftest.$ac_objext \
21736 if test "${ac_cv_search_shm_open+set}" = set; then :
21740 if test "${ac_cv_search_shm_open+set}" = set; then :
21743 ac_cv_search_shm_open=no
21745 rm conftest.$ac_ext
21746 LIBS=$ac_func_search_save_LIBS
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21749 $as_echo "$ac_cv_search_shm_open" >&6; }
21750 ac_res=$ac_cv_search_shm_open
21751 if test "$ac_res" != no; then :
21752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21757 $as_echo_n "checking for openpty in -lutil... " >&6; }
21758 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21761 ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lutil $LIBS"
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h. */
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21781 if ac_fn_c_try_link "$LINENO"; then :
21782 ac_cv_lib_util_openpty=yes
21784 ac_cv_lib_util_openpty=no
21786 rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_lib_save_LIBS
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21791 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21792 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21793 cat >>confdefs.h <<_ACEOF
21794 #define HAVE_LIBUTIL 1
21797 LIBS="-lutil $LIBS"
21801 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21805 $as_echo "no" >&6; }
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21819 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21820 if test "x$ac_cv_func_socket" = x""yes; then :
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21822 $as_echo "using libc's socket" >&6; }
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21825 $as_echo_n "checking for socket in -lxnet... " >&6; }
21826 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21829 ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-lxnet $LIBS"
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h. */
21834 /* Override any GCC internal prototype to avoid an error.
21835 Use char because int might match the return type of a GCC
21836 builtin and then its argument prototype would still apply. */
21849 if ac_fn_c_try_link "$LINENO"; then :
21850 ac_cv_lib_xnet_socket=yes
21852 ac_cv_lib_xnet_socket=no
21854 rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21859 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21860 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21861 cat >>confdefs.h <<_ACEOF
21862 #define HAVE_LIBXNET 1
21865 LIBS="-lxnet $LIBS"
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21870 $as_echo_n "checking for socket in -lsocket... " >&6; }
21871 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21872 $as_echo_n "(cached) " >&6
21874 ac_check_lib_save_LIBS=$LIBS
21875 LIBS="-lsocket $LIBS"
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21879 /* Override any GCC internal prototype to avoid an error.
21880 Use char because int might match the return type of a GCC
21881 builtin and then its argument prototype would still apply. */
21894 if ac_fn_c_try_link "$LINENO"; then :
21895 ac_cv_lib_socket_socket=yes
21897 ac_cv_lib_socket_socket=no
21899 rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21901 LIBS=$ac_check_lib_save_LIBS
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21904 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21905 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21906 cat >>confdefs.h <<_ACEOF
21907 #define HAVE_LIBSOCKET 1
21910 LIBS="-lsocket $LIBS"
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21915 $as_echo_n "checking for socket in -linet... " >&6; }
21916 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21919 ac_check_lib_save_LIBS=$LIBS
21920 LIBS="-linet $LIBS"
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21924 /* Override any GCC internal prototype to avoid an error.
21925 Use char because int might match the return type of a GCC
21926 builtin and then its argument prototype would still apply. */
21939 if ac_fn_c_try_link "$LINENO"; then :
21940 ac_cv_lib_inet_socket=yes
21942 ac_cv_lib_inet_socket=no
21944 rm -f core conftest.err conftest.$ac_objext \
21945 conftest$ac_exeext conftest.$ac_ext
21946 LIBS=$ac_check_lib_save_LIBS
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21949 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21950 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_LIBINET 1
21955 LIBS="-linet $LIBS"
21965 # Check whether --with-tcp-wrappers was given.
21966 if test "${with_tcp_wrappers+set}" = set; then :
21967 withval=$with_tcp_wrappers;
21968 if test "x$withval" != "xno" ; then
21970 LIBS="$saved_LIBS -lwrap"
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21972 $as_echo_n "checking for library containing nanosleep... " >&6; }
21973 if test "${ac_cv_search_nanosleep+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 ac_func_search_save_LIBS=$LIBS
21977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21980 /* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21990 return nanosleep ();
21995 for ac_lib in '' rt; do
21996 if test -z "$ac_lib"; then
21997 ac_res="none required"
22000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22002 if ac_fn_c_try_link "$LINENO"; then :
22003 ac_cv_search_nanosleep=$ac_res
22005 rm -f core conftest.err conftest.$ac_objext \
22007 if test "${ac_cv_search_nanosleep+set}" = set; then :
22011 if test "${ac_cv_search_nanosleep+set}" = set; then :
22014 ac_cv_search_nanosleep=no
22016 rm conftest.$ac_ext
22017 LIBS=$ac_func_search_save_LIBS
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22020 $as_echo "$ac_cv_search_nanosleep" >&6; }
22021 ac_res=$ac_cv_search_nanosleep
22022 if test "$ac_res" != no; then :
22023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22028 $as_echo_n "checking for libwrap... " >&6; }
22029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h. */
22032 #include <sys/types.h>
22034 int deny_severity = 0;
22035 int allow_severity = 0;
22036 struct request_info *req;
22048 if ac_fn_c_try_link "$LINENO"; then :
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22051 $as_echo "yes" >&6; }
22053 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22061 LIBS="$saved_LIBS -lwrap -lnsl"
22062 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22066 #include <sys/types.h>
22068 int deny_severity = 0;
22069 int allow_severity = 0;
22070 struct request_info *req;
22082 if ac_fn_c_try_link "$LINENO"; then :
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22085 $as_echo "yes" >&6; }
22087 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22095 as_fn_error "*** libwrap missing" "$LINENO" 5
22099 rm -f core conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22113 $as_echo_n "checking for OpenSSL... " >&6; }
22115 # Check whether --with-openssl was given.
22116 if test "${with_openssl+set}" = set; then :
22117 withval=$with_openssl;
22118 with_openssl_directory=${withval}
22124 if test "x$with_openssl_directory" != "xno"; then
22125 OPENSSL_LIBS="-lssl -lcrypto"
22128 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22130 # Make sure the $with_openssl_directory also makes sense
22132 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22133 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22134 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22138 saved_LIBS="${LIBS}"
22139 saved_CFLAGS="${CFLAGS}"
22140 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22141 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h. */
22146 #include <openssl/ssl.h>
22152 CRYPTO_set_id_callback(NULL);
22158 if ac_fn_c_try_link "$LINENO"; then :
22161 support_crypto="yes"
22166 support_crypto="no"
22170 rm -f core conftest.err conftest.$ac_objext \
22171 conftest$ac_exeext conftest.$ac_ext
22173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h. */
22176 #include <openssl/evp.h>
22188 if ac_fn_c_try_link "$LINENO"; then :
22190 ac_cv_openssl_sha2="yes"
22194 ac_cv_openssl_sha2="no"
22198 rm -f core conftest.err conftest.$ac_objext \
22199 conftest$ac_exeext conftest.$ac_ext
22201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22202 /* end confdefs.h. */
22204 #include <openssl/evp.h>
22216 if ac_fn_c_try_link "$LINENO"; then :
22218 ac_cv_openssl_export="no"
22222 ac_cv_openssl_export="yes"
22226 rm -f core conftest.err conftest.$ac_objext \
22227 conftest$ac_exeext conftest.$ac_ext
22229 if test "$support_tls" = "yes"; then
22231 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22234 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22237 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22241 if test "$ac_cv_openssl_sha2" = "yes"; then
22243 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22247 if test "$ac_cv_openssl_export" = "yes"; then
22249 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22253 if test "$support_crypto" = "yes"; then
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22255 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22256 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22257 $as_echo_n "(cached) " >&6
22259 ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lcrypto $LIBS"
22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22270 char EVP_PKEY_encrypt_old ();
22274 return EVP_PKEY_encrypt_old ();
22279 if ac_fn_c_try_link "$LINENO"; then :
22280 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22282 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22284 rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext conftest.$ac_ext
22286 LIBS=$ac_check_lib_save_LIBS
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22289 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22290 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
22292 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22298 LIBS="${saved_LIBS}"
22299 CFLAGS="${saved_CFLAGS}"
22302 support_crypto="no"
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22307 $as_echo "$support_tls" >&6; }
22309 if test "$support_tls" = "no"; then
22313 if test "$support_crypto" = "no"; then
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22322 $as_echo_n "checking for library containing dlopen... " >&6; }
22323 if test "${ac_cv_search_dlopen+set}" = set; then :
22324 $as_echo_n "(cached) " >&6
22326 ac_func_search_save_LIBS=$LIBS
22327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h. */
22330 /* Override any GCC internal prototype to avoid an error.
22331 Use char because int might match the return type of a GCC
22332 builtin and then its argument prototype would still apply. */
22345 for ac_lib in '' dl; do
22346 if test -z "$ac_lib"; then
22347 ac_res="none required"
22350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22352 if ac_fn_c_try_link "$LINENO"; then :
22353 ac_cv_search_dlopen=$ac_res
22355 rm -f core conftest.err conftest.$ac_objext \
22357 if test "${ac_cv_search_dlopen+set}" = set; then :
22361 if test "${ac_cv_search_dlopen+set}" = set; then :
22364 ac_cv_search_dlopen=no
22366 rm conftest.$ac_ext
22367 LIBS=$ac_func_search_save_LIBS
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22370 $as_echo "$ac_cv_search_dlopen" >&6; }
22371 ac_res=$ac_cv_search_dlopen
22372 if test "$ac_res" != no; then :
22373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22378 working_dir=`eval echo ${prefix}/var/bacula/working`
22380 # Check whether --with-working-dir was given.
22381 if test "${with_working_dir+set}" = set; then :
22382 withval=$with_working_dir;
22383 if test "x$withval" != "xno" ; then
22384 working_dir=$withval
22395 # Check whether --with-archivedir was given.
22396 if test "${with_archivedir+set}" = set; then :
22397 withval=$with_archivedir;
22398 if test "x$withval" != "xno" ; then
22399 archivedir=$withval
22408 basename=`hostname`
22410 # Check whether --with-basename was given.
22411 if test "${with_basename+set}" = set; then :
22412 withval=$with_basename;
22413 if test "x$withval" != "xno" ; then
22423 hostname=`uname -n | cut -d '.' -f 1`
22424 if test x${hostname} = x ; then
22425 hostname="localhost"
22428 # Check whether --with-hostname was given.
22429 if test "${with_hostname+set}" = set; then :
22430 withval=$with_hostname;
22431 if test "x$withval" != "xno" ; then
22442 scriptdir=`eval echo ${sysconfdir}`
22444 # Check whether --with-scriptdir was given.
22445 if test "${with_scriptdir+set}" = set; then :
22446 withval=$with_scriptdir;
22447 if test "x$withval" != "xno" ; then
22460 # Check whether --with-bsrdir was given.
22461 if test "${with_bsrdir+set}" = set; then :
22462 withval=$with_bsrdir;
22463 if test "x$withval" != "xno" ; then
22475 # Check whether --with-logdir was given.
22476 if test "${with_logdir+set}" = set; then :
22477 withval=$with_logdir;
22478 if test "x$withval" != "xno" ; then
22489 # ------------------------------------------
22490 # Where to place plugindir (plugin files)
22491 # ------------------------------------------
22492 plugindir=`eval echo ${libdir}`
22494 # Check whether --with-plugindir was given.
22495 if test "${with_plugindir+set}" = set; then :
22496 withval=$with_plugindir;
22497 if test "x$withval" != "xno" ; then
22507 dump_email=root@localhost
22509 # Check whether --with-dump-email was given.
22510 if test "${with_dump_email+set}" = set; then :
22511 withval=$with_dump_email;
22512 if test "x$withval" != "xno" ; then
22513 dump_email=$withval
22522 job_email=root@localhost
22524 # Check whether --with-job-email was given.
22525 if test "${with_job_email+set}" = set; then :
22526 withval=$with_job_email;
22527 if test "x$withval" != "xno" ; then
22537 smtp_host=localhost
22539 # Check whether --with-smtp_host was given.
22540 if test "${with_smtp_host+set}" = set; then :
22541 withval=$with_smtp_host;
22542 if test "x$withval" != "xno" ; then
22554 # Check whether --with-pid-dir was given.
22555 if test "${with_pid_dir+set}" = set; then :
22556 withval=$with_pid_dir;
22557 if test "x$withval" != "xno" ; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define _PATH_BACULA_PIDDIR "$piddir"
22571 subsysdir=/var/run/subsys
22572 if test -d /var/run/subsys; then
22573 subsysdir=/var/run/subsys
22574 elif test -d /var/lock/subsys; then
22575 subsysdir=/var/lock/subsys
22577 subsysdir=/var/run/subsys
22580 # Check whether --with-subsys-dir was given.
22581 if test "${with_subsys_dir+set}" = set; then :
22582 withval=$with_subsys_dir;
22583 if test "x$withval" != "xno" ; then
22595 # Check whether --with-baseport was given.
22596 if test "${with_baseport+set}" = set; then :
22597 withval=$with_baseport;
22598 if test "x$withval" != "xno" ; then
22607 dir_port=`expr $baseport`
22608 fd_port=`expr $baseport + 1`
22609 sd_port=`expr $fd_port + 1`
22617 # Check whether --with-dir-password was given.
22618 if test "${with_dir_password+set}" = set; then :
22619 withval=$with_dir_password;
22620 if test "x$withval" != "xno" ; then
22621 dir_password=$withval
22628 if test "x$dir_password" = "x" ; then
22629 if test "x$OPENSSL" = "xnone" ; then
22630 key=`autoconf/randpass 33`
22632 key=`openssl rand -base64 33`
22639 # Check whether --with-fd-password was given.
22640 if test "${with_fd_password+set}" = set; then :
22641 withval=$with_fd_password;
22642 if test "x$withval" != "xno" ; then
22643 fd_password=$withval
22650 if test "x$fd_password" = "x" ; then
22651 if test "x$OPENSSL" = "xnone" ; then
22652 key=`autoconf/randpass 37`
22654 key=`openssl rand -base64 33`
22661 # Check whether --with-sd-password was given.
22662 if test "${with_sd_password+set}" = set; then :
22663 withval=$with_sd_password;
22664 if test "x$withval" != "xno" ; then
22665 sd_password=$withval
22672 if test "x$sd_password" = "x" ; then
22673 if test "x$OPENSSL" = "xnone" ; then
22674 key=`autoconf/randpass 41`
22676 key=`openssl rand -base64 33`
22683 # Check whether --with-mon-dir-password was given.
22684 if test "${with_mon_dir_password+set}" = set; then :
22685 withval=$with_mon_dir_password;
22686 if test "x$withval" != "xno" ; then
22687 mon_dir_password=$withval
22694 if test "x$mon_dir_password" = "x" ; then
22695 if test "x$OPENSSL" = "xnone" ; then
22696 key=`autoconf/randpass 33`
22698 key=`openssl rand -base64 33`
22700 mon_dir_password=$key
22705 # Check whether --with-mon-fd-password was given.
22706 if test "${with_mon_fd_password+set}" = set; then :
22707 withval=$with_mon_fd_password;
22708 if test "x$withval" != "xno" ; then
22709 mon_fd_password=$withval
22716 if test "x$mon_fd_password" = "x" ; then
22717 if test "x$OPENSSL" = "xnone" ; then
22718 key=`autoconf/randpass 37`
22720 key=`openssl rand -base64 33`
22722 mon_fd_password=$key
22727 # Check whether --with-mon-sd-password was given.
22728 if test "${with_mon_sd_password+set}" = set; then :
22729 withval=$with_mon_sd_password;
22730 if test "x$withval" != "xno" ; then
22731 mon_sd_password=$withval
22738 if test "x$mon_sd_password" = "x" ; then
22739 if test "x$OPENSSL" = "xnone" ; then
22740 key=`autoconf/randpass 41`
22742 key=`openssl rand -base64 33`
22744 mon_sd_password=$key
22756 # Check whether --with-db_name was given.
22757 if test "${with_db_name+set}" = set; then :
22758 withval=$with_db_name;
22759 if test "x$withval" != "x" ; then
22770 # Check whether --with-db_user was given.
22771 if test "${with_db_user+set}" = set; then :
22772 withval=$with_db_user;
22773 if test "x$withval" != "x" ; then
22784 # Check whether --with-db_password was given.
22785 if test "${with_db_password+set}" = set; then :
22786 withval=$with_db_password;
22787 if test "x$withval" != "x" ; then
22788 db_password=$withval
22798 # Check whether --with-db_port was given.
22799 if test "${with_db_port+set}" = set; then :
22800 withval=$with_db_port;
22801 if test "x$withval" != "x" ; then
22811 # Handle users and groups for each daemon
22815 # Check whether --with-dir_user was given.
22816 if test "${with_dir_user+set}" = set; then :
22817 withval=$with_dir_user;
22818 if test "x$withval" != "x" ; then
22828 # Check whether --with-dir_group was given.
22829 if test "${with_dir_group+set}" = set; then :
22830 withval=$with_dir_group;
22831 if test "x$withval" != "x" ; then
22841 # Check whether --with-sd_user was given.
22842 if test "${with_sd_user+set}" = set; then :
22843 withval=$with_sd_user;
22844 if test "x$withval" != "x" ; then
22854 # Check whether --with-sd_group was given.
22855 if test "${with_sd_group+set}" = set; then :
22856 withval=$with_sd_group;
22857 if test "x$withval" != "x" ; then
22867 # Check whether --with-fd_user was given.
22868 if test "${with_fd_user+set}" = set; then :
22869 withval=$with_fd_user;
22870 if test "x$withval" != "x" ; then
22880 # Check whether --with-fd_group was given.
22881 if test "${with_fd_group+set}" = set; then :
22882 withval=$with_fd_group;
22883 if test "x$withval" != "x" ; then
22900 # Check whether --with-sbin-perm was given.
22901 if test "${with_sbin_perm+set}" = set; then :
22902 withval=$with_sbin_perm;
22903 if test "x$withval" != "x" ; then
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22915 $as_echo_n "checking for PostgreSQL support... " >&6; }
22917 # Check whether --with-postgresql was given.
22918 if test "${with_postgresql+set}" = set; then :
22919 withval=$with_postgresql;
22920 if test "$withval" != "no"; then
22921 if test "$withval" = "yes"; then
22922 PG_CONFIG=`which pg_config`
22923 if test -n "$PG_CONFIG"; then
22924 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22925 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22926 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22927 elif test -f /usr/local/include/libpq-fe.h; then
22928 POSTGRESQL_INCDIR=/usr/local/include
22929 if test -d /usr/local/lib64; then
22930 POSTGRESQL_LIBDIR=/usr/local/lib64
22932 POSTGRESQL_LIBDIR=/usr/local/lib
22934 POSTGRESQL_BINDIR=/usr/local/bin
22935 elif test -f /usr/include/libpq-fe.h; then
22936 POSTGRESQL_INCDIR=/usr/include
22937 if test -d /usr/lib64; then
22938 POSTGRESQL_LIBDIR=/usr/lib64
22940 POSTGRESQL_LIBDIR=/usr/lib
22942 POSTGRESQL_BINDIR=/usr/bin
22943 elif test -f /usr/include/pgsql/libpq-fe.h; then
22944 POSTGRESQL_INCDIR=/usr/include/pgsql
22945 if test -d /usr/lib64/pgsql; then
22946 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22948 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22950 POSTGRESQL_BINDIR=/usr/bin
22951 elif test -f /usr/include/postgresql/libpq-fe.h; then
22952 POSTGRESQL_INCDIR=/usr/include/postgresql
22953 if test -d /usr/lib64/postgresql; then
22954 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22956 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22958 POSTGRESQL_BINDIR=/usr/bin
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961 $as_echo "no" >&6; }
22962 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22964 elif test -f $withval/include/libpq-fe.h; then
22965 POSTGRESQL_INCDIR=$withval/include
22966 POSTGRESQL_LIBDIR=$withval/lib
22967 POSTGRESQL_BINDIR=$withval/bin
22968 elif test -f $withval/include/postgresql/libpq-fe.h; then
22969 POSTGRESQL_INCDIR=$withval/include/postgresql
22970 if test -d $withval/lib64; then
22971 POSTGRESQL_LIBDIR=$withval/lib64
22973 POSTGRESQL_LIBDIR=$withval/lib
22975 POSTGRESQL_BINDIR=$withval/bin
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22978 $as_echo "no" >&6; }
22979 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22982 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22985 $as_echo "yes" >&6; }
22987 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22988 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22989 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22990 if test "x$ac_cv_func_crypt" = x""yes; then :
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22994 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22995 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22998 ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-lcrypt $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23003 /* Override any GCC internal prototype to avoid an error.
23004 Use char because int might match the return type of a GCC
23005 builtin and then its argument prototype would still apply. */
23018 if ac_fn_c_try_link "$LINENO"; then :
23019 ac_cv_lib_crypt_crypt=yes
23021 ac_cv_lib_crypt_crypt=no
23023 rm -f core conftest.err conftest.$ac_objext \
23024 conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23028 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23029 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23030 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23035 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23036 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23038 if test -z "${db_backends}"; then
23039 db_backends="PostgreSQL"
23041 db_backends="${db_backends} PostgreSQL"
23043 if test -z "${DB_BACKENDS}"; then
23044 DB_BACKENDS="postgresql"
23046 DB_BACKENDS="${DB_BACKENDS} postgresql"
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23050 $as_echo "no" >&6; }
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23056 $as_echo "no" >&6; }
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23068 $as_echo_n "checking for MySQL support... " >&6; }
23070 # Check whether --with-mysql was given.
23071 if test "${with_mysql+set}" = set; then :
23072 withval=$with_mysql;
23073 if test "$withval" != "no"; then
23074 if test "$withval" = "yes"; then
23075 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23076 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23077 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23078 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23079 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23081 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23083 MYSQL_BINDIR=/usr/local/mysql/bin
23084 elif test -f /usr/include/mysql/mysql.h; then
23085 MYSQL_INCDIR=/usr/include/mysql
23086 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23087 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23088 MYSQL_LIBDIR=/usr/lib64/mysql
23089 elif test -f /usr/lib64/libmysqlclient_r.a \
23090 -o -f /usr/lib64/libmysqlclient_r.so; then
23091 MYSQL_LIBDIR=/usr/lib64
23092 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23093 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23094 MYSQL_LIBDIR=/usr/lib/mysql
23096 MYSQL_LIBDIR=/usr/lib
23098 MYSQL_BINDIR=/usr/bin
23099 elif test -f /usr/include/mysql.h; then
23100 MYSQL_INCDIR=/usr/include
23101 if test -f /usr/lib64/libmysqlclient_r.a \
23102 -o -f /usr/lib64/libmysqlclient_r.so; then
23103 MYSQL_LIBDIR=/usr/lib64
23105 MYSQL_LIBDIR=/usr/lib
23107 MYSQL_BINDIR=/usr/bin
23108 elif test -f /usr/local/include/mysql/mysql.h; then
23109 MYSQL_INCDIR=/usr/local/include/mysql
23110 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23111 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23112 MYSQL_LIBDIR=/usr/local/lib64/mysql
23114 MYSQL_LIBDIR=/usr/local/lib/mysql
23116 MYSQL_BINDIR=/usr/local/bin
23117 elif test -f /usr/local/include/mysql.h; then
23118 MYSQL_INCDIR=/usr/local/include
23119 if test -f /usr/local/lib64/libmysqlclient_r.a \
23120 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23121 MYSQL_LIBDIR=/usr/local/lib64
23123 MYSQL_LIBDIR=/usr/local/lib
23125 MYSQL_BINDIR=/usr/local/bin
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23128 $as_echo "no" >&6; }
23129 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23132 if test -f $withval/include/mysql/mysql.h; then
23133 MYSQL_INCDIR=$withval/include/mysql
23134 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23135 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23136 MYSQL_LIBDIR=$withval/lib64/mysql
23137 elif test -f $withval/lib64/libmysqlclient_r.a \
23138 -o -f $withval/lib64/libmysqlclient_r.so; then
23139 MYSQL_LIBDIR=$withval/lib64
23140 elif test -f $withval/lib/libmysqlclient_r.a \
23141 -o -f $withval/lib/libmysqlclient_r.so; then
23142 MYSQL_LIBDIR=$withval/lib
23144 MYSQL_LIBDIR=$withval/lib/mysql
23146 MYSQL_BINDIR=$withval/bin
23147 elif test -f $withval/include/mysql.h; then
23148 MYSQL_INCDIR=$withval/include
23149 if test -f $withval/lib64/libmysqlclient_r.a \
23150 -o -f $withval/lib64/libmysqlclient_r.so; then
23151 MYSQL_LIBDIR=$withval/lib64
23153 MYSQL_LIBDIR=$withval/lib
23155 MYSQL_BINDIR=$withval/bin
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23158 $as_echo "no" >&6; }
23159 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23162 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23163 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23164 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23165 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23167 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23169 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23171 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23174 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23177 $as_echo "yes" >&6; }
23179 if test -z "${db_backends}" ; then
23180 db_backends="MySQL"
23182 db_backends="${db_backends} MySQL"
23184 if test -z "${DB_BACKENDS}" ; then
23185 DB_BACKENDS="mysql"
23187 DB_BACKENDS="${DB_BACKENDS} mysql"
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23191 $as_echo "no" >&6; }
23199 # Check whether --with-embedded-mysql was given.
23200 if test "${with_embedded_mysql+set}" = set; then :
23201 withval=$with_embedded_mysql;
23202 if test "$withval" != "no"; then
23203 if test "$withval" = "yes"; then
23204 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23205 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23206 if test -d /usr/local/mysql/lib64/mysql; then
23207 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23209 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23211 MYSQL_BINDIR=/usr/local/mysql/bin
23212 elif test -f /usr/include/mysql/mysql.h; then
23213 MYSQL_INCDIR=/usr/include/mysql
23214 if test -d /usr/lib64/mysql; then
23215 MYSQL_LIBDIR=/usr/lib64/mysql
23217 MYSQL_LIBDIR=/usr/lib/mysql
23219 MYSQL_BINDIR=/usr/bin
23220 elif test -f /usr/include/mysql.h; then
23221 MYSQL_INCDIR=/usr/include
23222 if test -d /usr/lib64; then
23223 MYSQL_LIBDIR=/usr/lib64
23225 MYSQL_LIBDIR=/usr/lib
23227 MYSQL_BINDIR=/usr/bin
23228 elif test -f /usr/local/include/mysql/mysql.h; then
23229 MYSQL_INCDIR=/usr/local/include/mysql
23230 if test -d /usr/local/lib64/mysql; then
23231 MYSQL_LIBDIR=/usr/local/lib64/mysql
23233 MYSQL_LIBDIR=/usr/local/lib/mysql
23235 MYSQL_BINDIR=/usr/local/bin
23236 elif test -f /usr/local/include/mysql.h; then
23237 MYSQL_INCDIR=/usr/local/include
23238 if test -d /usr/local/lib64; then
23239 MYSQL_LIBDIR=/usr/local/lib64
23241 MYSQL_LIBDIR=/usr/local/lib
23243 MYSQL_BINDIR=/usr/local/bin
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23246 $as_echo "no" >&6; }
23247 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23250 if test -f $withval/include/mysql/mysql.h; then
23251 MYSQL_INCDIR=$withval/include/mysql
23252 if test -d $withval/lib64/mysql; then
23253 MYSQL_LIBDIR=$withval/lib64/mysql
23255 MYSQL_LIBDIR=$withval/lib/mysql
23257 MYSQL_BINDIR=$withval/bin
23258 elif test -f $withval/include/mysql.h; then
23259 MYSQL_INCDIR=$withval/include
23260 if test -d $withval/lib64; then
23261 MYSQL_LIBDIR=$withval/lib64
23263 MYSQL_LIBDIR=$withval/lib
23265 MYSQL_BINDIR=$withval/bin
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23269 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23272 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23273 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23274 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23275 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23278 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23281 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23284 $as_echo "yes" >&6; }
23286 if test -z "${db_backends}"; then
23287 db_backends="MySQL"
23289 db_backends="${db_backends} MySQL"
23291 if test -z "${DB_BACKENDS}"; then
23292 DB_BACKENDS="mysql"
23294 DB_BACKENDS="${DB_BACKENDS} mysql"
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23298 $as_echo "no" >&6; }
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23313 $as_echo_n "checking for SQLite3 support... " >&6; }
23315 # Check whether --with-sqlite3 was given.
23316 if test "${with_sqlite3+set}" = set; then :
23317 withval=$with_sqlite3;
23318 if test "$withval" != "no"; then
23319 if test "$withval" = "yes"; then
23320 if test -f /usr/local/include/sqlite3.h; then
23321 SQLITE_INCDIR=/usr/local/include
23322 if test -d /usr/local/lib64; then
23323 SQLITE_LIBDIR=/usr/local/lib64
23325 SQLITE_LIBDIR=/usr/local/lib
23327 SQLITE_BINDIR=/usr/local/bin
23328 elif test -f /usr/include/sqlite3.h; then
23329 SQLITE_INCDIR=/usr/include
23330 if test -d /usr/lib64; then
23331 SQLITE_LIBDIR=/usr/lib64
23333 SQLITE_LIBDIR=/usr/lib
23335 SQLITE_BINDIR=/usr/bin
23336 elif test -f $prefix/include/sqlite3.h; then
23337 SQLITE_INCDIR=$prefix/include
23338 if test -d $prefix/lib64; then
23339 SQLITE_LIBDIR=$prefix/lib64
23341 SQLITE_LIBDIR=$prefix/lib
23343 SQLITE_BINDIR=$prefix/bin
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23346 $as_echo "no" >&6; }
23347 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23350 if test -f $withval/sqlite3.h; then
23351 SQLITE_INCDIR=$withval
23352 SQLITE_LIBDIR=$withval
23353 SQLITE_BINDIR=$withval
23354 elif test -f $withval/include/sqlite3.h; then
23355 SQLITE_INCDIR=$withval/include
23356 if test -d $withval/lib64; then
23357 SQLITE_LIBDIR=$withval/lib64
23359 SQLITE_LIBDIR=$withval/lib
23361 SQLITE_BINDIR=$withval/bin
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23365 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23368 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23369 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23370 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23371 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23374 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23377 $as_echo "yes" >&6; }
23379 if test -z "${db_backends}"; then
23380 db_backends="SQLite3"
23382 db_backends="${db_backends} SQLite3"
23384 if test -z "${DB_BACKENDS}"; then
23385 DB_BACKENDS="sqlite3"
23387 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23391 $as_echo "no" >&6; }
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23397 $as_echo "no" >&6; }
23407 #BA_CHECK_INGRES_DB
23411 #BA_CHECK_DBI_DRIVER
23413 if test "x${db_backends}" = "x" ; then
23416 echo "You have not specified either --enable-client-only or one of the"
23417 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23418 echo "This is not permitted. Please reconfigure."
23420 echo "Aborting the configuration ..."
23426 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23428 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23429 if test x$use_libtool = xno; then
23430 SHARED_CATALOG_TARGETS=""
23432 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23436 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23438 if test x$use_libtool = xno; then
23441 echo "You have specified two or more of the"
23442 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23443 echo "This is not permitted when not using libtool Please reconfigure."
23445 echo "Aborting the configuration ..."
23451 SHARED_CATALOG_TARGETS=""
23452 for db_type in ${DB_BACKENDS}
23454 if test -z "${SHARED_CATALOG_TARGETS}"; then
23455 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23457 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23463 if test x$use_libtool = xyes; then
23472 support_batch_insert=yes
23473 # Check whether --enable-batch-insert was given.
23474 if test "${enable_batch_insert+set}" = set; then :
23475 enableval=$enable_batch_insert;
23476 if test x$enableval = xno; then
23477 support_batch_insert=no
23484 if test x$support_batch_insert = xyes; then
23486 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23490 if test ! -z "$MYSQL_LIB"; then
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23492 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23493 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23494 $as_echo_n "(cached) " >&6
23496 ac_check_lib_save_LIBS=$LIBS
23497 LIBS="-lmysql_r $LIBS"
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499 /* end confdefs.h. */
23501 /* Override any GCC internal prototype to avoid an error.
23502 Use char because int might match the return type of a GCC
23503 builtin and then its argument prototype would still apply. */
23507 char mysql_thread_safe ();
23511 return mysql_thread_safe ();
23516 if ac_fn_c_try_link "$LINENO"; then :
23517 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23519 ac_cv_lib_mysql_r_mysql_thread_safe=no
23521 rm -f core conftest.err conftest.$ac_objext \
23522 conftest$ac_exeext conftest.$ac_ext
23523 LIBS=$ac_check_lib_save_LIBS
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23526 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23527 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23529 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23535 if test ! -z "SQLITE_LIB"; then
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23537 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23538 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23541 ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lsqlite3 $LIBS"
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h. */
23546 /* Override any GCC internal prototype to avoid an error.
23547 Use char because int might match the return type of a GCC
23548 builtin and then its argument prototype would still apply. */
23552 char sqlite3_threadsafe ();
23556 return sqlite3_threadsafe ();
23561 if ac_fn_c_try_link "$LINENO"; then :
23562 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23564 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23566 rm -f core conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext conftest.$ac_ext
23568 LIBS=$ac_check_lib_save_LIBS
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23571 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23572 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23574 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23580 if test ! -z "$POSTGRESQL_LIB"; then
23581 saved_LIBS="${LIBS}"
23582 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23585 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23586 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23587 $as_echo_n "(cached) " >&6
23589 ac_check_lib_save_LIBS=$LIBS
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23594 /* Override any GCC internal prototype to avoid an error.
23595 Use char because int might match the return type of a GCC
23596 builtin and then its argument prototype would still apply. */
23600 char PQisthreadsafe ();
23604 return PQisthreadsafe ();
23609 if ac_fn_c_try_link "$LINENO"; then :
23610 ac_cv_lib_pq_PQisthreadsafe=yes
23612 ac_cv_lib_pq_PQisthreadsafe=no
23614 rm -f core conftest.err conftest.$ac_objext \
23615 conftest$ac_exeext conftest.$ac_ext
23616 LIBS=$ac_check_lib_save_LIBS
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23619 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23620 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23622 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23627 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23628 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23631 ac_check_lib_save_LIBS=$LIBS
23633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634 /* end confdefs.h. */
23636 /* Override any GCC internal prototype to avoid an error.
23637 Use char because int might match the return type of a GCC
23638 builtin and then its argument prototype would still apply. */
23642 char PQputCopyData ();
23646 return PQputCopyData ();
23651 if ac_fn_c_try_link "$LINENO"; then :
23652 ac_cv_lib_pq_PQputCopyData=yes
23654 ac_cv_lib_pq_PQputCopyData=no
23656 rm -f core conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
23658 LIBS=$ac_check_lib_save_LIBS
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23661 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23662 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23664 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23668 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23669 if test $support_batch_insert = yes ; then
23671 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23676 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23678 echo "WARNING: Your PostgreSQL client library is too old to detect "
23679 echo "if it was compiled with --enable-thread-safety, consider to "
23680 echo "upgrade it in order to avoid problems with Batch insert mode"
23684 LIBS="${saved_LIBS}"
23687 if test ! -z "$DBI_LIBS"; then
23688 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23690 if test $DB_PROG = postgresql; then
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23692 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23693 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23694 $as_echo_n "(cached) " >&6
23696 ac_check_lib_save_LIBS=$LIBS
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23701 /* Override any GCC internal prototype to avoid an error.
23702 Use char because int might match the return type of a GCC
23703 builtin and then its argument prototype would still apply. */
23707 char PQisthreadsafe ();
23711 return PQisthreadsafe ();
23716 if ac_fn_c_try_link "$LINENO"; then :
23717 ac_cv_lib_pq_PQisthreadsafe=yes
23719 ac_cv_lib_pq_PQisthreadsafe=no
23721 rm -f core conftest.err conftest.$ac_objext \
23722 conftest$ac_exeext conftest.$ac_ext
23723 LIBS=$ac_check_lib_save_LIBS
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23726 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23727 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23728 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23733 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23734 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23735 $as_echo_n "(cached) " >&6
23737 ac_check_lib_save_LIBS=$LIBS
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23748 char PQputCopyData ();
23752 return PQputCopyData ();
23757 if ac_fn_c_try_link "$LINENO"; then :
23758 ac_cv_lib_pq_PQputCopyData=yes
23760 ac_cv_lib_pq_PQputCopyData=no
23762 rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23767 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23768 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23769 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23773 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23775 if test $pkg = 0; then
23776 if test $support_batch_insert = yes ; then
23778 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23789 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23792 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23793 if test -z "$CCOPTS"; then
23794 CCOPTS='-g -O2 -Wall'
23801 largefile_support="no"
23803 # Check whether --enable-largefile was given.
23804 if test "${enable_largefile+set}" = set; then :
23805 enableval=$enable_largefile;
23808 if test "$enable_largefile" != no; then
23809 if test -n "$ac_tool_prefix"; then
23810 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23811 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23813 $as_echo_n "checking for $ac_word... " >&6; }
23814 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23815 $as_echo_n "(cached) " >&6
23817 if test -n "$GETCONF"; then
23818 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23821 for as_dir in $PATH
23824 test -z "$as_dir" && as_dir=.
23825 for ac_exec_ext in '' $ac_executable_extensions; do
23826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23827 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23837 GETCONF=$ac_cv_prog_GETCONF
23838 if test -n "$GETCONF"; then
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23840 $as_echo "$GETCONF" >&6; }
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23843 $as_echo "no" >&6; }
23848 if test -z "$ac_cv_prog_GETCONF"; then
23849 ac_ct_GETCONF=$GETCONF
23850 # Extract the first word of "getconf", so it can be a program name with args.
23851 set dummy getconf; ac_word=$2
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23853 $as_echo_n "checking for $ac_word... " >&6; }
23854 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23857 if test -n "$ac_ct_GETCONF"; then
23858 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23861 for as_dir in $PATH
23864 test -z "$as_dir" && as_dir=.
23865 for ac_exec_ext in '' $ac_executable_extensions; do
23866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23867 ac_cv_prog_ac_ct_GETCONF="getconf"
23868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23877 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23878 if test -n "$ac_ct_GETCONF"; then
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23880 $as_echo "$ac_ct_GETCONF" >&6; }
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883 $as_echo "no" >&6; }
23886 if test "x$ac_ct_GETCONF" = x; then
23889 case $cross_compiling:$ac_tool_warned in
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23893 ac_tool_warned=yes ;;
23895 GETCONF=$ac_ct_GETCONF
23898 GETCONF="$ac_cv_prog_GETCONF"
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23902 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23903 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
23904 $as_echo_n "(cached) " >&6
23906 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23907 ac_cv_sys_largefile_CFLAGS=no
23909 # IRIX 6.2 and later require cc -n32.
23910 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23911 if test "$GCC" != yes; then
23912 ac_cv_sys_largefile_CFLAGS=-n32
23915 CC="$CC $ac_cv_sys_largefile_CFLAGS"
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h. */
23927 if ac_fn_c_try_link "$LINENO"; then :
23930 ac_cv_sys_largefile_CFLAGS=no
23932 rm -f core conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23939 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23941 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23942 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23945 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23946 ac_cv_sys_largefile_LDFLAGS=no
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23951 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23953 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23954 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23957 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23958 ac_cv_sys_largefile_LIBS=no
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23963 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23965 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23968 -D_FILE_OFFSET_BITS=*) ;;
23969 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23970 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23975 case "$CPPFLAGS" in
23976 '') CPPFLAGS="$ac_flag" ;;
23977 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23985 '') CFLAGS="$ac_flag" ;;
23986 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
23991 case "$ac_cv_sys_largefile_LDFLAGS" in
23995 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
23996 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
23999 case "$ac_cv_sys_largefile_LIBS" in
24003 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24004 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24008 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24009 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24010 $as_echo_n "(cached) " >&6
24012 ac_cv_sys_file_offset_bits=no
24013 ac_cv_sys_file_offset_bits=64
24014 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24016 -D_FILE_OFFSET_BITS)
24017 ac_cv_sys_file_offset_bits=1 ;;
24018 -D_FILE_OFFSET_BITS=*)
24019 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24025 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24026 if test "$ac_cv_sys_file_offset_bits" != no; then
24028 cat >>confdefs.h <<_ACEOF
24029 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24034 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24035 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24038 ac_cv_sys_largefile_source=no
24039 ac_cv_sys_largefile_source=1
24040 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24042 -D_LARGEFILE_SOURCE)
24043 ac_cv_sys_largefile_source=1 ;;
24044 -D_LARGEFILE_SOURCE=*)
24045 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24051 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24052 if test "$ac_cv_sys_largefile_source" != no; then
24054 cat >>confdefs.h <<_ACEOF
24055 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24060 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24061 if test "${ac_cv_sys_large_files+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24064 ac_cv_sys_large_files=no
24065 ac_cv_sys_large_files=1
24066 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24069 ac_cv_sys_large_files=1 ;;
24071 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24077 $as_echo "$ac_cv_sys_large_files" >&6; }
24078 if test "$ac_cv_sys_large_files" != no; then
24080 cat >>confdefs.h <<_ACEOF
24081 #define _LARGE_FILES $ac_cv_sys_large_files
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24089 $as_echo_n "checking for X... " >&6; }
24092 # Check whether --with-x was given.
24093 if test "${with_x+set}" = set; then :
24097 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24098 if test "x$with_x" = xno; then
24099 # The user explicitly disabled X.
24102 case $x_includes,$x_libraries in #(
24103 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24104 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24105 $as_echo_n "(cached) " >&6
24107 # One or both of the vars are not set, and there is no cached value.
24108 ac_x_includes=no ac_x_libraries=no
24109 rm -f -r conftest.dir
24110 if mkdir conftest.dir; then
24112 cat >Imakefile <<'_ACEOF'
24114 @echo incroot='${INCROOT}'
24116 @echo usrlibdir='${USRLIBDIR}'
24118 @echo libdir='${LIBDIR}'
24120 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24122 for ac_var in incroot usrlibdir libdir; do
24123 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24125 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24126 for ac_extension in a so sl dylib la dll; do
24127 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24128 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24129 ac_im_usrlibdir=$ac_im_libdir; break
24132 # Screen out bogus values from the imake configuration. They are
24133 # bogus both because they are the default anyway, and because
24134 # using them would break gcc on systems where it needs fixed includes.
24135 case $ac_im_incroot in
24136 /usr/include) ac_x_includes= ;;
24137 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24139 case $ac_im_usrlibdir in
24140 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24141 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24145 rm -f -r conftest.dir
24148 # Standard set of common directories for X headers.
24149 # Check X11 before X11Rn because it is often a symlink to the current release.
24163 /usr/local/X11/include
24164 /usr/local/X11R7/include
24165 /usr/local/X11R6/include
24166 /usr/local/X11R5/include
24167 /usr/local/X11R4/include
24169 /usr/local/include/X11
24170 /usr/local/include/X11R7
24171 /usr/local/include/X11R6
24172 /usr/local/include/X11R5
24173 /usr/local/include/X11R4
24177 /usr/XFree86/include/X11
24181 /usr/unsupported/include
24182 /usr/athena/include
24183 /usr/local/x11r5/include
24184 /usr/lpp/Xamples/include
24186 /usr/openwin/include
24187 /usr/openwin/share/include'
24189 if test "$ac_x_includes" = no; then
24190 # Guess where to find include files, by looking for Xlib.h.
24191 # First, try using that file with no special directory specified.
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24194 #include <X11/Xlib.h>
24196 if ac_fn_c_try_cpp "$LINENO"; then :
24197 # We can compile using X headers with no special include directory.
24200 for ac_dir in $ac_x_header_dirs; do
24201 if test -r "$ac_dir/X11/Xlib.h"; then
24202 ac_x_includes=$ac_dir
24207 rm -f conftest.err conftest.$ac_ext
24208 fi # $ac_x_includes = no
24210 if test "$ac_x_libraries" = no; then
24211 # Check for the libraries.
24212 # See if we find them without any special options.
24213 # Don't add to $LIBS permanently.
24216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217 /* end confdefs.h. */
24218 #include <X11/Xlib.h>
24227 if ac_fn_c_try_link "$LINENO"; then :
24229 # We can link X programs with no special library path.
24233 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24235 # Don't even attempt the hair of trying to link an X program!
24236 for ac_extension in a so sl dylib la dll; do
24237 if test -r "$ac_dir/libX11.$ac_extension"; then
24238 ac_x_libraries=$ac_dir
24244 rm -f core conftest.err conftest.$ac_objext \
24245 conftest$ac_exeext conftest.$ac_ext
24246 fi # $ac_x_libraries = no
24248 case $ac_x_includes,$ac_x_libraries in #(
24249 no,* | *,no | *\'*)
24250 # Didn't find X, or a directory has "'" in its name.
24251 ac_cv_have_x="have_x=no";; #(
24253 # Record where we found X for the cache.
24254 ac_cv_have_x="have_x=yes\
24255 ac_x_includes='$ac_x_includes'\
24256 ac_x_libraries='$ac_x_libraries'"
24262 eval "$ac_cv_have_x"
24265 if test "$have_x" != yes; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24267 $as_echo "$have_x" >&6; }
24270 # If each of the values was on the command line, it overrides each guess.
24271 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24272 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24273 # Update the cache value to reflect the command line values.
24274 ac_cv_have_x="have_x=yes\
24275 ac_x_includes='$x_includes'\
24276 ac_x_libraries='$x_libraries'"
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24278 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24281 if test "$no_x" = yes; then
24282 # Not all programs may use this symbol, but it does not hurt to define it.
24284 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24286 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24288 if test -n "$x_includes"; then
24289 X_CFLAGS="$X_CFLAGS -I$x_includes"
24292 # It would also be nice to do this for all -L options, not just this one.
24293 if test -n "$x_libraries"; then
24294 X_LIBS="$X_LIBS -L$x_libraries"
24295 # For Solaris; some versions of Sun CC require a space after -R and
24296 # others require no space. Words are not sufficient . . . .
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24298 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24299 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24300 ac_xsave_c_werror_flag=$ac_c_werror_flag
24301 ac_c_werror_flag=yes
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h. */
24313 if ac_fn_c_try_link "$LINENO"; then :
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24315 $as_echo "no" >&6; }
24316 X_LIBS="$X_LIBS -R$x_libraries"
24318 LIBS="$ac_xsave_LIBS -R $x_libraries"
24319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24330 if ac_fn_c_try_link "$LINENO"; then :
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24332 $as_echo "yes" >&6; }
24333 X_LIBS="$X_LIBS -R $x_libraries"
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24336 $as_echo "neither works" >&6; }
24338 rm -f core conftest.err conftest.$ac_objext \
24339 conftest$ac_exeext conftest.$ac_ext
24341 rm -f core conftest.err conftest.$ac_objext \
24342 conftest$ac_exeext conftest.$ac_ext
24343 ac_c_werror_flag=$ac_xsave_c_werror_flag
24344 LIBS=$ac_xsave_LIBS
24347 # Check for system-dependent libraries X programs must link with.
24348 # Do this before checking for the system-independent R6 libraries
24349 # (-lICE), since we may need -lsocket or whatever for X linking.
24351 if test "$ISC" = yes; then
24352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24354 # Martyn Johnson says this is needed for Ultrix, if the X
24355 # libraries were built with DECnet support. And Karl Berry says
24356 # the Alpha needs dnet_stub (dnet does not exist).
24357 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24361 /* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24367 char XOpenDisplay ();
24371 return XOpenDisplay ();
24376 if ac_fn_c_try_link "$LINENO"; then :
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24380 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24381 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24384 ac_check_lib_save_LIBS=$LIBS
24385 LIBS="-ldnet $LIBS"
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h. */
24389 /* Override any GCC internal prototype to avoid an error.
24390 Use char because int might match the return type of a GCC
24391 builtin and then its argument prototype would still apply. */
24399 return dnet_ntoa ();
24404 if ac_fn_c_try_link "$LINENO"; then :
24405 ac_cv_lib_dnet_dnet_ntoa=yes
24407 ac_cv_lib_dnet_dnet_ntoa=no
24409 rm -f core conftest.err conftest.$ac_objext \
24410 conftest$ac_exeext conftest.$ac_ext
24411 LIBS=$ac_check_lib_save_LIBS
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24414 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24415 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24416 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24419 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24421 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24422 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24423 $as_echo_n "(cached) " >&6
24425 ac_check_lib_save_LIBS=$LIBS
24426 LIBS="-ldnet_stub $LIBS"
24427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h. */
24430 /* Override any GCC internal prototype to avoid an error.
24431 Use char because int might match the return type of a GCC
24432 builtin and then its argument prototype would still apply. */
24440 return dnet_ntoa ();
24445 if ac_fn_c_try_link "$LINENO"; then :
24446 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24448 ac_cv_lib_dnet_stub_dnet_ntoa=no
24450 rm -f core conftest.err conftest.$ac_objext \
24451 conftest$ac_exeext conftest.$ac_ext
24452 LIBS=$ac_check_lib_save_LIBS
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24455 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24456 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24457 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS="$ac_xsave_LIBS"
24466 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24467 # to get the SysV transport functions.
24468 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24470 # The nsl library prevents programs from opening the X display
24471 # on Irix 5.2, according to T.E. Dickey.
24472 # The functions gethostbyname, getservbyname, and inet_addr are
24473 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24474 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24475 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24479 if test $ac_cv_func_gethostbyname = no; then
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24481 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24482 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24485 ac_check_lib_save_LIBS=$LIBS
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488 /* end confdefs.h. */
24490 /* Override any GCC internal prototype to avoid an error.
24491 Use char because int might match the return type of a GCC
24492 builtin and then its argument prototype would still apply. */
24496 char gethostbyname ();
24500 return gethostbyname ();
24505 if ac_fn_c_try_link "$LINENO"; then :
24506 ac_cv_lib_nsl_gethostbyname=yes
24508 ac_cv_lib_nsl_gethostbyname=no
24510 rm -f core conftest.err conftest.$ac_objext \
24511 conftest$ac_exeext conftest.$ac_ext
24512 LIBS=$ac_check_lib_save_LIBS
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24515 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24516 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24520 if test $ac_cv_lib_nsl_gethostbyname = no; then
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24522 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24523 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24526 ac_check_lib_save_LIBS=$LIBS
24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h. */
24531 /* Override any GCC internal prototype to avoid an error.
24532 Use char because int might match the return type of a GCC
24533 builtin and then its argument prototype would still apply. */
24537 char gethostbyname ();
24541 return gethostbyname ();
24546 if ac_fn_c_try_link "$LINENO"; then :
24547 ac_cv_lib_bsd_gethostbyname=yes
24549 ac_cv_lib_bsd_gethostbyname=no
24551 rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24556 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24557 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24564 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24565 # socket/setsockopt and other routines are undefined under SCO ODT
24566 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24567 # on later versions), says Simon Leinen: it contains gethostby*
24568 # variants that don't use the name server (or something). -lsocket
24569 # must be given before -lnsl if both are needed. We assume that
24570 # if connect needs -lnsl, so does gethostbyname.
24571 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24572 if test "x$ac_cv_func_connect" = x""yes; then :
24576 if test $ac_cv_func_connect = no; then
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24578 $as_echo_n "checking for connect in -lsocket... " >&6; }
24579 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24580 $as_echo_n "(cached) " >&6
24582 ac_check_lib_save_LIBS=$LIBS
24583 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 /* Override any GCC internal prototype to avoid an error.
24588 Use char because int might match the return type of a GCC
24589 builtin and then its argument prototype would still apply. */
24602 if ac_fn_c_try_link "$LINENO"; then :
24603 ac_cv_lib_socket_connect=yes
24605 ac_cv_lib_socket_connect=no
24607 rm -f core conftest.err conftest.$ac_objext \
24608 conftest$ac_exeext conftest.$ac_ext
24609 LIBS=$ac_check_lib_save_LIBS
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24612 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24613 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24614 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24619 # Guillermo Gomez says -lposix is necessary on A/UX.
24620 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24621 if test "x$ac_cv_func_remove" = x""yes; then :
24625 if test $ac_cv_func_remove = no; then
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24627 $as_echo_n "checking for remove in -lposix... " >&6; }
24628 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24629 $as_echo_n "(cached) " >&6
24631 ac_check_lib_save_LIBS=$LIBS
24632 LIBS="-lposix $LIBS"
24633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24634 /* end confdefs.h. */
24636 /* Override any GCC internal prototype to avoid an error.
24637 Use char because int might match the return type of a GCC
24638 builtin and then its argument prototype would still apply. */
24651 if ac_fn_c_try_link "$LINENO"; then :
24652 ac_cv_lib_posix_remove=yes
24654 ac_cv_lib_posix_remove=no
24656 rm -f core conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
24658 LIBS=$ac_check_lib_save_LIBS
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24661 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24662 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24668 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24669 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24670 if test "x$ac_cv_func_shmat" = x""yes; then :
24674 if test $ac_cv_func_shmat = no; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24676 $as_echo_n "checking for shmat in -lipc... " >&6; }
24677 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24680 ac_check_lib_save_LIBS=$LIBS
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24685 /* Override any GCC internal prototype to avoid an error.
24686 Use char because int might match the return type of a GCC
24687 builtin and then its argument prototype would still apply. */
24700 if ac_fn_c_try_link "$LINENO"; then :
24701 ac_cv_lib_ipc_shmat=yes
24703 ac_cv_lib_ipc_shmat=no
24705 rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24710 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24711 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24718 # Check for libraries that X11R6 Xt/Xaw programs need.
24719 ac_save_LDFLAGS=$LDFLAGS
24720 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24721 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24722 # check for ICE first), but we must link in the order -lSM -lICE or
24723 # we get undefined symbols. So assume we have SM if we have ICE.
24724 # These have to be linked with before -lX11, unlike the other
24725 # libraries we check for below, so use a different variable.
24726 # John Interrante, Karl Berry
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24728 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24729 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24732 ac_check_lib_save_LIBS=$LIBS
24733 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h. */
24737 /* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24743 char IceConnectionNumber ();
24747 return IceConnectionNumber ();
24752 if ac_fn_c_try_link "$LINENO"; then :
24753 ac_cv_lib_ICE_IceConnectionNumber=yes
24755 ac_cv_lib_ICE_IceConnectionNumber=no
24757 rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
24759 LIBS=$ac_check_lib_save_LIBS
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24762 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24763 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24767 LDFLAGS=$ac_save_LDFLAGS
24804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24806 eval as_val=\$$as_ac_Header
24807 if test "x$as_val" = x""yes; then :
24808 cat >>confdefs.h <<_ACEOF
24809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24817 $as_echo_n "checking for ANSI C header files... " >&6; }
24818 if test "${ac_cv_header_stdc+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h. */
24823 #include <stdlib.h>
24824 #include <stdarg.h>
24825 #include <string.h>
24836 if ac_fn_c_try_compile "$LINENO"; then :
24837 ac_cv_header_stdc=yes
24839 ac_cv_header_stdc=no
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24843 if test $ac_cv_header_stdc = yes; then
24844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h. */
24847 #include <string.h>
24850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24851 $EGREP "memchr" >/dev/null 2>&1; then :
24854 ac_cv_header_stdc=no
24860 if test $ac_cv_header_stdc = yes; then
24861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24864 #include <stdlib.h>
24867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24868 $EGREP "free" >/dev/null 2>&1; then :
24871 ac_cv_header_stdc=no
24877 if test $ac_cv_header_stdc = yes; then
24878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24879 if test "$cross_compiling" = yes; then :
24882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24883 /* end confdefs.h. */
24885 #include <stdlib.h>
24886 #if ((' ' & 0x0FF) == 0x020)
24887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24890 # define ISLOWER(c) \
24891 (('a' <= (c) && (c) <= 'i') \
24892 || ('j' <= (c) && (c) <= 'r') \
24893 || ('s' <= (c) && (c) <= 'z'))
24894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24902 for (i = 0; i < 256; i++)
24903 if (XOR (islower (i), ISLOWER (i))
24904 || toupper (i) != TOUPPER (i))
24909 if ac_fn_c_try_run "$LINENO"; then :
24912 ac_cv_header_stdc=no
24914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24915 conftest.$ac_objext conftest.beam conftest.$ac_ext
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24921 $as_echo "$ac_cv_header_stdc" >&6; }
24922 if test $ac_cv_header_stdc = yes; then
24924 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24929 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24930 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24935 #include <sys/types.h>
24939 return makedev(0, 0);
24944 if ac_fn_c_try_link "$LINENO"; then :
24945 ac_cv_header_sys_types_h_makedev=yes
24947 ac_cv_header_sys_types_h_makedev=no
24949 rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24954 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24956 if test $ac_cv_header_sys_types_h_makedev = no; then
24957 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24958 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
24960 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24966 if test $ac_cv_header_sys_mkdev_h = no; then
24967 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24968 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
24970 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24978 ac_header_dirent=no
24979 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24980 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24982 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
24984 $as_echo_n "(cached) " >&6
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h. */
24988 #include <sys/types.h>
25000 if ac_fn_c_try_compile "$LINENO"; then :
25001 eval "$as_ac_Header=yes"
25003 eval "$as_ac_Header=no"
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25007 eval ac_res=\$$as_ac_Header
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25009 $as_echo "$ac_res" >&6; }
25010 eval as_val=\$$as_ac_Header
25011 if test "x$as_val" = x""yes; then :
25012 cat >>confdefs.h <<_ACEOF
25013 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25016 ac_header_dirent=$ac_hdr; break
25020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25021 if test $ac_header_dirent = dirent.h; then
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25023 $as_echo_n "checking for library containing opendir... " >&6; }
25024 if test "${ac_cv_search_opendir+set}" = set; then :
25025 $as_echo_n "(cached) " >&6
25027 ac_func_search_save_LIBS=$LIBS
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25031 /* Override any GCC internal prototype to avoid an error.
25032 Use char because int might match the return type of a GCC
25033 builtin and then its argument prototype would still apply. */
25046 for ac_lib in '' dir; do
25047 if test -z "$ac_lib"; then
25048 ac_res="none required"
25051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25053 if ac_fn_c_try_link "$LINENO"; then :
25054 ac_cv_search_opendir=$ac_res
25056 rm -f core conftest.err conftest.$ac_objext \
25058 if test "${ac_cv_search_opendir+set}" = set; then :
25062 if test "${ac_cv_search_opendir+set}" = set; then :
25065 ac_cv_search_opendir=no
25067 rm conftest.$ac_ext
25068 LIBS=$ac_func_search_save_LIBS
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25071 $as_echo "$ac_cv_search_opendir" >&6; }
25072 ac_res=$ac_cv_search_opendir
25073 if test "$ac_res" != no; then :
25074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25080 $as_echo_n "checking for library containing opendir... " >&6; }
25081 if test "${ac_cv_search_opendir+set}" = set; then :
25082 $as_echo_n "(cached) " >&6
25084 ac_func_search_save_LIBS=$LIBS
25085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25086 /* end confdefs.h. */
25088 /* Override any GCC internal prototype to avoid an error.
25089 Use char because int might match the return type of a GCC
25090 builtin and then its argument prototype would still apply. */
25103 for ac_lib in '' x; do
25104 if test -z "$ac_lib"; then
25105 ac_res="none required"
25108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25110 if ac_fn_c_try_link "$LINENO"; then :
25111 ac_cv_search_opendir=$ac_res
25113 rm -f core conftest.err conftest.$ac_objext \
25115 if test "${ac_cv_search_opendir+set}" = set; then :
25119 if test "${ac_cv_search_opendir+set}" = set; then :
25122 ac_cv_search_opendir=no
25124 rm conftest.$ac_ext
25125 LIBS=$ac_func_search_save_LIBS
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25128 $as_echo "$ac_cv_search_opendir" >&6; }
25129 ac_res=$ac_cv_search_opendir
25130 if test "$ac_res" != no; then :
25131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25138 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25139 if test "${ac_cv_header_stat_broken+set}" = set; then :
25140 $as_echo_n "(cached) " >&6
25142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25144 #include <sys/types.h>
25145 #include <sys/stat.h>
25147 #if defined S_ISBLK && defined S_IFDIR
25148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25151 #if defined S_ISBLK && defined S_IFCHR
25152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25155 #if defined S_ISLNK && defined S_IFREG
25156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25159 #if defined S_ISSOCK && defined S_IFREG
25160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25164 if ac_fn_c_try_compile "$LINENO"; then :
25165 ac_cv_header_stat_broken=no
25167 ac_cv_header_stat_broken=yes
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25172 $as_echo "$ac_cv_header_stat_broken" >&6; }
25173 if test $ac_cv_header_stat_broken = yes; then
25175 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25180 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25181 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25182 $as_echo_n "(cached) " >&6
25184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185 /* end confdefs.h. */
25186 #include <sys/types.h>
25187 #include <sys/wait.h>
25188 #ifndef WEXITSTATUS
25189 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25192 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25200 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25205 if ac_fn_c_try_compile "$LINENO"; then :
25206 ac_cv_header_sys_wait_h=yes
25208 ac_cv_header_sys_wait_h=no
25210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25213 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25214 if test $ac_cv_header_sys_wait_h = yes; then
25216 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25221 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25222 if test "${ac_cv_header_time+set}" = set; then :
25223 $as_echo_n "(cached) " >&6
25225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226 /* end confdefs.h. */
25227 #include <sys/types.h>
25228 #include <sys/time.h>
25234 if ((struct tm *) 0)
25240 if ac_fn_c_try_compile "$LINENO"; then :
25241 ac_cv_header_time=yes
25243 ac_cv_header_time=no
25245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25248 $as_echo "$ac_cv_header_time" >&6; }
25249 if test $ac_cv_header_time = yes; then
25251 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25255 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25256 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25258 cat >>confdefs.h <<_ACEOF
25259 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25263 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25268 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25269 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25276 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25279 case " $LIBOBJS " in
25280 *" fileblocks.$ac_objext "* ) ;;
25281 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25289 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25290 if test "${ac_cv_struct_tm+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
25293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h. */
25295 #include <sys/types.h>
25302 int *p = &tm.tm_sec;
25308 if ac_fn_c_try_compile "$LINENO"; then :
25309 ac_cv_struct_tm=time.h
25311 ac_cv_struct_tm=sys/time.h
25313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25316 $as_echo "$ac_cv_struct_tm" >&6; }
25317 if test $ac_cv_struct_tm = sys/time.h; then
25319 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25323 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25324 #include <$ac_cv_struct_tm>
25327 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_STRUCT_TM_TM_ZONE 1
25336 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25338 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25341 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25343 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_DECL_TZNAME $ac_have_decl
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25354 $as_echo_n "checking for tzname... " >&6; }
25355 if test "${ac_cv_var_tzname+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h. */
25361 #if !HAVE_DECL_TZNAME
25362 extern char *tzname[];
25368 return tzname[0][0];
25373 if ac_fn_c_try_link "$LINENO"; then :
25374 ac_cv_var_tzname=yes
25376 ac_cv_var_tzname=no
25378 rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25382 $as_echo "$ac_cv_var_tzname" >&6; }
25383 if test $ac_cv_var_tzname = yes; then
25385 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25392 $as_echo_n "checking for utime.h... " >&6; }
25393 if test "${ba_cv_header_utime_h+set}" = set; then :
25394 $as_echo_n "(cached) " >&6
25397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25398 /* end confdefs.h. */
25400 #include <sys/types.h>
25413 if ac_fn_c_try_compile "$LINENO"; then :
25415 ba_cv_header_utime_h=yes
25419 ba_cv_header_utime_h=no
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25428 $as_echo "$ba_cv_header_utime_h" >&6; }
25429 test $ba_cv_header_utime_h = yes &&
25430 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25434 $as_echo_n "checking for socklen_t... " >&6; }
25435 if test "${ba_cv_header_socklen_t+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25440 /* end confdefs.h. */
25442 #include <sys/types.h>
25443 #include <sys/socket.h>
25455 if ac_fn_c_try_compile "$LINENO"; then :
25457 ba_cv_header_socklen_t=yes
25461 ba_cv_header_socklen_t=no
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25470 $as_echo "$ba_cv_header_socklen_t" >&6; }
25471 test $ba_cv_header_socklen_t = yes &&
25472 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25476 ac_cpp='$CXXCPP $CPPFLAGS'
25477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25482 $as_echo_n "checking for ioctl_req_t... " >&6; }
25483 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25484 $as_echo_n "(cached) " >&6
25487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488 /* end confdefs.h. */
25490 #include <unistd.h>
25491 #include <sys/types.h>
25492 #include <sys/ioctl.h>
25498 int (*d_ioctl)(int fd, unsigned long int request, ...);
25505 if ac_fn_cxx_try_compile "$LINENO"; then :
25507 ba_cv_header_ioctl_req_t=yes
25511 ba_cv_header_ioctl_req_t=no
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25520 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25521 test $ba_cv_header_ioctl_req_t = yes &&
25522 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25526 ac_cpp='$CPP $CPPFLAGS'
25527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25533 ac_cpp='$CXXCPP $CPPFLAGS'
25534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25539 $as_echo_n "checking for typeof... " >&6; }
25540 if test "${ba_cv_have_typeof+set}" = set; then :
25541 $as_echo_n "(cached) " >&6
25544 if test "$cross_compiling" = yes; then :
25546 ba_cv_have_typeof=no
25550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551 /* end confdefs.h. */
25553 main(){char *a = 0; a = (typeof a)a;}
25556 if ac_fn_cxx_try_run "$LINENO"; then :
25558 ba_cv_have_typeof=yes
25562 ba_cv_have_typeof=no
25565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25566 conftest.$ac_objext conftest.beam conftest.$ac_ext
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25573 $as_echo "$ba_cv_have_typeof" >&6; }
25574 test $ba_cv_have_typeof = yes &&
25575 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25578 ac_cpp='$CPP $CPPFLAGS'
25579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25585 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25586 if test "${ac_cv_c_const+set}" = set; then :
25587 $as_echo_n "(cached) " >&6
25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25595 /* FIXME: Include the comments suggested by Paul. */
25596 #ifndef __cplusplus
25597 /* Ultrix mips cc rejects this. */
25598 typedef int charset[2];
25600 /* SunOS 4.1.1 cc rejects this. */
25601 char const *const *pcpcc;
25603 /* NEC SVR4.0.2 mips cc rejects this. */
25604 struct point {int x, y;};
25605 static struct point const zero = {0,0};
25606 /* AIX XL C 1.02.0.0 rejects this.
25607 It does not let you subtract one const X* pointer from another in
25608 an arm of an if-expression whose if-part is not a constant
25610 const char *g = "string";
25611 pcpcc = &g + (g ? g-g : 0);
25612 /* HPUX 7.0 cc rejects these. */
25614 ppc = (char**) pcpcc;
25615 pcpcc = (char const *const *) ppc;
25616 { /* SCO 3.2v4 cc rejects this. */
25618 char const *s = 0 ? (char *) 0 : (char const *) 0;
25623 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25624 int x[] = {25, 17};
25625 const int *foo = &x[0];
25628 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25629 typedef const int *iptr;
25633 { /* AIX XL C 1.02.0.0 rejects this saying
25634 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25635 struct s { int j; const int *ap[3]; };
25636 struct s *b; b->j = 5;
25638 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25639 const int foo = 10;
25640 if (!foo) return 0;
25642 return !cs[0] && !zero.x;
25649 if ac_fn_c_try_compile "$LINENO"; then :
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25657 $as_echo "$ac_cv_c_const" >&6; }
25658 if test $ac_cv_c_const = no; then
25660 $as_echo "#define const /**/" >>confdefs.h
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25667 if test "${ac_cv_c_bigendian+set}" = set; then :
25668 $as_echo_n "(cached) " >&6
25670 ac_cv_c_bigendian=unknown
25671 # See if we're dealing with a universal compiler.
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25674 #ifndef __APPLE_CC__
25675 not a universal capable compiler
25680 if ac_fn_c_try_compile "$LINENO"; then :
25682 # Check for potential -arch flags. It is not universal unless
25683 # there are at least two -arch flags with different values.
25686 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25687 if test -n "$ac_prev"; then
25689 i?86 | x86_64 | ppc | ppc64)
25690 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25693 ac_cv_c_bigendian=universal
25699 elif test "x$ac_word" = "x-arch"; then
25704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 if test $ac_cv_c_bigendian = unknown; then
25706 # See if sys/param.h defines the BYTE_ORDER macro.
25707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25708 /* end confdefs.h. */
25709 #include <sys/types.h>
25710 #include <sys/param.h>
25715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25716 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25718 bogus endian macros
25725 if ac_fn_c_try_compile "$LINENO"; then :
25726 # It does; now see whether it defined to BIG_ENDIAN or not.
25727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h. */
25729 #include <sys/types.h>
25730 #include <sys/param.h>
25735 #if BYTE_ORDER != BIG_ENDIAN
25743 if ac_fn_c_try_compile "$LINENO"; then :
25744 ac_cv_c_bigendian=yes
25746 ac_cv_c_bigendian=no
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25752 if test $ac_cv_c_bigendian = unknown; then
25753 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25756 #include <limits.h>
25761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25762 bogus endian macros
25769 if ac_fn_c_try_compile "$LINENO"; then :
25770 # It does; now see whether it defined to _BIG_ENDIAN or not.
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25773 #include <limits.h>
25778 #ifndef _BIG_ENDIAN
25786 if ac_fn_c_try_compile "$LINENO"; then :
25787 ac_cv_c_bigendian=yes
25789 ac_cv_c_bigendian=no
25791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 if test $ac_cv_c_bigendian = unknown; then
25796 # Compile a test program.
25797 if test "$cross_compiling" = yes; then :
25798 # Try to guess by grepping values from an object file.
25799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h. */
25801 short int ascii_mm[] =
25802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25803 short int ascii_ii[] =
25804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25805 int use_ascii (int i) {
25806 return ascii_mm[i] + ascii_ii[i];
25808 short int ebcdic_ii[] =
25809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25810 short int ebcdic_mm[] =
25811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25812 int use_ebcdic (int i) {
25813 return ebcdic_mm[i] + ebcdic_ii[i];
25820 return use_ascii (foo) == use_ebcdic (foo);
25825 if ac_fn_c_try_compile "$LINENO"; then :
25826 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25827 ac_cv_c_bigendian=yes
25829 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25830 if test "$ac_cv_c_bigendian" = unknown; then
25831 ac_cv_c_bigendian=no
25833 # finding both strings is unlikely to happen, but who knows?
25834 ac_cv_c_bigendian=unknown
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h. */
25842 $ac_includes_default
25847 /* Are we little or big endian? From Harbison&Steele. */
25851 char c[sizeof (long int)];
25854 return u.c[sizeof (long int) - 1] == 1;
25860 if ac_fn_c_try_run "$LINENO"; then :
25861 ac_cv_c_bigendian=no
25863 ac_cv_c_bigendian=yes
25865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25866 conftest.$ac_objext conftest.beam conftest.$ac_ext
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25872 $as_echo "$ac_cv_c_bigendian" >&6; }
25873 case $ac_cv_c_bigendian in #(
25876 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25880 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25888 as_fn_error "unknown endianness
25889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25894 $as_echo_n "checking how to get filesystem type... " >&6; }
25896 # The order of these tests is important.
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h. */
25900 #include <sys/statvfs.h>
25901 #include <sys/fstyp.h>
25904 if ac_fn_c_try_cpp "$LINENO"; then :
25905 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25909 rm -f conftest.err conftest.$ac_ext
25910 if test $fstype = no; then
25911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h. */
25914 #include <sys/statfs.h>
25915 #include <sys/fstyp.h>
25918 if ac_fn_c_try_cpp "$LINENO"; then :
25919 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25923 rm -f conftest.err conftest.$ac_ext
25925 if test $fstype = no; then
25926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h. */
25929 #include <sys/statfs.h>
25930 #include <sys/vmount.h>
25933 if ac_fn_c_try_cpp "$LINENO"; then :
25934 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25938 rm -f conftest.err conftest.$ac_ext
25940 if test $fstype = no; then
25941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25942 /* end confdefs.h. */
25944 #include <mntent.h>
25947 if ac_fn_c_try_cpp "$LINENO"; then :
25948 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25952 rm -f conftest.err conftest.$ac_ext
25954 if test $fstype = no; then
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h. */
25957 #include <sys/mount.h>
25960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25961 $EGREP "f_type;" >/dev/null 2>&1; then :
25962 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25968 if test $fstype = no; then
25969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h. */
25972 #include <sys/mount.h>
25973 #include <sys/fs_types.h>
25976 if ac_fn_c_try_cpp "$LINENO"; then :
25977 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25981 rm -f conftest.err conftest.$ac_ext
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25984 $as_echo "$fstype" >&6; }
25986 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25987 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25989 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25996 ac_cpp='$CXXCPP $CPPFLAGS'
25997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26002 for ac_header in cxxabi.h execinfo.h
26004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26006 eval as_val=\$$as_ac_Header
26007 if test "x$as_val" = x""yes; then :
26008 cat >>confdefs.h <<_ACEOF
26009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26012 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26019 ac_cpp='$CPP $CPPFLAGS'
26020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26026 $as_echo_n "checking return type of signal handlers... " >&6; }
26027 if test "${ac_cv_type_signal+set}" = set; then :
26028 $as_echo_n "(cached) " >&6
26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h. */
26032 #include <sys/types.h>
26033 #include <signal.h>
26038 return *(signal (0, 0)) (0) == 1;
26043 if ac_fn_c_try_compile "$LINENO"; then :
26044 ac_cv_type_signal=int
26046 ac_cv_type_signal=void
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26051 $as_echo "$ac_cv_type_signal" >&6; }
26053 cat >>confdefs.h <<_ACEOF
26054 #define RETSIGTYPE $ac_cv_type_signal
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26060 $as_echo_n "checking for type of signal functions... " >&6; }
26061 if test "${bash_cv_signal_vintage+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26066 /* end confdefs.h. */
26067 #include <signal.h>
26073 struct sigaction sa;
26074 sigemptyset(&ss); sigsuspend(&ss);
26075 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26076 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26082 if ac_fn_c_try_link "$LINENO"; then :
26083 bash_cv_signal_vintage="posix"
26086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26087 /* end confdefs.h. */
26088 #include <signal.h>
26093 int mask = sigmask(SIGINT);
26094 sigsetmask(mask); sigblock(mask); sigpause(mask);
26100 if ac_fn_c_try_link "$LINENO"; then :
26101 bash_cv_signal_vintage="4.2bsd"
26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h. */
26107 #include <signal.h>
26108 RETSIGTYPE foo() { }
26113 int mask = sigmask(SIGINT);
26114 sigset(SIGINT, foo); sigrelse(SIGINT);
26115 sighold(SIGINT); sigpause(SIGINT);
26121 if ac_fn_c_try_link "$LINENO"; then :
26122 bash_cv_signal_vintage="svr3"
26124 bash_cv_signal_vintage="v7"
26127 rm -f core conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
26131 rm -f core conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
26135 rm -f core conftest.err conftest.$ac_objext \
26136 conftest$ac_exeext conftest.$ac_ext
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26141 $as_echo "$bash_cv_signal_vintage" >&6; }
26142 if test "$bash_cv_signal_vintage" = "posix"; then
26143 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26145 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26146 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26148 elif test "$bash_cv_signal_vintage" = "svr3"; then
26149 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26153 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26154 if test "x$ac_cv_type_mode_t" = x""yes; then :
26158 cat >>confdefs.h <<_ACEOF
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26165 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26166 if test "${ac_cv_type_uid_t+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26170 /* end confdefs.h. */
26171 #include <sys/types.h>
26174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175 $EGREP "uid_t" >/dev/null 2>&1; then :
26176 ac_cv_type_uid_t=yes
26178 ac_cv_type_uid_t=no
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26184 $as_echo "$ac_cv_type_uid_t" >&6; }
26185 if test $ac_cv_type_uid_t = no; then
26187 $as_echo "#define uid_t int" >>confdefs.h
26190 $as_echo "#define gid_t int" >>confdefs.h
26194 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26195 if test "x$ac_cv_type_size_t" = x""yes; then :
26199 cat >>confdefs.h <<_ACEOF
26200 #define size_t unsigned int
26205 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26206 if test "x$ac_cv_type_pid_t" = x""yes; then :
26210 cat >>confdefs.h <<_ACEOF
26216 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_off_t" = x""yes; then :
26221 cat >>confdefs.h <<_ACEOF
26222 #define off_t long int
26228 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26229 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26231 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26234 for ac_type in 'int' 'long int' 'long long int'; do
26235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236 /* end confdefs.h. */
26237 $ac_includes_default
26241 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26248 if ac_fn_c_try_compile "$LINENO"; then :
26250 cat >>confdefs.h <<_ACEOF
26251 #define intptr_t $ac_type
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 test -z "$ac_type" && break
26263 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26264 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26266 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26269 for ac_type in 'unsigned int' 'unsigned long int' \
26270 'unsigned long long int'; do
26271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h. */
26273 $ac_includes_default
26277 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26284 if ac_fn_c_try_compile "$LINENO"; then :
26286 cat >>confdefs.h <<_ACEOF
26287 #define uintptr_t $ac_type
26292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26293 test -z "$ac_type" && break
26298 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26299 if test "x$ac_cv_type_ino_t" = x""yes; then :
26303 cat >>confdefs.h <<_ACEOF
26304 #define ino_t unsigned long
26309 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26310 if test "x$ac_cv_type_dev_t" = x""yes; then :
26314 cat >>confdefs.h <<_ACEOF
26315 #define dev_t unsigned long
26320 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26321 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26325 cat >>confdefs.h <<_ACEOF
26326 #define daddr_t long
26331 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26332 if test "x$ac_cv_type_major_t" = x""yes; then :
26336 cat >>confdefs.h <<_ACEOF
26337 #define major_t int
26342 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26343 if test "x$ac_cv_type_minor_t" = x""yes; then :
26347 cat >>confdefs.h <<_ACEOF
26348 #define minor_t int
26353 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26354 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26358 cat >>confdefs.h <<_ACEOF
26359 #define ssize_t int
26364 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26365 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26367 cat >>confdefs.h <<_ACEOF
26368 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26372 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26375 case " $LIBOBJS " in
26376 *" fileblocks.$ac_objext "* ) ;;
26377 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26384 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26385 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26387 cat >>confdefs.h <<_ACEOF
26388 #define HAVE_STRUCT_STAT_ST_RDEV 1
26392 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26398 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26399 if test "${ac_cv_struct_tm+set}" = set; then :
26400 $as_echo_n "(cached) " >&6
26402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h. */
26404 #include <sys/types.h>
26411 int *p = &tm.tm_sec;
26417 if ac_fn_c_try_compile "$LINENO"; then :
26418 ac_cv_struct_tm=time.h
26420 ac_cv_struct_tm=sys/time.h
26422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26425 $as_echo "$ac_cv_struct_tm" >&6; }
26426 if test $ac_cv_struct_tm = sys/time.h; then
26428 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26433 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26434 if test "${ac_cv_c_const+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26443 /* FIXME: Include the comments suggested by Paul. */
26444 #ifndef __cplusplus
26445 /* Ultrix mips cc rejects this. */
26446 typedef int charset[2];
26448 /* SunOS 4.1.1 cc rejects this. */
26449 char const *const *pcpcc;
26451 /* NEC SVR4.0.2 mips cc rejects this. */
26452 struct point {int x, y;};
26453 static struct point const zero = {0,0};
26454 /* AIX XL C 1.02.0.0 rejects this.
26455 It does not let you subtract one const X* pointer from another in
26456 an arm of an if-expression whose if-part is not a constant
26458 const char *g = "string";
26459 pcpcc = &g + (g ? g-g : 0);
26460 /* HPUX 7.0 cc rejects these. */
26462 ppc = (char**) pcpcc;
26463 pcpcc = (char const *const *) ppc;
26464 { /* SCO 3.2v4 cc rejects this. */
26466 char const *s = 0 ? (char *) 0 : (char const *) 0;
26471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26472 int x[] = {25, 17};
26473 const int *foo = &x[0];
26476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26477 typedef const int *iptr;
26481 { /* AIX XL C 1.02.0.0 rejects this saying
26482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26483 struct s { int j; const int *ap[3]; };
26484 struct s *b; b->j = 5;
26486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26487 const int foo = 10;
26488 if (!foo) return 0;
26490 return !cs[0] && !zero.x;
26497 if ac_fn_c_try_compile "$LINENO"; then :
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26505 $as_echo "$ac_cv_c_const" >&6; }
26506 if test $ac_cv_c_const = no; then
26508 $as_echo "#define const /**/" >>confdefs.h
26513 # The cast to long int works around a bug in the HP C Compiler
26514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26516 # This bug is HP SR number 8606223364.
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26518 $as_echo_n "checking size of char... " >&6; }
26519 if test "${ac_cv_sizeof_char+set}" = set; then :
26520 $as_echo_n "(cached) " >&6
26522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26525 if test "$ac_cv_type_char" = yes; then
26526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26528 { as_fn_set_status 77
26529 as_fn_error "cannot compute sizeof (char)
26530 See \`config.log' for more details." "$LINENO" 5; }; }
26532 ac_cv_sizeof_char=0
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26538 $as_echo "$ac_cv_sizeof_char" >&6; }
26542 cat >>confdefs.h <<_ACEOF
26543 #define SIZEOF_CHAR $ac_cv_sizeof_char
26547 # The cast to long int works around a bug in the HP C Compiler
26548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26550 # This bug is HP SR number 8606223364.
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26552 $as_echo_n "checking size of short int... " >&6; }
26553 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26554 $as_echo_n "(cached) " >&6
26556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26559 if test "$ac_cv_type_short_int" = yes; then
26560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26562 { as_fn_set_status 77
26563 as_fn_error "cannot compute sizeof (short int)
26564 See \`config.log' for more details." "$LINENO" 5; }; }
26566 ac_cv_sizeof_short_int=0
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26572 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26576 cat >>confdefs.h <<_ACEOF
26577 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26581 # The cast to long int works around a bug in the HP C Compiler
26582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26584 # This bug is HP SR number 8606223364.
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26586 $as_echo_n "checking size of int... " >&6; }
26587 if test "${ac_cv_sizeof_int+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26593 if test "$ac_cv_type_int" = yes; then
26594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26596 { as_fn_set_status 77
26597 as_fn_error "cannot compute sizeof (int)
26598 See \`config.log' for more details." "$LINENO" 5; }; }
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26606 $as_echo "$ac_cv_sizeof_int" >&6; }
26610 cat >>confdefs.h <<_ACEOF
26611 #define SIZEOF_INT $ac_cv_sizeof_int
26615 # The cast to long int works around a bug in the HP C Compiler
26616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26618 # This bug is HP SR number 8606223364.
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26620 $as_echo_n "checking size of long int... " >&6; }
26621 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26622 $as_echo_n "(cached) " >&6
26624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26627 if test "$ac_cv_type_long_int" = yes; then
26628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26630 { as_fn_set_status 77
26631 as_fn_error "cannot compute sizeof (long int)
26632 See \`config.log' for more details." "$LINENO" 5; }; }
26634 ac_cv_sizeof_long_int=0
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26640 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26644 cat >>confdefs.h <<_ACEOF
26645 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26649 # The cast to long int works around a bug in the HP C Compiler
26650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26652 # This bug is HP SR number 8606223364.
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26654 $as_echo_n "checking size of long long int... " >&6; }
26655 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26656 $as_echo_n "(cached) " >&6
26658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26661 if test "$ac_cv_type_long_long_int" = yes; then
26662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26664 { as_fn_set_status 77
26665 as_fn_error "cannot compute sizeof (long long int)
26666 See \`config.log' for more details." "$LINENO" 5; }; }
26668 ac_cv_sizeof_long_long_int=0
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26674 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26678 cat >>confdefs.h <<_ACEOF
26679 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26683 # The cast to long int works around a bug in the HP C Compiler
26684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26686 # This bug is HP SR number 8606223364.
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26688 $as_echo_n "checking size of int *... " >&6; }
26689 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26690 $as_echo_n "(cached) " >&6
26692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26695 if test "$ac_cv_type_int_p" = yes; then
26696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26698 { as_fn_set_status 77
26699 as_fn_error "cannot compute sizeof (int *)
26700 See \`config.log' for more details." "$LINENO" 5; }; }
26702 ac_cv_sizeof_int_p=0
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26708 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26712 cat >>confdefs.h <<_ACEOF
26713 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26719 $as_echo_n "checking for u_int type... " >&6; }
26720 if test "${ac_cv_have_u_int+set}" = set; then :
26721 $as_echo_n "(cached) " >&6
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h. */
26727 #include <sys/types.h>
26739 if ac_fn_c_try_compile "$LINENO"; then :
26741 ac_cv_have_u_int="yes"
26745 ac_cv_have_u_int="no"
26749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26754 $as_echo "$ac_cv_have_u_int" >&6; }
26755 if test "x$ac_cv_have_u_int" = "xyes" ; then
26756 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26762 $as_echo_n "checking for intmax_t type... " >&6; }
26763 if test "${ac_cv_have_intmax_t+set}" = set; then :
26764 $as_echo_n "(cached) " >&6
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h. */
26770 #include <sys/types.h>
26782 if ac_fn_c_try_compile "$LINENO"; then :
26784 ac_cv_have_intmax_t="yes"
26788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26789 /* end confdefs.h. */
26791 #include <stdint.h>
26803 if ac_fn_c_try_compile "$LINENO"; then :
26805 ac_cv_have_intmax_t="yes"
26809 ac_cv_have_intmax_t="no"
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26822 $as_echo "$ac_cv_have_intmax_t" >&6; }
26823 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26824 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26830 $as_echo_n "checking for u_intmax_t type... " >&6; }
26831 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h. */
26838 #include <sys/types.h>
26844 u_intmax_t a; a = 1;
26850 if ac_fn_c_try_compile "$LINENO"; then :
26852 ac_cv_have_u_intmax_t="yes"
26856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26857 /* end confdefs.h. */
26859 #include <stdint.h>
26865 u_intmax_t a; a = 1;
26871 if ac_fn_c_try_compile "$LINENO"; then :
26873 ac_cv_have_u_intmax_t="yes"
26877 ac_cv_have_u_intmax_t="no"
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26890 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26891 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26892 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26898 $as_echo_n "checking for intXX_t types... " >&6; }
26899 if test "${ac_cv_have_intxx_t+set}" = set; then :
26900 $as_echo_n "(cached) " >&6
26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26906 #include <sys/types.h>
26912 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26918 if ac_fn_c_try_compile "$LINENO"; then :
26920 ac_cv_have_intxx_t="yes"
26924 ac_cv_have_intxx_t="no"
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26933 $as_echo "$ac_cv_have_intxx_t" >&6; }
26934 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26935 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26941 $as_echo_n "checking for int64_t type... " >&6; }
26942 if test "${ac_cv_have_int64_t+set}" = set; then :
26943 $as_echo_n "(cached) " >&6
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26949 #include <sys/types.h>
26961 if ac_fn_c_try_compile "$LINENO"; then :
26963 ac_cv_have_int64_t="yes"
26967 ac_cv_have_int64_t="no"
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26976 $as_echo "$ac_cv_have_int64_t" >&6; }
26977 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26978 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26984 $as_echo_n "checking for u_intXX_t types... " >&6; }
26985 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26986 $as_echo_n "(cached) " >&6
26989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <sys/types.h>
26998 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27004 if ac_fn_c_try_compile "$LINENO"; then :
27006 ac_cv_have_u_intxx_t="yes"
27010 ac_cv_have_u_intxx_t="no"
27014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27019 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27020 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27021 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27027 $as_echo_n "checking for u_int64_t types... " >&6; }
27028 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27029 $as_echo_n "(cached) " >&6
27032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27035 #include <sys/types.h>
27041 u_int64_t a; a = 1;
27047 if ac_fn_c_try_compile "$LINENO"; then :
27049 ac_cv_have_u_int64_t="yes"
27053 ac_cv_have_u_int64_t="no"
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27062 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27063 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27064 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27069 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27070 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27073 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27075 /* end confdefs.h. */
27077 #include <sys/bitypes.h>
27083 int8_t a; int16_t b; int32_t c;
27084 u_int8_t e; u_int16_t f; u_int32_t g;
27085 a = b = c = e = f = g = 1;
27091 if ac_fn_c_try_compile "$LINENO"; then :
27093 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27095 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27097 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27100 $as_echo "yes" >&6; }
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27105 $as_echo "no" >&6; }
27109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 if test -z "$have_u_intxx_t" ; then
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27114 $as_echo_n "checking for uintXX_t types... " >&6; }
27115 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27116 $as_echo_n "(cached) " >&6
27119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27120 /* end confdefs.h. */
27122 #include <sys/types.h>
27128 uint8_t a; uint16_t b;
27129 uint32_t c; a = b = c = 1;
27135 if ac_fn_c_try_compile "$LINENO"; then :
27137 ac_cv_have_uintxx_t="yes"
27141 ac_cv_have_uintxx_t="no"
27145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27150 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27151 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27152 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27157 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27158 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27161 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h. */
27165 #include <sys/bitypes.h>
27171 int64_t a; u_int64_t b;
27178 if ac_fn_c_try_compile "$LINENO"; then :
27180 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27182 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27185 $as_echo "yes" >&6; }
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27190 $as_echo "no" >&6; }
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 if (test -z "$have_uintxx_t" && \
27198 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27201 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27203 /* end confdefs.h. */
27205 #include <sys/bitypes.h>
27211 uint8_t a; uint16_t b;
27212 uint32_t c; a = b = c = 1;
27218 if ac_fn_c_try_compile "$LINENO"; then :
27220 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27223 $as_echo "yes" >&6; }
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27228 $as_echo "no" >&6; }
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27253 eval as_val=\$$as_ac_var
27254 if test "x$as_val" = x""yes; then :
27255 cat >>confdefs.h <<_ACEOF
27256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27260 echo 'configure: cannot find needed function.'; exit 1
27266 for ac_func in getpagesize
27268 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27269 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27270 cat >>confdefs.h <<_ACEOF
27271 #define HAVE_GETPAGESIZE 1
27274 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27279 for ac_func in malloc_trim
27281 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27282 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
27283 cat >>confdefs.h <<_ACEOF
27284 #define HAVE_MALLOC_TRIM 1
27287 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27293 for ac_func in fchdir
27295 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27296 if test "x$ac_cv_func_fchdir" = x""yes; then :
27297 cat >>confdefs.h <<_ACEOF
27298 #define HAVE_FCHDIR 1
27300 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27305 for ac_func in strtoll
27307 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27308 if test "x$ac_cv_func_strtoll" = x""yes; then :
27309 cat >>confdefs.h <<_ACEOF
27310 #define HAVE_STRTOLL 1
27312 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27317 for ac_func in posix_fadvise
27319 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27320 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27321 cat >>confdefs.h <<_ACEOF
27322 #define HAVE_POSIX_FADVISE 1
27328 for ac_func in fdatasync
27330 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27331 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27332 cat >>confdefs.h <<_ACEOF
27333 #define HAVE_FDATASYNC 1
27340 for ac_func in chflags
27342 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27343 if test "x$ac_cv_func_chflags" = x""yes; then :
27344 cat >>confdefs.h <<_ACEOF
27345 #define HAVE_CHFLAGS 1
27352 for ac_func in snprintf vsnprintf gethostid fseeko
27354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27356 eval as_val=\$$as_ac_var
27357 if test "x$as_val" = x""yes; then :
27358 cat >>confdefs.h <<_ACEOF
27359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27367 $as_echo_n "checking for va_copy... " >&6; }
27368 if test "${ba_cv_va_copy+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27373 /* end confdefs.h. */
27375 #include <stdarg.h>
27376 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27377 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27383 call_use_va_copy(1,2,3)
27389 if ac_fn_c_try_link "$LINENO"; then :
27399 rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27405 $as_echo "$ba_cv_va_copy" >&6; }
27406 test $ba_cv_va_copy = yes &&
27407 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27410 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27414 eval as_val=\$$as_ac_var
27415 if test "x$as_val" = 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" = x""yes; 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 test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; 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" = x""yes; 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" = x""yes; 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" = x""yes; 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" = x""yes; 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 test "${ac_cv_struct_sockaddr_sa_len+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_intl_strftime+set}" = set; 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" = x""yes; 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" = x""yes; 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" = x""yes; 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 test "${ac_cv_working_alloca_h+set}" = set; 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 test "${ac_cv_func_alloca_works+set}" = set; 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 */
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 test "${ac_cv_os_cray+set}" = set; 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 eval as_val=\$$as_ac_var
27805 if test "x$as_val" = x""yes; then :
27807 cat >>confdefs.h <<_ACEOF
27808 #define CRAY_STACKSEG_END $ac_func
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27818 $as_echo_n "checking stack direction for C alloca... " >&6; }
27819 if test "${ac_cv_c_stack_direction+set}" = set; then :
27820 $as_echo_n "(cached) " >&6
27822 if test "$cross_compiling" = yes; then :
27823 ac_cv_c_stack_direction=0
27825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h. */
27827 $ac_includes_default
27829 find_stack_direction ()
27831 static char *addr = 0;
27836 return find_stack_direction ();
27839 return (&dummy > addr) ? 1 : -1;
27845 return find_stack_direction () < 0;
27848 if ac_fn_c_try_run "$LINENO"; then :
27849 ac_cv_c_stack_direction=1
27851 ac_cv_c_stack_direction=-1
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27854 conftest.$ac_objext conftest.beam conftest.$ac_ext
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27859 $as_echo "$ac_cv_c_stack_direction" >&6; }
27860 cat >>confdefs.h <<_ACEOF
27861 #define STACK_DIRECTION $ac_cv_c_stack_direction
27867 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27868 # -lseq on Dynix/PTX, -lgen on Unixware.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27870 $as_echo_n "checking for library containing getmntent... " >&6; }
27871 if test "${ac_cv_search_getmntent+set}" = set; then :
27872 $as_echo_n "(cached) " >&6
27874 ac_func_search_save_LIBS=$LIBS
27875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27876 /* end confdefs.h. */
27878 /* Override any GCC internal prototype to avoid an error.
27879 Use char because int might match the return type of a GCC
27880 builtin and then its argument prototype would still apply. */
27888 return getmntent ();
27893 for ac_lib in '' sun seq gen; do
27894 if test -z "$ac_lib"; then
27895 ac_res="none required"
27898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27900 if ac_fn_c_try_link "$LINENO"; then :
27901 ac_cv_search_getmntent=$ac_res
27903 rm -f core conftest.err conftest.$ac_objext \
27905 if test "${ac_cv_search_getmntent+set}" = set; then :
27909 if test "${ac_cv_search_getmntent+set}" = set; then :
27912 ac_cv_search_getmntent=no
27914 rm conftest.$ac_ext
27915 LIBS=$ac_func_search_save_LIBS
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27918 $as_echo "$ac_cv_search_getmntent" >&6; }
27919 ac_res=$ac_cv_search_getmntent
27920 if test "$ac_res" != no; then :
27921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922 ac_cv_func_getmntent=yes
27924 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27927 ac_cv_func_getmntent=no
27931 for ac_func in getmntinfo
27933 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27934 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27935 cat >>confdefs.h <<_ACEOF
27936 #define HAVE_GETMNTINFO 1
27938 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27944 $as_echo_n "checking whether closedir returns void... " >&6; }
27945 if test "${ac_cv_func_closedir_void+set}" = set; then :
27946 $as_echo_n "(cached) " >&6
27948 if test "$cross_compiling" = yes; then :
27949 ac_cv_func_closedir_void=yes
27951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h. */
27953 $ac_includes_default
27954 #include <$ac_header_dirent>
27955 #ifndef __cplusplus
27962 return closedir (opendir (".")) != 0;
27967 if ac_fn_c_try_run "$LINENO"; then :
27968 ac_cv_func_closedir_void=no
27970 ac_cv_func_closedir_void=yes
27972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27973 conftest.$ac_objext conftest.beam conftest.$ac_ext
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27978 $as_echo "$ac_cv_func_closedir_void" >&6; }
27979 if test $ac_cv_func_closedir_void = yes; then
27981 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27986 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27987 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27988 $as_echo_n "(cached) " >&6
27990 if test "$cross_compiling" = yes; then :
27991 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h. */
27995 $ac_includes_default
27999 /* If this system has a BSD-style setpgrp which takes arguments,
28000 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28001 exit successfully. */
28002 return setpgrp (1,1) != -1;
28007 if ac_fn_c_try_run "$LINENO"; then :
28008 ac_cv_func_setpgrp_void=no
28010 ac_cv_func_setpgrp_void=yes
28012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28013 conftest.$ac_objext conftest.beam conftest.$ac_ext
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28018 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28019 if test $ac_cv_func_setpgrp_void = yes; then
28021 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28024 # AC_FUNC_FNMATCH dnl use local version
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28027 $as_echo_n "checking for gettext in -lintl... " >&6; }
28028 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28029 $as_echo_n "(cached) " >&6
28031 ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-lintl $LIBS"
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28051 if ac_fn_c_try_link "$LINENO"; then :
28052 ac_cv_lib_intl_gettext=yes
28054 ac_cv_lib_intl_gettext=no
28056 rm -f core conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
28058 LIBS=$ac_check_lib_save_LIBS
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28061 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28062 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28063 LIBS="$LIBS -lintl"
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28068 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28069 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28070 $as_echo_n "(cached) " >&6
28072 ac_check_lib_save_LIBS=$LIBS
28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h. */
28077 /* Override any GCC internal prototype to avoid an error.
28078 Use char because int might match the return type of a GCC
28079 builtin and then its argument prototype would still apply. */
28087 return getpwnam ();
28092 if ac_fn_c_try_link "$LINENO"; then :
28093 ac_cv_lib_sun_getpwnam=yes
28095 ac_cv_lib_sun_getpwnam=no
28097 rm -f core conftest.err conftest.$ac_objext \
28098 conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28102 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28103 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBSUN 1
28113 for ac_header in zlib.h
28115 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28116 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28117 cat >>confdefs.h <<_ACEOF
28118 #define HAVE_ZLIB_H 1
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28126 $as_echo_n "checking for deflate in -lz... " >&6; }
28127 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28128 $as_echo_n "(cached) " >&6
28130 ac_check_lib_save_LIBS=$LIBS
28132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28133 /* end confdefs.h. */
28135 /* Override any GCC internal prototype to avoid an error.
28136 Use char because int might match the return type of a GCC
28137 builtin and then its argument prototype would still apply. */
28150 if ac_fn_c_try_link "$LINENO"; then :
28151 ac_cv_lib_z_deflate=yes
28153 ac_cv_lib_z_deflate=no
28155 rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
28157 LIBS=$ac_check_lib_save_LIBS
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28160 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28161 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28166 if test x$ZLIBS = x-lz; then
28167 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28174 # Check whether --enable-acl was given.
28175 if test "${enable_acl+set}" = set; then :
28176 enableval=$enable_acl;
28177 if test x$enableval = xyes; then
28179 elif test x$enableval = xno; then
28188 have_extended_acl=no
28189 if test x$support_acl = xyes -o x$support_acl = xauto; then
28190 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28191 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28193 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28199 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28200 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28208 if test $have_acl = no; then
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28210 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28211 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28212 $as_echo_n "(cached) " >&6
28214 ac_check_lib_save_LIBS=$LIBS
28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217 /* end confdefs.h. */
28219 /* Override any GCC internal prototype to avoid an error.
28220 Use char because int might match the return type of a GCC
28221 builtin and then its argument prototype would still apply. */
28225 char acl_get_file ();
28229 return acl_get_file ();
28234 if ac_fn_c_try_link "$LINENO"; then :
28235 ac_cv_lib_acl_acl_get_file=yes
28237 ac_cv_lib_acl_acl_get_file=no
28239 rm -f core conftest.err conftest.$ac_objext \
28240 conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28244 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28245 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28248 if test $have_afs = yes; then
28249 if test -d /usr/lib64/; then
28250 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28252 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28255 FDLIBS="-lacl $FDLIBS"
28263 if test $have_acl = no -a \
28264 x${HAVE_OSF1_OS_TRUE} = x; then
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28266 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28267 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28268 $as_echo_n "(cached) " >&6
28270 ac_check_lib_save_LIBS=$LIBS
28271 LIBS="-lpacl $LIBS"
28272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h. */
28275 /* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28281 char acl_get_file ();
28285 return acl_get_file ();
28290 if ac_fn_c_try_link "$LINENO"; then :
28291 ac_cv_lib_pacl_acl_get_file=yes
28293 ac_cv_lib_pacl_acl_get_file=no
28295 rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28300 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28301 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28304 FDLIBS="-lpacl $FDLIBS"
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28311 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28312 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28313 if test $? = 0; then
28315 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318 $as_echo "yes" >&6; }
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321 $as_echo "no" >&6; }
28325 if test $have_acl = yes -a \
28326 x${HAVE_DARWIN_OS_TRUE} = x; then
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28328 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28329 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28330 if test $? = 0; then
28332 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28335 $as_echo "yes" >&6; }
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28338 $as_echo "no" >&6; }
28342 if test $have_acl = yes -a \
28343 x${HAVE_FREEBSD_OS_TRUE} = x; then
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28345 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28346 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28347 if test $? = 0; then
28349 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28352 $as_echo "yes" >&6; }
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28355 $as_echo "no" >&6; }
28359 if test $have_acl = no -a \
28360 x${HAVE_SUN_OS_TRUE} = x; then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28362 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28363 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28364 $as_echo_n "(cached) " >&6
28366 ac_check_lib_save_LIBS=$LIBS
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h. */
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply. */
28381 return acltotext ();
28386 if ac_fn_c_try_link "$LINENO"; then :
28387 ac_cv_lib_sec_acltotext=yes
28389 ac_cv_lib_sec_acltotext=no
28391 rm -f core conftest.err conftest.$ac_objext \
28392 conftest$ac_exeext conftest.$ac_ext
28393 LIBS=$ac_check_lib_save_LIBS
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28396 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28397 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28400 FDLIBS="-lsec $FDLIBS"
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28403 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28404 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28405 $as_echo_n "(cached) " >&6
28407 ac_check_lib_save_LIBS=$LIBS
28409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h. */
28412 /* Override any GCC internal prototype to avoid an error.
28413 Use char because int might match the return type of a GCC
28414 builtin and then its argument prototype would still apply. */
28418 char acl_totext ();
28422 return acl_totext ();
28427 if ac_fn_c_try_link "$LINENO"; then :
28428 ac_cv_lib_sec_acl_totext=yes
28430 ac_cv_lib_sec_acl_totext=no
28432 rm -f core conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
28434 LIBS=$ac_check_lib_save_LIBS
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28437 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28438 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28440 have_extended_acl=yes
28451 if test $have_acl = no -a \
28452 x${HAVE_AIX_OS_TRUE} = x; then
28453 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28454 if test "x$ac_cv_func_acl_get" = x""yes; then :
28458 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28459 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28461 have_extended_acl=yes
28472 if test x$support_acl = xyes -a $have_acl != yes; then
28473 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28474 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28476 if test $have_acl = yes; then
28478 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28482 if test $have_extended_acl = yes; then
28484 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28491 # Check whether --enable-xattr was given.
28492 if test "${enable_xattr+set}" = set; then :
28493 enableval=$enable_xattr;
28494 if test x$enableval = xyes; then
28496 elif test x$enableval = xno; then
28505 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28506 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28507 x${HAVE_NETBSD_OS_TRUE} = x -o \
28508 x${HAVE_OPENBSD_OS_TRUE} = x; then
28509 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28512 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28517 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28518 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28520 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28525 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 eval as_val=\$$as_ac_var
28530 if test "x$as_val" = x""yes; then :
28531 cat >>confdefs.h <<_ACEOF
28532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28537 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28540 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28543 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28551 if test $have_xattr = no; then
28552 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28556 eval as_val=\$$as_ac_var
28557 if test "x$as_val" = x""yes; then :
28558 cat >>confdefs.h <<_ACEOF
28559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28564 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28567 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28570 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28579 if test $have_xattr = yes; then
28580 have_extattr_string_in_libc=no
28581 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28585 eval as_val=\$$as_ac_var
28586 if test "x$as_val" = x""yes; then :
28587 cat >>confdefs.h <<_ACEOF
28588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28591 have_extattr_string_in_libc=yes
28593 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28596 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28604 if test $have_extattr_string_in_libc = no; then
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28606 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28607 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28608 $as_echo_n "(cached) " >&6
28610 ac_check_lib_save_LIBS=$LIBS
28611 LIBS="-lutil $LIBS"
28612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613 /* end confdefs.h. */
28615 /* Override any GCC internal prototype to avoid an error.
28616 Use char because int might match the return type of a GCC
28617 builtin and then its argument prototype would still apply. */
28621 char extattr_namespace_to_string extattr_string_to_namespace ();
28625 return extattr_namespace_to_string extattr_string_to_namespace ();
28630 if ac_fn_c_try_link "$LINENO"; then :
28631 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28633 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28635 rm -f core conftest.err conftest.$ac_objext \
28636 conftest$ac_exeext conftest.$ac_ext
28637 LIBS=$ac_check_lib_save_LIBS
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28640 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28641 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28644 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28647 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28649 FDLIBS="-lutil $FDLIBS"
28658 if test $have_xattr = no -a \
28659 x${HAVE_AIX_OS_TRUE} = x; then
28660 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28661 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28663 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28668 for ac_func in llistea lgetea lsetea
28670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28672 eval as_val=\$$as_ac_var
28673 if test "x$as_val" = x""yes; then :
28674 cat >>confdefs.h <<_ACEOF
28675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28680 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28683 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28686 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28694 if test $have_xattr = no; then
28695 for ac_func in listea getea setea
28697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28699 eval as_val=\$$as_ac_var
28700 if test "x$as_val" = x""yes; then :
28701 cat >>confdefs.h <<_ACEOF
28702 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28707 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28710 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28713 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28723 if test $have_xattr = no -a \
28724 x${HAVE_OSF1_OS_TRUE} = x; then
28725 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28726 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
28728 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28733 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28737 eval as_val=\$$as_ac_var
28738 if test "x$as_val" = x""yes; then :
28739 cat >>confdefs.h <<_ACEOF
28740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28745 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28748 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28751 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28754 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28757 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28766 if test $have_xattr = no -a \
28767 x${HAVE_SUN_OS_TRUE} = x; then
28768 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28771 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28776 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28779 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28784 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28785 if test "x$ac_cv_header_attr_h" = x""yes; then :
28787 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28793 for ac_func in openat fstatat unlinkat fchownat futimesat
28795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28797 eval as_val=\$$as_ac_var
28798 if test "x$as_val" = x""yes; then :
28799 cat >>confdefs.h <<_ACEOF
28800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28805 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28808 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28811 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28814 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28817 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28825 if test $have_xattr = yes; then
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28827 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28828 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28829 $as_echo_n "(cached) " >&6
28831 ac_check_lib_save_LIBS=$LIBS
28832 LIBS="-lnvpair $LIBS"
28833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28834 /* end confdefs.h. */
28836 /* Override any GCC internal prototype to avoid an error.
28837 Use char because int might match the return type of a GCC
28838 builtin and then its argument prototype would still apply. */
28842 char nvlist_next_nvpair ();
28846 return nvlist_next_nvpair ();
28851 if ac_fn_c_try_link "$LINENO"; then :
28852 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28854 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28856 rm -f core conftest.err conftest.$ac_objext \
28857 conftest$ac_exeext conftest.$ac_ext
28858 LIBS=$ac_check_lib_save_LIBS
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28861 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28862 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28865 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28867 FDLIBS="-lnvpair $FDLIBS"
28875 if test $have_xattr = no; then
28876 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28877 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28879 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28884 for ac_func in llistxattr lgetxattr lsetxattr
28886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28888 eval as_val=\$$as_ac_var
28889 if test "x$as_val" = x""yes; then :
28890 cat >>confdefs.h <<_ACEOF
28891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28896 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28899 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28902 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28910 if test $have_xattr = no; then
28911 for ac_func in listxattr getxattr setxattr
28913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28915 eval as_val=\$$as_ac_var
28916 if test "x$as_val" = x""yes; then :
28917 cat >>confdefs.h <<_ACEOF
28918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28923 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28926 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28929 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28939 if test x$support_xattr = xyes -a $have_xattr != yes; then
28940 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28941 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28943 if test $have_xattr = yes; then
28945 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28953 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28954 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28955 $as_echo_n "(cached) " >&6
28957 ac_check_lib_save_LIBS=$LIBS
28958 LIBS="-lpthread $LIBS"
28959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28960 /* end confdefs.h. */
28962 /* Override any GCC internal prototype to avoid an error.
28963 Use char because int might match the return type of a GCC
28964 builtin and then its argument prototype would still apply. */
28968 char pthread_create ();
28972 return pthread_create ();
28977 if ac_fn_c_try_link "$LINENO"; then :
28978 ac_cv_lib_pthread_pthread_create=yes
28980 ac_cv_lib_pthread_pthread_create=no
28982 rm -f core conftest.err conftest.$ac_objext \
28983 conftest$ac_exeext conftest.$ac_ext
28984 LIBS=$ac_check_lib_save_LIBS
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28987 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28988 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28989 PTHREAD_LIB="-lpthread"
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28993 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28994 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28995 $as_echo_n "(cached) " >&6
28997 ac_check_lib_save_LIBS=$LIBS
28998 LIBS="-lpthreads $LIBS"
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000 /* end confdefs.h. */
29002 /* Override any GCC internal prototype to avoid an error.
29003 Use char because int might match the return type of a GCC
29004 builtin and then its argument prototype would still apply. */
29008 char pthread_create ();
29012 return pthread_create ();
29017 if ac_fn_c_try_link "$LINENO"; then :
29018 ac_cv_lib_pthreads_pthread_create=yes
29020 ac_cv_lib_pthreads_pthread_create=no
29022 rm -f core conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
29024 LIBS=$ac_check_lib_save_LIBS
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29027 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29028 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29029 PTHREAD_LIB="-lpthreads"
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29033 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29034 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29035 $as_echo_n "(cached) " >&6
29037 ac_check_lib_save_LIBS=$LIBS
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h. */
29042 /* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29048 char pthread_create ();
29052 return pthread_create ();
29057 if ac_fn_c_try_link "$LINENO"; then :
29058 ac_cv_lib_c_r_pthread_create=yes
29060 ac_cv_lib_c_r_pthread_create=no
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29067 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29068 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29069 PTHREAD_LIB="-lc_r"
29072 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29073 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29090 for ac_header in sys/prctl.h sys/capability.h
29092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29094 eval as_val=\$$as_ac_Header
29095 if test "x$as_val" = x""yes; then :
29096 cat >>confdefs.h <<_ACEOF
29097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29104 for ac_func in prctl setreuid
29106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29108 eval as_val=\$$as_ac_var
29109 if test "x$as_val" = x""yes; then :
29110 cat >>confdefs.h <<_ACEOF
29111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29118 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29119 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29120 $as_echo_n "(cached) " >&6
29122 ac_check_lib_save_LIBS=$LIBS
29124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125 /* end confdefs.h. */
29127 /* Override any GCC internal prototype to avoid an error.
29128 Use char because int might match the return type of a GCC
29129 builtin and then its argument prototype would still apply. */
29133 char cap_set_proc ();
29137 return cap_set_proc ();
29142 if ac_fn_c_try_link "$LINENO"; then :
29143 ac_cv_lib_cap_cap_set_proc=yes
29145 ac_cv_lib_cap_cap_set_proc=no
29147 rm -f core conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29152 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29153 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29159 if test x$CAP_LIBS = x-lcap; then
29161 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29167 $as_echo "#define FDLIBS 1" >>confdefs.h
29170 CFLAGS=${CFLAGS--O}
29172 if test x$have_gcc = xyes ; then
29173 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29174 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29176 LDFLAGS=${LDFLAGS--O}
29177 CPPFLAGS="$CPPFLAGS"
29203 PFILES="platforms/Makefile"
29208 hostname=`uname -n | cut -d '.' -f 1`
29209 if test x${hostname} = x ; then
29210 hostname="localhost"
29212 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29213 if test ! $? = 0; then
29214 hostname="localhost"
29217 case "$DISTNAME" in
29220 PSCMD="ps -e -o pid,comm"
29221 PFILES="${PFILES} \
29222 platforms/aix/Makefile"
29223 TAPEDRIVE="/dev/rmt0.1"
29227 PTHREAD_LIB="-lpthread -lexc"
29228 if test "${CC}" = "gcc" ; then
29235 TAPEDRIVE="/dev/nrmt0"
29238 DISTVER=`uname -a |awk '{print $3}'`
29239 TAPEDRIVE="/dev/nrmt0"
29240 PTHREAD_LIB="-pthread"
29241 CFLAGS="${CFLAGS} -pthread"
29242 PSCMD="ps -ax -o pid,command"
29245 PFILES="${PFILES} \
29246 platforms/bsdi/Makefile \
29247 platforms/bsdi/bacula-fd \
29248 platforms/bsdi/bacula-sd \
29249 platforms/bsdi/bacula-dir"
29250 largefile_support="yes"
29253 DISTVER=`uname -a |awk '{print $3}'`
29254 TAPEDRIVE="/dev/nrst0"
29256 WCFLAGS="-mwindows"
29257 WLDFLAGS="-mwindows"
29261 TAPEDRIVE="/dev/nst0"
29262 PSCMD="ps -e -o pid,command"
29264 PFILES="${PFILES} \
29265 platforms/darwin/Makefile"
29269 TAPEDRIVE="/dev/nst0"
29270 PSCMD="ps -e -o pid,command"
29272 PFILES="${PFILES} \
29273 platforms/osx/Makefile"
29276 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29279 DISTVER=`cat /etc/debian_version`
29280 if test -f /etc/lsb-release ; then
29282 if test "x$DISTRIB_ID" != "x" ; then
29283 DISTNAME=$DISTRIB_ID
29285 if test "x$DISTRIB_RELEASE" != "x" ; then
29286 DISTVER=$DISTRIB_RELEASE
29289 if test "$DISTNAME" = "Ubuntu" ; then
29292 TAPEDRIVE="/dev/nst0"
29293 PSCMD="ps -e -o pid,command"
29294 if test "$DISTNAME" = "ubuntu" ; then
29295 PFILES="${PFILES} \
29296 platforms/ubuntu/Makefile \
29297 platforms/ubuntu/bacula-fd \
29298 platforms/ubuntu/bacula-sd \
29299 platforms/ubuntu/bacula-dir"
29301 PFILES="${PFILES} \
29302 platforms/debian/Makefile \
29303 platforms/debian/bacula-fd \
29304 platforms/debian/bacula-sd \
29305 platforms/debian/bacula-dir"
29309 DISTVER=`uname -a |awk '{print $3}'`
29310 VER=`echo $DISTVER | cut -c 1`
29311 if test x$VER = x4 ; then
29312 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29313 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29317 TAPEDRIVE="/dev/nrsa0"
29318 PSCMD="ps -ax -o pid,command"
29319 PFILES="${PFILES} \
29320 platforms/freebsd/Makefile \
29321 platforms/freebsd/bacula-fd \
29322 platforms/freebsd/bacula-sd \
29323 platforms/freebsd/bacula-dir"
29324 largefile_support="yes"
29327 PSCMD="UNIX95=1; ps -e -o pid,comm"
29328 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29330 TAPEDRIVE="/dev/rmt/0hnb"
29331 PTHREAD_LIB="-lpthread"
29332 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29337 TAPEDRIVE="/dev/rmt/0cbn"
29338 PSCMD="ps -e -o pid,comm"
29339 PFILES="${PFILES} \
29340 platforms/irix/Makefile \
29341 platforms/irix/bacula-fd \
29342 platforms/irix/bacula-sd \
29343 platforms/irix/bacula-dir"
29346 DISTVER=`uname -a |awk '{print $3}'`
29349 TAPEDRIVE="/dev/nrst0"
29350 PSCMD="ps -ax -o pid,command"
29351 PTHREAD_LIB="-pthread"
29352 CFLAGS="${CFLAGS} -pthread"
29355 DISTVER=`uname -a |awk '{print $3}'`
29358 TAPEDRIVE="/dev/nrst0"
29359 PSCMD="ps -ax -o pid,command"
29360 PTHREAD_LIB="-pthread"
29361 CFLAGS="${CFLAGS} -pthread"
29362 PFILES="${PFILES} \
29363 platforms/openbsd/Makefile \
29364 platforms/openbsd/bacula-fd \
29365 platforms/openbsd/bacula-sd \
29366 platforms/openbsd/bacula-dir"
29369 if test -f /etc/whitebox-release ; then
29370 f=/etc/whitebox-release
29372 f=/etc/redhat-release
29374 if test `cat $f | grep release |\
29375 cut -f 3 -d ' '`x = "Enterprise"x ; then
29376 DISTVER="Enterprise "`cat $f | grep release |\
29379 DISTVER=`cat /etc/redhat-release | grep release |\
29382 TAPEDRIVE="/dev/nst0"
29383 PSCMD="ps -e -o pid,command"
29384 PFILES="${PFILES} \
29385 platforms/redhat/Makefile \
29386 platforms/redhat/bacula-fd \
29387 platforms/redhat/bacula-sd \
29388 platforms/redhat/bacula-dir
29392 DISTVER=`cat /etc/mandrake-release | grep release |\
29394 TAPEDRIVE="/dev/nst0"
29395 PSCMD="ps -e -o pid,command"
29396 PFILES="${PFILES} \
29397 platforms/mandrake/Makefile \
29398 platforms/mandrake/bacula-fd \
29399 platforms/mandrake/bacula-sd \
29400 platforms/mandrake/bacula-dir \
29404 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29405 TAPEDRIVE="/dev/nst0"
29406 PSCMD="ps -e -o pid,command"
29407 PFILES="${PFILES} \
29408 platforms/gentoo/Makefile \
29409 platforms/gentoo/bacula-init \
29410 platforms/gentoo/bacula-fd \
29411 platforms/gentoo/bacula-sd \
29412 platforms/gentoo/bacula-dir"
29415 DISTVER=`cat /etc/slackware-version`
29416 TAPEDRIVE="/dev/nst0"
29417 PSCMD="ps -e -o pid,command"
29418 PFILES="${PFILES} \
29419 platforms/slackware/Makefile \
29420 platforms/slackware/rc.bacula-fd \
29421 platforms/slackware/rc.bacula-sd \
29422 platforms/slackware/rc.bacula-dir\
29423 platforms/slackware/functions.bacula"
29427 TAPEDRIVE="/dev/rmt/0cbn"
29428 PSCMD="ps -e -o pid,comm"
29429 PFILES="${PFILES} \
29430 platforms/solaris/Makefile \
29431 platforms/solaris/bacula-fd \
29432 platforms/solaris/bacula-sd \
29433 platforms/solaris/bacula-dir"
29436 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29438 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29442 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29448 LIBS="$LIBS -lresolv -lrt"
29451 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
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 \
29460 platforms/suse/bacula"
29465 TAPEDRIVE="/dev/nst0"
29466 PSCMD="ps -e -o pid,command"
29467 PFILES="${PFILES} \
29468 platforms/suse/Makefile \
29469 platforms/suse/bacula-fd \
29470 platforms/suse/bacula-sd \
29471 platforms/suse/bacula-dir"
29475 TAPEDRIVE="/dev/nst0"
29478 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29484 LIBS="$PTHREAD_LIB $LIBS"
29486 cat >>confdefs.h <<_ACEOF
29490 cat >>confdefs.h <<_ACEOF
29501 MCOMMON=./autoconf/Make.common
29504 if test "x${subsysdir}" = "x${sbindir}" ; then
29507 echo "You have set both --sbindir and --with-subsys-dir"
29508 echo " equal to: ${subsysdir} "
29509 echo "This is not permitted. Please reconfigure."
29511 echo "Aborting configuration ..."
29517 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"
29519 ac_config_commands="$ac_config_commands default"
29521 cat >confcache <<\_ACEOF
29522 # This file is a shell script that caches the results of configure
29523 # tests run on this system so they can be shared between configure
29524 # scripts and configure runs, see configure's option --config-cache.
29525 # It is not useful on other systems. If it contains results you don't
29526 # want to keep, you may remove or edit it.
29528 # config.status only pays attention to the cache file if you give it
29529 # the --recheck option to rerun configure.
29531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29533 # following values.
29537 # The following way of writing the cache mishandles newlines in values,
29538 # but we know of no workaround that is simple, portable, and efficient.
29539 # So, we kill variables containing newlines.
29540 # Ultrix sh set writes to stderr and can't be redirected directly,
29541 # and sets the high bit in the cache file unless we assign to the vars.
29543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29544 eval ac_val=\$$ac_var
29548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29552 _ | IFS | as_nl) ;; #(
29553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29554 *) { eval $ac_var=; unset $ac_var;} ;;
29560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29561 *${as_nl}ac_space=\ *)
29562 # `set' does not quote correctly, so add quotes: double-quote
29563 # substitution turns \\\\ into \\, and sed turns \\ into \.
29566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29569 # `set' quotes correctly as required by POSIX, so do not add quotes.
29570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29584 if test -w "$cache_file"; then
29585 test "x$cache_file" != "x/dev/null" &&
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29587 $as_echo "$as_me: updating cache $cache_file" >&6;}
29588 cat confcache >$cache_file
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29597 # Let make expand exec_prefix.
29598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29600 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.
29722 *[\\/]* ) as_myself=$0 ;;
29723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29724 for as_dir in $PATH
29727 test -z "$as_dir" && as_dir=.
29728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29734 # We did not find ourselves, most probably we were run as `sh COMMAND'
29735 # in which case we are not to be found in the path.
29736 if test "x$as_myself" = x; then
29739 if test ! -f "$as_myself"; then
29740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29744 # Unset variables that we do not need and which cause bugs (e.g. in
29745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29746 # suppresses any "Segmentation fault" message there. '((' could
29747 # trigger a bug in pdksh 5.2.14.
29748 for as_var in BASH_ENV ENV MAIL MAILPATH
29749 do eval test x\${$as_var+set} = xset \
29750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29766 # as_fn_error ERROR [LINENO LOG_FD]
29767 # ---------------------------------
29768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29770 # script with status $?, using 1 if that was 0.
29773 as_status=$?; test $as_status -eq 0 && as_status=1
29775 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29778 $as_echo "$as_me: error: $1" >&2
29779 as_fn_exit $as_status
29783 # as_fn_set_status STATUS
29784 # -----------------------
29785 # Set $? to STATUS, without forking.
29786 as_fn_set_status ()
29789 } # as_fn_set_status
29791 # as_fn_exit STATUS
29792 # -----------------
29793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29797 as_fn_set_status $1
29803 # Portably unset VAR.
29806 { eval $1=; unset $1;}
29808 as_unset=as_fn_unset
29809 # as_fn_append VAR VALUE
29810 # ----------------------
29811 # Append the text in VALUE to the end of the definition contained in VAR. Take
29812 # advantage of any shell optimizations that allow amortized linear growth over
29813 # repeated appends, instead of the typical quadratic growth present in naive
29815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29816 eval 'as_fn_append ()
29827 # as_fn_arith ARG...
29828 # ------------------
29829 # Perform arithmetic evaluation on the ARGs, and store the result in the
29830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29831 # must be portable across $(()) and expr.
29832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29833 eval 'as_fn_arith ()
29840 as_val=`expr "$@" || test $? -eq 1`
29845 if expr a : '\(a\)' >/dev/null 2>&1 &&
29846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29853 as_basename=basename
29858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29864 as_me=`$as_basename -- "$0" ||
29865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29866 X"$0" : 'X\(//\)$' \| \
29867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29869 sed '/^.*\/\([^/][^/]*\)\/*$/{
29883 # Avoid depending upon Character Ranges.
29884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29887 as_cr_digits='0123456789'
29888 as_cr_alnum=$as_cr_Letters$as_cr_digits
29890 ECHO_C= ECHO_N= ECHO_T=
29891 case `echo -n x` in #(((((
29893 case `echo 'xy\c'` in
29894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29903 rm -f conf$$ conf$$.exe conf$$.file
29904 if test -d conf$$.dir; then
29905 rm -f conf$$.dir/conf$$.file
29908 mkdir conf$$.dir 2>/dev/null
29910 if (echo >conf$$.file) 2>/dev/null; then
29911 if ln -s conf$$.file conf$$ 2>/dev/null; then
29913 # ... but there are two gotchas:
29914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29916 # In both cases, we have to default to `cp -p'.
29917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29919 elif ln conf$$.file conf$$ 2>/dev/null; then
29927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29928 rmdir conf$$.dir 2>/dev/null
29933 # Create "$as_dir" as a directory, including parents if necessary.
29938 -*) as_dir=./$as_dir;;
29940 test -d "$as_dir" || eval $as_mkdir_p || {
29944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29945 *) as_qdir=$as_dir;;
29947 as_dirs="'$as_qdir' $as_dirs"
29948 as_dir=`$as_dirname -- "$as_dir" ||
29949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29950 X"$as_dir" : 'X\(//\)[^/]' \| \
29951 X"$as_dir" : 'X\(//\)$' \| \
29952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29953 $as_echo X"$as_dir" |
29954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29958 /^X\(\/\/\)[^/].*/{
29971 test -d "$as_dir" && break
29973 test -z "$as_dirs" || eval "mkdir $as_dirs"
29974 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29978 if mkdir -p . 2>/dev/null; then
29979 as_mkdir_p='mkdir -p "$as_dir"'
29981 test -d ./-p && rmdir ./-p
29985 if test -x / >/dev/null 2>&1; then
29986 as_test_x='test -x'
29988 if ls -dL / >/dev/null 2>&1; then
29995 if test -d "$1"; then
30001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30002 ???[sx]*):;;*)false;;esac;fi
30006 as_executable_p=$as_test_x
30008 # Sed expression to map a string onto a valid CPP name.
30009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30011 # Sed expression to map a string onto a valid variable name.
30012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30016 ## ----------------------------------- ##
30017 ## Main body of $CONFIG_STATUS script. ##
30018 ## ----------------------------------- ##
30020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30023 # Save the log message, to keep $0 and so on meaningful, and to
30024 # report actual input values of CONFIG_FILES etc. instead of their
30025 # values after options handling.
30027 This file was extended by bacula $as_me 5.1.14, which was
30028 generated by GNU Autoconf 2.65. Invocation command line was
30030 CONFIG_FILES = $CONFIG_FILES
30031 CONFIG_HEADERS = $CONFIG_HEADERS
30032 CONFIG_LINKS = $CONFIG_LINKS
30033 CONFIG_COMMANDS = $CONFIG_COMMANDS
30036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30041 case $ac_config_files in *"
30042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30045 case $ac_config_headers in *"
30046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30051 # Files that config.status was made for.
30052 config_files="$ac_config_files"
30053 config_headers="$ac_config_headers"
30054 config_commands="$ac_config_commands"
30058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30060 \`$as_me' instantiates files and other configuration actions
30061 from templates according to the current configuration. Unless the files
30062 and actions are specified as TAGs, all are instantiated by default.
30064 Usage: $0 [OPTION]... [TAG]...
30066 -h, --help print this help, then exit
30067 -V, --version print version number and configuration settings, then exit
30068 --config print configuration, then exit
30069 -q, --quiet, --silent
30070 do not print progress messages
30071 -d, --debug don't remove temporary files
30072 --recheck update $as_me by reconfiguring in the same conditions
30073 --file=FILE[:TEMPLATE]
30074 instantiate the configuration file FILE
30075 --header=FILE[:TEMPLATE]
30076 instantiate the configuration header FILE
30078 Configuration files:
30081 Configuration headers:
30084 Configuration commands:
30087 Report bugs to the package provider."
30090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30093 bacula config.status 5.1.14
30094 configured by $0, generated by GNU Autoconf 2.65,
30095 with options \\"\$ac_cs_config\\"
30097 Copyright (C) 2009 Free Software Foundation, Inc.
30098 This config.status script is free software; the Free Software Foundation
30099 gives unlimited permission to copy, distribute and modify it."
30105 test -n "\$AWK" || AWK=awk
30108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30109 # The default lists apply if the user does not specify any file.
30115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30127 # Handling of the options.
30128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30131 $as_echo "$ac_cs_version"; exit ;;
30132 --config | --confi | --conf | --con | --co | --c )
30133 $as_echo "$ac_cs_config"; exit ;;
30134 --debug | --debu | --deb | --de | --d | -d )
30136 --file | --fil | --fi | --f )
30139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30141 as_fn_append CONFIG_FILES " '$ac_optarg'"
30142 ac_need_defaults=false;;
30143 --header | --heade | --head | --hea )
30146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30148 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30149 ac_need_defaults=false;;
30151 # Conflict between --help and --header
30152 as_fn_error "ambiguous option: \`$1'
30153 Try \`$0 --help' for more information.";;
30154 --help | --hel | -h )
30155 $as_echo "$ac_cs_usage"; exit ;;
30156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30160 # This is an error.
30161 -*) as_fn_error "unrecognized option: \`$1'
30162 Try \`$0 --help' for more information." ;;
30164 *) as_fn_append ac_config_targets " $1"
30165 ac_need_defaults=false ;;
30171 ac_configure_extra_args=
30173 if $ac_cs_silent; then
30175 ac_configure_extra_args="$ac_configure_extra_args --silent"
30179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30180 if \$ac_cs_recheck; then
30181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30184 CONFIG_SHELL='$SHELL'
30185 export CONFIG_SHELL
30190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30195 ## Running $as_me. ##
30201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30207 # The HP-UX ksh and POSIX shell print the target directory to stdout
30208 # if CDPATH is set.
30209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30211 sed_quote_subst='$sed_quote_subst'
30212 double_quote_subst='$double_quote_subst'
30213 delay_variable_subst='$delay_variable_subst'
30214 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30215 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30216 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30217 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30218 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30219 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30220 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30221 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30222 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30223 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30224 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30225 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30226 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30227 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30228 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30229 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30230 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30231 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30232 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30233 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30234 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30235 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30236 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30237 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30238 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30239 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30240 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30241 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30242 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30243 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30244 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30245 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30246 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30247 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30248 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30249 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30250 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30251 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30252 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30253 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30254 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30255 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30256 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30258 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"`'
30259 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"`'
30260 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30261 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30262 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30263 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30264 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30265 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30266 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30267 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30268 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30269 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30270 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30271 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30272 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30273 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30274 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30275 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30276 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30277 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30278 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30279 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30280 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30281 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30282 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30283 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30284 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30285 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30286 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30287 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30288 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30289 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30290 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30291 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30292 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30293 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30294 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30295 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30296 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30297 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30298 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30299 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30300 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30301 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30302 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30303 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30304 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30305 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30306 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30307 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30308 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30309 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30310 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30311 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30312 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30313 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30314 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30315 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30316 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30317 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30318 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30319 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30320 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30321 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30322 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30323 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30324 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30325 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30326 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30327 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30328 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30329 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30330 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30331 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30332 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30333 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30334 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30335 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30336 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30337 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30338 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30339 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30340 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30341 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30342 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30343 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30344 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30345 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30346 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30347 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30348 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30349 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30387 LTCFLAGS='$LTCFLAGS'
30388 compiler='$compiler_DEFAULT'
30390 # Quote evaled strings.
30402 deplibs_check_method \
30411 lt_cv_sys_global_symbol_pipe \
30412 lt_cv_sys_global_symbol_to_cdecl \
30413 lt_cv_sys_global_symbol_to_c_name_address \
30414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30417 lt_prog_compiler_no_builtin_flag \
30418 lt_prog_compiler_wl \
30419 lt_prog_compiler_pic \
30420 lt_prog_compiler_static \
30421 lt_cv_prog_compiler_c_o \
30429 export_dynamic_flag_spec \
30430 whole_archive_flag_spec \
30431 compiler_needs_object \
30433 allow_undefined_flag \
30434 no_undefined_flag \
30435 hardcode_libdir_flag_spec \
30436 hardcode_libdir_flag_spec_ld \
30437 hardcode_libdir_separator \
30442 variables_saved_for_relink \
30444 library_names_spec \
30449 compiler_lib_search_dirs \
30454 compiler_lib_search_path \
30457 lt_prog_compiler_no_builtin_flag_CXX \
30458 lt_prog_compiler_wl_CXX \
30459 lt_prog_compiler_pic_CXX \
30460 lt_prog_compiler_static_CXX \
30461 lt_cv_prog_compiler_c_o_CXX \
30462 export_dynamic_flag_spec_CXX \
30463 whole_archive_flag_spec_CXX \
30464 compiler_needs_object_CXX \
30466 allow_undefined_flag_CXX \
30467 no_undefined_flag_CXX \
30468 hardcode_libdir_flag_spec_CXX \
30469 hardcode_libdir_flag_spec_ld_CXX \
30470 hardcode_libdir_separator_CXX \
30471 fix_srcfile_path_CXX \
30472 exclude_expsyms_CXX \
30473 include_expsyms_CXX \
30474 file_list_spec_CXX \
30475 compiler_lib_search_dirs_CXX \
30476 predep_objects_CXX \
30477 postdep_objects_CXX \
30480 compiler_lib_search_path_CXX; do
30481 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30482 *[\\\\\\\`\\"\\\$]*)
30483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30491 # Double-quote double-evaled strings.
30492 for var in reload_cmds \
30493 old_postinstall_cmds \
30494 old_postuninstall_cmds \
30496 extract_expsyms_cmds \
30497 old_archive_from_new_cmds \
30498 old_archive_from_expsyms_cmds \
30500 archive_expsym_cmds \
30502 module_expsym_cmds \
30503 export_symbols_cmds \
30506 postuninstall_cmds \
30508 sys_lib_search_path_spec \
30509 sys_lib_dlsearch_path_spec \
30510 old_archive_cmds_CXX \
30511 old_archive_from_new_cmds_CXX \
30512 old_archive_from_expsyms_cmds_CXX \
30514 archive_expsym_cmds_CXX \
30516 module_expsym_cmds_CXX \
30517 export_symbols_cmds_CXX \
30518 prelink_cmds_CXX; do
30519 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30520 *[\\\\\\\`\\"\\\$]*)
30521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30529 # Fix-up fallback echo if it was mangled by the above quoting rules.
30531 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30535 ac_aux_dir='$ac_aux_dir'
30536 xsi_shell='$xsi_shell'
30537 lt_shell_append='$lt_shell_append'
30539 # See if we are running on zsh, and set the options which allow our
30540 # commands through without removal of \ escapes INIT.
30541 if test -n "\${ZSH_VERSION+set}" ; then
30542 setopt NO_GLOB_SUBST
30548 TIMESTAMP='$TIMESTAMP'
30556 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30557 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30559 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30560 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30561 LINGUAS="${LINGUAS-%UNSET%}"
30566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30568 # Handling of arguments.
30569 for ac_config_target in $ac_config_targets
30571 case $ac_config_target in
30572 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30573 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30574 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30575 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30576 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30577 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30578 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30579 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30580 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30581 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30582 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30583 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30584 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30585 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30586 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30587 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30588 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30589 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30590 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30591 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30592 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30593 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30594 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30595 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30596 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30597 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30598 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30599 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30600 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30601 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30602 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30603 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30604 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30605 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30606 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30607 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30608 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30609 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30610 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30611 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30612 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30613 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30614 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30615 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30616 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30617 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30618 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30619 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30620 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30621 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30622 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30623 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30624 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30625 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30626 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30627 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30628 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30629 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30630 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30631 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30632 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30633 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30634 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30635 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30636 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30637 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30638 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30639 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30640 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30641 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30642 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30643 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30644 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30645 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30646 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30647 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30648 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30649 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30650 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30651 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30652 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30653 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30654 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30655 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30656 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30657 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30658 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30659 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30660 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30661 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30662 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30663 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30664 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30665 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30666 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30667 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30668 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30669 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30670 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30671 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30672 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30673 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30674 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30675 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30676 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30677 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30679 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30684 # If the user did not use the arguments to specify the items to instantiate,
30685 # then the envvar interface is used. Set only those that are not.
30686 # We use the long form for the default assignment because of an extremely
30687 # bizarre bug on SunOS 4.1.3.
30688 if $ac_need_defaults; then
30689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30694 # Have a temporary directory for convenience. Make it in the build tree
30695 # simply because there is no reason against having it here, and in addition,
30696 # creating and moving files from /tmp can sometimes cause problems.
30697 # Hook for its removal unless debugging.
30698 # Note that there is a small window in which the directory will not be cleaned:
30699 # after its creation but before its name has been assigned to `$tmp'.
30703 trap 'exit_status=$?
30704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30706 trap 'as_fn_exit 1' 1 2 13 15
30708 # Create a (secure) tmp directory for tmp files.
30711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30712 test -n "$tmp" && test -d "$tmp"
30715 tmp=./conf$$-$RANDOM
30716 (umask 077 && mkdir "$tmp")
30717 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30719 # Set up the scripts for CONFIG_FILES section.
30720 # No need to generate them if there are no CONFIG_FILES.
30721 # This happens for instance with `./config.status config.h'.
30722 if test -n "$CONFIG_FILES"; then
30724 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30725 ac_cs_awk_getline=:
30726 ac_cs_awk_pipe_init=
30727 ac_cs_awk_read_file='
30728 while ((getline aline < (F[key])) > 0)
30731 ac_cs_awk_pipe_fini=
30733 ac_cs_awk_getline=false
30734 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30735 ac_cs_awk_read_file='
30737 print "cat " F[key] " &&"
30738 '$ac_cs_awk_pipe_init
30739 # The final `:' finishes the AND list.
30740 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30742 ac_cr=`echo X | tr X '\015'`
30743 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30744 # But we know of no other shell where ac_cr would be empty at this
30745 # point, so we can use a bashism as a fallback.
30746 if test "x$ac_cr" = x; then
30747 eval ac_cr=\$\'\\r\'
30749 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30750 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30753 ac_cs_awk_cr=$ac_cr
30756 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30759 # Create commands to substitute file output variables.
30761 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30762 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30763 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30766 } >conf$$files.sh &&
30767 . ./conf$$files.sh ||
30768 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30769 rm -f conf$$files.sh
30772 echo "cat >conf$$subs.awk <<_ACEOF" &&
30773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30775 } >conf$$subs.sh ||
30776 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30777 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30779 for ac_last_try in false false false false false :; do
30780 . ./conf$$subs.sh ||
30781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30784 if test $ac_delim_n = $ac_delim_num; then
30786 elif $ac_last_try; then
30787 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30792 rm -f conf$$subs.sh
30794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30795 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30799 s/^/S["/; s/!.*/"]=/
30809 s/\(.\{148\}\)..*/\1/
30811 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30823 s/\(.\{148\}\)..*/\1/
30825 s/["\\]/\\&/g; s/^/"/; s/$/"/
30829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30834 ' <conf$$subs.awk | sed '
30839 ' >>$CONFIG_STATUS || ac_write_fail=1
30840 rm -f conf$$subs.awk
30841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30844 for (key in S) S_is_set[key] = 1
30846 \$ac_cs_awk_pipe_init
30850 nfields = split(line, field, "@")
30852 len = length(field[1])
30853 for (i = 2; i < nfields; i++) {
30855 keylen = length(key)
30856 if (S_is_set[key]) {
30858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30859 len += length(value) + length(field[++i])
30864 if (nfields == 3 && !substed) {
30866 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30867 \$ac_cs_awk_read_file
30873 \$ac_cs_awk_pipe_fini
30876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30881 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30882 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30887 # trailing colons and then remove the whole line if VPATH becomes empty
30888 # (actually we leave an empty line to preserve line numbers).
30889 if test "x$srcdir" = x.; then
30890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30891 s/:*\$(srcdir):*/:/
30892 s/:*\${srcdir}:*/:/
30894 s/^\([^=]*=[ ]*\):*/\1/
30900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30901 fi # test -n "$CONFIG_FILES"
30903 # Set up the scripts for CONFIG_HEADERS section.
30904 # No need to generate them if there are no CONFIG_HEADERS.
30905 # This happens for instance with `./config.status Makefile'.
30906 if test -n "$CONFIG_HEADERS"; then
30907 cat >"$tmp/defines.awk" <<\_ACAWK ||
30911 # Transform confdefs.h into an awk script `defines.awk', embedded as
30912 # here-document in config.status, that substitutes the proper values into
30913 # config.h.in to produce config.h.
30915 # Create a delimiter string that does not exist in confdefs.h, to ease
30916 # handling of long lines.
30918 for ac_last_try in false false :; do
30919 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30920 if test -z "$ac_t"; then
30922 elif $ac_last_try; then
30923 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30929 # For the awk script, D is an array of macro values keyed by name,
30930 # likewise P contains macro parameters if any. Preserve backslash
30931 # newline sequences.
30933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30935 s/.\{148\}/&'"$ac_delim"'/g
30938 s/^[ ]*#[ ]*define[ ][ ]*/ /
30945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30952 D["\1"]=" \3\\\\\\n"\\/p
30954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30959 s/.\{148\}/&'"$ac_delim"'/g
30964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30969 ' <confdefs.h | sed '
30970 s/'"$ac_delim"'/"\\\
30971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30974 for (key in D) D_is_set[key] = 1
30977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30979 split(line, arg, " ")
30980 if (arg[1] == "#") {
30984 defundef = substr(arg[1], 2)
30987 split(mac1, mac2, "(") #)
30989 prefix = substr(line, 1, index(line, defundef) - 1)
30990 if (D_is_set[macro]) {
30991 # Preserve the white space surrounding the "#".
30992 print prefix "define", macro P[macro] D[macro]
30995 # Replace #undef with comments. This is necessary, for example,
30996 # in the case of _POSIX_SOURCE, which is predefined and required
30997 # on some systems where configure will not decide to define it.
30998 if (defundef == "undef") {
30999 print "/*", prefix defundef, macro, "*/"
31007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31008 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31009 fi # test -n "$CONFIG_HEADERS"
31012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31017 :[FHLC]) ac_mode=$ac_tag; continue;;
31019 case $ac_mode$ac_tag in
31021 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31022 :[FH]-) ac_tag=-:-;;
31023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31040 -) ac_f="$tmp/stdin";;
31041 *) # Look for the file first in the build tree, then in the source tree
31042 # (if the path is not absolute). The absolute path cannot be DOS-style,
31043 # because $ac_f cannot contain `:'.
31047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31049 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31052 as_fn_append ac_file_inputs " '$ac_f'"
31055 # Let's still pretend it is `configure' which instantiates (i.e., don't
31056 # use $as_me), people would be surprised to read:
31057 # /* config.h. Generated by config.status. */
31058 configure_input='Generated from '`
31059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31061 if test x"$ac_file" != x-; then
31062 configure_input="$ac_file. $configure_input"
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31064 $as_echo "$as_me: creating $ac_file" >&6;}
31066 # Neutralize special characters interpreted by sed in replacement strings.
31067 case $configure_input in #(
31068 *\&* | *\|* | *\\* )
31069 ac_sed_conf_input=`$as_echo "$configure_input" |
31070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31071 *) ac_sed_conf_input=$configure_input;;
31075 *:-:* | *:-) cat >"$tmp/stdin" \
31076 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31081 ac_dir=`$as_dirname -- "$ac_file" ||
31082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31083 X"$ac_file" : 'X\(//\)[^/]' \| \
31084 X"$ac_file" : 'X\(//\)$' \| \
31085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31086 $as_echo X"$ac_file" |
31087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31091 /^X\(\/\/\)[^/].*/{
31104 as_dir="$ac_dir"; as_fn_mkdir_p
31108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31111 # A ".." for each directory in $ac_dir_suffix.
31112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31113 case $ac_top_builddir_sub in
31114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31118 ac_abs_top_builddir=$ac_pwd
31119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31120 # for backward compatibility:
31121 ac_top_builddir=$ac_top_build_prefix
31124 .) # We are building in place.
31126 ac_top_srcdir=$ac_top_builddir_sub
31127 ac_abs_top_srcdir=$ac_pwd ;;
31128 [\\/]* | ?:[\\/]* ) # Absolute name.
31129 ac_srcdir=$srcdir$ac_dir_suffix;
31130 ac_top_srcdir=$srcdir
31131 ac_abs_top_srcdir=$srcdir ;;
31132 *) # Relative name.
31133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31134 ac_top_srcdir=$ac_top_build_prefix$srcdir
31135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31153 # If the template does not know about datarootdir, expand it.
31154 # FIXME: This hack should be removed a few years after 2.60.
31155 ac_datarootdir_hack=; ac_datarootdir_seen=
31166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31167 *datarootdir*) ac_datarootdir_seen=yes;;
31168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31173 ac_datarootdir_hack='
31174 s&@datadir@&$datadir&g
31175 s&@docdir@&$docdir&g
31176 s&@infodir@&$infodir&g
31177 s&@localedir@&$localedir&g
31178 s&@mandir@&$mandir&g
31179 s&\\\${datarootdir}&$datarootdir&g' ;;
31183 # Neutralize VPATH when `$srcdir' = `.'.
31184 # Shell code in configure.ac might set extrasub.
31185 # FIXME: do we really want to maintain this feature?
31186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31187 ac_sed_extra="$ac_vpsub
31190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31193 s|@configure_input@|$ac_sed_conf_input|;t t
31194 s&@top_builddir@&$ac_top_builddir_sub&;t t
31195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31196 s&@srcdir@&$ac_srcdir&;t t
31197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31198 s&@top_srcdir@&$ac_top_srcdir&;t t
31199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31200 s&@builddir@&$ac_builddir&;t t
31201 s&@abs_builddir@&$ac_abs_builddir&;t t
31202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31203 s&@INSTALL@&$ac_INSTALL&;t t
31204 $ac_datarootdir_hack
31206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31207 if $ac_cs_awk_getline; then
31208 $AWK -f "$tmp/subs.awk"
31210 $AWK -f "$tmp/subs.awk" | $SHELL
31212 || as_fn_error "could not create $ac_file" "$LINENO" 5
31214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31218 which seems to be undefined. Please make sure it is defined." >&5
31219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31220 which seems to be undefined. Please make sure it is defined." >&2;}
31224 -) cat "$tmp/out" && rm -f "$tmp/out";;
31225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31227 || as_fn_error "could not create $ac_file" "$LINENO" 5
31233 if test x"$ac_file" != x-; then
31235 $as_echo "/* $configure_input */" \
31236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31237 } >"$tmp/config.h" \
31238 || as_fn_error "could not create $ac_file" "$LINENO" 5
31239 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31244 mv "$tmp/config.h" "$ac_file" \
31245 || as_fn_error "could not create $ac_file" "$LINENO" 5
31248 $as_echo "/* $configure_input */" \
31249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31250 || as_fn_error "could not create -" "$LINENO" 5
31254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31255 $as_echo "$as_me: executing $ac_file commands" >&6;}
31260 case $ac_file$ac_mode in
31263 # See if we are running on zsh, and set the options which allow our
31264 # commands through without removal of \ escapes.
31265 if test -n "${ZSH_VERSION+set}" ; then
31266 setopt NO_GLOB_SUBST
31269 cfgfile="${ofile}T"
31270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31273 cat <<_LT_EOF >> "$cfgfile"
31276 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31277 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31282 # 2006, 2007, 2008 Free Software Foundation, Inc.
31283 # Written by Gordon Matzigkeit, 1996
31285 # This file is part of GNU Libtool.
31287 # GNU Libtool is free software; you can redistribute it and/or
31288 # modify it under the terms of the GNU General Public License as
31289 # published by the Free Software Foundation; either version 2 of
31290 # the License, or (at your option) any later version.
31292 # As a special exception to the GNU General Public License,
31293 # if you distribute this file as part of a program or library that
31294 # is built using GNU Libtool, you may include this file under the
31295 # same distribution terms that you use for the rest of that program.
31297 # GNU Libtool is distributed in the hope that it will be useful,
31298 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31300 # GNU General Public License for more details.
31302 # You should have received a copy of the GNU General Public License
31303 # along with GNU Libtool; see the file COPYING. If not, a copy
31304 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31305 # obtained by writing to the Free Software Foundation, Inc.,
31306 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31309 # The names of the tagged configurations supported by this script.
31310 available_tags="CXX "
31312 # ### BEGIN LIBTOOL CONFIG
31314 # Which release of libtool.m4 was used?
31315 macro_version=$macro_version
31316 macro_revision=$macro_revision
31318 # Whether or not to build shared libraries.
31319 build_libtool_libs=$enable_shared
31321 # Whether or not to build static libraries.
31322 build_old_libs=$enable_static
31324 # What type of objects to build.
31327 # Whether or not to optimize for fast installation.
31328 fast_install=$enable_fast_install
31331 host_alias=$host_alias
31335 # The build system.
31336 build_alias=$build_alias
31340 # A sed program that does not truncate output.
31343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31344 Xsed="\$SED -e 1s/^X//"
31346 # A grep program that handles long lines.
31352 # A literal string matcher.
31355 # A BSD- or MS-compatible name lister.
31358 # Whether we need soft or hard links.
31361 # What is the maximum length of a command?
31362 max_cmd_len=$max_cmd_len
31364 # Object file suffix (normally "o").
31367 # Executable file suffix (normally "").
31370 # whether the shell understands "unset".
31373 # turn spaces into newlines.
31376 # turn newlines into spaces.
31379 # How to create reloadable object files.
31380 reload_flag=$lt_reload_flag
31381 reload_cmds=$lt_reload_cmds
31383 # An object symbol dumper.
31384 OBJDUMP=$lt_OBJDUMP
31386 # Method to check whether dependent libraries are shared objects.
31387 deplibs_check_method=$lt_deplibs_check_method
31389 # Command to use when deplibs_check_method == "file_magic".
31390 file_magic_cmd=$lt_file_magic_cmd
31394 AR_FLAGS=$lt_AR_FLAGS
31396 # A symbol stripping program.
31399 # Commands used to install an old-style archive.
31401 old_postinstall_cmds=$lt_old_postinstall_cmds
31402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31407 # LTCC compiler flags.
31408 LTCFLAGS=$lt_CFLAGS
31410 # Take the output of nm and produce a listing of raw symbols and C names.
31411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31413 # Transform the output of nm in a proper C declaration.
31414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31416 # Transform the output of nm in a C name address pair.
31417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31419 # Transform the output of nm in a C name address pair when lib prefix is needed.
31420 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31422 # The name of the directory that contains temporary libtool files.
31425 # Shell to use when invoking shell scripts.
31428 # An echo program that does not interpret backslashes.
31431 # Used to examine libraries when file_magic_cmd begins with "file".
31432 MAGIC_CMD=$MAGIC_CMD
31434 # Must we lock files when doing compilation?
31435 need_locks=$lt_need_locks
31437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31438 DSYMUTIL=$lt_DSYMUTIL
31440 # Tool to change global to local symbols on Mac OS X.
31443 # Tool to manipulate fat objects and archives on Mac OS X.
31446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31450 OTOOL64=$lt_OTOOL64
31452 # Old archive suffix (normally "a").
31455 # Shared library suffix (normally ".so").
31456 shrext_cmds=$lt_shrext_cmds
31458 # The commands to extract the exported symbol list from a shared archive.
31459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31461 # Variables whose values should be saved in libtool wrapper scripts and
31462 # restored at link time.
31463 variables_saved_for_relink=$lt_variables_saved_for_relink
31465 # Do we need the "lib" prefix for modules?
31466 need_lib_prefix=$need_lib_prefix
31468 # Do we need a version for libraries?
31469 need_version=$need_version
31471 # Library versioning type.
31472 version_type=$version_type
31474 # Shared library runtime path variable.
31475 runpath_var=$runpath_var
31477 # Shared library path variable.
31478 shlibpath_var=$shlibpath_var
31480 # Is shlibpath searched before the hard-coded library search path?
31481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31483 # Format of library name prefix.
31484 libname_spec=$lt_libname_spec
31486 # List of archive names. First name is the real one, the rest are links.
31487 # The last name is the one that the linker finds with -lNAME
31488 library_names_spec=$lt_library_names_spec
31490 # The coded name of the library, if different from the real name.
31491 soname_spec=$lt_soname_spec
31493 # Command to use after installation of a shared archive.
31494 postinstall_cmds=$lt_postinstall_cmds
31496 # Command to use after uninstallation of a shared archive.
31497 postuninstall_cmds=$lt_postuninstall_cmds
31499 # Commands used to finish a libtool library installation in a directory.
31500 finish_cmds=$lt_finish_cmds
31502 # As "finish_cmds", except a single script fragment to be evaled but
31504 finish_eval=$lt_finish_eval
31506 # Whether we should hardcode library paths into libraries.
31507 hardcode_into_libs=$hardcode_into_libs
31509 # Compile-time system search path for libraries.
31510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31512 # Run-time system search path for libraries.
31513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31515 # Whether dlopen is supported.
31516 dlopen_support=$enable_dlopen
31518 # Whether dlopen of programs is supported.
31519 dlopen_self=$enable_dlopen_self
31521 # Whether dlopen of statically linked programs is supported.
31522 dlopen_self_static=$enable_dlopen_self_static
31524 # Commands to strip libraries.
31525 old_striplib=$lt_old_striplib
31526 striplib=$lt_striplib
31529 # The linker used to build libraries.
31532 # Commands used to build an old-style archive.
31533 old_archive_cmds=$lt_old_archive_cmds
31535 # A language specific compiler.
31538 # Is the compiler the GNU compiler?
31541 # Compiler flag to turn off builtin functions.
31542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31544 # How to pass a linker flag through the compiler.
31545 wl=$lt_lt_prog_compiler_wl
31547 # Additional compiler flags for building library objects.
31548 pic_flag=$lt_lt_prog_compiler_pic
31550 # Compiler flag to prevent dynamic linking.
31551 link_static_flag=$lt_lt_prog_compiler_static
31553 # Does compiler simultaneously support -c and -o options?
31554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31556 # Whether or not to add -lc for building shared libraries.
31557 build_libtool_need_lc=$archive_cmds_need_lc
31559 # Whether or not to disallow shared libs when runtime libs are static.
31560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31562 # Compiler flag to allow reflexive dlopens.
31563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31565 # Compiler flag to generate shared objects directly from archives.
31566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31568 # Whether the compiler copes with passing no objects directly.
31569 compiler_needs_object=$lt_compiler_needs_object
31571 # Create an old-style archive from a shared archive.
31572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31574 # Create a temporary old-style archive to link instead of a shared archive.
31575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31577 # Commands used to build a shared archive.
31578 archive_cmds=$lt_archive_cmds
31579 archive_expsym_cmds=$lt_archive_expsym_cmds
31581 # Commands used to build a loadable module if different from building
31582 # a shared archive.
31583 module_cmds=$lt_module_cmds
31584 module_expsym_cmds=$lt_module_expsym_cmds
31586 # Whether we are building with GNU ld or not.
31587 with_gnu_ld=$lt_with_gnu_ld
31589 # Flag that allows shared libraries with undefined symbols to be built.
31590 allow_undefined_flag=$lt_allow_undefined_flag
31592 # Flag that enforces no undefined symbols.
31593 no_undefined_flag=$lt_no_undefined_flag
31595 # Flag to hardcode \$libdir into a binary during linking.
31596 # This must work even if \$libdir does not exist
31597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31599 # If ld is used when linking, flag to hardcode \$libdir into a binary
31600 # during linking. This must work even if \$libdir does not exist.
31601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31603 # Whether we need a single "-rpath" flag with a separated argument.
31604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31607 # DIR into the resulting binary.
31608 hardcode_direct=$hardcode_direct
31610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31611 # DIR into the resulting binary and the resulting library dependency is
31612 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31613 # library is relocated.
31614 hardcode_direct_absolute=$hardcode_direct_absolute
31616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31617 # into the resulting binary.
31618 hardcode_minus_L=$hardcode_minus_L
31620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31621 # into the resulting binary.
31622 hardcode_shlibpath_var=$hardcode_shlibpath_var
31624 # Set to "yes" if building a shared library automatically hardcodes DIR
31625 # into the library and all subsequent libraries and executables linked
31627 hardcode_automatic=$hardcode_automatic
31629 # Set to yes if linker adds runtime paths of dependent libraries
31630 # to runtime path list.
31631 inherit_rpath=$inherit_rpath
31633 # Whether libtool must link a program against all its dependency libraries.
31634 link_all_deplibs=$link_all_deplibs
31636 # Fix the shell variable \$srcfile for the compiler.
31637 fix_srcfile_path=$lt_fix_srcfile_path
31639 # Set to "yes" if exported symbols are required.
31640 always_export_symbols=$always_export_symbols
31642 # The commands to list exported symbols.
31643 export_symbols_cmds=$lt_export_symbols_cmds
31645 # Symbols that should not be listed in the preloaded symbols.
31646 exclude_expsyms=$lt_exclude_expsyms
31648 # Symbols that must always be exported.
31649 include_expsyms=$lt_include_expsyms
31651 # Commands necessary for linking programs (against libraries) with templates.
31652 prelink_cmds=$lt_prelink_cmds
31654 # Specify filename containing input files.
31655 file_list_spec=$lt_file_list_spec
31657 # How to hardcode a shared library path into an executable.
31658 hardcode_action=$hardcode_action
31660 # The directories searched by this compiler when creating a shared library.
31661 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31663 # Dependencies to place before and after the objects being linked to
31664 # create a shared library.
31665 predep_objects=$lt_predep_objects
31666 postdep_objects=$lt_postdep_objects
31667 predeps=$lt_predeps
31668 postdeps=$lt_postdeps
31670 # The library search path used internally by the compiler when linking
31671 # a shared library.
31672 compiler_lib_search_path=$lt_compiler_lib_search_path
31674 # ### END LIBTOOL CONFIG
31680 cat <<\_LT_EOF >> "$cfgfile"
31681 # AIX sometimes has problems with the GCC collect2 program. For some
31682 # reason, if we set the COLLECT_NAMES environment variable, the problems
31683 # vanish in a puff of smoke.
31684 if test "X${COLLECT_NAMES+set}" != Xset; then
31686 export COLLECT_NAMES
31693 ltmain="$ac_aux_dir/ltmain.sh"
31696 # We use sed instead of cat because bash on DJGPP gets confused if
31697 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31698 # text mode, it properly converts lines to CR/LF. This bash problem
31699 # is reportedly fixed, but why not run on old versions too?
31700 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31701 || (rm -f "$cfgfile"; exit 1)
31705 cat << \_LT_EOF >> "$cfgfile"
31707 # func_dirname file append nondir_replacement
31708 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31709 # otherwise set result to NONDIR_REPLACEMENT.
31713 */*) func_dirname_result="${1%/*}${2}" ;;
31714 * ) func_dirname_result="${3}" ;;
31718 # func_basename file
31721 func_basename_result="${1##*/}"
31724 # func_dirname_and_basename file append nondir_replacement
31725 # perform func_basename and func_dirname in a single function
31727 # dirname: Compute the dirname of FILE. If nonempty,
31728 # add APPEND to the result, otherwise set result
31729 # to NONDIR_REPLACEMENT.
31730 # value returned in "$func_dirname_result"
31731 # basename: Compute filename of FILE.
31732 # value retuned in "$func_basename_result"
31733 # Implementation must be kept synchronized with func_dirname
31734 # and func_basename. For efficiency, we do not delegate to
31735 # those functions but instead duplicate the functionality here.
31736 func_dirname_and_basename ()
31739 */*) func_dirname_result="${1%/*}${2}" ;;
31740 * ) func_dirname_result="${3}" ;;
31742 func_basename_result="${1##*/}"
31745 # func_stripname prefix suffix name
31746 # strip PREFIX and SUFFIX off of NAME.
31747 # PREFIX and SUFFIX must not contain globbing or regex special
31748 # characters, hashes, percent signs, but SUFFIX may contain a leading
31749 # dot (in which case that matches only a dot).
31752 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31753 # positional parameters, so assign one to ordinary parameter first.
31754 func_stripname_result=${3}
31755 func_stripname_result=${func_stripname_result#"${1}"}
31756 func_stripname_result=${func_stripname_result%"${2}"}
31762 func_opt_split_opt=${1%%=*}
31763 func_opt_split_arg=${1#*=}
31770 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31771 *) func_lo2o_result=${1} ;;
31775 # func_xform libobj-or-source
31778 func_xform_result=${1%.*}.lo
31781 # func_arith arithmetic-term...
31784 func_arith_result=$(( $* ))
31788 # STRING may not start with a hyphen.
31791 func_len_result=${#1}
31796 *) # Bourne compatible functions.
31797 cat << \_LT_EOF >> "$cfgfile"
31799 # func_dirname file append nondir_replacement
31800 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31801 # otherwise set result to NONDIR_REPLACEMENT.
31804 # Extract subdirectory from the argument.
31805 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31806 if test "X$func_dirname_result" = "X${1}"; then
31807 func_dirname_result="${3}"
31809 func_dirname_result="$func_dirname_result${2}"
31813 # func_basename file
31816 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31820 # func_stripname prefix suffix name
31821 # strip PREFIX and SUFFIX off of NAME.
31822 # PREFIX and SUFFIX must not contain globbing or regex special
31823 # characters, hashes, percent signs, but SUFFIX may contain a leading
31824 # dot (in which case that matches only a dot).
31825 # func_strip_suffix prefix name
31829 .*) func_stripname_result=`$ECHO "X${3}" \
31830 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31831 *) func_stripname_result=`$ECHO "X${3}" \
31832 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31837 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31838 my_sed_long_arg='1s/^-[^=]*=//'
31843 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31844 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31850 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31853 # func_xform libobj-or-source
31856 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31859 # func_arith arithmetic-term...
31862 func_arith_result=`expr "$@"`
31866 # STRING may not start with a hyphen.
31869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31875 case $lt_shell_append in
31877 cat << \_LT_EOF >> "$cfgfile"
31879 # func_append var value
31880 # Append VALUE to the end of shell variable VAR.
31888 cat << \_LT_EOF >> "$cfgfile"
31890 # func_append var value
31891 # Append VALUE to the end of shell variable VAR.
31902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31903 || (rm -f "$cfgfile"; exit 1)
31905 mv -f "$cfgfile" "$ofile" ||
31906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31910 cat <<_LT_EOF >> "$ofile"
31912 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31914 # The linker used to build libraries.
31917 # Commands used to build an old-style archive.
31918 old_archive_cmds=$lt_old_archive_cmds_CXX
31920 # A language specific compiler.
31921 CC=$lt_compiler_CXX
31923 # Is the compiler the GNU compiler?
31926 # Compiler flag to turn off builtin functions.
31927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31929 # How to pass a linker flag through the compiler.
31930 wl=$lt_lt_prog_compiler_wl_CXX
31932 # Additional compiler flags for building library objects.
31933 pic_flag=$lt_lt_prog_compiler_pic_CXX
31935 # Compiler flag to prevent dynamic linking.
31936 link_static_flag=$lt_lt_prog_compiler_static_CXX
31938 # Does compiler simultaneously support -c and -o options?
31939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31941 # Whether or not to add -lc for building shared libraries.
31942 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31944 # Whether or not to disallow shared libs when runtime libs are static.
31945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31947 # Compiler flag to allow reflexive dlopens.
31948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31950 # Compiler flag to generate shared objects directly from archives.
31951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31953 # Whether the compiler copes with passing no objects directly.
31954 compiler_needs_object=$lt_compiler_needs_object_CXX
31956 # Create an old-style archive from a shared archive.
31957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31959 # Create a temporary old-style archive to link instead of a shared archive.
31960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31962 # Commands used to build a shared archive.
31963 archive_cmds=$lt_archive_cmds_CXX
31964 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31966 # Commands used to build a loadable module if different from building
31967 # a shared archive.
31968 module_cmds=$lt_module_cmds_CXX
31969 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31971 # Whether we are building with GNU ld or not.
31972 with_gnu_ld=$lt_with_gnu_ld_CXX
31974 # Flag that allows shared libraries with undefined symbols to be built.
31975 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31977 # Flag that enforces no undefined symbols.
31978 no_undefined_flag=$lt_no_undefined_flag_CXX
31980 # Flag to hardcode \$libdir into a binary during linking.
31981 # This must work even if \$libdir does not exist
31982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31984 # If ld is used when linking, flag to hardcode \$libdir into a binary
31985 # during linking. This must work even if \$libdir does not exist.
31986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31988 # Whether we need a single "-rpath" flag with a separated argument.
31989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31992 # DIR into the resulting binary.
31993 hardcode_direct=$hardcode_direct_CXX
31995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31996 # DIR into the resulting binary and the resulting library dependency is
31997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31998 # library is relocated.
31999 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32002 # into the resulting binary.
32003 hardcode_minus_L=$hardcode_minus_L_CXX
32005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32006 # into the resulting binary.
32007 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32009 # Set to "yes" if building a shared library automatically hardcodes DIR
32010 # into the library and all subsequent libraries and executables linked
32012 hardcode_automatic=$hardcode_automatic_CXX
32014 # Set to yes if linker adds runtime paths of dependent libraries
32015 # to runtime path list.
32016 inherit_rpath=$inherit_rpath_CXX
32018 # Whether libtool must link a program against all its dependency libraries.
32019 link_all_deplibs=$link_all_deplibs_CXX
32021 # Fix the shell variable \$srcfile for the compiler.
32022 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32024 # Set to "yes" if exported symbols are required.
32025 always_export_symbols=$always_export_symbols_CXX
32027 # The commands to list exported symbols.
32028 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32030 # Symbols that should not be listed in the preloaded symbols.
32031 exclude_expsyms=$lt_exclude_expsyms_CXX
32033 # Symbols that must always be exported.
32034 include_expsyms=$lt_include_expsyms_CXX
32036 # Commands necessary for linking programs (against libraries) with templates.
32037 prelink_cmds=$lt_prelink_cmds_CXX
32039 # Specify filename containing input files.
32040 file_list_spec=$lt_file_list_spec_CXX
32042 # How to hardcode a shared library path into an executable.
32043 hardcode_action=$hardcode_action_CXX
32045 # The directories searched by this compiler when creating a shared library.
32046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32048 # Dependencies to place before and after the objects being linked to
32049 # create a shared library.
32050 predep_objects=$lt_predep_objects_CXX
32051 postdep_objects=$lt_postdep_objects_CXX
32052 predeps=$lt_predeps_CXX
32053 postdeps=$lt_postdeps_CXX
32055 # The library search path used internally by the compiler when linking
32056 # a shared library.
32057 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32059 # ### END LIBTOOL TAG CONFIG: CXX
32064 for ac_file in $CONFIG_FILES; do
32065 # Support "outfile[:infile[:infile...]]"
32067 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32069 # PO directories have a Makefile.in generated from Makefile.in.in.
32070 case "$ac_file" in */Makefile.in)
32071 # Adjust a relative srcdir.
32072 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32073 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32074 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32075 # In autoconf-2.13 it is called $ac_given_srcdir.
32076 # In autoconf-2.50 it is called $srcdir.
32077 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32078 case "$ac_given_srcdir" in
32079 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32080 /*) top_srcdir="$ac_given_srcdir" ;;
32081 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32083 # Treat a directory as a PO directory if and only if it has a
32084 # POTFILES.in file. This allows packages to have multiple PO
32085 # directories under different names or in different locations.
32086 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32087 rm -f "$ac_dir/POTFILES"
32088 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32089 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32090 POMAKEFILEDEPS="POTFILES.in"
32091 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32092 # on $ac_dir but don't depend on user-specified configuration
32094 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32095 # The LINGUAS file contains the set of available languages.
32096 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32097 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32099 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32100 # Hide the ALL_LINGUAS assigment from automake.
32101 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32102 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32104 # The set of available languages was given in configure.in.
32105 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32108 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32109 # Compute UPDATEPOFILES
32110 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32111 # Compute DUMMYPOFILES
32112 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32114 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32115 case "$ac_given_srcdir" in
32117 *) srcdirpre='$(srcdir)/' ;;
32123 for lang in $ALL_LINGUAS; do
32124 POFILES="$POFILES $srcdirpre$lang.po"
32125 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32126 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32127 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32129 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32130 # environment variable.
32132 if test -n "$ALL_LINGUAS"; then
32133 for presentlang in $ALL_LINGUAS; do
32135 if test "%UNSET%" != "$LINGUAS"; then
32136 desiredlanguages="$LINGUAS"
32138 desiredlanguages="$ALL_LINGUAS"
32140 for desiredlang in $desiredlanguages; do
32141 # Use the presentlang catalog if desiredlang is
32142 # a. equal to presentlang, or
32143 # b. a variant of presentlang (because in this case,
32144 # presentlang can be used as a fallback for messages
32145 # which are not translated in the desiredlang catalog).
32146 case "$desiredlang" in
32147 "$presentlang"*) useit=yes;;
32150 if test $useit = yes; then
32151 INST_LINGUAS="$INST_LINGUAS $presentlang"
32156 if test -n "$INST_LINGUAS"; then
32157 for lang in $INST_LINGUAS; do
32158 CATALOGS="$CATALOGS $lang.gmo"
32161 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32162 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"
32163 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32164 if test -f "$f"; then
32166 *.orig | *.bak | *~) ;;
32167 *) cat "$f" >> "$ac_dir/Makefile" ;;
32184 ac_clean_files=$ac_clean_files_save
32186 test $ac_write_fail = 0 ||
32187 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32190 # configure is writing to config.log, and then calls config.status.
32191 # config.status does its own redirection, appending to config.log.
32192 # Unfortunately, on DOS this fails, as config.log is still kept open
32193 # by configure, so config.status won't be able to write to it; its
32194 # output is simply discarded. So we exec the FD to /dev/null,
32195 # effectively closing config.log, so it can be properly (re)opened and
32196 # appended to by config.status. When coming back to configure, we
32197 # need to make the FD available again.
32198 if test "$no_create" != yes; then
32200 ac_config_status_args=
32201 test "$silent" = yes &&
32202 ac_config_status_args="$ac_config_status_args --quiet"
32204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32207 # would make configure fail if this is the last instruction.
32208 $ac_cs_success || as_fn_exit $?
32210 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32212 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32216 if test "${support_bat}" = "yes" ; then
32217 if test "x$QMAKE" = "xnone"; then
32218 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32222 echo "Creating bat Makefile"
32227 ${MAKE:-make} clean
32231 if test X"$GCC" = "Xyes" ; then
32232 echo "Doing make of dependencies"
32233 ${MAKE:-make} depend
32237 chmod 755 install_conf_file build-depkgs-qt-console
32241 chmod 755 bacula btraceback mtx-changer
32242 chmod 755 dvd-handler dvd-simulator
32243 chmod 755 bconsole mtx-changer devel_bacula logrotate
32247 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32248 chmod 755 $c/update_postgresql_tables_10_to_11
32249 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32250 chmod 755 $c/update_postgresql_tables_11_to_12
32255 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32256 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32258 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32259 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32261 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32262 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32264 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32265 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32267 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32268 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32271 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32272 chmod 755 $c/sqlite
32275 chmod 755 src/win32/build-depkgs-mingw32
32277 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32278 largefile_support="yes"
32281 if test X"$GCC" = "Xyes" ; then
32282 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32283 if test "x${CCVERSION}" = "x" ; then
32284 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32286 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32287 if test x"${CXXVERSION}" = x ; then
32288 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32292 # clean up any old junk
32296 ${MAKE:-make} clean
32299 Configuration on `date`:
32301 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32302 Bacula version: ${BACULA} ${VERSION} (${DATE})
32303 Source code location: ${srcdir}
32304 Install binaries: ${sbindir}
32305 Install libraries: ${libdir}
32306 Install config files: ${sysconfdir}
32307 Scripts directory: ${scriptdir}
32308 Archive directory: ${archivedir}
32309 Working directory: ${working_dir}
32310 PID directory: ${piddir}
32311 Subsys directory: ${subsysdir}
32312 Man directory: ${mandir}
32313 Data directory: ${datarootdir}
32314 Plugin directory: ${plugindir}
32315 C Compiler: ${CC} ${CCVERSION}
32316 C++ Compiler: ${CXX} ${CXXVERSION}
32317 Compiler flags: ${WCFLAGS} ${CFLAGS}
32318 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32320 Statically Linked Tools: ${support_static_tools}
32321 Statically Linked FD: ${support_static_fd}
32322 Statically Linked SD: ${support_static_sd}
32323 Statically Linked DIR: ${support_static_dir}
32324 Statically Linked CONS: ${support_static_cons}
32325 Database backends: ${db_backends}
32326 Database port: ${db_port}
32327 Database name: ${db_name}
32328 Database user: ${db_user}
32330 Job Output Email: ${job_email}
32331 Traceback Email: ${dump_email}
32332 SMTP Host Address: ${smtp_host}
32334 Director Port: ${dir_port}
32335 File daemon Port: ${fd_port}
32336 Storage daemon Port: ${sd_port}
32338 Director User: ${dir_user}
32339 Director Group: ${dir_group}
32340 Storage Daemon User: ${sd_user}
32341 Storage DaemonGroup: ${sd_group}
32342 File Daemon User: ${fd_user}
32343 File Daemon Group: ${fd_group}
32345 Large file support: $largefile_support
32346 Bacula conio support: ${got_conio} ${CONS_LIBS}
32347 readline support: ${got_readline} ${PRTREADLINE_SRC}
32348 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32349 TLS support: ${support_tls}
32350 Encryption support: ${support_crypto}
32351 ZLIB support: ${have_zlib}
32352 enable-smartalloc: ${support_smartalloc}
32353 enable-lockmgr: ${support_lockmgr}
32354 bat support: ${support_bat}
32355 enable-gnome: ${support_gnome} ${gnome_version}
32356 enable-bwx-console: ${support_wx_console} ${wx_version}
32357 enable-tray-monitor: ${support_tray_monitor}
32358 client-only: ${build_client_only}
32359 build-dird: ${build_dird}
32360 build-stored: ${build_stored}
32361 Plugin support: ${have_plugins}
32362 AFS support: ${have_afs}
32363 ACL support: ${have_acl}
32364 XATTR support: ${have_xattr}
32365 Python support: ${support_python} ${PYTHON_LIBS}
32366 Batch insert enabled: ${support_batch_insert}
32370 # create a small shell script useful for support with
32371 # configure options and config.out info
32372 cat > scripts/bacula_config << EOF
32375 $ $0 $ac_configure_args
32377 cat config.out >> scripts/bacula_config
32378 echo __EOC__ >> scripts/bacula_config
32379 chmod 755 scripts/bacula_config